Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Using Java in XSP: how to check file existence

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using Java in XSP: how to check file existence

    Hi all,

    I'm new in using java and i have to check file existence using java inside xsp page. Any suggestions?
    Thanks in advance.


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Using Java in XSP: how to check file existence

    Using the File class perhaps?

    Could you also elaborate what an xsp page is?

    // Json

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Using Java in XSP: how to check file existence

    Hi Json,

    I was referring to Apache Cocoon XSP Page, much like JSP. I am now trying to use the File class, but my XSP page cannot compile properly (the whole page just blanks out) after i put in the f.exists() check.

    Have no idea if there is something in cocoon xsp language that can do this. Most of the logic we do in Java and insert inside the <xsp:logic> tag.

  4. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Using Java in XSP: how to check file existence

    I see, I'm not familiar with Cocoon my self so I'm afraid I wont be able to help you out on this one.

    // Json

Similar Threads

  1. Method for Cedit card check, help!!!!1
    By raidcomputer in forum What's Wrong With My Code?
    Replies: 6
    Last Post: October 31st, 2009, 10:16 AM
  2. Can Anyone Check This Link
    By arpitgadle in forum Java Servlet
    Replies: 5
    Last Post: October 7th, 2009, 09:56 AM
  3. check if a number is an integer
    By rsala004 in forum Java Theory & Questions
    Replies: 3
    Last Post: August 15th, 2009, 04:51 PM
  4. Replies: 5
    Last Post: May 21st, 2009, 03:45 AM
  5. Problem in AWT and IFrame implementaion
    By AZBOY2000 in forum What's Wrong With My Code?
    Replies: 9
    Last Post: April 24th, 2009, 04:41 AM