Discussions

Web tier: servlets, JSP, Web frameworks: Fields of a bean as source of an image?

  1. Fields of a bean as source of an image? (2 messages)

    I have a bean named "sb" with fields "height" , "width" and "poetPic".
    can I convert the following jsp tag to struts?
    <img src="<%= sb.getPoetPic() %>" height="<%= sb.getHeight() %>" width="<%= sb.getWidth %>" />
  2. Look at http://struts.apache.org/userGuide/struts-html.html#img

    I think you will find the answer and the answer is yes you can.
  3. I have a bean named "sb" with fields "height" , "width" and "poetPic". can I convert the following jsp tag to struts?<img src="<%= sb.getPoetPic() %>" height="<%= sb.getHeight() %>" width="<%= sb.getWidth %>" />
    'Fields of a bean'? Do you mean 'bean fields'? We have many acres of bean fields in Iowa. We also have many acres of corn fields.