• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Understanding Struts 2

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following Struts 2 xml


Everything else is coded correctly and all the specified actions run properly.
However...

http://localhost:8080/StrutsApp/chapterFour/login and http://localhost:8080/StrutsApp/anythingElse/login and http://localhost:8080/StrutsApp/login
all redirect to the login page.

Is that how this is supposed to work?
 
Ranch Hand
Posts: 439
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings Phatak,
No I dont suppose that is how it should be working unless of-course there is some mix-up in the mapping files. I noticed that you have defined 2 results for the action names login .


This is possibly one factor for the mixup. remove the other entry without the name attribute and try to run the app again.
 
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Phatak,

It might be so ... It might be programmed to work like that only ... just imagine why three actions can't redirect to the same page ???

 
Saif Asif
Ranch Hand
Posts: 439
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes of-course , that can also be the possibility that it was designed to work that way just as Lalit said .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic