File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes problem with indexed properties in dynaactionform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with indexed properties in dynaactionform" Watch "problem with indexed properties in dynaactionform" New topic
Author

problem with indexed properties in dynaactionform

venki janapati
Greenhorn

Joined: Dec 26, 2002
Posts: 19
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

Joined: Oct 22, 2003
Posts: 8
change java.lang.String[] to java.lang.String
HTH
M Bhat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with indexed properties in dynaactionform