--- Laurie Harper <[EMAIL PROTECTED]> wrote: > vijay wrote: > > Hello, > > > > I am trying to use the html:img tag to display an > > image. The image's filename(eg, photo1.jpg) is > stored > > in the database and the actual images are stored > in > > the > > "ContextPath/out/" folder. > > > > I have set the value of the image_path in the form > > bean but I am not able to display the image using > the > > various param* attributes of html:img. > > Can you provide a bit more information? For example, > what have you tried > putting in your JSP, what does the resulting HTML > look like, what errors > are you getting? It's difficult to know what you're > doing wrong without > knowing what you've tried.
I actually have a jsp page where I am displaying the "Product details", like the product name, its cost and various other information about the product. Along with it, I also have to display the picture of the product. I am passing the product_id in the query string. From this, I get all the information about the product and I am also able to display them except the picture. I am storing the picture's filename (jakarta-power.gif) rather than the picture itself in the database. So I get a String from the form bean. public String getPictureName() public void setPictureName(String) I just need to append the filename that I get to the src attribute of html:img. <html:img src="/out/pictureNameSHOULD_COME_HERE" /> I am not able to get this using the various param* attributes in html:img. I am using the <bean:write> to display the product details in the jsp page. regards, vijay. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]