struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Opting action method back into validation
Date Tue, 08 Dec 2020 07:12:54 GMT
pon., 7 gru 2020 o 15:24 Paul Zepernick
<Paul.Zepernick@healthsmart.com.invalid> 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 http://www.lenart.org.pl/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message