top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Struts2 Invalid Request Page is not showing up

+1 vote
374 views

We are using struts2 latest distribution, where we are using tokenSession interceptor for duplicate submission. Duplicate request processing is working fine but its not showing result page for duplicate
form submission which we have defined in strust.xml as below.

/error/accessDenied.jsp
/error/invalidRequest.jsp

posted Aug 12, 2013 by Mandeep Sehgal

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
The following I found in documentation of TokenSessionStoreInterceptor. Hope the changes with respect to this is creating the problem.
That is, it will block subsequent requests until the first request is complete, and then instead of returning the _invalid.token_ code, it will attempt to display the same response that the original, valid action invocation would have displayed if no multiple requests were submitted in the first place.
If double submission took place then i'm getting a blank page.

Similar Questions
+1 vote

We are in the beginning of the migration to struts2 and it seems like there will be some period when both frameworks will be active at the same time..the only problem now is accessing the session beans managed by struts2 in struts1 and vice-versa form beans from strut1 mapped in struts2 . Half of the jsp would use struts1 tags and other half struts2 tags. So there should be beans instantiated in both frameworks.

Probably struts2 bean can be injected to struts1 action with struts1 form still accessible as execute() argument, but what about other way? accessing struts1 form bean (not just data, but managed bean) in struts2 execute() ?

+1 vote

Just after updating struts to 2.3.15.2, all of ours applications stop working. Some of ours applications uses struts-convention-plugin, so only url can be used to access action's methods.

We are using a lot of url with "!input" methods, especially to manage form input and form validation.

"S2-019 - Dynamic Method Invocation disabled by default", seems to be a big security issue. So, is it safe to re-enable back DMI to true ? If not, how is it possible to not use DMI ?

+1 vote

Will it restrict the information being stored at the browser cache.

+3 votes

I would like to integrate struts2 in an CRUD application , JDBC, Apache Tomcat, Netbeans (or eclipse) but without Hibernate , nor EJB, nor GlassFish.
Hibernate is more complex than the problem it tries to solve. Could you have any integration example please ?

+2 votes

Anyone have tried struts2 on springboot? can we run it on spring boot? or anyone tested it?

...