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 7399707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:05:44+00:00 2026-05-29T04:05:44+00:00

I got a Java Webapp project which uses Struts2 as the controller layer. I

  • 0

I got a Java Webapp project which uses Struts2 as the controller layer. I need to check user’s permissions before doing anything (like opening a web page). I have developed an authorization system which is needed to be executed in struts action. So, how is it possible to execute this action before loading of a page? Should I use interceptors?

  • 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-05-29T04:05:45+00:00Added an answer on May 29, 2026 at 4:05 am

    You failed to understand the whole point of an MVC framework like Struts. In a MVC app, you should never have any link or form pointing to a JSP.

    You should always point to a URL mapped to the Struts servlet/filter. Then the servlet invokes the appropriate action based on the URL, the action returns the result (the JSP to go to), and Struts forwards to this JSP.

    If you point to a JSP directly, then you’re bypassing Struts completely. Read http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a bunch of servlet context listeners in my Java webapp, each of
I've got Postscript code/data (?) in memory (in a Java Tomcat webapp) that I'd
I've got a java application on a windows machine which pins the CPU from
So I've got some Java code that uses Jakarta HttpClient like this: URI aURI
I've got a webapp (using php), my clients are java-based and are submitting dates
I've got a running java webapp, that I'm monitoring with visualVM . Here's the
I'm just doing a java tomcat project, that does some query in a database
We've got a Java server application that runs on a number of computers, all
I've got a Java client that needs to access a remote database. It is
I've got a Java application that I'm writing an installer for. We're using the

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.