To try and attack this question from another angle, is there any reason that this wouldn't work (or would work differently) in Struts(-el) 1.1 as opposed to 1.2.x? I'm limited to using 1.1 only, but cannot find any old 1.1 documentation to work from.
Thanks, --Trevor -----Original Message----- From: Trevor Hill Sent: February 14, 2005 8:33 AM To: Struts Users Mailing List Subject: RE: html-el oddities As I said in my original question, I had tried 'cur.prdNumber' and had the same result, and so had tried shoving the value of cur.prdNumber into a page-scoped variable named 'curPrdNumber', with the exact same less-than-spectacular results. So I guess I'm still stuck, but thanks. -----Original Message----- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: February 11, 2005 4:54 PM To: Struts Users Mailing List Subject: Re: html-el oddities I think you are missing a dot :) cur.PrdNumber not curPrdNumber Try: <input type="text" name="quantity(${cur.PrdNumber})" maxlength="5" size="3" value=""></td> Trevor Hill wrote: >I'm having an interesting issue. I have a form in which the only input is a >bunch of text boxes which correspond to quantities of products. The >associated form thus consists of just a HashMap. My JSP page is as follows: ><... header stuff ...> > ><tr> > <th>Product</th> > <th>Product Number</th> > <th>Price</th> > <th>Quantity to add</th> ></tr> > ><c:forEach items="${priceList}" var="cur"> ><c:set scope="page" var="curPrdNumber" value="${cur.prdNumber}"/> > ><tr> > <td><c:out value="${cur.itemName}"/></td> > <td><c:out value="${cur.prdNumber}"/></td> > <td><fmt:formatNumber type="currency" > currencyCode="${cur.currencyCode}" value="${cur.price}"/></td> > > <td style="text-align:right"><html-el:text > property="quantity(${curPrdNumber})" size="3" maxlength="5" /></td> ></tr> > ><... submit button, close form, etc....> > > > >However, the output of the last TD is: > ><input type="text" name="quantity(${curPrdNumber})" maxlength="5" size="3" >value=""></td> > >which is correct except for that whole "not interpreting the EL expression" >bit. > >I've tried using a page-scoped temporary variable (as above), I've tried >directly referencing ${cur.prdNumber} in the html-el:text tag, I've checked >all my TLDs and the struts-el.jar files to ensure they're in the correct place >and checked the web.xml file to make sure all the TLDs are mentioned. There >are no error messages in my application's log or my application server's log >that would suggest some class or configuration file being out of whack. > >All my other taglibs (normal struts tags and jstl tags) are working just fine, >and the html-el tag /seems/ to work fine from a Struts standpoint in that it >makes an <input type="text"> just like it should, but no el-evaluation. This >problem doesn't appear to be specific to the mapped property "quantity", as I >can try other html-el tags that directly refer to either ${curPrdNumber} or >{$cur.prdNumber}, and I get the same result -- no evaluation. > >Am I missing something glaringly obvious? > >Thanks, >--Trevor > > > >--------------------------------------------------------------------- >This transmission (including any attachments) may contain confidential >information, privileged material (including material protected by the >solicitor-client or other applicable privileges), or constitute non-public >information. Any use of this information by anyone other than the intended >recipient is prohibited. If you have received this transmission in error, >please immediately reply to the sender and delete this information from your >system. Use, dissemination, distribution, or reproduction of this transmission >by unintended recipients is not authorized and may be unlawful. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Jason Lea -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2005.02.10 --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]