Jim Tsang wrote:
>
> Yan,
>
> Thanks, I've looked up your suggestion and found the following:
>
> It appears that processRequest() method takes a HttpServletRequest object
> as it's parameter.  The implicit request bean is of type ServletRequest.
> It looks like there's a type mismatch.  Also, looking at the JSDK2.1 API,
> both HttpServletRequest and ServletRequest are interfaces that don't
> inherit from anything.  Am I missing something here?  Would you have any
> other ideas by any chance?  Thanks.
>
> - Jim

No. The request bean is of type HttpServletRequest... the specification
is not very clear on this point but if you check further down in the
spec you will see in the section "Implicit Variable" (just before
"Additional Functionality") that the implicit variable request is of
type HttpServletRequest. Well it's confusing. But IMO, the request bean
is of type HttpServletRequest and that's the way I did in my own
implementation.

Anyway the request object that you get in the processRequest method is
the one you need and it will contain all the information you need.

> PS.  What purpose does the implicit request bean serve if all that can be
> done with it is <DISPLAY>?

It can do LOOP-DISPLAY/INCLUDEIF and EXCLUDEIF too... I think it can be
very useful when you use the nested bean like:
<DISPLAY PROPERTY="request:params:myParam" PLACEHOLDER="You should
provide a myParam!">

Yan

--

http://eowyn.fr.eu.org/~yan/ | [EMAIL PROTECTED]

SocialNet: Where people connect... http://www.socialnet.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to