Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

string array property is resetted to length 1.

 
suresh sai
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.,

I have a hidden property in my JSP. This is the string array property in the action form of the struts.Before loading this JSP I am initializing this property. I am calling one java script function on page load.But in this java script the length of this property is coming as 1.It was resetted to 1. I am sure I am not reinitialinzing the string array to 1 after initializing it in the action class.After submitting the JSP also I am getting the length as 1.

Is there any way to regain the length of the string array property as how I am initializing in the action class..?

Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You description does not make sense without some code.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic