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