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();
> > %>
> >
You can still create a bean that only has the processRequest method
defined...
<USEBEAN NAME=myBean TYPE=myType>
</USEBEAN>
----> here the processRequest method will be called
void processRequest(HttpServerRequest request)
{
String servername = request.getServerName();
int serverport = request.getServerPort();
}
and this is 100% valid...
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".