On 03/09/2010 04:49, Ferindo Middleton wrote:
I've written a javabean that connects to a database, downloads a file,
and one of the getter methods returns the complete file path to the
file.
The problem I have is: when the JSP runs and gets to the part where it
gets the file path to pass to
That's what I can't understand. Should my call to the bean be a valid
non-static code to get that value? I am new to java javabeans. The
statement you wrote is exactly my statement in the JSP:
yourbeanname.getTempFilePath()
Is the same as:
No Ferindo. What he's saying is you are calling the class not an instance of
the class.
You can only call a class if the method is stactic.
http://download.oracle.com/javase/tutorial/java/javaOO/classvars.html
On Fri, Sep 3, 2010 at 3:32 PM, Ferindo Middleton
ferindo.middle...@gmail.com
On 03/09/2010 14:36, Wesley Acheson wrote:
No Ferindo. What he's saying is you are calling the class not an instance of
the class.
You can only call a class if the method is stactic.
http://download.oracle.com/javase/tutorial/java/javaOO/classvars.html
jsp:useBean id=getFilePath
I've written a javabean that connects to a database, downloads a file,
and one of the getter methods returns the complete file path to the
file.
The problem I have is: when the JSP runs and gets to the part where it
gets the file path to pass to the taglib, I get an error message that
is typical