Daison,
In response to your questions below concerning 0.91:
1) Pass data via a web form or a URL link, examples:
i.e.
<form method=post action="/servlet/com.myorg.myproj.servlet.RptServlet">
<input type=hidden name=fieldname value="xyz">
<input name=fieldname2 value"123">
</form>
or
<!-- Load the navigation page -->
<SCRIPT LANGUAGE="Javascript">
<!-- Start
top.display.botframe.location =
'/servlet/com.myorg.myproj.servlet.MyServlet?actionType=displayNav';
//End -->
</script>
Pass a bean by storing it in the session context:
HttpSession mysession = req.getSession(false);
mysession.putValue("myObject", myObject);
2) Invoke JSP page from a servlet either:
resp.sendRedirect("/myproj/MyJSP.jsp");
or if you want to pass a bean in the response:
try {
// send the Beans to JSP file
((HttpServiceRequest)req).setAttribute("myData", myData); //
HttpServiceRequest is a WebSphere class
// HttpServletRequest is the usual class
// Prevent Caching of dynamic content
resp.setHeader("Pragma", "No-cache");
resp.setHeader("Cache-Control", "no-cache");
resp.setDateHeader("Expires", 0);
// invoke JSP file
((HttpServiceResponse)resp).callPage("/reseller/MINData.jsp", req); //
HttpServiceResponse is a WebSphere class
// HttpServletResponse is the usual class
} catch (Exception e) {}
3. Not sure you can include a JSP within another JSP.
4. See above.
5. Yes, see above.
6. You can grab the 0.91 from http://www.kirkdorffer.com/jspspecs/
Cheers,
Dan
--
Daniel Kirkdorffer
NACN IS: 425-580-6225
Sr. Consultant, Syllogistics LLC
Email: [EMAIL PROTECTED]
Web: http://www.syllogistics.com/
> ----------
> From: Daison Jose[SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, November 07, 1999 8:00 PM
> To: Kirkdorffer, Daniel
> Subject: some more helps
>
> Hello sir,
>
> Can u tell me how to achieve this in 0.91 specifiaction(I mean calling a
> JSP
> from another JSP).
>
> Some of the doubts I am having in 0.91 specification
>
> 1.How do you pass data(including beans) to a JSP from a servlet?
> 2.How do you invoke a JSP page from a servlet?
> 3.How do I include one JSP inside another JSP?
> 4.How to use Callpage() .Its saying com.sun.HttpService class not
> found.Where it will be available?
> 5.Can JSP and servlet share same session and Beans ,if yes how?
> 6.From where we will get 0.91 specification
>
>
> If U can help me thanks a lot........
>
> Daison
>
>
===========================================================================
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