Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts form bean loading using ajax

 
rudresh kumar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,

I am building one application,on sturts and ajax
A web page which has 2 tabs
The html page looks like this
<div id 1>
name
</div>
<div id 2></div>
initally when the page is loaded only div1 is shown, now when user clicks on the tab2, i send a ajax request and get the page filled up with div 2.
now when i save this page in my action class i am persisting to database and i am routing to the same page.
When the page is loaded only Div1 data is shown (name)(as formbean has data) but not div2.
How can i get the div2 data (which user entered) from the formbean. because on click of tab2 again i am calling the new jsp with empty data.
Kindly help me in solving the same
Thanks in advance
Rudresh
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic