hi,
 
i am trying to get around this using JavaScript for the present.
i have a function exec
 
<script language=javascript>
function exec()
{
    return document.location.href;
}
</script>
 
then in the html code of the applet i have..
 
<param name = tquery value = "&{exec()};" >
 
but even this doesnt work.. i am using IE 5.5 and here the
strung literal &{exec()}; is returned as the value of tquery.
am i missing out something??
 
thnx in adv..
anoop
----- Original Message -----
Sent: Sunday, December 23, 2001 1:44 PM
Subject: Re: Access of URL in Applet

Hello anoop!

Not an expert, but maybe can help.

a>   i have a servlet that calls an Applet.
You terminology is a bit confusing.
I take it that you generate a html page in a servlet
and this page contains <applet> tag in it.

a>   The URL that is used when the servlet calls the Applet is something like
a>   this..

a>   http://localhost:8080/demo.html?tquery=abc
a>   now the tquery value is necessary for my applet to function properly, can
a>   anybody tell me how to get this value (abc)..is there any method to do that.

a>   I have used getDocumentBase and getCodeBase..but both seem to return
a>   only http://localhost:8080/
They behave according to the docs, don't they ;-) ?
a>   and not even the url part without the query, and the query part is very
a>   important for me.
a>   any solutions to this..

I beleive that you should generate <param> tags inside the
<applet> tag and pass any information you need via this
params, like this:

<applet code="xxx" codebase="yyy" ..>
 <param name="tquery" value="abc">
</applet>

Best regards, Anton Tagunov [EMAIL PROTECTED]

___________________________________________________________________________
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