I am getting an error of No result defined for action for result input. It was not coming till the time I used Struts2 autocomplete.
This is my autocomplete code :
<s:form class="form-horizontal" style="margin:0 auto" role="form" theme="simple" action="Reports_open_cases">
<h4>Open Cases</h4>
..some controls here
<div class="form-group">
<div class="col-xs-12 col-sm-4 col-md-4"></div>
<div class="col-xs-12 col-sm-4 col-md-4" >
<s:url id="advURL" action="xyz_action"/>
<sj:select
id="abc"
name="abc" selectBoxIcon="true"
href="%{advURL}"
list="list_abc"
listValue="name"
listKey="Id "
autocomplete="true"
cssClass="form-control"
/>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 pull-right" style="text-align:right"><br>
<div class="modal-footer" style="margin:0px; padding:10px 0px 10px">
<button class="btn btn-success" type="submit">Generate</button>
<button class="btn btn-default" type="Reset">Reset</button>
</div>
</div>
</s:form>
my struts.xml
(Action):
<constant name="struts.devMode" value="true" />
<constant name="struts.multipart.maxSize" value="20000000" />
<package name="login" extends="struts-default,json-default" namespace="/">
<interceptors>
<interceptor class="vercelon.actions.LoginInterceptor" name="loginInterceptor">
</interceptor>
<interceptor-stack name="loginStack">
<interceptor-ref name="loginInterceptor"/>
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="fileUpload"><param name="maximumSize">10485760</param>
</interceptor-ref>
</interceptor-stack>
</interceptors>
<action name="Reports_open_cases" class="vercelon.actions.Report"
method="Generate_OpenCases">
<result name="success">/CMS/Reports_OpenCases.jsp</result>
<result name="ERROR">/Error.jsp</result>
<result name="input">/CMS/Reports_Menu.jsp</result>
</action>
<action name="xyz_action" class="vercelon.actions.Report" method="loadreports">
<result name="success" type="json"></result>
</action>
Other then replacing the dropdown to the autocomplete, I haven't made any other changes. When I add input to my struts.xml
it doesn't show this error. But the action defined to my form submit doesn't work either.
I don't understand where I need to make changes after adding this autocomplete. Please help.