Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie in struts (and in english)

 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !
I want to have a html:select and a html:text using the same property and i would know if i must create two property in my form bean or if it is possible to reuse the same.
I give you my code.
<html:form action="/Promotion.do?action=modifier">
<html:select property="promo">
<html: options collection="listePromotion" property="label" labelProperty="value"/>
</html:select>
<html:text property="promo" size="16" maxlength="16"/>
<html:submit property="submit" value="Modifier"/>
</html:form>
Thank u !
[ February 11, 2004: Message edited by: Gizzmo Zeuzere ]
 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, the question is : is it possible to have twice the same argument (property), or not ?
 
Neal Ford
Author
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, the question is : is it possible to have twice the same argument (property), or not ?

Yes, you can use the same property as many times as you want. The JSP doesn't "consume" the value in any way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic