Sorry, I didn't explain very well.
Droplets are used in jhtml to call in other jhtml source from another jhtml file or to call a bean (which returns whatever the
java class returns).
e.g. < droplet src="/doc/otherstuff.jhtml">
< param name="xyz" value="123">
< /droplet>
or
< droplet bean="/atg/dynamo/droplet/Switch">
< param name="value" value="bean:TranslationDroplet.xyz">
< oparam name="321">
some code...
< /oparam>
< oparam name="123">
other code...
< /oparam>
< /droplet>
We are using this all through Dynamo and iSell (Informix Product).
The java class "/atg/dynamo/droplet/Switch.java" is called from within the jhtml page and receives a parameter "value" with the given value.
However, there is also a corresponding Switch.properties file.
In this file you can have a property e.g. myProperty and give it a value.
e.g. in Switch.properties
myProperty=10
Then in the Switch.java
String myProperty
// setter for myProperty
public void setMyProperty(String newMyProperty)
{
myProperty = newMyProperty;
}
// getter for myProperty
public String getMyProperty()
{
return myProperty;
}
So when this class is instanciated bythe call by the droplet command within the jhtml page, the Switch class will look at it's corresponding .properties file automatically and the myProperty attribute will be set to 10.
My problem is that I wish to set myProperty in the .properties file to be:-
myProperty=10,12,33,45,50
then have a String array in the .java to automatically store these values when instanciated.
(edited by Cindy to add spaces in HTML tags so that they would display instead of executing)
[This message has been edited by Cindy Glass (edited September 28, 2001).]