• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with the Spring application: JspTagException

 
Mike Tihonchik
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried doing this in your web.xml?


im not sure if that'll fix your problem.

-marckun
 
Mike Tihonchik
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmmm haven't tried jboss before. but usually, my dispatcher servlet has this mapping.



-marckun
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It happened in which page? form view or success view?
 
Mike Tihonchik
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic