Author: kristwaa Date: Tue Mar 13 06:13:00 2012 New Revision: 1299982 URL: http://svn.apache.org/viewvc?rev=1299982&view=rev Log: DERBY-5639: Minor code cleanup for NetServlet Fixed some HTML errors. Patch file: derby-5639-3a-html.diff Modified: db/derby/code/trunk/java/drda/org/apache/derby/drda/NetServlet.java Modified: db/derby/code/trunk/java/drda/org/apache/derby/drda/NetServlet.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/drda/NetServlet.java?rev=1299982&r1=1299981&r2=1299982&view=diff ============================================================================== --- db/derby/code/trunk/java/drda/org/apache/derby/drda/NetServlet.java (original) +++ db/derby/code/trunk/java/drda/org/apache/derby/drda/NetServlet.java Tue Mar 13 06:13:00 2012 @@ -472,9 +472,8 @@ public class NetServlet extends HttpServ } - out.println( "" ); - out.println( "" ); - + out.println( "" ); + out.println( "" ); } /** @@ -616,8 +615,8 @@ public class NetServlet extends HttpServ printAsContentHeader(localUtil.getTextMessage("SRV_NetworkServerError"), out); out.println( "

"+localUtil.getTextMessage("SRV_Message", e.getMessage()) + "

" ); out.println( "" ); - out.println( "" ); out.println( "" ); + out.println( "" ); } /** * Display an error form @@ -638,8 +637,8 @@ public class NetServlet extends HttpServ printAsContentHeader(localUtil.getTextMessage("SRV_NetworkServerError"), out); out.println( "

"+localUtil.getTextMessage("SRV_Message", msg) + "

" ); out.println( "" ); - out.println( "" ); out.println( "" ); + out.println( "" ); } /** * Display the current Network server status @@ -930,18 +929,21 @@ public class NetServlet extends HttpServ */ private void printBanner(LocalizedResource localUtil, PrintWriter out) { + out.println(""); + out.println(""); + out.println(""); + out.println(""+localUtil.getTextMessage("SRV_Banner")+""); + out.println(""); + out.println(""); out.println("[ " + localUtil.getTextMessage("SRV_SkipToContent") + " ]"); out.println(" - [ " + localUtil.getTextMessage("SRV_BackToMain") + " ]"); - out.println( "" ); - out.println( ""+localUtil.getTextMessage("SRV_Banner")+"" ); - out.println( "" ); - out.println( "
" ); - out.println( "

"+localUtil.getTextMessage("SRV_Banner")+"

" ); - out.println( "
" ); - + out.println("
"); + out.println("

"+localUtil.getTextMessage("SRV_Banner")+"

"); + out.println("
"); } + /** * Determine the locale file needed for this browsers preferences * Defaults to the settings for derby.locale and derby.codeset if set