wood burning stoves 2.0*
The moose likes JSP and the fly likes Jsp tag - forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Jsp tag - forward

Nitin Singla
Greenhorn

Joined: Oct 05, 2011
Posts: 15

Hi .

Apologies for my previous post.

Below is my code snippet:

<%
String chgLocURL ="/jsp/welcome.jsp";

%>
<jsp:forward page="{<%=chgLocURL %> }"/>


It is not working.
Please help me how can i use this string. I just need to forward to the path stored in string chgLocURL from my current jsp in my application.
Please help with the code snippet.
Once again apologies for my previous post.
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Please do not split a question across multiple topics. Please continue this question in your original post.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jsp tag - forward
 
Similar Threads
Cannot find Bean under name..
mapping.findforward not working
Need Help with XSLT
Can anyone suggest me a code snippet for IncludeAction in Struts
Error on submitting the form