Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,959
    Thanks
    120
    Thanked 76 Times in 76 Posts

    insert server side code into jsp:include directive

    Code:
    <jsp:include page="../WEB-INF/jspf/HelpGames_<%=languageCode%>.jspf" flush="true"/>
    Does not work. Any tip ?

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,959
    Thanks
    120
    Thanked 76 Times in 76 Posts
    loooks like there is the difference between " and ' in this case.

    Code:
         <%
         String lang = sessionUser.language;
         String file = "../WEB-INF/jspf/HelpGames_"  + lang + ".jspf";
         %>
            
         <jsp:include page='<%=file%>' flush="true"/>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •