Re: Invoking the servlet

2004-05-14 Thread guenther . eisele

Hi,

 As you can see the system is looking another
 directory.
 Does anybody know which is this directory?

I don't know the directory, but I can tell you that you can work with
normal Windows shares here, like:

http://localhost:8080/fop/fop?fo=//w2kmachine/open$/simple.fo

Regards,
Guenther


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invoking the servlet

2004-05-13 Thread Juan Manuel Bellina
I am trying to invoke the servlet in the FOP
distribution with Tomcat 3.3.2

The error is - simple.fo (The system cannot find the
file specified).

The URL is -
http://localhost:8080/fop/fop?fo=simple.fo;

I put the simple.fo file in the following diretory
- c:\jakarta-tomcat-3.3.2\webapps\fop\simple.fo.

As you can see the system is looking another
directory.
Does anybody know which is this directory?






__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invoking FOP Servlet from struts:Please help

2003-06-26 Thread Michael Duffy

Hi Hardarshan,

1. I'm assuming that you only need to read files, not
write.  If that's the case, put the XML and XSL files
under WEB-INF/xml and WEB-INF/xsl, respectively, and
access them using ServletContext's getResourceAsStream
method.

2. You might get the encoded (very important) XML and
XSL from request parameters or attributes, using
HttpServletRequest getParameter or getAttribute
methods.

3. Set the content type to application/pdf and write
the bytes to the response.

Check out http://xml.apache.org/fop/servlets.html -
it's got some nice code that should help you out. -
MOD

--- Hardarshan Singh [EMAIL PROTECTED] wrote:
 Hi, 
  
 I am conveting jdbc to xml. I have written an XSL
 file for the xml generated. 
 I want to use FOPServlet. 
  
 Questions : 
 1. Where should the xml and xsl files be physically
 located in the project ? 
 2. How can i invoke the FOP servlet from struts (i
 have to send xml and xsl files)
 to the servlet. 
 3. How can i redirect the generated pdf to browser ,
 i mean using using ActionForward? 
  
 Any code snippets will be of great help. 
  
 Please reply and thanks for help in advance.
  
 SS
  
  
  
  
  
  
 
 
 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invoking FOP Servlet from struts:Please help

2003-06-23 Thread J.Pietschmann
Hardarshan Singh wrote:
Questions : 
1. Where should the xml and xsl files be physically located in the project ? 
2. How can i invoke the FOP servlet from struts (i have to send xml and xsl files)
to the servlet. 
3. How can i redirect the generated pdf to browser , i mean using using ActionForward? 
These sound as if they were more suited on a struts related
list...
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Invoking FOP Servlet from struts:Please help

2003-06-22 Thread Hardarshan Singh
Hi, 

I am conveting jdbc to xml. I have written an XSL file for the xml generated. 
I want to use FOPServlet. 

Questions : 
1. Where should the xml and xsl files be physically located in the project ? 
2. How can i invoke the FOP servlet from struts (i have to send xml and xsl files)
 to the servlet. 
3. How can i redirect the generatedpdf to browser , i mean using using ActionForward? 

Any code snippets will be of great help. 

Please reply and thanks for help in advance.

SS






Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!