This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 - execAndWait Interceptor  RSS feed

 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Provide more details, Let us know what and how you are doing?
 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mohana Rao. Its working.


Praveen.
 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
rajjavaboy singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<meta http-equiv="refresh" content="5;url=<s:url includeParams="all" />"/> what is the meaning of s:url includeParams="all" here.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!