M
MuZZy
Hi,
I am looking for help on JSP development:
I have a template JSP page where depending on different criteria i need
to insert different JSP's, eg
<% if (i=1) {%>
<%include file="some.jsp?i=1"%>
<%} else {%>
<%include file="some.jsp?i=2"%>
<%}%>
The problem is java compiler tryes to open file "some.jsp?i=1", not
"some.jsp" and generates an error.
if i try <jsp:include page="some.jsp?i=1"/>, it works, but then i face
another problem - if i want to put a context dependable parameter, eg
<jsp:include page="some.jsp?i=<%=i%>"/>,
java compiler giver me an exception.
How can i include a jsp page with parameters?
Any ideas would be appreciated!
Thank you,
Andrey
I am looking for help on JSP development:
I have a template JSP page where depending on different criteria i need
to insert different JSP's, eg
<% if (i=1) {%>
<%include file="some.jsp?i=1"%>
<%} else {%>
<%include file="some.jsp?i=2"%>
<%}%>
The problem is java compiler tryes to open file "some.jsp?i=1", not
"some.jsp" and generates an error.
if i try <jsp:include page="some.jsp?i=1"/>, it works, but then i face
another problem - if i want to put a context dependable parameter, eg
<jsp:include page="some.jsp?i=<%=i%>"/>,
java compiler giver me an exception.
How can i include a jsp page with parameters?
Any ideas would be appreciated!
Thank you,
Andrey