top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Actions now require INPUT result after installing struts2-spring plugin

0 votes
511 views

I've recently installed the struts2-spring plugin and everything seems to be working as expected from the Spring perspective; however, Struts actions now require an "input" result to be defined when there was not one before.

I have no idea why this is the case, but I would rather not go through my many actions defining dummy input results when they're not being used.

What I've verified:

  • Spring context is being started up
  • If there is an "input" result to the action, @Autowire is correctly autowiring the Spring beans into non-spring Actions.
    What I think is the next clue, but I'm not sure why or where to go from here:

03:34:37,651 DEBUG
[org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor] (http--0.0.0.0-8443-5) Validating //ftli with method execute.

^^ Is this line saying that the Action is being validated and then it's forwarding to "input" afterward?

Example Action where this fails:

${file}

I appreciate any suggestions or direction from here.

posted Jul 17, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Without further info it's difficult to help. Sounds like validation or type conversion is failing.

Unfortunately, I don't really have much more information to go on. What other information might be helpful to debug this? This is Struts 2.3.15 and Spring 3.2.3

1 Answer

0 votes

Just the things noted in this document:

http://struts.apache.org/release/2.0.x/docs/spring-plugin.html

and you know what, that's the evil of google, I just noticed (while googling from home) that this is the appropriate doc:

http://struts.apache.org/release/2.3.x/docs/spring-plugin.html

I'm assuming this is my problem.

answer Jul 18, 2013 by anonymous
Similar Questions
+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?

+1 vote

I have a requirement to use Struts 2.x framework for new modules in the existing web application which is currently running on Struts 1.x

I would like to have both configuration separately and I don't wish to migrate or touch any of existing source files.

Could you please provide me any sample application or user guide or any related information for my requirement? Appreciate your kind help on this.

+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() ?

...