This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie in struts (and in english)
 
Similar Threads
Pro Jakarta Struts, Second Edition : Development Question
Problem in Creating Dynamic Link from Display Table
show different content after a choice in a combobox
can somebody take a look at my struts--config file?
Cannot retrieve mapping for action /