You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Jasnowski <mj...@bea.com> on 2003/06/06 16:29:45 UTC
RE: Error - [Ljava.lang.String;@d23.
>[Ljava.lang.String;@d23.
Thats the default stringified version of your array. It looks like from the
tag your using you just want to print a simple string, why are you trying to
pass an array as the property?
-----Original Message-----
From: Sashi Ravipati [mailto:RavipatiS@michigan.gov]
Sent: Friday, June 06, 2003 10:22 AM
To: struts-user@jakarta.apache.org
Subject: Error - [Ljava.lang.String;@d23.
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org