I have no idea why it's looking at javax.http.HttpRequest (I didnt even know
there was such a package/class). The implicit object for request in JSP
should point to the javax.servlet.http.HTTPServletRequest object.
Per the JSP 1.2 specs:
"request protocol dependent subtype of:
javax.servlet.ServletRequest
e.g:
javax.servlet.http.HttpServletRequest"
Perhaps something else in your setting/environment? Can you send us that
page?
-Tim
-----Original Message-----
From: Malladi, Hari P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Your Message Sent on Tue, 19 Mar 2002 15:35:33 -0000
the error says "getContextPath() method not defined in the class
javax.http.HttpRequest". I am trying to get the context path and redirect
the control to a different java server page.
as an example, the following line of code is from an example on the
java.sun.com website and i am trying to do something similar:
--------<a
href="<%=request.getContextPath()%>/cashier"><%=messages.getString("Buy")%><
/a></p></strong>
-Hari
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html