This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes DynaActionForm and java.lang.Integer[] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaActionForm and java.lang.Integer[]" Watch "DynaActionForm and java.lang.Integer[]" New topic
Author

DynaActionForm and java.lang.Integer[]

Perindevi Peramur
Greenhorn

Joined: Dec 24, 2005
Posts: 10
Hello everyone,
I have this in my struts-config file :
<form-bean name="emailQueueForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="noOfFollowUps" type="java.lang.Integer[]"/>
....
</form-bean>

In my jsp, I have the following :
<logic:iterate id="com" name="shop" indexId="idx">
...
<html:text property="noOfFollowUps" size="3" maxlength="3"></html:text>
...
</logic:iterate>

So, when the jsp loads, I have "[Lj" written in all the textbox as default value.Thats because its an integer array. I dont want this to be displayed. I dont want to use value="" in the text tag because there is an add button in the jsp, once i enter values in some text boxes and click the add button, the values should be added and automatically displayed in the text box.

I cannot use JSTL. I have to use struts only. So, how do I proceed ?

Thanks in advance
Suman
 
 
subject: DynaActionForm and java.lang.Integer[]
 
Similar Threads
retrieve value of a field
How to assign these 3 values to form bean
STRUTS VALIDATOR
ArrayList and tags
Indexed properties problem- Confusing