Struts validator and ActionMapping question.

P

philoso

Hi.
Errr... sort of new-b question.

The validator requires a signiture of
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"


How can i reach actionMapping from these fields?

Thanks.
 
R

Rick Osborn

you'll have to be more specific.
don't know what you mean by "reach actionmapping from these...".
 
W

Wendy S

(e-mail address removed) (philoso) wrote
The validator requires a signiture of
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
How can i reach actionMapping from these fields?

What do you need the ActionMapping for? If you truly can't get there from
here, there's probably a reason. Struts is very well designed and enforces
separation.

A Validator plugin method should just examine what it's given and answer
true or false.
 
J

James

I have seen struts enforce nothing but chaos so it is all in howmyou use it.
In fact, next to a legendary monster of a Cobol program that no one could
ever figure out and those who tried went certifiably insane, the most
horrific mishmash of redundant code and 40 page classes came in a fully
stuts functional application. Struts adds a layer of complication which
Java doesn't always need. I think there are some legitimate uses to struts
and if I can pull my presentation layer out and stick in a new one with a
new struts config file, then I'll be impressed.
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top