Hi all: Could you please tell me how my java code detect a file is existing or not??? Thanks!
Joined: Jun 18, 2001
I know I can use File file=new File("****.***"); if(file.exists()) do... else do.... but I want to use jsp include tag to detect a file is exist or not. currently, if a file (***.html) exist, then jsp include it and show up, if a file(***.html) does not exist, then jsp include nothing, and no exception. So I want to find some way, if jsp include nothing, then do...something. Thanks