Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

form to jsp request object is lost

 
Dimple Patra
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

I need help. I am bigginer in Struts.
I have flow like from form1 to action1 then jsp1. but incase form1 has some error it goes to ActionErrors class. here if I set any request object in form1 and try to see in jsp1 then I dont see that.

Please help.

Dimple
 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dimple,
what is it that you are setting in the request upon error. Did you over ride validate method in the ActionForm?
 
Dimple Patra
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem is resolved by putting value into session instead of request object.

Thanks
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!