top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Struts: dynamic interceptor insertion

+1 vote

I would like to dynamically insert an interceptor to a specific place in existing stack.

Of course I also like the stacks referencing the one where I insert the interceptor also take advantage of this configuration change.

I started to look on the side of PackageProvider, but I can not find sufficiently complete documentation allowing me to do this.

posted Jun 26, 2014 by Sidharth

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

No, that's not possible today. But if you have the time, you can code the solution and share it with everyone!

answer Jun 26, 2014 by Luv Kumar
Similar Questions
0 votes

I have been tasked with upgrading Apache Struts, running on CentOS 7, to the latest version. I have no idea where to begin. I am not a web developer, I am only a system administrator, so I have no idea where I should even look to figure out how to upgrade this thing. Any and all help will be greatly appreciated!

+1 vote

I am using the token session interceptor for a form and I have this situation:
1) I am in the form page;
2) I leave the form page;
3) Go back to the form page by the "back" button;
4) Submit the form;

And of course the form is not submitted and the token returns "invalid.token" but do not adds no actionError. It will not be interesting to add an action error?

Ok, I can resend to a page with a message but I already have a error page that presents the action errors when necessary.

+1 vote

In struts2 , defined an interceptor, it triggered by Action, my question is

"inside the interceptor class, what is the function call that can tell caller's name, because that interceptor could be triggered by different Action, we need to log the caller's name, but how?"

+1 vote

I am using struts 2.2.3 and doing client side validation using xml. I want to do validation for a field whose name is an ognl expression I have something like this :

Field is required

On debugging I can see It is adding field error properly. But i have a javascript which shows the field in red highlighted color and also shows messages that "fieldname is required". However fieldname is not coming in the message and it is not showing the required field in red highlighted color.

The same javascript code works fine for normal fields which have static name. Please can someone help in this, as I am new to struts ?

0 votes

I am trying to implement an auto complete feature using Struts 2 jQuery plugin - . The suggestion list need to be dynamically retrieved from backend based on the characters user entered. Is it possible to implement this behaviour using S2 jQuery plugin? Does anyone has a good example?

I could not find such an example in showcase.