• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass a data struct as applet param

 
Karen Gomes
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I would like to know if we can pass a data structure into an applet via the applet param tag from jsp.
I found a doc [at ]http://java.sun.com/docs/books/tutorial/applet/appletsonly/paramQs.html#paramTypes] that says I can do it ... but need to confirm this beforehand.

If yes then are there any data structs that are not allowed in there?
Please advice.

Thanks
Karen
[ March 16, 2005: Message edited by: Karen Gomes ]
 
Ben Fischer
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that any parameter you pass to an applet will get passed in as a string. What you do with that string is up to you. You could use it as a string, use a built-in method to convert it to a number or date or have a parse routine to convert the string into something more complicated.

Applets can access files on server so you can also pass a filename to the applet if what you're trying to pass is difficult or inconvenient to embed in the html.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic