This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Big Picture Struts question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Big Picture Struts question" Watch "Big Picture Struts question" New topic
Author

Big Picture Struts question

Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 276
Hi,
I am confused about something regarding navigaion with struts actions.
I have a login jsp page with an associated login struts action.
The struts action returns a success or failure depending on user name and password. What do I do if I want the main application page (which I am directed to if I get a "success" returned by the login action) to also be associated with its own action. It seems like with struts "forwards" I can only specify a new jsp page to go to, I can't tell it a new action to execute. Does this make sense ?
In psuedo code:


What if I want the success forward to go to another action? Can I do that?
Thanks!
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
Rather than specifying a jsp, specify the name of the other action you wish to go to and the servlet-mapping.
ie:<forward name="success" path="/someOtherAction.do"/>
Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 276
Thanks ! Thanks !
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Big Picture Struts question
 
It's not a secret anymore!