Sponsored Content
Top Forums Web Development Problem with image display stored outside webserver in Unix? Post 302366674 by nsurendiran on Friday 30th of October 2009 05:31:50 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
smcwebserver(1M)                                          System Administration Commands                                          smcwebserver(1M)

NAME
smcwebserver - manage the server for the Sun Web Console SYNOPSIS
/usr/sbin/smcwebserver subcommand options DESCRIPTION
The smcwebserver utility manages the Sun Web Console server. Sun Web Console is a browser-based interface that performs systems management. System administrators can manage systems, devices and services from the console. When the console webserver is running, you can view the console by opening a browser and pointing to: https://host:6789 host is the machine where the console has been installed and the console server is running. SUBCOMMANDS
The following subcommands are supported: disable Disable automatic start or stop during system boot or shutdown. Until the administrator reruns the script with the smcweb- server enable subcommand the webserver can be started/stopped only when the administrator executes the script manually using the following command: # /usr/sbin/smcwebserver [start | stop] enable Enable the webserver to startup automatically during subsequent system boot and gracefully stop during system shutdown. restart Stop and subsequently start the console webserver. The format of the restart subcommand is: restart [-U username] start Start the console webserver. The format of the start subcommand is: start [-U username] stop Stop the console webserver. status Display status of the console webserver. The format of the status subcommand is: status [-p] OPTIONS
The following options are supported: -U username | --username usernamThe user identity to run the server as. Once the server has successfuly started under the specified iden- tity, all subsequent starts will automatically be done under that identity until you change it via this option, or by changing the com.sun.web.console.user configuration property via the smreg(1M) command. The default is to run the server under the "noaccess" identity. -p | --parseable Display non-localized output suitable for programmatic parsing. If the server is running, the output will be: running=yes If the server is not running, the output will be: running=no -h | --help | -? Display the usage statement. -V | --version Display console version information. EXAMPLES
Example 1: Displaying the Usage Statement The following command displays the smcwebserver usage statement: % smcwebserver --help Example 2: Determining if the Server is Running The following shell command will start the server if it is not already running. ans=`smcwebserver -p | grep running | cut -d"=" -f2` if [ "$ans" = "no" ]; then smcwebserver start fi ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of smcwebserver: JAVA_HOME If you do not specify this environment variable, your PATH is searched for a suitable java. Otherwise, depending on the OS, the follow- ing default locations are used: Solaris: /usr/j2se Linux: /usr/java/j2sdk1.4* EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWmcon | +-----------------------------+-----------------------------+ SEE ALSO
smreg(1M), attributes(5), environ(5) SunOS 5.10 27 May 2004 smcwebserver(1M)
All times are GMT -4. The time now is 11:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy