SERVLET-INTEREST��

I have a simple servlet, used to test the file's process in
linux. I met the exception problem.

The main part in testfile.java is
"
        String realpath = req.getRealPath("/");
        out.println ("realpath= "+ realpath);
        try
        {
//      DataOutputStream dos =new DataOutputStream(new FileOutputStream(new 
//File(realpath+ "data/test/" + "test.dat")));
        DataOutputStream dos =new DataOutputStream(new FileOutputStream(new 
File("test.dat")));
        dos.writeInt(100);
        dos.close();
        }
        catch(IOException e)
                {
                out.println ("exception occured." );
                }
"
This can be done in JRUN with win32..

Why?

Please help me.





WangJun

System Analyst
Senior Technic Supporter
___________________________________________________________________

Beijing Jingqi Xishu E-business Ltd.

MAIL:[EMAIL PROTECTED]
URL: http://www.jingqi.com
TEL: (010)67082700 - 203
     (010)67082703 - 203
FAX: (010)67082705

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to