It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes Struts form bean loading using ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Struts form bean loading using ajax" Watch "Struts form bean loading using ajax" New topic
Author

Struts form bean loading using ajax

rudresh kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 83
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts form bean loading using ajax