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
session.setAttribute("myvar","test")
something like this?
Lorena Carlo wrote:
> 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
>
> =
Look on page 356 of Hall.
http://www.coreservlets.com
-Original Message-
From: Lorena Carlo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 07, 1999 1:39 PM
To: [EMAIL PROTECTED]
Subject: Please help me with this!
Hi everybody,
Can somebody give me an example of declaring a
Zhu
Sent: Sunday, October 01, 2000 7:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Please help me with this!
session.setAttribute("myvar","test")
something like this?
Lorena Carlo wrote:
> Hi everybody,
>
> Can somebody give me an example of declaring a variable in reque
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 s