Maybe you missed the part about *not* passing a parameter with the link url?
I am experimenting with a few ideas to minimize writing too many Action classes by leveraging the wildcard method feature. This link allows an item to be deleted and the parameter being passed is a read-only "hibernate id" that was loaded into the page during the request. There is no need for validating this sort of link. I suppose I can write another Action just for this "method," but this is precisely what I am trying to avoid. Also, I'd rather not override framework plumbing to solve this trivial scenario. The immediate solution looks like replacing the S2 tags which are seemingly at the heart of S2! On 4/5/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote: > It strikes me as odd that a hyperlink not related to > the form would be intercepted by the form validator. Meh; if an action is Validatable then it's Validatable, you know? I have to agree with Ted--if you're passing a parameter that's being used by the method, why *wouldn't* you want to validate it? That said, the validation interceptor is a subclass of MethodFilterInterceptor so you can configure it with an excludeMethods parameter as described on the validation interceptor wiki page: http://struts.apache.org/2.x/docs/validation-interceptor.html You could probably also create a class-method-validation.xml file that would do something different for just that method. d. ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Scott [EMAIL PROTECTED]