Hi
When I try to small program with <%@ method = "doPost" %> variable it gives
following error.

500 Internal Server Error
com.livesoftware.jsp.JSPServlet:

javax.servlet.ServletException:  JSP Parse error /myjsp/MyJsp2.jsp:Lexical
error at line 1, column 5.  Encountered: "m" (109), after : ""

However without <%@ method = "doPost" %> variable it is running superbly.

Please explain me.

THe code is followong
******************* MyJsp2.jsp
**************************************************
<%@ method = "doPost" %>
<html>
<head>
        <title>Hello JSP2</title>
</head>

<body>
<h1>
<% if (request.getParameter("name") == null) { %>
Hello JSP WORLD
<% } else {%>
   Hello, <%= request.getParameter("name")%>
<%} %>
</h1>
</body>
</html>

******************* MyJsp2.jsp
**************************************************

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to