Author: markt Date: Sat May 19 07:22:21 2007 New Revision: 539758 URL: http://svn.apache.org/viewvc?view=rev&rev=539758 Log: Simplify example. Prevent XSS.
Modified: tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/web/hello.jsp Modified: tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java URL: http://svn.apache.org/viewvc/tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java?view=diff&rev=539758&r1=539757&r2=539758 ============================================================================== --- tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java (original) +++ tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/src/mypackage/Hello.java Sat May 19 07:22:21 2007 @@ -1,9 +1,10 @@ /* - * Copyright 1999,2004 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Modified: tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/web/hello.jsp URL: http://svn.apache.org/viewvc/tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/web/hello.jsp?view=diff&rev=539758&r1=539757&r2=539758 ============================================================================== --- tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/web/hello.jsp (original) +++ tomcat/container/branches/tc5.0.x/webapps/docs/appdev/sample/web/hello.jsp Sat May 19 07:22:21 2007 @@ -12,33 +12,12 @@ <td> <h1>Sample Application JSP Page</h1> This is the output of a JSP page that is part of the Hello, World -application. It displays several useful values from the request -we are currently processing. +application. </td> </tr> </table> -<table border="0" border="100%"> -<tr> - <th align="right">Context Path:</th> - <td align="left"><%= request.getContextPath() %></td> -</tr> -<tr> - <th align="right">Path Information:</th> - <td align="left"><%= request.getPathInfo() %></td> -</tr> -<tr> - <th align="right">Query String:</th> - <td align="left"><%= request.getQueryString() %></td> -</tr> -<tr> - <th align="right">Request Method:</th> - <td align="left"><%= request.getMethod() %></td> -</tr> -<tr> - <th align="right">Servlet Path:</th> - <td align="left"><%= request.getServletPath() %></td> -</tr> -</table> +<%= new String("Hello!") %> + </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]