XDoclet and struts: how to define a multiple used action?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Thorsten_Langer
Posted On:   Tuesday, September 3, 2002 07:14 AM

Hi! I have the same struts ActionClass used twice in my hand-build struts-config.xml like this: scope="request" validate="true" type="com.kann.web.shared.actions.UploadAction"> path="/client/upload-success.jsp" redirect="true" /> name="Shared.UploadForm" scope="request" validate="true" type="com.kann.web.shared.actions.UploadAction"> path="/premiumclient/upload-success.jsp" redirect="true" /> How can I make XDoclet generate this? I can add two @struts:action-Tags in there, but the forwards will no   More>>

Hi!
I have the same struts ActionClass used twice in my hand-build struts-config.xml like this:

			

scope="request" validate="true"
type="com.kann.web.shared.actions.UploadAction">

path="/client/upload-success.jsp"
redirect="true" />


name="Shared.UploadForm"
scope="request" validate="true"
type="com.kann.web.shared.actions.UploadAction">

path="/premiumclient/upload-success.jsp"
redirect="true" />


How can I make XDoclet generate this?
I can add two @struts:action-Tags in there, but the forwards will not be embedded into the right element in the descriptor. Is there any work-around or trick I missed?

Thanks you!
Thorsten    <<Less

Add: XDoclet and struts: how to define a multiple used action?

Posted By:   Thorsten_Langer  
Posted On:   Tuesday, September 3, 2002 09:40 AM

I guess, that i can solve this 'problem' by subclassing my UploadAction once or twice (without any additinal code there) and put the xdocs into there files.

Alternatively I could put my code into the merge-directory and watch it being build in (I guess).

ok, okay...
About | Sitemap | Contact