This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts form bean loading using ajax

rudresh kumar
Ranch Hand
Posts: 83
  • 0
  • 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>
<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
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic