<html:link action="/entersubject" paramId="_field" paramName="field">
......
</html:link>
paramId的值看你的需要。
action="/entersubject.do" 应该是错的,<html:link />转化为<a />后会自动将链接加上context prefix和.do的。
......
</html:link>
paramId的值看你的需要。
action="/entersubject.do" 应该是错的,<html:link />转化为<a />后会自动将链接加上context prefix和.do的。
<html:link action="/entersubject" paramId="field" paramName="field" paramProperty="name">
<bean:write name="field" property="name" />
</html:link>Action里:String fieldName = (String)request.getParameter( "field" );其中field是javabean,name是field的一个字段,tomcat提示在任何scope内找不到field。
执行这个request的时候field已经释放了,但field也不能放在session中,它也是从logic:iterate中取出的,这如何处理?再次谢谢
<logic:iterate id="logshow" name="Log" type="my.simbas.blog.bean.logContext"
indexId="index">
<c:if test="${index<5}">
<div class="entry" id="a000033">
<h2>
<html:link action="blogshow" paramName="logshow" paramProperty="log_ID" paramId="logID">
${logshow.log_Title}
</html:link>
</h2>
<p>
${logshow.log_Intro}
</p>
</div>
</c:if>
</logic:iterate>
我的BEAN也是放在ArrayList和request中的,没有问题
你好,可否把你的Action部分代码也贴出来,<logic:iterate id="logshow" name="Log" type="my.simbas.blog.bean.logContext" indexId="index">中“Log”是不是放在request中传过来的,logshow是本页面范围内标识Log集合中的Bean?