• 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

contacting an action in a strut-config.xml from another strut-config.xml

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i have three different strut-config files for each module.. i have to <forward> control from an <action> of 1st struts-config.xml to another action of the other(2nd) strutss-config.xml? please let me know the different ways.

if possible please provide the code sample..
thanks in advance
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You say you have multiple struts-config.xml files, how are you doing this? Do you have multiple instances of struts servlets running on a machine? Are they on different machines?
 
patri dinesh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tom Rispoli:
You say you have multiple struts-config.xml files, how are you doing this? Do you have multiple instances of struts servlets running on a machine? Are they on different machines?



Hi,
we have multiple modules for each module we have one strut-config.xml, and we mention each one seperately in web.xml. all the related code for these module's Front end code is on one machine
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chaining actions in this manner is typically a bad design.

However, calling an action from another action and configuring the mapping for this in the configuration file is a relatively easy step. The fact that you have multiple configuration files does not have any effect on the process.

Note, the configuration files are only read once when the application is deployed. Once the application has been deployed, there is a set of Java objects that contain the configuration information. In MVC terminology, these objects are part of the "Controller."
[ November 05, 2008: Message edited by: James Clark ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic