This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Servlets and the fly likes encodeRedirectURL issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "encodeRedirectURL issue" Watch "encodeRedirectURL issue" New topic

encodeRedirectURL issue

cavagnini flo

Joined: Oct 19, 2004
Posts: 2

I work with IBM WSAD 5.
I have a J2EE 1.2 environment (websphere4) and my application use this code:

final String redirectURLString = response.encodeRedirectURL(getRedirectURL());


where getRedirectURL() returns something like "/access?command=mycommand"

the response.encodeURL(/access?command=mycommand) returns

But I am preparing a migration from websphere 4 to websphere 5(j2ee 1.3)

and with a J2EE1.3 environment, response.encodeRedirectURL returns

and then I have the error :
PLGN0021E:Servlet Request Processor Exception: Virtual Host/WebGroup Not Found: /The web group /access has not been defined.

Why the return string is different? do you have any solution?

thanks for the help
Have you checked out Aspose?
subject: encodeRedirectURL issue
jQuery in Action, 3rd edition