File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes ActionForward provides jsessionid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "ActionForward provides jsessionid" Watch "ActionForward provides jsessionid" New topic
Author

ActionForward provides jsessionid

John Coleman
Ranch Hand

Joined: Jul 24, 2001
Posts: 65
In the following example I wish struts to redirect to an external web site, it tries to do this, accept that it inserts the ;jsessionid=xxx before the query string.
This messes up the asp!!
How can I do a request to an external site and not have struts interfere with the URL?
TIA
John
if (hostel.startsWith(" ")) {
String link = "http://www.xyz.com/ibnpub/";
link +=
GlobalFunctions.getResource(getServlet().getServletContext(), jaloSession.getSessionContext().getLanguage().getIsoCode(), "link.hostelbooking.country");
link += "/static/xxx.asp?id=";
link += hostel.substring(1, hostel.length());
Object object = getAttribute(session, "AffiliateID");
if (object !=null && !object.toString().equals("")) {
link += "&AffiliateID=" + object.toString();
}
System.out.println("link=" + link);
return new RedirectingActionForward(link);
}


John Coleman, MSTA<br />Sun Certified Programmer for the Java� 2 Platform<br />john.coleman@eurobase-international.com<br />Eurobase banking solutions<br /><a href="http://www.eurobase-international.com/banking" target="_blank" rel="nofollow">http://www.eurobase-international.com/banking</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ActionForward provides jsessionid