Anoop,
Are you sure your servlet is calling your applet or is it the other way
around?  Servlets generally send responses only to server requests.  They
do not initiate communication with a browser.  You might want to clarify to
this list what you are trying to do.

The last two responses from Sabari and Raja are based on the applet making
a HttpURLConnection to the server and suggest that you use
HttpRequest.getParameter() in the servlet code.

-Richard

At 06:00 PM 12/21/2001 +0530, you wrote:
>hi all,
>
>i have a servlet that calls an Applet.
>The URL that is used when the servlet calls the Applet is something like
>this..
>
>http://localhost:8080/demo.html?tquery=abc
>now the tquery value is necessary for my applet to function properly, can
>anybody tell me how to get this value (abc)..is there any method to do that.
>
>I have used getDocumentBase and getCodeBase..but both seem to return
>only http://localhost:8080/
>and not even the url part without the query, and the query part is also very
>important for me.
>any solutions to this..
>
>
>thanx,
>anoop
>
>___________________________________________________________________________
>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

Reply via email to