• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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....
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic