Struts 标签怎样显示图片 <html:img src="../images/update.gif" border="0" />在这里images目录是跟WEB-INF同级的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 struts里面用图片没有多大的意义。 我要的是actionForm里的值比如在form里面有String imgPath;public void setImgPath(String path){}pubic String getImgPath(){}我怎样在structs <html:img > 里使用imgPath 你看这样行不?在你的Action中httpServletRequest.setAttribute("actionForm",actionForm);在JSP叶面中<%actionForm curractionForm=null;curractionForm=(actionForm)request.getsetAttribute("actionForm");%><html:img src="../images/<%=curractionForm.getImgPath()%>" border="0" /> 特殊字符乱码问题,求指点! 请教哪有开源的中文的CMS(急) 框架问题(访问路径出错) 中文错误(struts1.2+hibernate3.1) 容器的一些问题arraylist和linkedlist,vector之间的区别 请问哪里有EMF下载啊 hibernate继承映射的问题 Struts select标签 在jsp或struts的应运中运行本地可执行程序?? Tomcat安装问题 高分求解决SQL连接JDBC 后的显示内容简单问题 哪里能下载com.inet.tds.TdsDataSource?(分用完了,以后补。)
比如在form里面有
String imgPath;
public void setImgPath(String path){}
pubic String getImgPath(){}我怎样在structs <html:img > 里使用imgPath
httpServletRequest.setAttribute("actionForm",actionForm);
在JSP叶面中
<%
actionForm curractionForm=null;
curractionForm=(actionForm)request.getsetAttribute("actionForm");
%>
<html:img src="../images/<%=curractionForm.getImgPath()%>" border="0" />