struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Defining text field dynamically and assigning value from array
Date Sat, 02 May 2009 20:02:38 GMT

I have a requirement to define text field dynamically using a name that 
comes from action. Value of the same is available in the value stack, but 
in an array.  Somehow struts 2 is not evaluation expression within an 
expression. Is there an alternative to achieve the same?

<s:textfield theme="simple" key="%{paramId}" value="%{%{paramId}[0]}" 
maxlength="2" size="2" cssClass="monthInput" tabindex="%{sequenceNo}" />


The information contained in this email message and any attachments may be privileged and/or
confidential.  It is for intended addressee(s) only.  If you are not the intended recipient,
you are hereby notified that any review, disclosure, reproduction, distribution or other use
of this communication is strictly prohibited.  If you received this email in error, please
notify the sender by reply and delete the message without saving, copying or disclosing it.
 Thank you. 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message