struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Zepernick <>
Subject Re: Opting action method back into validation
Date Tue, 08 Dec 2020 11:39:17 GMT
It is an existing project that has hundreds of action classes and is currently configured by
the struts rest plug-in to ignore the show method for validation.  I know I can update the
configuration to remove the exclusion, but many of these actions also have a validate() implementation
which would begin to fire for the existing show().  I would have to go through and add the
skip validation annotation on most of these.

I was wondering if there was a way to configure the validation for a specific action class
which would force the validation to run?  For example, a @doValidation annotation on the method
that overrides the exclusion in the config.

Paul Zepernick
Sent from my iPhone

> On Dec 8, 2020, at 2:13 AM, Lukasz Lenart <> wrote:
> NOTICE: This email originated from outside of the organization. Do not click links
or open attachments unless you recognize the sender and know the content is safe.
> pon., 7 gru 2020 o 15:24 Paul Zepernick
> <> napisał(a):
>> Is there any way to take a method that has been excluded from validation
>> in the configuration and turn it back on for a single action?  For example,
>> I am using the REST plugin which excludes the show() method from the
>> validation.  99% of the time I do not have any validation that I want to
>> run, but I do have some edge cases where it would be helpful to have the
>> validate() / validateShow() available for a particular action.
> Not sure if I understand, you can add your conditional validation logic
> into "validateShow()", so in 99% this method will do nothing, but in 1% of
> conditions it will perform the validation.
> Regards
> --
> Łukasz
> + 48 606 323 122;;sdata=3QNfekKTv9TaGv%2BvrsY0f%2Baf9CedsOALl5%2BVXb6qUAY%3D&amp;reserved=0
Disclaimer: This communication and any files transmitted with it may contain information that
is privileged, confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any disclosure, copying, distribution,
or use of the information contained herein (including any reliance thereon) is strictly prohibited.
If you received this communication in error, please immediately contact the sender and destroy
the material in its entirety, whether in electronic or hard copy format. Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:
View raw message