• 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

forwards in struts

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm relatively new to struts and was just trying to figure out my problem with the forwards that we use in the struts-config.xml file
My problem is I need to call a JSP which is contained in another web application from the forward element in my current web applications "struts-config.xml" file.
A.war's struts-config.xml file should call
For ex: <forward value="success" path="some JSP in B.war"/>
Any suggestions would be greatly appreciated.
thanks,
venkat
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can only send a redirect to a resource in another web application. Forward is impossible. Servlet container will not maintain attributes stored in the request from one web app to another.
To do a sendRedirect, add the context root to the url.
for example: ../yourContextRoot/servlet2
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic