I want to know if is possible to set in a bean String Array a property received by an url parameter.
I have this:
The bean, in your FormHandler class:
private String[] clientName;
The JSP file:
<dsp:setvalue bean="ClientFormHandler.clientName" paramvalue="clientName" />
In this way, I got this error in my screen:
**** Error Wed Jul 06 13:53:06 BRT 2016 Trying to set value of /clientCom/app/formHandlers/ClientFormHandler.clientName, this IllegalArgumentException occurred: java.lang.IllegalArgumentException: argument type mismatch
This isn't working, so I tryed this, but without success too...
<dsp:setvalue bean="ClientFormHandler.clientName[0]" paramvalue="clientName" />
and I got this error
**** Error Wed Jul 06 13:55:34 BRT 2016 1467824134007 /atg/dynamo/servlet/dafpipeline/ProtocolSwitchServlet
atg.droplet.DropletException: Cannot set elements of a multi-valued prop erty if property is not a List and if it is missing an indexed property method
Can I do something like this in a JSP file, without change the java class?
Tks.