aspose file tools*
The moose likes Struts and the fly likes not using 'success' every time... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "not using Watch "not using New topic

not using 'success' every time...

Bjorn Stove

Joined: Jan 08, 2005
Posts: 19
Hi. Im new to Struts.
Am I violating any design principle if I dont
name my forward to 'success' everytime.
I was thinking naming it to the next jsp being displayed,
for example: actionMapping.findForward("Order");
Then I can go direct to the Order.jsp page without
peeking in the struts-config file.
Is that bad practise??
Thanks for advice.
Best Regards
Tom Williamson

Joined: Sep 13, 2006
Posts: 9

You can name it whatever you want, but it will always look in the config file and you must have it set up there with the name you chose.
Tom Williamson

Joined: Sep 13, 2006
Posts: 9
And, as for being bad practice, using "success" adds a certain amount of consistency - assuming you have only one successful outcome.

I agree. Here's the link:
subject: not using 'success' every time...
Similar Threads
Iterate tag HELP
Iterate tag HELP
Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non
struts2 jquery ajax call
Can I forward(return) a url from Struts Action