wood burning stoves 2.0*
The moose likes Struts and the fly likes array of textbox problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "array of textbox problem" Watch "array of textbox problem" New topic
Author

array of textbox problem

Swathi Prakash
Ranch Hand

Joined: Jan 18, 2005
Posts: 49
hi all,,

i have a page which has no of text boxes according to the count which i got from page loading.according to the count the no of text box will appear in the screen..my problem i m using ActionMessages in Action..
if my action throws any errors,i revert back to the same screen. the values in that textboxes are like this..
[Ljava.lang.Double;@655146}
i m setting the property as double data type..the value entered or disappears and the [Ljava.lang.Double;@655146}
string is appearing in my textbox...i want to get the values whatever i entered should be appeared on the screen,,.. what is the solution for this...please help me...
Thanks in advance...

Swathi
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

[Ljava.lang.Double;@655146}
That looks more like the toString result of a Double[] than a Double.

Am I right?


A good workman is known by his tools.
Hussain Fakhruddin
Ranch Hand

Joined: Aug 13, 2004
Posts: 96
I usually use string and boolean as the datatype in action forms, and later paseInteger if I need too.


Hussain Fakruddin<br /> <br /><b>IBM 486-OOAD with UML</b>
Swamy Nathan
Ranch Hand

Joined: May 16, 2004
Posts: 187
http://struts.apache.org/faqs/indexedprops.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: array of textbox problem