> Hello,
>
> Q: Does anyone have a working example of a Servlet passing data to a JSP
> page without using JavaScript or "Post"?
>
> I've been reading about storing the information in ServletContext:
>
> RequestDispatcher dispatcher =
> getServletContext().getRequestDispatcher(url);
>
> You'd send the data via a setAttribute() method:
>
> String flightVal = req.getParameter("flight");
> req.setAttribute("flightVal", flightVal);
>
> The JSP would then receive the data via the getAttribute() method:
>
> <%= flightVal = (String)request.getAttribute("flightVal") %>
>
> I don't have a working book example of this, and was hoping someone else
> did.
>
> Thanks in advance,
>
> Bart
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html