Ok, then you have to define a Form with an array field:
private String[] values; setValues(String[] values) ... getValues() ... then you will define the input tag in your jsp (you may use or not Struts HTML tag): <input type="text" name="values"/> you should place it inside some HTML container, like <div> or <span> setting its id attribute: <div id="valuesContainer"> <input type="text" name="values"/> </div> then you will use javascript DOM methods to dynamically add another input fields to your form: <script language="javascript"> function add() { container = document.getElementById("valuesContainer"); newInput = document.createElement("INPUT"); newInput.type = "text"; newInput.name = "values"; container.appendChild(newInput); } </script> After submitting the page you can access the values array containing all the fields values. Henrique Viecili ----- Original Message ----- From: Hadeel Rashad To: 'Struts Users Mailing List' Sent: Wednesday, September 08, 2004 8:28 PM Subject: RE: Adding Tags Dynamically I want when I press add input, I add the input in a definite place -----Original Message----- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 6:09 AM To: Struts Users Mailing List Subject: Re: Adding Tags Dynamically - JSP tags are translated into java code during JSP compilation BEFORE any request processing. - Javascript is executed by browser AFTER reponse has been built by server. Tags must be 'statically' set in JSP What do you ant to do ? Nico. > > Can I add struts tags dynamically after loading the page, using > javascript probably??? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]