You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lynn Guy <lg...@yahoo.com> on 2003/05/30 18:58:08 UTC
RE: dynamic text boxes - with checkboxes?
Does this work with checkboxes or is there a problem
due to the checkbox not sending anything if not
checked?
--- Mark Galbreath <ma...@qat.com> wrote:
> You can name the textboxes dynamically using the
> <logic:iterate
> indexId="xxx"> attribute:
>
> <logic:iterate name="myBean" property="property"
> index="index" id="id">
> <html:text property=<% out.println( index ) %>
> value="" />
> </logic:iterate>
>
> In you Action class request.getParameterNames will
> return an array like
>
> names[ "0", "1", "2", ...]
>
> and you can access each field by the String name or
> element position.
>
> Mark
>
> -----Original Message-----
> From: Nagendra Kumar O V S
> [mailto:nagendra@ikigo.com]
> Sent: Thursday, May 29, 2003 11:33 AM
> To: struts-user@jakarta.apache.org
> Subject: RE: dynamic text boxes
>
>
>
> hello mark,
> but, i cant use <html:text property=""/> , becos i
> cant map them in the
> action form
> i want this property also be dynamic and also get
> the value in the action
> form, can be thro' request.getParameter...
> how can i override the struts behaviour of not
> checking the corresponding
> get/set method of the property while rendering the
> html:text. or is their
> anyway.....
>
> TIA
>
> -------Original Message-------
>
> From: Struts Users Mailing
> <ma...@jakarta.apache.org> List
> Date: Thursday, May 29, 2003 08:52:09 PM
> To: 'Struts Users Mailing
> <ma...@jakarta.apache.org> List';
> 'Nagendra Kumar O V <ma...@ikigo.com> S'
> Subject: RE: dynamic text boxes
>
> Use <logic:iterate> to create the text boxes and
> request.getParamaterNames()
> in your Action.
>
> Mark
>
> -----Original Message-----
> From: Nagendra Kumar O V S
> [mailto:nagendra@ikigo.com]
> Sent: Thursday, May 29, 2003 10:53 AM
> To: struts-user@jakarta.apache.org
> Subject: dynamic text boxes
>
>
>
>
> hi,
> i need to display n number of textboxes on the jsp,
> the number which is
> known only at runtime.
> now how do i map those text boxes to the action
> form.
> i can't use a array , becos i need to retreive them
> with the unique id..
>
> any ideas.....
> TIA
> -nagi
> Nagendra Kumar O V S
> Member Technical Staff
> Ikigo India Private Ltd.
> 470-B, Road No. 36,
> Jubilee Hills,
> Hyderabad 500033
> Contact(O): 23544671
> Cell: 98482-41789
>
>
> ____________________________________________________
> <http://www.incredimail.com/redir.asp?ad_id=309
>
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9>
> &lang=9> IncrediMail
> -
> Email has finally evolved -
> <http://www.incredimail.com/redir.asp?ad_id=309
>
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9>
> &lang=9> Click Here
>
>
>
>
>
> ____________________________________________________
>
>
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9>
> IncrediMail -
> Email has finally evolved -
>
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9>
> Click Here
>
>
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org