Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsp include variable directory

843840Mar 15 2010 — edited Mar 15 2010
Hi i am developing a web application and i want to include variable jsp file into another jsp file.My example looks like this:

<%
session.setAttribute( "lang", "tr");
String myFile="lang/"+session.getAttribute("lang").toString()+"/lang_index.jsp";
%>
<%@include file={myFile}%>


is there any way to do this?thanks for advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2010
Added on Mar 15 2010
11 comments
245 views