Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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....
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic