struts从页面跳转到action的方法中不能为private
2012-11-15 14:54
423 查看
前台:
后台:
private,否则不能调整过来。
<script type="text/javascript"> LoadContextStdGuote(); function LoadContextStdGuote(){ var stdCompanyId = document.getElementById("stdCompany.id").value; var mill=(parseInt(Math.random()*10000)).toString(); var url = '<%=contextPath%>/businessStdCompany/CompanyLibStdManageloadContextStdGuoteAction.action?currentTimeSerial='+mill+'&stdCompany.id='+ stdCompanyId; alert(url); $('#contextStdGuote').load(url); } </script>
后台:
public String loadContextStdGuote(){ if(stdCompany!=null && stdCompany.getId()!=null){ Integer stdCompanyId = stdCompany.getId(); List stdCompanyGuoteList = stdCompanyGuoteDAO.findByProperty("stdCompany.id",stdCompanyId); }这里的public 不能为
private,否则不能调整过来。
相关文章推荐
- Struts使用action页面跳转时无法找到方法
- struts ,action,跳转变化页面方法
- struts中Action跳转jsp页面图片.css乱----解决方法
- Struts2.0页面跳转css无效问题的解决方法
- struts中的JSP页面根据action跳转
- Struts1 中实现Action跳转地址栏变化的方法
- struts中action的通过传过来的参数判断跳转的两种方法
- struts2 两个action方法的跳转 struts.xml怎么配置
- Action输出不同视图的方法(根据结果跳转到不同页面)
- 在Struts action中利用.do跳转到另一action传值方法
- 关于用struts所配置的Action默认页面的跳转问题
- 关于struts开发中action跳转找不到页面的问题
- struts form表单提交action处理之后没有跳转页面
- struts1.2中从一个action跳转到另外一个action的方法
- struts1 从action跳转到另一个action的方法
- struts form表单提交action处理之后没有跳转页面
- struts1.2中从一个action跳转到另外一个action的方法
- php页面跳转session cookie丢失,不能登录等问题解决方法
- struts form表单提交action处理之后没有跳转页面
- 注解版struts中,@Result的location直接 跳转Action 错误解决方法及原因