This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing response thro' Action class and not thro' JSP.  RSS feed

 
Varun Narang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am in a little trouble regarding response writing.
How can we write response thro' Action class and still keep the control to the same page and not forward it to any other JSP(view). One method that I have tried out is by return null mapping. But I get a big fat IlligalStateException. Can anyone help me with that. I am using Tomcat v5.9 and Struts 1.2
Thanks in Advance.
Regards,
Varun Narang.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just forward to the same page again. To the user this will appear as though you just stayed on the same page.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!