| Author |
struts page display error
|
Atul Darne
Ranch Hand
Joined: Jul 05, 2009
Posts: 117
|
|
Hello guys, i am trying to develop a simple login page. and getting the following error. please check where i am going wrong.
i am getting this error
ERROR
Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 22
19:
20: <center>Hi</center>
21:
22: <s:form action="" >
23: <s:text property="username"/>
24: <s:password property="password"/>
25: <s:submit/>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve mapping for action: "/"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.login_jsp._jspService(login_jsp.java:95)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.jsp.JspException: Cannot retrieve mapping for action: "/"
|
Regards, Atul.
I came to this world on a Learner's License
|
 |
sri ramvaithiyanathan
Ranch Hand
Joined: Nov 20, 2010
Posts: 109
|
|
Atul Darne wrote:
action should not be null.specify exact action name
regrds,
sriram
|
For java examples,ebooks,interview questions,visit this blog
http://periodicupdates.blogspot.com/
|
 |
Atul Darne
Ranch Hand
Joined: Jul 05, 2009
Posts: 117
|
|
|
i tried adding the action still getting the same error
|
 |
sri ramvaithiyanathan
Ranch Hand
Joined: Nov 20, 2010
Posts: 109
|
|
I'm not seeing your struts.xml file.
Say suppose your action file name is validateLogin and action structure like this com.test.actions.validateLogin;
Then you have to map struts.xml file like this
The action name in the struts.xml must be same as the action name in the jsp.
Then only it will look on the particular action file.
Please show your struts.xml file and action file to us.Your problem will get resolved soon.
Regards,
Sriram.V
|
 |
 |
|
|
subject: struts page display error
|
|
|