Up vote 0 down vote favorite share g+ share fb share tw.
I'm using SimpleFormController for user login page. When user name and password are correct it redirects to successView, but otherwise I want to redirect again to the same login page (same formView). I'm getting the following error, which has something to do with my command object.
Org.apache.jasper. JasperException: java.lang. IllegalStateException: Neither BindingResult nor plain target object for bean name 'logInPageCommand' available as request attribute org.apache.jasper.servlet.
JspServletWrapper. HandleJspException(JspServletWrapper. Java:491) org.apache.jasper.servlet.
JspServletWrapper. Service(JspServletWrapper. Java:413) 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) org.netbeans.modules.web.monitor.server.MonitorFilter.
DoFilter(MonitorFilter. Java:393) org.springframework.web.servlet.view. InternalResourceView.
RenderMergedOutputModel(InternalResourceView. Java:236) org.springframework.web.servlet.view.AbstractView. Render(AbstractView.
Java:257) org.springframework.web.servlet. DispatcherServlet. Render(DispatcherServlet.
Java:1183) org.springframework.web.servlet. DispatcherServlet. DoDispatch(DispatcherServlet.
Java:902) org.springframework.web.servlet. DispatcherServlet. DoService(DispatcherServlet.
Java:807) org.springframework.web.servlet. FrameworkServlet. ProcessRequest(FrameworkServlet.
Java:571) org.springframework.web.servlet. FrameworkServlet. DoPost(FrameworkServlet.
Java:511) javax.servlet.http.HttpServlet. Service(HttpServlet. Java:637) javax.servlet.http.HttpServlet.
Service(HttpServlet. Java:717) org.netbeans.modules.web.monitor.server.MonitorFilter. DoFilter(MonitorFilter.
Java:393) and here is my controller: public ModelAndView onSubmit(Object command) throws ServletException { ModelAndView mv = new ModelAndView(); LogInPageCommand logInPageCommand = (LogInPageCommand) command; QuizUser quizUser = new QuizUser(); quizUser. SetUsername(logInPageCommand.getUserName()); quizUser. SetPassword(logInPageCommand.getPassword()); Boolean unsuccessfullLogin = false; if (quizUserFacade.
IsAuthenticated(quizUser)){ mv. SetViewName(getSuccessView()); } else{ unsuccessfullLogin = true; mv. AddObject("unsuccessfulLogin", unsuccessfullLogin); mv.
SetViewName(getFormView()); } return mv; } } and xml: JSP Page Login page Enter user name Enter password Not sure if this is possible or how to fix it. Thanks spring-mvc link|improve this question edited May 1 '11 at 17:56skaffman114k8135227 asked May 1 '11 at 16:39Mike5517211 86% accept rate.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.