It's not a secret anymore!
The moose likes Applets and the fly likes passing a parameter from servlet to applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "passing a parameter from servlet to applet" Watch "passing a parameter from servlet to applet" New topic
Author

passing a parameter from servlet to applet

Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
Hey all. I'm having a bit of a dilema.
I have an applet whose init() contains:

Here's how the servlet gets called from within the applet...

I am getting the parameter "resized" from some html that was written from a servlet. Here's the code for that...

The problem is that whenever the applet is reloaded the parameter is not being recognized.
Many thanks in advance for your help!!!


[This message has been edited by Brian Snyder (edited May 29, 2001).]
Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
I found the problem.
I had to use <param user="uuu">
not
<param name=user value="uuu">
 
Consider Paul's rocket mass heater.
 
subject: passing a parameter from servlet to applet
 
It's not a secret anymore!