on 07-20-2005 10:36 PM
I am trying to access the image from jspdynpage. I placed image at dist/images folder of my EP project. I export the par to the server. I used the src path for the img element is "images/demo1.jpg". It is displaying in my jsp page. Help is appreciated. I have another quesiton is that can I place all images in one of the directory. From jspDynpage can we access these images or not?
-Sudheer.
Sudheer,
You could do the following.
<% String img = componentRequest.getWebResourcePath() + "/images/demo1.jpg"; %>
<img border="0" src=<%=img%> width="50" height="50">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudheer,
Yes you can place all your images in one folder and you can acess those images.
If the images are in same project then you just need to use the path as Prakash specified.
Otherwise you can put all the images in a folder in the server or in KM repository.
Regards
gEorgE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakash/George,
I appreciate your responses. My question is I want to access images from my JspDynPage page from my test/images directory(the exact location is /usr/sap/test/images). Is it possible? I provided the exact path for img element of src attribute. it didn't work. Welcome for your Answers.
-Sudheer.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.