• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Strange URL redirect (ActionFormBean Scope Problems )

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there ,
i have a WelcomePage.jsp in which I use two ActionForm Beans : LoginForm and RegisterForm
Code from WelcomePage.jsp

The login click takes me to success.jsp page [no problem here ]. URL is http://localhost:8080/Project_-_SN/loginPath.do
However the click on register button gives 400 error code. URL is http://localhost:8080/registerPath

Here is the code from Struts-config.xml file


For more info . Code from web.xml file.


Question that disturbs me :
Why the click on "register" button takes me to http://localhost:8080/registerPath instead of http://localhost:8080/Project_-_SN/registerPath.do. ?? Please help me resolve this.
 
Raman Ghai
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
New Problems have arisen in this :
Cannot find "RegisterForm" in any scope.
It occurs due to spelling mistakes..however I am sure there are no such mistakes..grrrr


At last , solved the problem on my own....
 
Seriously? That's what you're going with? I prefer this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic