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





PostPosted: 2005-2-28 10:25:00 Top

java-programmer, jsp:setProperty, java.io.File, and I thoroughly confused 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

 
jazzdman





PostPosted: 2005-2-28 10:33:00 Top

java-programmer >> jsp:setProperty, java.io.File, and I thoroughly confused Excuse me, that should be :

"I created a BeanInfo class that associates the PropertyEditorSupport
derived class with the Bean.."

Jason Mazzotta