Struts2 jQuery plugin - submit button

后端 未结 2 1120
误落风尘
误落风尘 2021-01-29 08:31

I have Struts2 jQuery plugin submit button, when click the button its not firing the action class as struts submit button. I need to keep the same page after click the button.Pl

2条回答
  •  野性不改
    2021-01-29 08:46

    You should include tag in the body of the . This tag links JQuery and stylesheet on the page and other initial things, without it Ajax call has not made and as a result page refreshes. See examples of submitting tag SubmitTag:

    <%@ taglib prefix="s" uri="/struts-tags"%>
    <%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
    
      
        
      
      
        
          
          
        
      
    
    

提交回复
热议问题