A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Image from Database
Hari adya
Greenhorn
Joined: Aug 21, 2009
Posts: 10
posted
Sep 12, 2009 07:34:56
0
in a portal, the empployee's pic is stored under the /build/web/userpic directory
the name of the pic is stored in a MySQL database,
I use a result set to get the name of the pic, and i want to display the employee's image.
like ths
<img src="../../build/web/userpic/<%=rs.getString("picture")%>">
(two directories up)
but the image is not getting displayed
Please help!
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Sep 12, 2009 08:27:28
0
Is it in /build/web/..., or is it in ../../build/web...?
Hari adya
Greenhorn
Joined: Aug 21, 2009
Posts: 10
posted
Sep 12, 2009 08:34:13
0
I solved the problem
regarding your question. the
JSP
page is present in
/web/user/
pic in
/build/web/userpic/
i thought i have to go 2 levels up and then come back to userpic, but now i came to know USERPIC folder in build is a referred runtime i have to give
http://localhost:8084/XXXXXXX/userpic/img.jpg
but not
http://localhost:8084/XXXXXXX/build/web/userpic/img.jpg
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Image from Database
Similar Threads
Retrieve Images from oracle
Designing Page Builder
Loading images with a a dynamic context
Using CSS float for positioning page elements
thumbnail in jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter