Not sure if you have seen the message that I posted previously. The URL is http://www.mail-archive.com/[EMAIL PROTECTED]/msg08224.html
That message demonstrates one way of using the include tag to simulate the chaining of JSPs. As Mark Orciuch mentioned, you may need to apply his patch to make setTemplate work for JSPs.
I have not tried his patch yet, but it is reported to be working.
regards, yong bing
From: "Shah, Kinjal" <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> To: 'Jetspeed Users List' <[EMAIL PROTECTED]> Subject: RE: How to Chain JSPs Date: Tue, 25 Mar 2003 12:32:30 -0500
Thanx for the reply yong,
I understood the first part about the action method extracting the data using
rundata.getParameters().get...
but I couldn't quite understand how to use setTemplate method. I am getting some
errors when I try and use the method. May be someone can give me a snippet of
the JSP page where they use the setTemplete method and do I need to import
something to use setTemplate method.
Your help is highly appreciated.
regards,
-kinjal
-----Original Message----- From: Yong Bing Khoo [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 5:05 PM To: [EMAIL PROTECTED] Subject: Re: How to Chain JSPs
Hi Kinjal,
When activated, your first JSP's associated action method can extract the submitted data via
rundata.getParameters().get<something>(<name>)
Load the second JSP by calling the setTemplate method or by updating an include tag in the first JSP with the name of the second JSP. Either way, you will be able to set the attribute of the second JSP with the data from the first JSP that you have retrieved using getParameters method.
If using the setTemplate method, you may need to apply the fix by Mark Orciuch (http://www.mail-archive.com/[EMAIL PROTECTED]/msg07770.html)
regards, yb
>From: "Shah, Kinjal" <[EMAIL PROTECTED]>
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: How to Chain JSPs
>Date: Mon, 24 Mar 2003 19:12:31 -0500
>
>I am trying to figure out how to post the data thru one JSP page and
>display the
>results in the 2nd JSP page. So, I have a form on one page and I can hit
>calculate and instead of displaying the same page with results, I need to
>display the next page(jsp). I can refresh the same JSP with the results.
>Any help will be useful.
>thanx,
>-kinjal
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________ Hotmail now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN Instant Messenger now available on Australian mobile phones.�Go to http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
