on 04-04-2006 10:41 AM
Hi all,
I created a Jsp page and I stored my images in the dist-->images folder and by using the following code
<% String image = componentRequest.getWebResourcePath() + "/images/image.gif"; %>
<img src="<%=image%>">
I try to display the images in that page.
Yes I am successful in displaying one image.
But my problem here is to display more than two images which are present in that page.
Can any body help me regarding this.
Your help will be highly rewarded with points.
Regards,
Ramana.
Hi Ramana,
You can give more than one img tag in a JSP page.
Try this..
<% String image = componentRequest.getWebResourcePath() + "/images/image.gif"; %>
<img src="<%=image%>">
<% String image2 = componentRequest.getWebResourcePath() + "/images/image2.gif"; %>
<img src="<%=image2%>">
Also, you can set the height, width and border for an image as
<img src="<%=image%>" WIDTH="300" HEIGHT="300" ALIGN="BOTTOM" BORDER="0">
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramana,
Set the image border to 1 and check atleast your borders get displayed. If it displays the border, then the problem may be with your image path.
Before deploying for each modification in your JSP, check the preview of the page using "Preview" tab.
Are you getting any exception?
Check your whole JSP page once again (check all the scriplets).
Regards,
Uma
Message was edited by: Uma Maheswari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.