Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic