You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by JackWang <ja...@pub.wx.jsinfo.net> on 2000/04/23 12:38:11 UTC
linux file process problem
I have a simple servlet, used to test the file's process in
linux. I met 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.
�� 00-4-22 ���� 03:41:00 �����
>Stefano Mazzocchi wrote:
>
>> I'm going up to the alps for ester vacation with my girlfriend to relax
>> and come up with brilliant new ideas for Cocoon. In fact, that is the
>> place where Cocoon was invented :)
>
>And he will return with "Species" or "Aliens" ;o)
WangJun
System Analyst
Senior Technic Supporter
___________________________________________________________________
Beijing Jingqi Xishu E-business Ltd.
MAIL:jackwang@jingqi.com
URL: http://www.jingqi.com
TEL: (010)67082700 - 203
(010)67082703 - 203
FAX: (010)67082705