When I use a servlet filter for filtering input requests and responses how can I get the underlying webaction of type JiraWebActionSupport?
I need to check the webaction for set error messages or error fields. Depending on them the filter will do something else e.g. a redirect as the filter would do without any set error message.
The filter is declared in atlassian-plugin.xml:
<servlet-filter name="secSignIDCreateUserFilter"
key="com.secsign.jira.servlet.filter.SecSignIDCreateUserFilter"
class="com.secsign.jira.servlet.filter.SecSignIDCreateUserFilter"
location="before-decoration"
weight="200">
<url-pattern>*AddUser*.jspa</url-pattern>
<dispatcher>REQUEST</dispatcher>
</servlet-filter>
AddUser is the webaction from jira-core.
Community moderators have prevented the ability to post new answers.
You can't simply get the corresponding action from a filter, and I would even say that that would be "bad architecture".
Why don't you use the action to return a "redirect" result? It is dead simple and "theoretically correct":
<action name="start-qualityanalysis" class="...StartContentQualityAnalysisAction">
<result name="success" type="redirect">/admin/plugins/archiving/statistics.action</result>
</action>
Thanks for the answer. You are right, it would be a bad architecture. For a normal action the redirect would work fine but I need to override one of JIRAs built in action. And I dont know yet if I could ship any edited jsp of JIRA with a plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.