Greet the sun all,

No one jumped on my question of how to capture the HTML output of a
RequestDispatcher.forward(HttpServletRequest, HttpServletResponse). I did
not think was possible but there are a lot of more intelligent/create people
out there so I though I would give it a shot.  So I am back to my original
chunk of code which invokes the .jsp through a URLConnection (see below):

URL t_url = new URL(getJSPPage(aPageId));
URLConnection t_urlConnection = t_url.openConnection();
BufferedReader t_bufferedReader = new BufferedReader(new
InputStreamReader(t_urlConnection.getInputStream()));
How do I pass in attributes into the above request.  I have attributes in
the HTTP session that need to passed in to the .jsp call.  These are not
simple Strings but true first class objects (like the standard Customer,
etc).  Any ideas on how to provide the .jsp with access to the attributes?
I looked at Craig's post on providing the jsessionid as a path parameter
(http://archives.java.sun.com/cgi-bin/wa?A2=ind0001&L=jsp-interest&P=R52835)
so that the .jsp client could "join" the session but then I get an
IOException stating that footest.jsp;jsessionid=A1B1c3CV4 cannot be found.

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