This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
wood burning stoves
 
subject: Struts form bean loading using ajax
 
Similar Threads
link from JQuery is not working
Replacing one DIV with another
skip validation
Struts2_Ajax tags not working
Help me... Pls