Search code examples
struts2-jquery

struts jquery anchor tag not showing


Struts jquery anchor tag is not showing in the form

<head>
<sj:head jqueryui="true" jquerytheme="redmond" />

<!--  
<link rel="stylesheet" href="css/jquery-ui.css"> -->
<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>

</head>
<s:form id="form">
........................
..........................


<s:url var="ajaxReport" value="/report.action"/>
<sj:a id="sumbit" formIds="form" buttonText="Sumbit" indicator="indicator"  
       button="true" buttonIcon="ui-icon-refresh" > Submit</sj:a>

</s:form>

In this only the submit text is displayed. Any idea what might be wrong here?


Solution

  • The <sj:head /> tag already includes the jQuery libraries. Including them again usually causes problems, and the JS console may provide a clue.