Thank you for your response.
Any suggestions on a different approach?
Elena Tsifrina
SYSCOM, Inc.
www.syscom.com
410-539-3737 x1322
Arijit
Chakrabarti To: [EMAIL PROTECTED]
<arijit@REALSOFTI cc:
NC.COM> Subject: Re: Dynamic JSP Include -
Possible?
Sent by: A
mailing list
about Java Server
Pages
specification and
reference
<JSP-INTEREST@JAV
A.SUN.COM>
12/21/01 11:16 AM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference
Hi,
It is possible to have a dynamic JSP parameter.
But this way of passing parameters is incorrect.
value="<%=i%>"
try to change approach.It will work.
Rgds,
Arijit
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: Dynamic JSP Include - Possible?
Hello everyone!
I am attempting to create a jsp page (jsp1) which will include a result of
another compiled jsp (jsp2) with dynamic parameters to somewhat of the
following effect:
<%
int numForms = 5; //this is a variable that comes from session
for (int i=0; i<numForms; i++)
{
%>
<jsp:include page="MyForm.jsp" flush="true">
<jsp:param name="index" value="<%=i%>" />
</jsp:include>
<%
}
%>
My question is: is it possible to have a dynamic JSP parameter.
I welcome any suggestions about how this can/why it cannot be done.
Thanks in advance for your help.
Elena Tsifrina
SYSCOM, Inc.
www.syscom.com
410-539-3737 x1322
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com