• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Newbie in struts (and in english)

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In fact, the question is : is it possible to have twice the same argument (property), or not ?
 
Author
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic