> I'm working on a small JApplet class that is a wrapper class. It will
> call
[quoted text clipped - 13 lines]
>
> Hal
> So should I take it that there is no way to get a list of all the
> parameters
> passed to an Applet from an HTML page?
Sadly, that's the truth. If you notice the getParameterInfo method of
applets, they're supposed to publish what their parameters are, not accept
arbitrary lists of parameters. You can circumvent this by using numbered
parameters (param-1, param-2, param-3) and looping through the numbers, but
the end result is still the same--the invoking page must really know what
the parameters are in advance.
http://java.sun.com/developer/JDCTechTips/2001/tt0821.html
Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/
Hal Vaughan - 12 Aug 2006 21:40 GMT
>> So should I take it that there is no way to get a list of all the
>> parameters
[quoted text clipped - 11 lines]
> Cheers,
> Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/
That's about what I had figured. I understand the idea that one should know
the parameters for what is being called and an applet should specify the
needed parameters. In this case, the applet class itself is a wrapper for
other applets, so I'd like to make that class as generic as possible.
I'm not trying to knock Java, but this is the kind of thing I often find
frustrating in Java: Do it our way or not at all. Some languages go out of
their way to let you find ways to do what you want and it seems that Java
is more concerned with drawing lines and saying, "You can't go outside
here." There's a lot of things I like about Java, but finding roadblocks
like this is not one of them.
Thanks for the info.
Hal