Re: Server Side file access
Glad to hear it Stay in touch, Martin "Good Manners dont cost nothing" - Pink Floyd - Original Message - From: "Phillip Mangwiro" <[EMAIL PROTECTED]> To: "Tomcat Users List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Friday, December 02, 2005 2:19 AM Subject: Re: Server Side file access Thanks. It worked. On 12/1/05, Martin Gainty <[EMAIL PROTECTED]> wrote: Good Afternoon Philip- only if you have assigned the proper FilePermission in $CATALINA_HOME/conf/catalina.policy grant { permission java.io.FilePermission "${/}*", "read, write"; }; HTH, Martin- - Original Message - From: "Phillip Mangwiro" <[EMAIL PROTECTED]> To: Sent: Thursday, December 01, 2005 12:55 PM Subject: Server Side file access > Can I read & write to File on the server while in a JSP page? I keep > getting > errors on the line to create the File: >File f = new File("myinfo.txt"); > > The error is reported to be because Tomcat expects an array or an > Object. > > > I'm using Tomcat 5.5 & jre 1.5. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server Side file access
Thanks. It worked. On 12/1/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > Good Afternoon Philip- > > only if you have assigned the proper FilePermission in > $CATALINA_HOME/conf/catalina.policy > > grant { > permission java.io.FilePermission "${/}*", "read, write"; > }; > > HTH, > Martin- > - Original Message - > From: "Phillip Mangwiro" <[EMAIL PROTECTED]> > To: > Sent: Thursday, December 01, 2005 12:55 PM > Subject: Server Side file access > > > > Can I read & write to File on the server while in a JSP page? I keep > > getting > > errors on the line to create the File: > >File f = new File("myinfo.txt"); > > > > The error is reported to be because Tomcat expects an array or an Object. > > > > > > I'm using Tomcat 5.5 & jre 1.5. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Server Side file access
Good Afternoon Philip- only if you have assigned the proper FilePermission in $CATALINA_HOME/conf/catalina.policy grant { permission java.io.FilePermission "${/}*", "read, write"; }; HTH, Martin- - Original Message - From: "Phillip Mangwiro" <[EMAIL PROTECTED]> To: Sent: Thursday, December 01, 2005 12:55 PM Subject: Server Side file access Can I read & write to File on the server while in a JSP page? I keep getting errors on the line to create the File: File f = new File("myinfo.txt"); The error is reported to be because Tomcat expects an array or an Object. I'm using Tomcat 5.5 & jre 1.5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server Side file access
Have you given Tomcat permission to create myinfo.txt? In your catalina.policy file? Bob On Thu, 2005-12-01 at 19:55 +0200, Phillip Mangwiro wrote: > Can I read & write to File on the server while in a JSP page? I keep getting > errors on the line to create the File: > File f = new File("myinfo.txt"); > > The error is reported to be because Tomcat expects an array or an Object. > > > I'm using Tomcat 5.5 & jre 1.5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]