Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: Servlet communication(Please help me)


Message #1 by bikashpaul_2001@y... on Fri, 20 Jul 2001 07:40:28
If the .html file has zero bytes, then the problem is entirely in the first 
servlet. There is nothing obviously wrong with the servlet. Here are some 
suggestions:

- Have you tested the batch file? Maybe the batch file is not working.
- If the batch file is working, try testing it with a stand-alone java 
program (not a servlet). Maybe the exec call is not working correctly
- If you can call the batch file from a standalone program, then maybe 
there is a path problem. The paths used by programs depend on the 
environment in which they run. Try opening the .xml file inside the servlet 
and determine what path it has.
- I am not familiar with saxon. Is there a reason you need to call saxon 
with a batch file? Could you call the saxon API directly from Java? A quick 
look at the saxon web page suggests the answer is yes.

> I have problem with servlet communication.I have three
> servlet My 1st servlet converts xml file to html file
> for this Iam using saxon for converting through
> Runtime class.And my 2nd servlet converting that html
> file to .rb(rocket edition)and third servlet starts
> downloading of that .rb file for that iam using
> jspsmartupload package.My problem is that my first
> servlet creating .html file but the size of the file
> is zero byte.And 2nd servlet also converting that html
> file to .rb file and 3rd servlet also starts
> downloading. But in downloaded file there is no
> content.Please tell me where I done a mistake.Is it
> the right way using res.sendRedirect() for servlet
> communication.If it is not Please tell me what is the
> best method fot that.Can u give me the code for that.

  Return to Index