Hey Matt. The problem isn't with any of those methods, per se, but with the
fact that all of those methods are doing the same thing--attempting to
access the request object. The bug appears following a forward, like
<jsp:forward/>, or some other redirect, whereupon the request object seems
to lose its state. So, if you aren't forwarding/redirecting your request,
then you won't see the problem.

Best,
Patrick

-----Original Message-----
From: Matt Goss [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 9:38 AM
To: JRun-Talk
Subject: Re: request.getAttrbute() returns null


I'm using the req.getAttribute("") and setAttribute("", att) fine in JRUN3.0
and I'm using the same commands as in
theprevious example.... but if it's not working for you  why not just add it
to the session or ServletContext?
Matt Goss

Pat Quinn wrote:

> This is a known bug in JRun 3.0--request object data being lost upon
> forwarding. A fix is one the way, but for now you'll have to use a
> workaround. Some developers have suggested using other methods, like
> getParameter or getHeader("accounts"). Others have re-appended query
strings
> to URLs where possible.
>
> HTH,
> Patrick Quinn
> Allaire Consulting
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 6:57 PM
> To: JRun-Talk
> Subject: request.getAttrbute() returns null
>
> Hello,
>
> My servlet calls upon a session ejb to return an AccounList.
> However, when I do a
> request.setAttribute("accounts", accountList)
> and forward to a JSP for processing,
> request.getAttribute("accounts")
> returns null.
>
> I've verified the session ejb is returning an AccountList by iterating
> through the list and producing desired output directly from the servlet.
I
> would prefer to utilize jsp for presentation.
>
> Regards,
>
> Todd
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to