I have a "different" sort of request... I have a client that wants to publish a given URL but redirect to some other URL based on something in the existing URL. For example, a user may type in: http://some.server.com/someValue/some.page. But, what the servlet does is, reads the URL coming in and replaces a certain portion for some other value. Using the above, the URL would become http://some.server.com/codebasea/some.page (basically, replacing the 'someValue' with 'codebasea').
I've tried forwarding, but, the server (WebSphere 5.1) keeps doing a Java core dump as soon as I try to forward... I have code like this: request.setAttribute("someattribute", someValue); String forwardPage = new String("/" + calcCodebase(<someValue> ); <-- this generates the new URL replacing the necessary values as needed request.getRequestDispatcher(forwardPage).forward(request, response);
Any suggestions on how else this might be accomplished?