jsp:setProperty, java.io.File, and I thoroughly confused

jazzdman_at_comcast.net
Date: 02/28/05

  • Next message: jazzdman_at_comcast.net: "Re: jsp:setProperty, java.io.File, and I thoroughly confused"
    Date: 27 Feb 2005 18:25:06 -0800
    
    

    Hi,
          I'm writing a webapp based on JSP technology. I've been doing
    some reading and from what I've read, it isn't possible to use
    jsp:setProperty to set a File property. So, I created a BeanInfo class
    for the Bean I had the File variable in. I also created a class that
    extended PropertyEditorSupport to assign the BeanInfo class to the
    Bean. But, those don't appear to get called. I CAN, however with
    Tomcat 5.0.28 on Windows XP, simply set a File property with
    jsp:setProperty. The Bean ends up looking for the file in the Tomcat
    bin directory, and I can thus set a relative path to the file. So, I'm
    completely confused. What is going on? Is this expected behavior?

    Thanks,

    Jason Mazzotta


  • Next message: jazzdman_at_comcast.net: "Re: jsp:setProperty, java.io.File, and I thoroughly confused"