• 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

Calling struts action across different WAR

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Great fellas

We are building an application which spans across multiple WAR files and we are using struts as our framework .I was wondering if it possible for us to call an action across a different WAR.

For example
can action1 in WAR1 call action2 in WAR2

If anyone has done similiar stuff or has some clear idea as to how to go about it ,it would be most appreciated .In fact all ideas and suggestion would be most appreciated.

thx
mandeep
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mandeep,
Yes it is possible to do it.Put all your action's in a seperate java project and include that jar in each of your war files either in the web-inf/lib or directly in the earfile itself.This way your source code is in one place and the jars are distributed to different war files.

Regards,
Sudeep
 
Mandeep Sethi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sudeep

Actually what I meant was more like resusing the action mapping defined in a different WAR .when I meant an action calling a different war ,it was more like calling an action defined in action mapping of struts-config in a different war.
This way we wanted to build modules on service oriented approach.we are already doing it within an application using multi-config and multi modules approach however know we want to take it to next level and do it multiple war.

thx




Originally posted by Sudeep Victor:
Hi Mandeep,
Yes it is possible to do it.Put all your action's in a seperate java project and include that jar in each of your war files either in the web-inf/lib or directly in the earfile itself.This way your source code is in one place and the jars are distributed to different war files.

Regards,
Sudeep

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic