Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

array of textbox problem

 
Swathi Prakash
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Ljava.lang.Double;@655146}
That looks more like the toString result of a Double[] than a Double.

Am I right?
 
Hussain Fakhruddin
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I usually use string and boolean as the datatype in action forms, and later paseInteger if I need too.
 
Swamy Nathan
Ranch Hand
Posts: 187
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!