PDA

View Full Version : How to change a java include file string with a java variable in JSP?


sdsdsd
03-26-2009, 04:22 PM
I have tried the following:

<jsp:include page='<%= panelsList.get(panelId) %>' />

The pages I am including are either tables or charts. The panels show up but they don't show any data! What must be the problem? Thanks.

servlet
03-27-2009, 07:28 AM
You can not. It must be a constant.