I use a form derived from ValidatorActionForm.

If the validator fires a message and redisplays the form, I loose my request params!

I do:

<html:link action="/insertExpense.do?op=new" styleClass="button">

this actions opens a form with a request parameter op set to new.

inside this form I do something like:

    <html:form action="/editExpense" method="post" focus="expenseType">
                <c:if test="${requestScope.op == 'new'}">
                        <html:hidden name="op" property="op" value="insert"/>
                </c:if>
                <c:if test="${requestScope.op == 'insert'}">
                        <html:hidden name="op" property="op" value="insert"/>
                </c:if>
                <c:if test="${requestScope.op == 'update'}">
                        <html:hidden name="op" property="op" value="update"/>
                </c:if>
....

If the user enters garbage in any field that is validated the form is redisplayed with an error message on the right side of the field.

BUT THE ${requestScope.op} is empty and therefore this information is LOST!! Any idea what I am doing wrong???

Tom

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

Reply via email to