URGENT!!! how to check whether file exist or not on client side?
hello,
i am building appilication using JSP and javabeans.
Problem is my application is like on server files are there for say colors and their corresponding car image in that color.so when i move my mouse over that particular color ,its corresponding car image is displayed.
now say someone has deleted that corresponding car image file but image of color is there...........
so i have to handle such excpetion.
like if corresponding car image for that color is not there then that color image should also not be displayed.
i dont want to do this checking on server side.
pls help me!!!!!!
You don't have access to the client files. It is a security violation in a normal internet environment. Imagine what people could do to your computer if they could see everything on it.
Similar Messages
-
How to check whether file exist or not?
hello,
i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
please help .
Thank you.Use exists() on a File instance.
-
How to check whether file exist in a folder at the application server
Hi to all experts.
if suppose there is a file at the application server test.txt my requirement if the one more file is created of the same name before overwriting the file a warning message is to displayed to the user that the file already exist .
how to do itHI Mohammed,
use The FM DX_FILE_EXISTENCE_CHECK
or static class CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
For more info
search file in application server
application server
hope it helps you.
Regards! -
How to check one table exist or not in SAP
Hi, Gurus:
How to check one table exist or not in the SAP.
Thanks,Hi,
Query the table DD02L..
Select single * from DD02L where tabname = 'Your table name'
AND TABCLASS = 'TRANSP'. " For transparent tables.
Thanks
Naren -
How to check whether standard report or not
Hi,
can anyone help me how can u check whether the report is standard or not.if not how to genarate.
can u give steps............Hi,
U can See Standrd report In Metadata Repositary under Onfocube,
Query Name start with0 it is contant.
*******Asgin points if usefull***
Cheers
Satya -
How to check synonym vendor1 existed or not?
Hi,
I want to check synonym vendor1(synonym_name) existed or not in the databse.
And also want to create a table_name(with out data).
pls guide me.
Regards,
VenkatHello,
To check the synonym , please consider using one and or both or the disctionarry tables below :
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
Connected as SYS
SQL> desc user_synonyms
Name Type Nullable Default Comments
SYNONYM_NAME VARCHAR2(30) Name of the synonym
TABLE_OWNER VARCHAR2(30) Y Owner of the object referenced by the synonym
TABLE_NAME VARCHAR2(30) Name of the object referenced by the synonym
DB_LINK VARCHAR2(128) Y Database link referenced in a remote synonym
SQL> desc dba_synonyms
Name Type Nullable Default Comments
OWNER VARCHAR2(30) Username of the owner of the synonym
SYNONYM_NAME VARCHAR2(30) Name of the synonym
TABLE_OWNER VARCHAR2(30) Y Owner of the object referenced by the synonym
TABLE_NAME VARCHAR2(30) Name of the object referenced by the synonym
DB_LINK VARCHAR2(128) Y Name of the database link referenced in a remote synonym
SQL> to search of the synonym vendor execute the follwing
SELECT *
FROM user_synonyms
WHERE synonym_name LIKE 'VENDOR%';
SELECT *
FROM dba_synonyms
WHERE synonym_name LIKE 'VENDOR%'for the second question please give more details
Regards,
orawiss -
How to check node value exists or not?
for example
<Hi>1</Hi>
here for Hi value exists or not need to check.SQL> create table MY_XML_TABLE of XMLTYPE
2 /
Table created.
SQL> insert into MY_XML_TABLE values ( XMLTYPE('<FOO><H1>FOO</H1><H2/></FOO>') )
2 /
1 row created.
SQL> commit
2 /
Commit complete.
SQL> set feedback on
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H1' passing OBJECT_VALUE as "x")
4 /
SYS_NC_ROWINFO$
<FOO>
<H1>FOO</H1>
<H2/>
</FOO>
1 row selected.
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H1/text()' passing OBJECT_VALUE as "x")
4 /
SYS_NC_ROWINFO$
<FOO>
<H1>FOO</H1>
<H2/>
</FOO>
1 row selected.
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H2' passing OBJECT_VALUE as "x")
4 /
SYS_NC_ROWINFO$
<FOO>
<H1>FOO</H1>
<H2/>
</FOO>
1 row selected.
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H2/text()' passing OBJECT_VALUE as "x")
4 /
no rows selected
SQL> -
How to Check Images File Exist? in different server
Hi,
I have 10 different coldfusion server.
for example 9 server is for the web application site - for
example
http://myserverone/studentweb
the other one is for images website, just for displaying
student picture - for example
http://myserverimage/studentpicture.
the purpose of this website is to display student picture
that i store as gif files.
from my studentweb website i will call the images from
studentpicture website as source for my image placeholder.
for example this is my code i'm calling form
http://myserverone/studentweb
website:
<img src="
http://myserverimage/studentpicture/#studentnumber#.gif"
alt="" name="studentpicture" width="160" height="200">
my problem is, if there is no specific student picture in my
studentpicture website, then the placeholder will display an X (
mean the images not found )
how do i prevent the X to display?
how do i using coldfusion or any kind of way to check if the
images exist on that website ( different server ), so if the images
is not found, i can display a default images? i can do this if i'm
calling the website in the same server, but not using a different
server.
this is like using other website images for your own personal
website and sometimes the owner delete the images from their
website, and i want to display my own images if that images been
removed from the source website.
anyone have done this before?
thanks for suggestion and guide...
haire1. Use CFHTTP with method="HEAD".
2. See, if the HTTP status code is 200.
The head-method is of course more efficient, as it doesn't
need to "get" the message body. However, a status code of 200 is
possible even when the requested image file is no longer on the
server. -
How to check whether a file exist in the program folder or not?
Hi guys,
how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base.
abdulLook at the class java.io.File and the .exists() method:
http://java.sun.com/j2se/1.4/docs/api/java/io/File.html -
How to check whether there r new txt files in a folder n file creation date
How to check whether there r new text files in a specified folder and what is the date of creation of the text file.........?
Hi
I have been searching for a solution to find the date of creation of a file for over 6 months now but haven't found it. So I presume that it is not possible though I havent found any authentication of my assumption in any document.
Cheers!
Shailesh -
How to check Whether the File is in Progress or used by some other resource
Hi All,
I am retrieving a file from the FTP server using Apache commons FTP.
I need to check whether the file is fully retrieved or in progress.
for now i can able to use the file which is partially retrieved. it is not throwing any file sharing exception or i am unable to find whether it is in progress.
How to check whether the file is in progress ? or The file is accessed by some other resource ?
Pls Help me.
Thanks,
J.KathirHi Vamsi,
Explicitly such kind of requirement has not been catered and i dont think you would face a problem because any application that is writing to a file will open the file in the read only mode to any other simultaneous applications so i think your concerns although valid are already taken care off .
In the remote case you still face a problem then as a work around. Tell the FTP administrator to set the property to maximum connections that can be made to ftp as one. I wonder if you have heard of the concept of FTP handle , basically the above workaround is based on that concept itself. This way only one application will be able to write.
The file adapter will wait for its turn and then write the files.
Regards
joel
Edited by: joel trinidade on Jun 26, 2009 11:06 AM -
How to check whether transport path exist between two systems in sld??
Hi,
I have two systems namely 'A' and 'B' and created business systems for both of them.Then i created transport path between the two systems.How i check whether what i have done is right in SLD.<b>WRT to CMS</b>
am not sure with this but u can try:
1. Start CMS: http://<host>:<J2EE Engine http port>/webdynpro/dispatcher/sap.com/tcSLCMS~WebUI/Cms.
2. Goto lansdscape configurator and check there
Message was edited by:
Prabhu S -
How to check whether the system has eclipse environment: urgent
Hi gurus
can you please tell me how to check whether my crm system has eclipse envirionment.
Thanks
shashiThere is no way to check whether a system is used productively or not, I believe what you mean is checking a client is productive or not in an ABAP-stack based system. Remember although a SAP ABAP system is identified by a SID but from a business perspective the system is recognized by a client, as it is a unique business identity.
Thus, to check whether the client is productive or not in txn SCC4 check the role of the client, it will show you the correct status. The data of SCC4 is stored in table T000, you can also opt to check that.
- Regards, Dibya -
How to Check a file in the directory..
Dear,
Pl. do suggest me how to check a file (e.g. abc.txt) is in the directory (say d:\Print).
Do tell me how to check whether this file is exist in the directory or not???
Thanx in Advance.
BhaveshHi
You can use Win_Api_Utility.Copy_File cmd. IF the file does not exist r the file was not copied to the destination properly, it will raise no_data_found error. See Forms help - Find option for syntax & more details.
I've used it & works well.
Regards
APK -
How to check whether the Application Server directory exits or not
Hi,
I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
Can anyone help me on the same how to check whether the server directory exists or not.
Thanks in advance.
Best Regards,
Pradeep.Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
Store the directory name
l_dpath = p_file+0(l_no).
Validate the directory of the application server
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = l_dpath
TABLES
dir_list = l_i_dlist
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
If any problem occurs with the directory then display proper
error message
IF sy-subrc <> 0.
Display error message
MESSAGE e018 WITH 'Problem with directory entered'(008).
ENDIF. " sy-subrc <> 0
Regards,
Joy.
Maybe you are looking for
-
FCP 7 Won't Launch, used to
For some reason, FCP 7 won't launch any more. It did just a few days ago. Nothing has changed on my system. When I launch FCP, the startup screen comes up, showing what's loading. Then nothing. No FCP. Nothing showing in Activity Monitor. I can lauch
-
Add a new directory with hyphen (-) in the domain name
Dear All, I'm trying to add a new directory with hyphen (-) in the domain name (default domain *.onmicrosoft.com). As a result I keep getting a validation error: "The domain is not unique". I've tried several combinations with really awkward words an
-
Rows to columns/Transpose the records Query and Display output
hi , can anyone help me query this and transpose it to this format? i am still a beginner in sql. thanks for help! Rows to columns/Transpose the records Query and Display output id startdate endate 1111 1/2/2001 11
-
Storage issue on my 8Gb iPhone 4?!
My 8GB iPhone 4 has 0 bytes available but the total of my apps is less than 2GB! I have 11GB of free iCloud storage still available...what am I doing wrong?? My phone keeps crashing and it's soooooo slow. I can't download anything but I store sooo li
-
Firefox is preventing photographs and pictures from being displayed because it considers them to be pop-ups. I have turned off the pop-ups blocker on my security system but this did not help. There is a difference between annoying commercial or infor