GeeCON Prague 2014*
The moose likes Struts and the fly likes Newbie in struts (and in english) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Newbie in struts (and in english)" Watch "Newbie in struts (and in english)" New topic
Author

Newbie in struts (and in english)

Gizzmo Zeuzere
Ranch Hand

Joined: May 11, 2001
Posts: 45
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

Joined: May 11, 2001
Posts: 45
In fact, the question is : is it possible to have twice the same argument (property), or not ?
Neal Ford
Author
Ranch Hand

Joined: Oct 23, 2003
Posts: 82
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.


Neal Ford<br />Author, <i>Art of Java Web Development: Struts, Tapestry, Commons, Velocity, JUnit, Axis, Cocoon, InternetBeans, WebWork</i><br /><a href="http://www.nealford.com" target="_blank" rel="nofollow">www.nealford.com</a>
 
GeeCON Prague 2014
 
subject: Newbie in struts (and in english)