This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have a jsp page which uses struts framework. The problem is i get a file name from database based on some conditions and trying to include that page. i am using jsp:include tag and its getting included in the page as html all the tags are not executed. Here is my code <logic:equal name="tableHandlerForm" property="tableDetails.queueForDevices" value="true"> <% com.airmantech.common.TableDetails tableDetails = (com.airmantech.common.TableDetails) session.getAttribute("tableDetails"); String queueJSP = tableDetails.getQueueType().getQueueTypeJSPtoInclude(); System.out.println(queueJSP); %> <jsp:include page="<%=queueJSP%>" /> </logic:equal> Is this a right way of using include tag ? Please let me know the answer Regards Kamal
Nothing wrong with it, although I might suggest making a custom tag for it... =)
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Joined: Aug 09, 2001
Thanks for your reply. But the problem is the page which gets included uses stuts tags and these tags are not at all executed. I am using Jboss as my application server. Any suggestions ??? Regards Kamal