Tahnks Dave........ I am using the sx: div fucntionalities. in this how can we disable/enable the submit button.? Giving my JSP with this, if you can say how and where to do these things, it will be very helpful.
<%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> <% String relPath = request.getContextPath(); %> <html:html locale="true"> <head> <sx:head parseContent="true"/> <s:head theme="xhtml" /> <title>Add Demand</title> <link href="<%=relPath%>/css/mystyle.css" rel="stylesheet" type="text/css" /> <link href="<%=relPath%>/css/style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> html,body { height: 100%; } </style> <script type="text/javascript" src="<%=relPath%>/js/addDemand.js"></script> <script> function show_details() { //alert('in show details11........'); dojo.event.topic.publish("show_detail"); } </script> </head> <body> <s:form action="AddDemand" onsubmit="return validate(this);" theme="simple" id="frmDemand"> <s:url id="d_url" action="chkDemandCompany" /> <s:hidden name="sessionVal"></s:hidden> <jsp:include page="date.jsp" /> <div> <p class="breadcrump" align="left"><s:text name="brdcrm.dmd"></s:text> </p> </div> <br> <div class="container1"> <div class="header" align="left"><s:text name="headin.dmd"></s:text></div> <table width="100%" align="left"> <tr></tr> <tr></tr> <tr> <td width ="25%"><s:text name="cmpNamelbl.dmd" /><s:text name="*"></s:text></td> <td width ="40%"><s:textfield name="demandCompanyName" required="true" size="35" onchange="show_details()" theme="simple"></s:textfield></td> <td><sx:div preload="false" id="show_detail" href="%{#d_url}" listenTopics="show_detail" formId="frmDemand" theme="simple"> </sx:div> </td> </tr> <tr></tr> <tr> <td><s:text name="cmpTypelbl.dmd" /><s:text name="*"></s:text></td> <td><s:select label="Company Type" list="{'GDS','IDS'}" name="demandCompanyType" required="true" /></td> </tr> <tr></tr> <tr> <td><s:text name="urlLbl.dmd" /><s:text name="*"></s:text></td> <td><s:textfield name="demandCompanyUrl" required="true" size="35"></s:textfield></td> </tr> <tr></tr> <tr> <td><s:text name="msgTypelbl.dmd" /><s:text name="*"></s:text></td> <td><s:select list="{'OTA','XML 4'}" name="demandMessageType" required="true" /></td> </tr> <tr> <td><br> <br> </td> </tr> <tr> <td><input type="submit" value="Save" name="Save"> <input type="reset" value="Cancel" name="Cancel" onclick="cancel()"> </td> </tr> </table> </div> <jsp:include page="footer.jsp" /> </s:form> </body> </html:html> -- View this message in context: http://www.nabble.com/Struts-2.1.6-with-ajax--and-progressing-image-tp23868465p23869662.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org