aspose file tools*
The moose likes JSP and the fly likes response.sendRedirect problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "response.sendRedirect problem" Watch "response.sendRedirect problem" New topic

response.sendRedirect problem

Atishay Kumar

Joined: Feb 23, 2004
Posts: 2
I am trying to redirect user to a page when a condition is satified

String strUrl="ChangeUserPassword.jsp?strInfo=" + "UserID:"+strUserId+" does not exist";

The url is printing fine on console
ChangeUserPassword.jsp?strInfo=UserID:atisahy does not exist

but when it is redirected all capital letters get changed in lower case. the url the browser get redirected to is.
why is this happening

<br />Atishay
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60057

I have no idea about the lower-casing, but the %20's are the correct URL encoding for space characters.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sripathi Krishnamurthy
Ranch Hand

Joined: Mar 07, 2005
Posts: 232
which web/app server are you using? I havent seen any server wherein the jsp file names gets changed to lowercase names.
Is this jsp file generated at runtime?
It is sorta covered in the JavaRanch Style Guide.
subject: response.sendRedirect problem
Similar Threads
No output from Servlet
response.SendRedirect and session