关于struts的问题(在线等待,如果你觉的分不够我可以继续在开贴给你分) 你想用什么标签,想实现什么功能说清楚一点,中间那块取form的可以用<jsp:usebean 来实现, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我说的是STRUTS标签!不是JSP自己的标签,我想这段代码可以用一个和两个STRUTS标签解决吧!不想在JSP中用太多的代码! 用bean:write 那个标签就可以输出path <logic:equal property = "filePath" value = ""><center><img src='"images/"+ "<bean:write property="filePath"/>" '></center></logic:equal>最好在form中给filepath设值的时候将images/加进去,这样中间会更简洁一点<img src="<bean:write property="filePath"/>">中间的引号怎么加我忘了,自己试试看吧,呵呵 按照你的写编译不过去呀!你在html文本里搞个加号给我那能用码? <logic:notEqual name="primarytopic" property="filePath" value=""><center><img src='images/<bean:write name="primarytopic" property="filePath"/>'></center></logic:notEqual>这么写就对了! <center><img src="<bean:write name="uploadActionForm " property="filePath"/>"></center>前提是你的action使用的是uploadActionForm 那个加号就别加了!name代表bean的名字,property代表bean的属性! AXIS2 如何获取客户端的handler,以便操作soap hibernateTemplate的问题???? struts2如何获得请求的来源地址 openEjb连接问题 spring+struts1.2+jdbc的问题? 餐饮连锁管理系统的问题,怎么实现总部对门店的连锁管理,急急!!! 很奇怪的一个hibernate问题 J2EE中的Servlet和Jsp是开源的吗? 打印图像时出现outofmemoryerror,帮看一下程序 北京利博赛兄弟 一个巨困惑的SQLException Java反编译问题~~~盼高手指点
<center><img src='"images/"+ "<bean:write property="filePath"/>" '></center>
</logic:equal>最好在form中给filepath设值的时候将images/加进去,这样中间会更简洁一点
<img src="<bean:write property="filePath"/>">
中间的引号怎么加我忘了,自己试试看吧,呵呵
<center><img src='images/<bean:write name="primarytopic" property="filePath"/>'></center>
</logic:notEqual>
这么写就对了!
前提是你的action使用的是uploadActionForm