java - Cannot retrieve definition for form bean -
i having following error in jsp page :
org.apache.jasper.jasperexception: javax.servlet.servletexception: javax.servlet.jsp.jspexception: cannot retrieve definition form bean myloginform org.apache.jasper.servlet.jspservletwrapper.handlejspexception(jspservletwrapper.java:535) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:411) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:320) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:266) javax.servlet.http.httpservlet.service(httpservlet.java:803) org.apache.struts.action.requestprocessor.doforward(requestprocessor.java:1069) org.apache.struts.action.requestprocessor.processforwardconfig(requestprocessor.java:455) org.apache.struts.action.requestprocessor.process(requestprocessor.java:279) org.apache.struts.action.actionservlet.process(actionservlet.java:1482) org.apache.struts.action.actionservlet.doget(actionservlet.java:507) javax.servlet.http.httpservlet.service(httpservlet.java:690) javax.servlet.http.httpservlet.service(httpservlet.java:803) com.dps.onlineadmissions.util.loginfilter.dofilter(loginfilter.java:57) org.jboss.web.tomcat.filters.replyheaderfilter.dofilter(replyheaderfilter.java:96)
my form bean in struts-config.xml :
<form-beam name="myloginform" type="com.dps.onlineadmissions.form.myloginform" />
my action tag :
<action type="com.dps.onlineadmissions.action.mylogin" path="/mylogin" name="myloginform" validate="true" input="/index2.jsp" scope="request"> <forward name="newuser" path="/welcome.jsp" /> <forward name="validuser" path="/welcome.jsp" /> <forward name="loginpage" path="/login.jsp" /> <forward name="newapp" path="/newapplication.do" /> <forward name="migratestudent" path="/loginbypassaction.do" /> <forward name="selectprog" path="/selectprogram.jsp" /> </action>
i trying solve error couple of hours haven't got success. can cause of error, how can fix it?
thanks!
it should be
<form-beans> <form-bean name="myloginform" type="com.dps.onlineadmissions.form.myloginform"/> </form-beans>
not form-beam
in tag. correct spelling mistake
Comments
Post a Comment