Struts DispatchAction doesn't work anymore

Hi all,

I have a problem using a struts dispatchaction. My config for that action looks like this.

<action path="/V2_EditUserInfo"

parameter="sid"

forward="/V2_CrudUserInfo.do?action=read" />

<action path="/V2_CrudUserInfo"

type="com.jds.V2.actions.CrudUserAction"

scope="request"

name="V2_UserInfoform"

validate="true"

input="/V1/pages/EditUserInfo.jsp?action=update"

parameter="action">

<forward name="doEdit" path="/V1/pages/EditUserInfo.jsp?action=update" />

<forward name="UserInfoUpdated" path="/V1/pages/MyAccount.jsp" />

<forward name="Cancelled" path="/V1/pages/MyAccount.jsp" />

<forward name="Failed" path="/V1/pages/MyAccount.jsp" />

</action>

My Actionclass implements two methods: read(..) and update(..)

This stuff worked till a few day ago.

Nowmy read-method is not get called, even when I put the url directly into the browser (..../V2_CrudUserInfo.do?action=read&sid=1)

More strangely when I add a parameter from my form, e.g.

(..../V2_CrudUserInfo.do?action=read&sid=1&birthyear=2000), it does work.

It works also using the forward WITH some additional form-parameter, e.g.

(..../V2_EditUserInfo.do?sid=1&birthyear=2000)

If you have any ideas, help, please tell me!

Are there anytricks to follow what struts is doing ?

I tried to overide the dispatchaction's methods dispatchMethod

and unspecified

bur with no use. They aren't get called either.

Any hints will be appreciated.

[2111 byte] By [janko2000a] at [2007-10-3 1:18:29]
# 1

Hello again,

I worked _just_ a few hours on that. It turned out that the validation of my birthyear-parameter prevents the calling of my action. (if there is none, struts assumes birthyear=0; which I wanted to be an impossible value)

I thick I have to check how to config struts that it does what I want.

Any hint on that matter would be very nice too.

janko2000a at 2007-7-14 18:15:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...