On Thu, 11 Mar 1999, Yan Pujante wrote:
>
> 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.

Well, if what you say is true, perhaps, you can tell me how I can obtain the
serverName or serverPort property in my java code.




>
> 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.
>
> 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
> > 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
>

------------------------------------------------------------------------
Jim Tsang                               Phone: (510) 628-0100
Scientific Applications Specialist      Fax: (510) 628-0108
Pangea Systems Inc.                     email: [EMAIL PROTECTED]
1999 Harrison Street, Suite 1100        URL: http://www.panbio.com
Oakland, CA 94612
------------------------------------------------------------------------

===========================================================================
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