Hi, I am newbie to Struts 2. I am trying to refresh a part of my page without submitting the whole page, so I am trying to use ajax theme. is it possible to refresh the contents in the div? with the settings below, it always replaces the intial contents with the result JSP of the ajax action. I don't want to have two jsps, is it possible to put my contents in one file and have the relevent part refreshed when the event occurs?
Here is part of my jsp: <head> <s:head theme=*"ajax"* /> </head> <script> *function* company_details() { dojo.event.topic.*publish*("company_detail"); } </script> <body> <s:select name=*"company.companyNumber"* list=*"companys"* listKey=* "companyNumber"* listValue=*"companyName" *onchange=*"javascript:company_details();return false;" *emptyOption=*"true"*/> <s:url id=*"cpsdLink"* action=*"companyDetails"* /> <s:div showLoadingText=*"true"* id=*"details1"* href=*"%{cpsdLink}"* theme=* "ajax"* listenTopics=*"company_detail"* errorText=*"There is error fetching the ajax data"* refreshOnShow=*"true"*cssStyle=*"color:red;"* showErrorTransportText=*"true"*> <s:text name=*"Company Address :"*></s:text><s:property value=* "companyAddress"*/> </s:div> </body> Here is struts.xml <action name=*"companyDetails"* method=*"companyDetails"* class=* "bms.cpim.action.CompanyAction"*> <result>/resources/companyDetails.jsp</result> </action> Appreciate your help. -- Thanks, SB