It's not a secret anymore!
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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "ActionForward provides jsessionid" Watch "ActionForward provides jsessionid" New topic

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?
if (hostel.startsWith(" ")) {
String link = "";
link +=
GlobalFunctions.getResource(getServlet().getServletContext(), jaloSession.getSessionContext().getLanguage().getIsoCode(), "");
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 /><br />Eurobase banking solutions<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: ActionForward provides jsessionid
It's not a secret anymore!