How to redirect a page in JSP

Reply

Join Date: Nov 2009
Posts: 2
Reputation: shobana_soma is an unknown quantity at this point 
Solved Threads: 0
shobana_soma shobana_soma is offline Offline
Newbie Poster

Thanks

 
0
  #11
Nov 1st, 2009
Originally Posted by nikkiH View Post
That's great, but since you're trying to teach us how NOT to use scriptlets, I'd love to know the right way to do this.

<%
response.sendRedirect("someUrl");
%>

Please share.
I'm much more a C# person than Java these days and the Java I did do was on an old crappy server that didn't fully support JSTL, so I have no idea how else you would do this. This is what Sun had on its site. Please tell me the better way to do this so I know for future reference.

_______________________________________________________ Reply from shobana
----------------------------------------------------------------------------------
Your code helped me a lot..
Thank you
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 318
Reputation: Thirusha is an unknown quantity at this point 
Solved Threads: 51
Thirusha's Avatar
Thirusha Thirusha is offline Offline
Posting Whiz
 
0
  #12
Nov 2nd, 2009
  1. <c:redirect url="http:www.someurl.com" />
Life... Is a Moment
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 48373 | Replies: 11
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC