Problem with image display stored outside webserver in Unix?


 
Thread Tools Search this Thread
Top Forums Web Development Problem with image display stored outside webserver in Unix?
# 1  
Old 10-30-2009
Problem with image display stored outside webserver in Unix?

Hi All,

I have an image stored in my solaris server path /usr/Apps/TEMP directory.
I have created this image at runtime.
I have my web application dployed in my webserver path /usr/Apps/tomcat/jakarta-tomcat-5.5.7/webapps/DispReports

From a jsp file available under my DispReports folder, I need to access the image stored in /usr/Apps/TEMP directory.

But when I give the path in src attribute like below, I am not getting the image.
Code:
<img src="/usr/Apps/TEMP/Report1.png" border="0" usemap="#chart"></img>

I then understand that, when I give the path like this, its trying to search for the folder inside the DispReports/jsp/ folder. Its not coming out of the webserver path.

Kindly help me in this regards.

Thanks
suren
# 2  
Old 12-27-2009
Could it have to do with file permissioning? This is actually a relatively common issue and is usually solved by broadening access rights or migrating the files to a location which has such rights already. Also ensure that the case of the folder name spelling is correct.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unix path stored as a column in table

The db2 table stores the unix path as below PARM VALUE RootPath $SRootDir Target $SRootDir/target $SRootDir is set in the env variable as /home/test/root In the shell script i read the table value and store it in a variable pth=db2 -x "select VALUE from... (2 Replies)
Discussion started by: 2jnags
2 Replies

2. Shell Programming and Scripting

using sed command to display contents where line numbers are stored in variables

if i want to display the contents of a file between say line number 3 and 10 then i use the following command sed -n '3,10p' filename if this 3 was contained in x and 10 was contained in y then how wud this command modified? sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Discussion started by: arindamlive
2 Replies

3. Programming

How to display a notification with image? - Libnotify

Hi all, this is the code: #include <libnotify/notify.h> #include <stdio.h> #include <unistd.h> int main() { NotifyNotification *n; notify_init("Basics"); n = notify_notification_new ("Summary", "\nThis is the message that we want to... (0 Replies)
Discussion started by: hakermania
0 Replies

4. UNIX for Dummies Questions & Answers

Calling stored procedure from unix

Hi, My stored procedure returns a value. How to retrieve the value and display in unix. Stored procedure CREATE OR REPLACE PROCEDURE gohan(num INT) IS BEGIN DBMS_OUTPUT.PUT_LINE('My lucky number is ' || num); END; Unix Scripting i used sqlplus -s... (7 Replies)
Discussion started by: gohan3376
7 Replies

5. UNIX for Dummies Questions & Answers

Want to delete a directory on a Unix-Webserver

Hi folks, I want to delete a folder on my webserver via ftp, but the server said "Operation not permitted". So I want to delete the folder via ssh - not successfull. This is what I have done and what the server said: --------------------------- rmdir views rmdir: views: Directory not... (12 Replies)
Discussion started by: Lkwjoe
12 Replies

6. Shell Programming and Scripting

Bourne Shell: Clean Display of stored procedure's output

Environment: Sun UNIX Language: Bourne Shell I have the following script and it works fine. Unfortunately, from user's perspective, it looks very messy because the user is able to see the output of the process caused by the print command. Is there a better way to overcome it? Here's the... (10 Replies)
Discussion started by: totziens
10 Replies

7. UNIX for Advanced & Expert Users

Executing Stored Proc from unix prompt.

Hi All, I want to run/execute a stored procedure (sybase) from unix command prompt not by login in isql utility which is provided my Sybase guys. Is there way ..? Thanks in advance for your help !!! Regards, Arvind S. (0 Replies)
Discussion started by: arvindcgi
0 Replies

8. UNIX for Advanced & Expert Users

Unix Stored Procdure

I have 2 stored procedures to be executed. if the sysdate is between 12 am and 6 am i want to run procedure 1 else procedure 2 How do i do it with variables for time in the script. The DB is oracle Thanks (7 Replies)
Discussion started by: kris01752
7 Replies

9. UNIX for Dummies Questions & Answers

Where is my unix id stored in the system?

Hi, I logged in to a Sun unix box. I would like to know where my unix id is stored. So I did a "more /etc/passwd | grep <my unix id> but it did not show up. Where can I find my unix id and what is the command to see it? Thanks in advanced, XZOR (4 Replies)
Discussion started by: XZOR
4 Replies
Login or Register to Ask a Question