Tim Funk wrote:
No. You'll need to do the conversion yourself.

Ok, if I have a tag which can get a String or a List of Strings.
Should I make one setter which gets Object as parameter? And than check at runtime for the right types?
Are there any guidelines for this?


Greetings,

Ronald.


-Tim


Ronald Klop wrote:

Hello,

Is it possible to overload a method of a tag.

In JSP:
String arg1 = "bla";
int arg2 = 5;
<mytag name="<%= arg1 %>" />
<mytag name="<%= arg2 %>" />

In the class:
public void setName(String s) {
...
}
public void setName(int i) {
...
}

I get errors like: can't find setter method for String.

Is this supported? If yes, are their known pitfalls?
Any pointers to docs about this? Already tried google, but didn't find anything relevant.


Greetings,

Ronald.




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to