File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts2 - execAndWait Interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 - execAndWait Interceptor" Watch "Struts2 - execAndWait Interceptor" New topic
Author

Struts2 - execAndWait Interceptor

sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Hi folks,

After submitting a form with values, it goes fine to the wait result but in the action class i am getting null values to the form parameters.

Any suggessions,

Thanks in advance.
ram.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Provide more details, Let us know what and how you are doing?


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
In the above code, I am getting null values for the salary and name.

Can you please help me with that?

Ram.

sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Hi I did some research and came to know that, while using execAndWait interceptor the session will be lost. So the action class must implement the SessionAware.

I tried this one but seems to be not working for me.

Any Suggessions Ranchers.

Thanks in advance.
Ram.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Here you are configured executeAndWait interceptor explicitly so it's not going execute your default interceptor that's why your properties not available in your action. And add completeStack reference.

sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Thanks Mohana Rao. Its working.


Praveen.
sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
thanks
rajjavaboy singh
Greenhorn

Joined: Aug 14, 2014
Posts: 1
<meta http-equiv="refresh" content="5;url=<s:url includeParams="all" />"/> what is the meaning of s:url includeParams="all" here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 - execAndWait Interceptor