I am also looking for an answer to a similar question.  I was reading about
Struts-EL.  What I need is to keep values that have been added before
validation.  Currently if one text box in not valid, all changes are reset.
I got this to work with multibox.  I need this to function in a similar
manner.

I am currently using XSL to generate the struts pages.
<html:text property="[EMAIL PROTECTED]" value="[EMAIL PROTECTED]" styleClass="input8"
onchange="changeColor('#B1BBD6');"/>

I can assign a unique id to every property, but I still do not I do not
really want to change my design to use logic:iterate.  I like creating the
jsps with XSL.
I have worked out a way to validate and specify which fields have errors.
Does anyone have any advice? Would it be possible to use mapped properties
for this case?

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering



-----Original Message-----
From: Mark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 11:41 PM
To: [EMAIL PROTECTED]
Subject: Re: logic:iterate and html:text


im not sure if i answered that completely, let me read it again and get back
to you ;)

*********** REPLY SEPARATOR  ***********

On 03/12/2003 at 11:38 PM Mark wrote:

>It would be easier for some of us if your emails didnt come through as
attachments ;)
>
>but to answer this you dont need value="" for this
>
>thats what the property does
>so what you want is
>
><logic:iterate id="client" name="myForm" property="clients">
>    <html:text property="client" indexed="true" />
></logic:iterate>
>
>And what kind of form bean are you storing this in?
>
>I have some other advice about a problem you're about to discover in struts
but i'll let you discover it first ;)
>
>Regards,
>Mark
>Aim/Yahoo Msgr: thetazzbot
>
>you wrote:
>
>Sorry if this has been asked a million times but it doesn't seem to
>be in the exercise-taglibs.war and that last thread I found on it
>seemed inconclusive.
>
>I have 5 text boxes where the user can enter names of clients, hence
>I want
>
><input type="text" name="clients[]" value=""/>
><input type="text" name="clients[]" value=""/>
><input type="text" name="clients[]" value=""/>
><input type="text" name="clients[]" value=""/>
><input type="text" name="clients[]" value=""/>
>
>Is the propery way to do it like so?
>
><logic:iterate id="client" name="myForm" property="clients">
>    <html:text property="client" indexed="true"
value="<%=client.toString%>" />
></logic:iterate>
>
>Seems like with the scriplet in there it is not the "ideal" way to
>do it.  Any takers?
>
>
>
>---------------------------------------------------------------------
>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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to