----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Joseph Shraibman wrote:
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> And also give your servlet code permission so java doesn't throw a
> SecurityException
>
> James Harman wrote:
> >
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > WHEN YOU POST, include all relevant version numbers, log files,
> > and configuration files. Don't make us guess your problem!!!
> > ----------------------------------------------------------------
> >
> > You can write files to the disk with servlets. You must make sure that you have
> > permissions to write files to the directory as the user that jserv runs from.
>Normally
> > this is 'nobody'. If you are running your code on a unix box, what you are trying
>to do is
> > write to a file
> >
> > /degl_e.csv
> >
> > Does 'nobody' have permissions to create files in / ? I doubt it.
> >
Folks,
I recently had the same problem, and gave myself a good slapping when I
sussed. However, I did much reading of FAQs etc. before solving it
myself.
Perhaps, we could put this into the FAQ - I did find other people asking
the same question.
Ian Hunter
> > James
> >
> > Sergio Rios Mendoza wrote:
> >
> > > ----------------------------------------------------------------
> > > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > > WHEN YOU POST, include all relevant version numbers, log files,
> > > and configuration files. Don't make us guess your problem!!!
> > > ----------------------------------------------------------------
> > >
> > > Hi, it's me again !
> > > Probably this is not the right place to post this question, but I hope you can
>help me.
> > > Using this code in my servlet:
> > > PrintStream ps = new PrintStream(new FileOutputStream("/" + degl_e + ".csv")) ;
> > > .
> > > some process
> > > .
> > > out.println("<A HREF=/" + degl_e + ".csv>Descargar desglose</A>") ;
> > >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]