Thanks Daniel,

I will try this approach. The reason for not putting things in the session
is that the system we are developing will probably have close to 2000 users
for the pilot, all permanently logged on during the working day. Each users
session object will get too big so all data to be passed over mutliple
requests will be encoded in XML on the HTML pages in hidden fields to be
passed to each servlet that needs to know as post parameters, which then
parse the XML.

I take it there is no way of passing a request object to individual frames
of a frameset page?

Cheers
Ian


-----Original Message-----
From: Kirkdorffer, Daniel <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; 'Ian Holt'
<[EMAIL PROTECTED]>
Date: 04 November 1999 17:56
Subject: RE: Forwarding an HttpServletRequest to frame from a frameset


>Ian,
>
>You'll probably need to store the items in the session so that they can be
>retrieved beyond the request.  The frameset page could also gather the
>objects, or a reference to them and pass that information to the JSP frame
>page as parameters in the URL string.
>
>I'm often faced with "chaining" requirements like these.  Such as when my
>request will result in changing multiple frames.  One approach in such
cases
>is to return to one frame, that within the HTML kicks of another servlet
>call that will result in data loading into another frame.  In the example
>below, my data and nav frames need loading (the nav frame has the buttons
>for navigation), so the data JSP frame page includes this:
>
><!-- Load the navigation page -->
><SCRIPT LANGUAGE="Javascript">
><!-- Start
>navOnlygo('/servlet/com.myorg.myproject.servlet.MyServlet?actionType=displa
y
>Nav&appTimestamp=<%= appTimestamp %>');
>//End -->
></script>
>
>which kicks off the nav frame page request.
>
>Hope that helps,
>
>Dan
>--
>Daniel Kirkdorffer
>NACN IS: 425-580-6225
>Sr. Consultant, Syllogistics LLC
>Email: [EMAIL PROTECTED]
>Web:   http://www.syllogistics.com/
>
>
>> ----------
>> From: Ian Holt[SMTP:[EMAIL PROTECTED]]
>> Reply To: Ian Holt
>> Sent: Thursday, November 04, 1999 8:25 AM
>> To: [EMAIL PROTECTED]
>> Subject: Forwarding an HttpServletRequest to frame from a frameset
>>
>> Hi
>>
>> I have a jsp page which calls a servlet, this servlet does some
processing
>> and populates an object which is put into the HttpServletRequest which
the
>> original servlet then uses in a callPage to another jsp. This jsp used in
>> the callPage is a frameset and it is one of the frames of the frameset
>> which
>> needs to use the object stored in the HttpServletRequest. Once the
>> frameset
>> jsp has compiled itself the HttpServletRequest is lost, even before the
>> individual frame pages are loaded in. How do I pass the
HttpServletRequest
>> from the frameset jsp to the individual frame which needs to use it?
>>
>> Any suggestions are gratefully appreciated.
>>
>> Thanks in advance
>> Ian Holt
>>
>> _____________________________________
>> Ian Holt, Global Freight Exchange Ltd.
>> Java Developer
>> UK Phone: (44) 01252 558048
>> UK Mobile Tel: (44) 07930 283 128
>> UK Fax: (44) 01252 558 632
>> E-Mail:  [EMAIL PROTECTED]
>>
>>
==========================================================================
>> =
>> 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