To answer your question. It is a static html page and is not server
generated. However,
it seems like the only way to accomplish what I want is through some
scripting, so an additional script function will do for now.

Thanks for all the responses.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 5:36 PM
To: JDJList
Subject: [jdjlist] Re: URL of the page that contains an applet


;o) well, sarcasm is a good means to get people to thinking
themselves...
but to give justice to patrick li: he was asking about methods
to get the URL of the page that contains the applet-tag *inside* the
applet
running on the client-side, *not* inside a servlet/jsp on the server
side.
to patrick:
how are you creating the page that includes the applet on the server
side?
if you do that dynamically, did you think about including the parameters
from the request
as applet-"<parameter>"-tags inside the <applet>-tag in the page? this
brings you
back to the suggestions regarding the servlet API below ;o)
greets

> I know it's very hard to believe, but the Servlet API does in fact
give
> you 
> the way to build a complete URL, including parameters, of the invoked 
> resource. It doesn't give you the full URL, because that's not always 
> accurate due to the fact that parameters can come via POST or GET -
with 
> GET, they're in the URL, with POST they're not.
> 
> Check out the (very mysterious) HttpRequest object; if you look hard
> you'll 
> see strangely named functions like "getParameterNames()" which -
difficult
> 
> to believe, but it's true! - will give you the names of all parameters

> passed to the resource. With the names in hand, you can do odd things
like
> 
> query their values. And if you can manage that, with sweat upon your
brow,
> 
> you can build a full query string (resolving all POSTed parameters to
> their 
> GET equivalent, naturally) to your heart's content.
> 
> 
> >From: "Patrick Li" <[EMAIL PROTECTED]>
> >Reply-To: "JDJList" <[EMAIL PROTECTED]>
> >To: "JDJList" <[EMAIL PROTECTED]>
> >Subject: [jdjlist] URL of the page that contains an applet
> >Date: Wed, 21 Aug 2002 12:36:00 -0400
> >
> >Hi,
> >
> >I am try to get the URL, including parameters passed to it, of the
page
> >that contains an applet while running the applet itself. The form of
url
> >will be something like this:
> >
> >http://host.com/default.htm?parm1=xxx.yyy
> >
> >I have searched a few books and google, but didn't get anywhere. Any
> >help is appreciated.
> >
> >Patrick
> >
> >To change your membership options, refer to:
> >http://www.sys-con.com/java/list.cfm
> 
> 
> -----------------------------------------------
> Joseph B. Ottinger       [EMAIL PROTECTED]
> http://enigmastation.com          IT Consultant
> 
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to