Hari,
Can you double check if the message you get is 'javax.http...' rather than 'javax.servlet.http....'
Deepak
-----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
-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 11:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Your Message Sent on Tue, 19 Mar 2002 15:35:33 -0000
what do u mean by having problems making the call?
you need to provide more information.
-Tim
-----Original Message-----
From: Malladi, Hari P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 10:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Your Message Sent on Tue, 19 Mar 2002 15:35:33 -0000
I am having a problem making the call getContextPath() on a HttpRequest
object in a servlet?
Any suggestions or comments why it is happening?
Appreciate the help.
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
___________________________________________________________________________
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
