Win a copy of Java Challengers this week in the Java in General forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

help with redirection

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've a small problem with re-direction and was hoping someone could help me out on this issue.
I've two struts web-apps "A.war" and "B.war" I'm calling a jsp page in B.war through the struts-config.xml file in A.war.
Precisely what i'm doing is
In A.war
//struts-config file
<forward name="success" contextRelative="true" path="../B/confirm.jsp" redirect="true"/>
The "confirm.jsp page is in B.war and it shows up allright. My main problem is I want to send a request object from A.war to B.war. But since the "redirect" attribute of the "forward" element is set to "true", Its doing a sendRedirect instead of RequestDispatch and therefore my request object value is becoming "null" in the called JSP (confirm.jsp). When i try to put the "redirect" value to false, its throwing me an exception (NULL pointer exception).
I was hoping if someone could tell me a way to send my request object from a.war to b.war.
Thanks in advance
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your thread that has a few replies on it.
You don't need to keep creating a new one. If you add a reply to the old thread, JavaRanch will place it at the top of the list. (Just in case you're worried about your problem losing attention.)
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic