Image 在struts中显示来自formbean的图像

Image 在struts中显示来自formbean的图像,image,forms,struts,javabeans,Image,Forms,Struts,Javabeans,我的表单bean中有一个string属性,它包含图像的URL(来自web)。 如何在jsp图像上显示此图像 有人能建议使用哪个标签吗。如果您使用的是Struts 1,那么您只需在成功jsp页面中使用以下内容即可: <bean:parameter id="imagePath" name="beanPropertyForImagePath" /> <img src="${imagePath}" width="20" height="20" alt="" />

我的表单bean中有一个string属性,它包含图像的URL(来自web)。 如何在jsp图像上显示此图像


有人能建议使用哪个标签吗。

如果您使用的是Struts 1,那么您只需在成功jsp页面中使用以下内容即可:

    <bean:parameter id="imagePath" name="beanPropertyForImagePath" />
    <img src="${imagePath}" width="20" height="20" alt="" />