wood burning stoves 2.0*
The moose likes Spring and the fly likes Problem with the Spring application: JspTagException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Problem with the Spring application: JspTagException" Watch "Problem with the Spring application: JspTagException" New topic
Author

Problem with the Spring application: JspTagException

Mike Tihonchik
Greenhorn

Joined: Mar 20, 2008
Posts: 12
I am new to Spring MVC, and I can't seem to figure out what is the problem. I get the following exception: Neither BindingResult nor plain target object for bean name 'loginUser' available as request attribute. Here are my files: web.xml, ...-servlet.xml and LoginController.java




I think, I messing up in the web.xml or ...-servlet.xml while defining my urlMapping, because if I change the following line to: the login page come up. Thank you in advance
Marc Heruela
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
Have you tried doing this in your web.xml?


im not sure if that'll fix your problem.

-marckun


-marckun
Mike Tihonchik
Greenhorn

Joined: Mar 20, 2008
Posts: 12
Yes, I did, however, I get the following exception in my JBoss window:
16:13:24,217 ERROR [[i550imports]] Servlet.service() for servlet i550imports threw exception
java.lang.StackOverflowError
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:210)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
Marc Heruela
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
hmmm haven't tried jboss before. but usually, my dispatcher servlet has this mapping.



-marckun
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
It happened in which page? form view or success view?


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Mike Tihonchik
Greenhorn

Joined: Mar 20, 2008
Posts: 12
Kengkaj Sathianpantarit wrote:It happened in which page? form view or success view?

It happens to the form view on initial load..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with the Spring application: JspTagException
 
Similar Threads
javax.servlet.ServletException: No adapter for handler
problem while loading the welcome page
Error with Spring 3.0 in deployment.
struts-spring-hibernate integration
Problem running app under Tomcat v7