Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with indexed properties in dynaactionform

 
venki janapati
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi iam using dynaactionform to display number of text fields dynamically.using
<form-property name="entries" type="java.lang.String[]" size="3"/>
<form-property name="queryTerms" type="java.lang.String[]"/>
<form-property name="operators" type="java.lang.String[]"/>
it is displaying 3 text fields.Once i enter data("war") into one field. iam retrieving from action class using
DynaActionForm userForm = (DynaActionForm) form;
when i execute userForm.get("entries") it gives me 6 entries
"war",,,"war",, like this
help is appreciated. i couldnt figure out the problem
 
Manjunath Bhat
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change java.lang.String[] to java.lang.String
HTH
M Bhat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic