Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet and Parameter

Status
Not open for further replies.

Kadirpatel

Programmer
Mar 28, 2001
43
GB
Hi All,
Please let me know that whether we can pass a Vector to an applet. My requirement is just to pass a vector to an applet. If so then how. If not then what is the optimised work around.
Thanks.:->
 
"Parameter values are all strings." see
what you might want to do is create a jsp and create the parameter list dynamically from your vector. this way all your parameters will be loaded and from there, your applet can re-create the vector internally, if still required.

good luck :)
 
Hi,

Any requirements or limitations? Like cannot use servlets or jsp etc? If not, you can pass the Vector from your servlet to the applet through Streams.

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
hi

when you use an applet tag, you can set the "name" attribute to a value to give a name to the Applet object.

you can then use this name to invoke applets methods on it.

by example

<APPLET ... name=&quot;myApplet&quot; ...> ...

// javascript function
function foo() {
document.myApplet.oneMethodOfMyApplet( ... args ... )
// or something like that
// so I suppose you can pass whatever you want in the args... :)
}

manu0
 
Hi,
I've read all of ur answers. Thanks for it. I think i've posted insufficient information. Actually my applet is been loaded by a Servlet. So please tell me is there any better way to communiacte between Servlet and Applet.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top