Jim Tsang wrote:
> 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.
Yep I had questioned this inconsistency to the list but I got no response back
(anyone from Sun out there?). Anyway I played it save and added two
HttpServletRequest beans in my implementation so all angles are covered -
servletrequest and request.
> 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".