这是我的struts.xml
:
<package name="ajax" extends="json-default" >
<action name="loadcity" method="loadcity" class="roseindia.action.user.RegisterUser" >
<result type="json" />
</action>
</package>
当我打电话loadcity.action
时,我收到以下错误
No result defined for action roseindia.action.user.RegisterUser and result input
这是我的操作方法:
public String loadcity()
{
country=request.getParameter("country");
cityList= dao.loadcity(country);
return ActionSupport.SUCCESS;
}