商品显示分析:
jpetstore商品的分类情况如下:
1.动物分类 : 鱼,猫,狗等。
2.同类型内部分类:鲨鱼,鲸鱼等。
3.内部编号:1号鲨鱼,DH-号鲨鱼
struts的配置文件中很清晰的显示了这三层分类:
<!-- 1动物分类-->
<action path="/shop/viewCategory" type="org.springframework.samples.jpetstore.web.struts.ViewCategoryAction"
name="emptyForm" scope="session" validate="true" input="/WEB-INF/jsp/struts/index.jsp">
<forward name="success" path="/WEB-INF/jsp/struts/Category.jsp"/>
</action>
<!-- 2同类型内部分类-->
<action path="/shop/viewProduct" type="org.springframework.samples.jpetstore.web.struts.ViewProductAction"
name="emptyForm" scope="session" validate="true" input="/WEB-INF/jsp/struts/index.jsp">
<forward name="success" path="/WEB-INF/jsp/struts/Product.jsp"/>
</action>
<3.内部编号-->
<action path="/shop/viewItem" type="org.springframework.samples.jpetstore.web.struts.ViewItemAction"
name="emptyForm" scope="session" validate="true" input="/WEB-INF/jsp/struts/Product.jsp">
<forward name="success" path="/WEB-INF/jsp/struts/Item.jsp"/>
</action>
博客主要对JPetStore商品显示进行分析,介绍了商品的三层分类,包括动物分类、同类型内部分类和内部编号。同时展示了Struts配置文件中对应这三层分类的配置信息,涉及action的路径、类型、作用域等设置。
1901

被折叠的 条评论
为什么被折叠?



