• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

DynaActionForm and java.lang.Integer[]  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
You can't have everything. Where would you put it?
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!