Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Validation with wildcards

ekoje ekoje

2007-03-01


Hi Guys,

I expreinced another trouble with my validator using wildcards definitions.

I've got the following in my struts.xml

   <action name="Login_*" method="{1}"
       class="com.project.web.action.Login">
       <result type="redirect">/index.jsp</result>
       <result name="input">/login/login.jsp</result>
       <result name="error">/login/login.jsp</result>
    </action>

I've got two methods: login and logout.

So my action url is http://mywebsite.com/Login_login.action

I've created a xml validator named: Login_login-validation.xml

Unfortunetly its doesn't work. I submit my login form and the validator does
not valid my fields. It goes directly to process the action method.

Did i miss something ?
Does someone can help me ?

Thanks in advance.
E
©2008 junlu.com - Jax Systems, LLC, U.S.A.