You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me...@bpam.fr on 2003/05/16 17:55:02 UTC
action congif problem
Hi,
I'm tearing my hair off about this action definition error
in my struts config file.
The problem is due to the exception element insertion(when I remove it
,everything works fine).
can someone tells me what's wrong in my definition.
<action path="/lancerSimulation"
name="simulationForm"
type="com.bpam.raise.web.actions.ExecuteSimulationDispatcher"
scope="request"
input="/jsp/saisieSimulation.jsp"
parameter="task"
validate="true">
<forward name="success" path="/jsp/restitution.jsp"/>
<exception
key="error.constraints.varmax"
path="/jsp/saisieSimulation.jsp"
scope="request"
handler="com.bpam.raise.exceptions.RaiseExceptionHandler"
type="com.bpam.raise.common.exception.NoMatchCriteriaException"/>
</action>
thanks in advance.
Meissa
Re: Validator question
Posted by Dennis Muhlestein <de...@zserve.com>.
I think you are looking for <logic:messagesPresent
property="thisField">...</logic:messagesPresent>
That way, it only applies if there are messages present for that field
and not all the fields.
-Dennis
Ashok Madhavan wrote:
>hi All,
>
>I am using validator xml for validating my forms.
>In the case of an error i specify the global error
>messages. i also want to change the color of the form
>elements's display names where the error occured. I do
>this with a style sheet control. The code looks
>something like this :
> <tr <logic:messagesPresent> class="fieldlabel"
></logic:messagesPresent> >
> <th align="left">
> <bean:message
>key="loginForm.username.displayname"/>
> </th>
> <td align="left">
> <html:text property="userName" size="30"
>maxlength="30"/>
> </td>
> </tr>
>
>but what happens is, in the case of even a error all
>the form element display names have their color
>changed.
>
>How do i selectively change the color for indivudual
>elements.
>
>I am using Struts 1.1 RC1.
>
>regards
>Ashok
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Validator question
Posted by Ashok Madhavan <as...@yahoo.com>.
hi All,
I am using validator xml for validating my forms.
In the case of an error i specify the global error
messages. i also want to change the color of the form
elements's display names where the error occured. I do
this with a style sheet control. The code looks
something like this :
<tr <logic:messagesPresent> class="fieldlabel"
</logic:messagesPresent> >
<th align="left">
<bean:message
key="loginForm.username.displayname"/>
</th>
<td align="left">
<html:text property="userName" size="30"
maxlength="30"/>
</td>
</tr>
but what happens is, in the case of even a error all
the form element display names have their color
changed.
How do i selectively change the color for indivudual
elements.
I am using Struts 1.1 RC1.
regards
Ashok
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: action congif problem
Posted by Paul Yunusov <py...@rogers.com>.
On Friday 16 May 2003 11:55 am, meissa.Sakho@bpam.fr wrote:
> Hi,
>
> I'm tearing my hair off about this action definition error
> in my struts config file.
>
> The problem is due to the exception element insertion(when I remove it
> ,everything works fine).
>
> can someone tells me what's wrong in my definition.
>
> <action path="/lancerSimulation"
> name="simulationForm"
>
> type="com.bpam.raise.web.actions.ExecuteSimulationDispatcher"
> scope="request"
> input="/jsp/saisieSimulation.jsp"
> parameter="task"
> validate="true">
> <forward name="success" path="/jsp/restitution.jsp"/>
> <exception
> key="error.constraints.varmax"
> path="/jsp/saisieSimulation.jsp"
> scope="request"
> handler="com.bpam.raise.exceptions.RaiseExceptionHandler"
> type="com.bpam.raise.common.exception.NoMatchCriteriaException"/>
> </action>
>
>
> thanks in advance.
>
> Meissa
Please post a concise description of the "problem" or error message.
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: action congif problem
Posted by Sergey Smirnov <si...@exadel.com>.
Just put exception before forward. (look DTD for details)
Regards,
Sergey Smirnov
http://www.exadel.com/strutsStudio
----- Original Message -----
From: <me...@bpam.fr>
To: <st...@jakarta.apache.org>
Sent: Friday, May 16, 2003 8:55 AM
Subject: action congif problem
> Hi,
>
> I'm tearing my hair off about this action definition error
> in my struts config file.
>
> The problem is due to the exception element insertion(when I remove it
> ,everything works fine).
>
> can someone tells me what's wrong in my definition.
>
> <action path="/lancerSimulation"
> name="simulationForm"
>
type="com.bpam.raise.web.actions.ExecuteSimulationDispatcher"
> scope="request"
> input="/jsp/saisieSimulation.jsp"
> parameter="task"
> validate="true">
> <forward name="success" path="/jsp/restitution.jsp"/>
> <exception
> key="error.constraints.varmax"
> path="/jsp/saisieSimulation.jsp"
> scope="request"
> handler="com.bpam.raise.exceptions.RaiseExceptionHandler"
> type="com.bpam.raise.common.exception.NoMatchCriteriaException"/>
> </action>
>
>
> thanks in advance.
>
> Meissa
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org