Keyur Golani
Keyur Golani

Reputation: 583

Suggest some site for "Roles of inbuilt Interceptors."

I have looked up for interceptors in struts2 at many places. All the great tutorials and links explain the meaning of interceptors and how they work.

But as I understand, the real power of interceptors is in understanding the roles of inbuilt interceptors in struts2-core library.

As an example so far I have understood that params is the interceptor which sets the value of HttpServletRequest parameters into the Action class variables.

I tried to de-compile the interceptor class files from jar but those codes are complex. I can't understand it.

I want to learn roles of those inbuilt interceptors as many as possible. Please suggest a link.

Upvotes: 1

Views: 99

Answers (3)

Andrea Ligios
Andrea Ligios

Reputation: 50203

I want to learn roles of those inbuilt interceptors as many as possible.

The role of each Interceptor is explained in the related page, as pointed out by @AnkurLathi (I've linked 2.3.x version, it should always be better, even if the documentation doesn't change);

I tried to de-compile the interceptor class files from jar but those codes are complex. I can't understand it.

You don't need to decompile anything. There are sites like grepCode or Jarvana that helps you providing the source code of most of the libraries out there; but for Struts2, simply refer to the official source code repository;

Here is the direct link to the Interceptor source code path.

Note that some Interceptors are placed in other paths, because they're still packaged as XWork stuff.

Upvotes: 2

user2607985
user2607985

Reputation: 57

I think it will be helpful for yout

Interceptor Interface in Struts 2.2.1

Role of interceptor Look into the framework section and you will be able to get your answer

Upvotes: 0

Ankur Lathi
Ankur Lathi

Reputation: 7836

If you just want to know the role of each Struts 2 interceptor then you should visit it's Documentation at:

http://struts.apache.org/release/2.2.x/docs/interceptors.html#Interceptors-FrameworkInterceptors

Upvotes: 1

Related Questions