Display Tag with querystring

2003-02-14 Thread Madhavan Srinivasan
I want to pass querystring parameters in the display tag. Is there any possibility?

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




[OT]RE: XML to PDF(need sample servlet code...)

2003-01-22 Thread Madhavan Srinivasan
Hi

Here's the sample code: ( I just provided the part of the code to understand the fop 
driver functionality.)
(fop has its own sample servlet application to understand.)
XSLT file has xsl:fo tags which produce customized PDF reports.

Regards
Madhavan


import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.Templates; 


import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.tools.xslt.XSLTransform;
//import org.jfor.jfor.converter.Converter;
//import org.jfor.jfor.converter.IConverterOption;
import java.io.*;

import org.w3c.dom.Document;


// Imported java classes
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.Reader;
import java.io.File;
import java.io.StringReader;
import java.io.Writer;
import java.io.StringWriter;
import java.io.FileInputStream;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

/**
 * takes XML  and XSL as file input parameters and returns the formatedResult object
 */
  public FormattedResult formatDataOriginal(String strXML, String strXSL) throws 
TransformerException, TransformerConfigurationException,
FileNotFoundException, IOException
  {

  
  
  logger.debug(FormatDataWorksWell -+: );
  FormattedResult FR = new FormattedResult();
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  
  try {

  Driver driver = new Driver();
  //driver.setLogger(log);
  driver.setOutputStream(out);
  driver.setRenderer(Driver.RENDER_PDF);
  
  String parserName=driver.getParserClassName();
  logger.debug(Format Data ---Parser Name--+: +parserName);
  
  //Setup XSLT
  TransformerFactory factory = TransformerFactory.newInstance();
  Transformer transformer = factory.newTransformer(new StreamSource(strXSL));
  
  //Setup input for XSLT transformation
  StreamSource src = new StreamSource(new java.io.StringReader(strXML));
  
  //Resulting SAX events (the generated FO) must be piped through to FOP
  SAXResult res = new SAXResult(driver.getContentHandler());
  
  //Start XSLT transformation and FOP processing
  transformer.transform(src, res);
  
  byte[] content = out.toByteArray();   
  
  return FR;

  } catch (Exception ex) {
logger.debug(Error:+ex.getMessage());
return null;
}
  

  }


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:32 AM
To: [EMAIL PROTECTED]
Subject: RE: XML to PDF(need sample servlet code...)


Hi,
Do u have any sample code of a servlet that does the same?I tried to use the 
FOP servlet given with FOP distribution..But i keep on getting null pointer 
exceptions...

Any help will be appreciated..

regards,
Shirish.

-Original Message-
From: madhavan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:45 AM
To: struts-user
Cc: madhavan
Subject: [OT}RE: XML to PDF


Hi

I used Apache FOP and XSLT to convert XML to pdf.

Regards
Madhavan

-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:27 PM
To: [EMAIL PROTECTED]
Subject: Re: XML to PDF


Yet another alternative:
JasperReports and iText.

Yan, Charlene wrote:
 Hello all,
 
 I just got assigned to convert XML to pdf to do reports.  Is any of you 
working on it?  Any insights where I should get started my research?  I am 
looking at xmlmil and aparche xml home right now.
 
 Thanks in advance for your help!
 
 Charlene



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


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



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


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




[OT}RE: XML to PDF

2003-01-21 Thread Madhavan Srinivasan
Hi

I used Apache FOP and XSLT to convert XML to pdf.

Regards
Madhavan

-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:27 PM
To: [EMAIL PROTECTED]
Subject: Re: XML to PDF


Yet another alternative:
JasperReports and iText.

Yan, Charlene wrote:
 Hello all,
 
 I just got assigned to convert XML to pdf to do reports.  Is any of you working on 
it?  Any insights where I should get started my research?  I am looking at xmlmil and 
aparche xml home right now.
 
 Thanks in advance for your help!
 
 Charlene



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


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




[OT]RE: Eclipse IDE

2003-01-21 Thread Madhavan Srinivasan
Celeste

We use Lomboz in our Eclipse/Weblogic environment to generate and deploy our cmp2.0 
beans.
We just need to configure the Lomboz container for the server home dir, domain name 
etc.,

Regards
Madhavan

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:15 PM
To: 'Struts Users Mailing List'
Subject: RE: Eclipse IDE


Sandeep, 

I have not found a way to use any other J2EE compliant application server
inside of Lomboz, even though the documentation does say it is configurable
to work with any J2EE Servlet 1.3 compliant container.  Currently, I use
Lomboz in a half way manner, and use an external Eclipse plugin for my
application container JRUN 4.0.

If anyone on this list knows of a way to configure Lomboz to use another
application server other than JBoss/Tomcat and Websphere, please post the
information, or a link to the information, on this listserver.

Celeste

-Original Message-
From: Singh, Sandeep [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:54 PM
To: 'Struts Users Mailing List'
Subject: Eclipse IDE



I am using Lomboz with Eclipse IDE.Does anyone can
suggest if I can use Websphere App server (Lomboz has JBOSS,Tomcat and
Weblogic
integrated in it)? Thanks


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 3:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Re[2]: [OT] Eclipse IDE


Flash .NET?  Isn't that in org.apache.struts.flash?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 2:35 PM

Doh! Don't encourage him Jacob!

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 11:44 AM

There's actually a new article at Javaworld about using Flash
with XML/J2EE
as a presentation layer.  The article is a little underdone though.

http://www.javaworld.com/javaworld/jw-01-2003/jw-0117-flash.html


-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 10:39 AM

And I was convinced that it was written in Flash.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 10:34 AM

Mark said it's writtn in VB.Net :D

--
James Mitchell



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

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


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




Using Struts in Weblogic Eclipse

2002-08-29 Thread Madhavan Srinivasan

Friends

I use weblogic 7.0 and eclipse 2.0. 
I try to integrate struts sample app with weblogic and eclipse. 
I installed easie weblogic plugin to eclipse, so I could start weblogic server from 
eclipse.
Now I want to debug the web application of the weblogic server instance thru eclipse 
IDE.
If there is anybody have the procedures please inform me.

Thanks
Madhavan

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