aspose file tools*
The moose likes JSP and the fly likes JavaBean and JSP. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JavaBean and JSP. " Watch "JavaBean and JSP. " New topic

JavaBean and JSP.

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
I am using JRun 4 Application Server.

I have a bean class which will read the database and convert the same in to XML file. This bean is instantiated and the method to create the XML is called.
Now my problem is, I want to store the XML file in a specific directory on the server.
Right now If I give just filename to the File object it stores it in the /bin directory.
How do I pass the absolute path to the File so that it creates the XML file in the specified directory.

Do I need to use BeanContext. ?? If so how can I get the exact path to store my XML file from the JavaBean.

Thanks for the time.

<b>L G Goundalkar</b><br /> <a href="" rel="nofollow"></a> <br />Sun Certified Programmer for Java 2 Platform.<br />Sun Certified Web Component Developer for J2EE.
It is sorta covered in the JavaRanch Style Guide.
subject: JavaBean and JSP.
Similar Threads
Help with JSP
serialized object in LDAP/database
setting log4j
Web application path
how to get server path in MDB