In your servlet :
request.setAttribute("varName", varObj);
req.getRequestDispatcher(res.encodeURL("TestScope.jsp")).forward(req,res);
in TestScope.jsp
VarType varJsp = (VarType) requets.getAttribute("varName");
Hope this help
Regards
veronique
Lorena Carlo a écrit :
> Hi everybody,
>
> Can somebody give me an example of declaring a variable in request scope
> (servlet) in order to see it then in a JSP page?.
>
> Thanks in advance
>
> Lorena Carlo
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets