structs问题111111

来源:百度知道 编辑:UC知道 时间:2024/05/16 00:08:12
<td colspan="2" height="42" background="image/layout/topTwo.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td>  <a href="index.do">首页</a></td>
<td><a href="taxis.do">销售排行</a></td>
<td><a href="new_merchandise.do">新品上架</a></td>
<td><a href="special_offer.do">特价商品</a></td>
<td><a href="see_order_for_goods.do">查看订单</a></td>
<td><a href="shopping_cart.do">购 物 车</a></td>
<td><a href="update_data.do">修改资料</a> </td>
<td><a href="#" onclick="this.style.behavior=

XX.do是struts框架所要求进入action的方式.至于XX.do的转向问题是在你的项目的struts-config.xml配置文件中配的.到达action后,然后你就可以进行你想要的操作.

去找struts-config.xml文件
这里面有类似于如下的代码:

<action
path="/IFR001001"
type="…….action.IFR001001Action"
name="IFR001001Form"
scope="request"
validate="true"
parameter="Submit"
input="/pages/IFR001001.jsp">
<forward name="add" path="/pages/IFR001001.jsp" redirect="true"/>
<forward name="manage" path="/pages/IFR001002.jsp"/>
</action>

这些代码规定了.do的方向 .前面的名字对应path值
name 告诉这个input中的页面所对应的javabean的名字
forward中的信息规定了接收到一个信息name后页面跳到path对应的页面中去

.do这个东西你去查web.xml。
前面的taxis去查struts-config.xml。

你可以改后缀,把web.xml里的*.do改成*.asp都可以,这样在页面上就得通过