Re: Need help to migrate to struts2.5.33 from 2.3.37

Lukasz Lenart <[email protected]>
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkOY2MnHkEOymgrAuon_fSMNjHsOnurbz-KtUMDyhp9kSQ@mail.gmail.com>
sob., 20 kwi 2024 o 14:56 Anweshan Satapathy
<[email protected]> napisał(a):
>     <filter>
>         <filter-name>struts-prepare</filter-name>
>         <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareFilter</filter-class>
>     </filter>
>    <filter>
>         <filter-name>StrutsPrepareAndExecute</filter-name>
>         <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
>     </filter>
>      <filter>
>         <filter-name>struts-execute</filter-name>
>         <filter-class>org.apache.struts2.dispatcher.filter.StrutsExecuteFilter</filter-class>
>     </filter>

You cannot use all the filters, either you must use
StrutsPrepareAndExecute filter or combination of StrutsPrepareFilter +
some other filter (eg. Sitemesh) + StrutsExecuteFilter
https://struts.apache.org/core-developers/web-xml

See the last example
https://struts.apache.org/plugins/sitemesh/


Cheers
Lukasz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.