Home » Archived » BIRT » BIRT JBoss - Tomcat Deployment
BIRT JBoss - Tomcat Deployment [message #265182] |
Tue, 29 January 2008 03:55  |
Eclipse User |
|
|
|
Originally posted by: pari.gandhi.gmail.com
I am planning to write code on the back end / application server (JBoss)
to get the report definition from the database, and run the report using
the BIRT API
The front end (Tomcat) will make a call to the back end to run a
particular report passing in the report parameters.
Tomcat and JBoss live on separate machines (I am not using the Tomcat that
is bundled with JBoss)
I can imagine writing code such as
JBOSS
public byte[] runReport(Report report, ReportParams[] params,....)
{
....
}
and Tomcat
public class ReportServlet extends HTTPServlet {
public void doGet(.......){
...... ....
response.getWriter().write(reportDelegate.runReport(.......));
}
}
Now my question is, how does this work if the report's output format is
HTML (ie, contains links to images & css) - I can get the report's HTML
output from JBoss to Tomcat as a byte[], but how about the embedded images
and css?
Reply With Quote
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #265194 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #265889 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #266603 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #267332 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #268035 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #268734 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #269449 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #270161 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #270883 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #271608 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #272338 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #272865 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #273141 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #273605 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #274018 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #274400 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #274789 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #275160 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #275571 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #275967 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #276357 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #276762 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #277165 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #277538 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #277957 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #278330 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #278720 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #279130 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #279547 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #279916 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #280311 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #280708 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #281107 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #281500 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #281892 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #282278 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #282681 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #283080 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #283471 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Re: BIRT JBoss - Tomcat Deployment [message #283863 is a reply to message #265182] |
Tue, 29 January 2008 04:28  |
Eclipse User |
|
|
|
Hi,
id did this in my application like this (i use JBOSS 4.0.2, which
includes a tomcat):
- extend HTMLServerImageHandler
- override handleImage( IImage image, Object context, String prefix,
boolean needMap)
- add your HTMLServerImageHandler like this:
final HTMLRenderOption emitterConfig = new HTMLRenderOption();
emitterConfig.setActionHandler(new HTMLActionHandler());
final MyHTMLServerImageHandler imageHandler = new
MyHTMLServerImageHandler(response);
emitterConfig.setImageHandler(imageHandler);
I hope i could help you.
Orkus9
Mikey schrieb:
> I am planning to write code on the back end / application server (JBoss)
> to get the report definition from the database, and run the report using
> the BIRT API
>
> The front end (Tomcat) will make a call to the back end to run a
> particular report passing in the report parameters.
>
> Tomcat and JBoss live on separate machines (I am not using the Tomcat
> that is bundled with JBoss)
>
> I can imagine writing code such as
>
> JBOSS
>
>
> public byte[] runReport(Report report, ReportParams[] params,....)
> {
> ....
> }
>
>
> and Tomcat
>
>
> public class ReportServlet extends HTTPServlet {
> public void doGet(.......){
> ...... ....
> response.getWriter().write(reportDelegate.runReport(.......));
> }
> }
>
>
> Now my question is, how does this work if the report's output format is
> HTML (ie, contains links to images & css) - I can get the report's HTML
> output from JBoss to Tomcat as a byte[], but how about the embedded
> images and css?
> Reply With Quote
>
|
|
|
Goto Forum:
Current Time: Fri Jun 06 05:39:36 EDT 2025
Powered by FUDForum. Page generated in 0.07204 seconds
|