title: Redirecting from a servlet to an error page
body: <p>I am currently doing an assignment in university, and one of the final tasks is to add a re-direct to a servlet that takes the user to an error page if a form doesn't contain any information that can be linked to the database using the string below.</p>
  
  <pre><code>String selectSQL = "select * from video_recordings where director = '"+directorsearch+"';";
  </code></pre>
  
  <p>I have it set up so that it prints the relevant contents of the database, with an in-line error, but CSS screws it up an actual page would look better. Any ideas on the best method of doing this as re-directs aren't overly efficient.</p>
  
  <p>Many thanks</p>