one way to do it is just to put the value into one of the common objects
like the request or session. another way is if you use the include directive
instead. you can simple set the value because it will be treated as a single
page (values are shared) example (as long as it is not declared in the scope
of a function)

myjsp.jsp includes myinclude.jsp
myinclude.jsp defines a value as <% int iValue = 20; %>
myjsp.jsp can simple use <% iValue = 10; %> without having to declare it.

//note that this is tested on weblogic 6.x and should hold true for all app
servers.

-Tim

-----Original Message-----
From: Papo Napolitano [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: <jsp:include> question


Hi!!

I have a JSP Script that includes another JSP script with a <jsp:include>
tag.

The included Script returns a value. How can I do to get this value in the
main script ??

Regards

Papo

===========================================================================
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

Reply via email to