• 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

not using 'success' every time...

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Bjorn
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bjorn:

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
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And, as for being bad practice, using "success" adds a certain amount of consistency - assuming you have only one successful outcome.

Regards.
reply
    Bookmark Topic Watch Topic
  • New Topic