Hey all,
I'm not sure if anyone has run into this issue but if anyone can help would gladly appreciate. I am using Struts2 and prototype for this web application that I am developing. On the page I have some div's that get populated with html fragments from a
jsp page after an AjaxRequest call. The html fragment that is returned to populate the div is just an html form asking a question. After the user selects submit an action is called where there is some validation done on the requests. If there is an error however when the page is returned I am only seeing the one question with html form fragment. I don't see the other questions. so I guess my question is is there a way to just refresh the div and not return a new page with just the one question. Can the struts.xml file call a javascript/AjaxRequest function so that only the div gets refreshed and not the whole page? Let me know if you need me to provide more information. Any help again would be appreciated. Thanks.