Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8502455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:29:23+00:00 2026-06-11T01:29:23+00:00

I am having the opposite problem of the fellow in this question: Struts 2:

  • 0

I am having the opposite problem of the fellow in this question:
Struts 2: excluding method from validation from just the defaultStack interceptor

The above question involved all methods being excluded, my issue is that no methods are being excluded!

I’m trying to get my authenticationInterceptor to ignore the showLogin method of my LoginAction:

<interceptors>
    <interceptor name="authorizationInterceptor" class="org.companyname.struts.interceptor.AuthorizationInterceptor"/>
    <interceptor-stack name="appDefault">
        <interceptor-ref name="authorizationInterceptor"/>
        <interceptor-ref name="defaultStack">
            <param name="exception.logEnabled">true</param>
            <param name="exception.logLevel">ERROR</param>
        </interceptor-ref>              
    </interceptor-stack>
</interceptors>
<default-interceptor-ref name="appDefault" />

<action name="loginInitial" class="org.companyname.struts.action.LoginAction" method="showLogin">
    <interceptor-ref name="appDefault">
        <param name="authorizationInterceptor.excludeMethods">showLogin</param>             
    </interceptor-ref>
    <result name="success">/login.jsp</result>                      
</action>

However, each time I forward to loginInitial, the interceptor grabs it, even though my showLogin method is being excluded.

I’ve checked for naming issues, and have tried putting several different values in the interceptor-ref within the action, and nothing seems to work.

What’s the proper way to skip the authorizationInterceptor when I forward to loginIntial?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:29:25+00:00Added an answer on June 11, 2026 at 1:29 am

    I believe my issue is the type of interceptor I’m using, the AbstractInterceptor. So, I just use different interceptor stacks on the actions I don’t want intercepted:

    <interceptor-stack name="appDefaultWithAuth">               
        <interceptor-ref name="defaultStack">
            <param name="exception.logEnabled">true</param>
            <param name="exception.logLevel">ERROR</param>
        </interceptor-ref>              
        <interceptor-ref name="authorizationInterceptor"/>
    </interceptor-stack>            
    
    <interceptor-stack name="appDefaultNoAuth">             
        <interceptor-ref name="defaultStack">
            <param name="exception.logEnabled">true</param>
            <param name="exception.logLevel">ERROR</param>
        </interceptor-ref>                  
    </interceptor-stack>
    
    <default-interceptor-ref name="appDefaultWithAuth" />
    
    <action name="loginInitial" class="org.company.struts.action.LoginAction" method="showLogin">
        <interceptor-ref name="appDefaultNoAuth"/>              
        <result name="success">/login.jsp</result>                      
    </action>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have basically the opposite problem to this question: How to prevent iframe from
I'm having the exact opposite problem of this post - specifically, I want to
Opposite of this question: Retain anchor after postback in asp.net I'm having the issue
i am having trouble deciphering this block of code from doctrine documentation /** @Entity
This is kind of a silly question because most people ask the opposite such
I am having the exact opposite problem that I find in many searches. The
I've having the opposite problem of many Python users--my program is using too little
I seem to be having the opposite problem as everyone else, my Javascript isn't
Having searched everywhere for a solution to this problem, and attempting to use a
I just caused a problem that I'm having trouble finding a solution for. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.