Jim,

Since no one from SUN seem willing to shed some light here I can only speculate its
a misprint:
    -page 12 says servletrequest,servletresponse,in,and out are implicit variables
that
    may be used in <%...%>
    -page 22 says request bean is NOT valid within SCRIPT, and scriplet.  I am
    contending that what they really mean is request in NOT valid within SCRIPT
    because SCRIPT is used for defining page-wide variables.
    -page 27 says predefined variables cannot be used with SCRIPT.  This supports
    my above assumption for there is no mention of scriplets here.

If you like you may check out my JSP implementation (one of the many interpretations
of JSP which I think may result in the demise of JSP before it even picks up).
Presently its integrated in my WEB Server. I am working on documentation to make the
JSP Runner a standalone product - http://www.ezwebtools.com

Gabriel Wong
http://www.ezwebtools.com
---------------------------------





Jim Tsang wrote:

> thanks for the input Gabriel, but
>
> method 2, which is what I really want, appears to be invalid according to
> the 0.92 specifications.  Have you tried method 2?  Did it work?  Look under
> the Implicit Bean section of the specifications.  It says the following
> in the second bullet point:
>
> "The request Bean contains information from the client request.  (This
> Bean is not valid for use within the SCRIPT, scriptlet<%... %>, or
> expression <%=... %> tags.)"
>
> On Fri, 19 Mar 1999, Gabriel Wong wrote:
>
> >
> > > 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.
> >
> > You can access request info primarily by 2 methods:
> > 1)
> > <DISPLAY PROPERTY="request:serverName">
> > <DISPLAY PROPERTY="request:serverPort">
> >
> > 2)
> > <%
> >     String servername = request.getServerName();
> >     int serverport = request.getServerPort();
> >  %>
> >
> > Gabriel Wong
> > http://www.ezwebtools.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".
> >
>
> ------------------------------------------------------------------------
> 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