This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Getting an Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting an Exception" Watch "Getting an Exception" New topic
Author

Getting an Exception

Jay Shukla
Ranch Hand

Joined: Jun 08, 2008
Posts: 214
Hi I'm getting following exception while running an application.

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve definition for form bean cmrSearchForm on action /cmrSearch
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.cmrinput_jsp._jspService(cmrinput_jsp.java:109)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)


cmrinput.jsp



cmrSearchForm.java



Entry in Struts-config.xml




Can anyone please help me in resolving this exception??

Thanks in Advance.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You need to show the form bean definition as well since that looks to be what the error is related to.
 
jQuery in Action, 2nd edition
 
subject: Getting an Exception
 
Similar Threads
how to iterate.
JavaScript function in JSP
Struts Validation Empty alert Box
doubt in Struts application
Problem in SessionManagement in Struts