hi guys i want to do response.sendRedirect() in jsp level i have written the following scripplet
is this a correct way .iam not getting any error in console but this page is not displayed properly if their is some other way to do this please suggest me
regards amir
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
Is the code executed? Meaning, do you see the "u null" in the log file?
yes iam getting ulf [ June 03, 2008: Message edited by: Amirtharaj Chinnaraj ]
Mohd Fuzail
Ranch Hand
Joined: Feb 20, 2002
Posts: 107
posted
0
Whats the location of the redirected File?
Assuming its in same directory as the jsp file then use
From Servlet API the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root.
Hope it helps
Being defeated is often a temporary condition. Giving up is what makes it permanent.