What you are seeing is the String[].toString() output.
I am not sure how this is an error, what is the jsp
code that is causing it to be displayed?
I am also not sure it makes sense to set a String[]
from a <html:text> field, this field results in a
String, not a String[]. I know if you try to map an
<html:text> field to a String[] type in the
DynaActionForm, you will get something like
[Ljava.lang.String;@118cb3a in the text field, so
struts does not automatically type convert String to
String[] .
-Kevin
--- Sashi Ravipati <[EMAIL PROTECTED]> wrote:
> Hi
>
> I get the following error when the jsp page is
> displayed after the validation fails (Validation
> errros are all working fine)
>
> [Ljava.lang.String;@d23.
>
> This happens when I am passing values to a String
> Array. eg: .jsp I have
>
> <html:text property="firstName" />
>
> These are my set and get methods in my ActionForm
>
> private String [] FirstName=null;
>
> public String[] getfirstName(){
> return FirstName;
> }
>
> public void setfirstName(String[] newName){
> FirstName = newName;
> }
>
> It works fine when I use String but returns jusn
> when using String array. The values are being set
> correctly when I ran in debug mode.
>
> Is this a bug??
>
> Thanks
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]