Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP execute in JSP

Status
Not open for further replies.

Ricjd

Programmer
Sep 12, 2002
104
GB
I ahve some ASP code which depending on the varibles will load up a page.

<% server.execute &quot;content/&quot; & Lang & &quot;/&quot; & Page & &quot;.asp&quot;%>

For example if Lang = &quot;Eng&quot; and Page + &quot;Home&quot; it would load up the english version of the home page.

but I was wondering if I could do this in JSP some how?

Thanking you in advance

Rick
 
You would maybe do something like :

<%
String page = &quot;Home&quot;;
String lang = &quot;Eng&quot;;

RequestDispatcher rd = application.getRequestDispatcher((page+lang) +&quot;.jsp&quot;);
rd.forward(request, response);

%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top