Thursday, 15 March 2012

Moving controller and Model classes to a new folder in MVC in Netbeans IDE -



Moving controller and Model classes to a new folder in MVC in Netbeans IDE -

earlier haven't maintained folder arrangements project, want maintain modules in seperate folders , maintained folder organisation jsp's. that's working good. when seek same controller , model classes facing error.

javax.servlet.servletexception: javax.servlet.jsp.jspexception: cannot retrieve definition form bean: "model.agent.agentedit" on action: "/agt_ctr" org.apache.jasper.runtime.pagecontextimpl.dohandlepageexception(pagecontextimpl.java:916) org.apache.jasper.runtime.pagecontextimpl.handlepageexception(pagecontextimpl.java:845) org.apache.jsp.agent_0020mgt.edit_0020agent.agent_005fedit_jsp._jspservice(agent_005fedit_jsp.java:324) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:727) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:432) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:390) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:334) javax.servlet.http.httpservlet.service(httpservlet.java:727) org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)

earlier config file worked below

<action input="/agent mgt/edit agent/agent_edit.jsp" name="agentedit" path="/agt_ctr" scope="request" type="controller.agentcontroller"> <forward name="agtedit" path="/agent mgt/edit agent/agent_edit_fwd.jsp"/> </action>

after changing config file didn't worked, code here below

<action input="/agent mgt/edit agent/agent_edit.jsp" name="agentedit" path="/agt_ctr" scope="request" type="controller.agent.agentcontroller"> <forward name="agtedit" path="/agent mgt/edit agent/agent_edit_fwd.jsp"/> </action>

in before there no folders in controller bundle , created folder "agent" in controller , moved servlet new folder. same did model class created new folder agent , moved old ones new folder in model package. after doing changes doesn't works. tried changing name="agentedit" name="model.agent.agentedit" didn't worked help me .

model-view-controller netbeans-7 struts-1

No comments:

Post a Comment