File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing object from JSTL into applet

 
Benjamin Weaver
Ranch Hand
Posts: 161
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have JSTL code that looks like this:



I would like to pass each 'text' object into an applet. The text object is not a string.

I know I could have the applet call the server for a serialized instance of a text object, but I would rather pass the object into the applet straight from JSTL, such that I could get a handle to the instance within the applet with some kind of getParameter() call or similar call to AppletContext
 
Benjamin Weaver
Ranch Hand
Posts: 161
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should have mentioned that the JSTL snippet is enclosed within

tags.

I can feed string params into the applet just fine from JSTL using




But I am looking for a way to pass in non-string objects.
>
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is HTML we're talking about, only text strings are possible. If it's for some reason not possible to pass a string representation of the object, then a serialized object may work (as long as it's properly ASCII-ized by using base-64 or something like that).

Note that serialization generally requires that both JVMs are of the same version (e.g., Java 5 or Java 6).
 
Benjamin Weaver
Ranch Hand
Posts: 161
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Ulf. This is good to know.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic