Hi Alan,
Below are the details for the versions and OS:

Tomcat Version : 6.0
OS : Windows XP
JVM : 1.6

The way web is structured is:

I have some precompiled python scripts which are actually compiled by jython
into java classes(Before deploying).
I have one python script which uses these precompiled python classes.Now I
am giving one file as
input to this python script and it internally produces the output file using
this input file.
This output file is saved locally in the parent directory of Tomcat.

There is one jsp page which takes input from the user and then passes the
request to Java class which actually
calls this Python script.

Note:The python script is actually called using the PythonInterpreter class
and all those Java and Jython integration techniques.

Sincerely,
Prashant golash

On Sun, Feb 15, 2009 at 10:02 PM, Alan Chaney
<a...@compulsivecreative.com>wrote:

> Hi Prashant
> The first question - which version of Tomcat? What operating sytem? What
> JVM? and in your case which version of Jython?
>
> Secondly please could you clarify exactly how your web is structured?
>
> My understanding from your first email is:
>
> 1. servlet is called with request containing a file (presumably mutlipart
> encoded?)
> 2. the file data is then fed into a python script running either using a
> java6 ScriptManager or similar.
> 3. and then what? Are you streaming the output from that file straigth into
> the PrintWriter/OutputStream of the HttpServeltResponse?
> Or are you trying to save the file locally?
>
> Regards
>
> Alan Chaney
>
>
> Prashant Golash wrote:
>
>> Hi Tomcat-Apache Gurus,
>> I have a web application where  from the front end user loads a file
>> and gives it as input to Java classes.The file is given as input to
>> a python script which converts it into some other format.
>> Here I have used the concept of jython.
>> The file is converting properly in the parent
>> directory of Tomat but with some of the data which is missed.The problem
>> is
>> when I close the tomcat,then additional data is added to the converted
>> file
>> which
>> completes the correct conversion.
>>
>> I want to know whether some internal buffer of Tomcat is holding the extra
>> data.
>> If so how to retrieve it.
>>
>> Sincerely,
>> Prashant golash
>>
>>
>> !DSPAM:4997ebf763341804284693!
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to