Validator Struts Framework

S

Sergio

Hello:
I am using struts 1.1. I would like to use the Validator Framework. My
action class DocumentManagerAction derive from DispathAction so I have
several method on it.

I have 3 method in the DocumentManagerAction class.
1) addDocument
2) updateDocument
3) deleteDocument


In my struts-config.xml I wrote
<action input="/home.jsp" name="documentActionForm" parameter="method"
path="/documentManagerAction" scope="request"
type="com.cubika.nac100.ui.DocumentManagerAction" validate="true">
<forward name="success" path="/home.jsp" redirect="true" />
</action>


Then I would like to define a different validation rule for each of
the calling method.
Does anybody know how I can do it or have a reference to read about
it?

Thank you
Sergio Josiowicz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top