我的action找不到页面
大家帮忙看看 哪有问题JSP<%
String path = request.getContextPath();
%>
<BODY>
<jsp:include page="/CommonStyle/KJ_list_h.jsp?param=导航名>>板块名" flush="true"></jsp:include>
<!-- 操作按钮------------------------------------------------------------------------------------begin -->
<table width="100%" border=0 cellPadding=5 cellSpacing=0 class="showtable">
<tr>
<td>
<input type="button" value="返回" name="new" class="bt0" onClick="">
<input type="button" value="查询" name="new" class="bt0"
onClick="location.href='<%=path%>/SysMaintain/CodeMaintain/aflxAct_list.action'">
</td>
</tr>
</table>
<!-- 列表内容------------------------------------------------------------------------------------begin -->
<TABLE border=1 cellPadding=4 cellSpacing=0 rules=all id=GridViewAll><!-- 不可更改 -->
<TR bgcolor="#F8E770" >
<TH nowrap width="30" >序号</TH>
<TH nowrap >代码</TH>
<TH nowrap >名称</TH>
<TH nowrap >拼音简码</TH>
<TH nowrap >五笔简码</TH>
<TH nowrap >是否可用</TH>
<s:iterator value="#request.aflx_list" id="aflx" status="aflx1">
<tr>
<td><s:property value="%{#aflx1.getIndex()+1}"/></td>
<td><s:property value="#aflx.code"/></td>
<td><s:property value="#aflx.name"/></td>
<td><s:property value="#aflx.pyjm"/></td>
<td><s:property value="#aflx.wbjm"/></td>
<td><s:property value="#aflx.used"/></td>
</tr>
</s:iterator>
</TABLE>
ACTION@Scope("prototype")
@Controller("sysMaintain.aflx_Act")
public class Aflx_Action extends ActionSupport{
/**
*
*/
private static final long serialVersionUID = 0L;
private static final Logger log = LoggerFactory.getLogger(Aflx_Action.class);
private List<FhTCodeAflx> list;
public List<FhTCodeAflx> getList() {
return list;
} public void setList(List<FhTCodeAflx> list) {
this.list = list;
}
@SuppressWarnings("unchecked")
public String list() throws Exception{
list = new ArrayList<FhTCodeAflx>();
list = aflx_Service.findAll();
Map<String, List<FhTCodeAflx>> request = (Map)ActionContext.getContext().get("request");
request.put("aflx_list", list);
return "list";
}
@Autowired
private Aflx_Service aflx_Service;
}
<action name="aflxAct_*" method="{1}" class="sysMaintain.aflx_Act">
<result name="list">/SysMaintain/CodeMaintain/aflx_list.jsp</result>
</action>
点击JSP页面的“查询” 显示 找不到页面
不知道怎么回事
大家帮忙看看 哪有问题JSP<%
String path = request.getContextPath();
%>
<BODY>
<jsp:include page="/CommonStyle/KJ_list_h.jsp?param=导航名>>板块名" flush="true"></jsp:include>
<!-- 操作按钮------------------------------------------------------------------------------------begin -->
<table width="100%" border=0 cellPadding=5 cellSpacing=0 class="showtable">
<tr>
<td>
<input type="button" value="返回" name="new" class="bt0" onClick="">
<input type="button" value="查询" name="new" class="bt0"
onClick="location.href='<%=path%>/SysMaintain/CodeMaintain/aflxAct_list.action'">
</td>
</tr>
</table>
<!-- 列表内容------------------------------------------------------------------------------------begin -->
<TABLE border=1 cellPadding=4 cellSpacing=0 rules=all id=GridViewAll><!-- 不可更改 -->
<TR bgcolor="#F8E770" >
<TH nowrap width="30" >序号</TH>
<TH nowrap >代码</TH>
<TH nowrap >名称</TH>
<TH nowrap >拼音简码</TH>
<TH nowrap >五笔简码</TH>
<TH nowrap >是否可用</TH>
<s:iterator value="#request.aflx_list" id="aflx" status="aflx1">
<tr>
<td><s:property value="%{#aflx1.getIndex()+1}"/></td>
<td><s:property value="#aflx.code"/></td>
<td><s:property value="#aflx.name"/></td>
<td><s:property value="#aflx.pyjm"/></td>
<td><s:property value="#aflx.wbjm"/></td>
<td><s:property value="#aflx.used"/></td>
</tr>
</s:iterator>
</TABLE>
ACTION@Scope("prototype")
@Controller("sysMaintain.aflx_Act")
public class Aflx_Action extends ActionSupport{
/**
*
*/
private static final long serialVersionUID = 0L;
private static final Logger log = LoggerFactory.getLogger(Aflx_Action.class);
private List<FhTCodeAflx> list;
public List<FhTCodeAflx> getList() {
return list;
} public void setList(List<FhTCodeAflx> list) {
this.list = list;
}
@SuppressWarnings("unchecked")
public String list() throws Exception{
list = new ArrayList<FhTCodeAflx>();
list = aflx_Service.findAll();
Map<String, List<FhTCodeAflx>> request = (Map)ActionContext.getContext().get("request");
request.put("aflx_list", list);
return "list";
}
@Autowired
private Aflx_Service aflx_Service;
}
<action name="aflxAct_*" method="{1}" class="sysMaintain.aflx_Act">
<result name="list">/SysMaintain/CodeMaintain/aflx_list.jsp</result>
</action>
点击JSP页面的“查询” 显示 找不到页面
不知道怎么回事
解决方案 »
- weblogic10,sessionid丢失问题
- 关于Struts2中的namespace的问题
- JSP插入页面问题
- 急请在eclipse下向list列表框中添加数据的问题在线等
- 大家来帮我找茬--关于我的SSH项目(无法跳转),部分代码如下
- 求助:在xml文件中,配置管理manager-bean的属性的验证规则?
- 关于jsp和JBuilder10
- 一个奇怪的问题,请各位老大帮忙看看是什么错
- (急急急)jsp如何使用javaBean?
- 语句: select * from table where name=string 怎样判断一条记录都没找到的情况。
- 我做的论坛访问速度很慢,jSP+bean+struts做的?
- json问题
红字的namespace?
路径不对吧,看你的struts配置文件里面的namespace选项是/SysMaintain/CodeMaintain么