你想用什么标签,想实现什么功能说清楚一点,
中间那块取form的可以用<jsp:usebean 来实现,

解决方案 »

  1.   

    我说的是STRUTS标签!不是JSP自己的标签,我想这段代码可以用一个和两个STRUTS标签解决吧!不想在JSP中用太多的代码!
      

  2.   

    用bean:write 那个标签就可以输出path
      

  3.   

    <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"/>">
    中间的引号怎么加我忘了,自己试试看吧,呵呵
      

  4.   

    按照你的写编译不过去呀!你在html文本里搞个加号给我那能用码?
      

  5.   

    <logic:notEqual name="primarytopic" property="filePath" value="">
    <center><img src='images/<bean:write name="primarytopic" property="filePath"/>'></center>
    </logic:notEqual>
    这么写就对了!
      

  6.   

    <center><img src="<bean:write name="uploadActionForm " property="filePath"/>"></center>
    前提是你的action使用的是uploadActionForm
      

  7.   

    那个加号就别加了!name代表bean的名字,property代表bean的属性!