1,?dispatch=view是参数
2,你说得很对,ActionForm为 forward中所对应的,为空他会自动初始化的,至于初始化成什么样子,我没见过。
2,你说得很对,ActionForm为 forward中所对应的,为空他会自动初始化的,至于初始化成什么样子,我没见过。
解决方案 »
- Lucene 3.X 的IKAnalyzer 3.X 扩展词库的问题
- 急关于压缩文件下载问题。
- struts2中的global-result如何写这情况下
- Java EE群欢迎加入!群号34743467
- java 反射机制类型转换
- Apusic V4.0真的是国产软件的骄傲吗?
- [原创]我采用jsp+javabean+sessionbean+entitybean做的一个实例,希望与大家共享
- 学EJB需要有何基础?
- MEJB附录B,jndi例子无法运行的问题
- itext 合并多个pdf为一个pdf 报错
- 为什么我的实体Bean查询出的结果是重复的?服务器是JBoss3.2.2
- 疑难问题:请问对一个实体BEAN来说,是同一个实例服务于它的“get,set”方法和“ejbFind”方法吗?
<html:link paramId="itemId" paramName="cartItem" paramProperty="item.itemId" page="/shop/viewItem.do">
<bean:write name="cartItem" property="item.itemId" /></html:link></b></td>
<td><bean:write name="cartItem" property="item.productId" /></td>
<td>
<bean:write name="cartItem" property="item.attribute1" />
<bean:write name="cartItem" property="item.attribute2" />
<bean:write name="cartItem" property="item.attribute3" />
<bean:write name="cartItem" property="item.attribute4" />
<bean:write name="cartItem" property="item.attribute5" />
<bean:write name="cartItem" property="item.product.name" />
它这里的property="item.itemId"是怎麽回事?html:link中的itemId是如何动态获得的?
哈哈,还在郑州么?
在这个action里面再写forward.当然有可能要在你的Struts_comfigo.xml里写对应的form-bean,看看这样对不对吧!!!
paramName="cartItem"他表示的是一个你传递过来的Bean,paramID代表这个bean属性的标识可以让你的JSP文件在SCRIPT中引用,paramProperty代表的是bean的属性
和直接在struts-config.xml中的<forward中指定 path="/shop/viewItem.do"有区别吗?祈祷的作用是一样的吧?
和直接在struts-config.xml中的<forward中指定 path="/shop/viewItem.do"有区别吗?祈祷的作用是一样的吧?
还有就是我看例子中为什麽有的Form Bean类要继承Serialize类?