<@ include file ... %> is a compile time directive that includes the
resource specified, there is no request or response available at this time.

To do what you want use <%jsp:include resource %> which (at least in JSP
1.1) allows <jsp:param ... > nested tags. If you're not using 1.1 then
create a bean with request scope, recover the bean in the page that you
forwarded to, then do the right thing,

Kevin Jones
DevelopMentor

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Arni Raghu
Sent: 13 January 2000 20:00
To: [EMAIL PROTECTED]
Subject: jsp simple question...


Hi,
I have a simple/silly question..
I would like a jsp to display different parts of the html page depending on
the way it is called...How do I call another jsp page with diferent
attributes...

like::

<%@    include file="helloworld.jsp?showme="true    %>

Now the helloworld.jsp shows different parts of the html page based on the
showme attribute...It does not seem to work..How do I go about doing
this..??

Thx,
Arni

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to