This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: problem with indexed properties in dynaactionform
 
It's not a secret anymore!