You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Geeta Ramani <gr...@terralink.com> on 2004/05/10 22:00:43 UTC
RE: Reports In Struts Frame work
jfreechart *rocks*!! (http://www.jfree.org/jfreechart/)
> -----Original Message-----
> From: as as [mailto:sam_struts@yahoo.com]
> Sent: Monday, May 10, 2004 4:02 PM
> To: Struts Users Mailing List
> Subject: Re: Reports In Struts Frame work
>
>
> did u try jfree.org
> have a look at jchart.org also
>
> birendar.waldiya@tcs.com wrote:
>
> Hi,
> I want to implement reporting in struts framework , the
> reports are like select and display query, i dont have any
> idea how to implement then in this framwork specially , the
> action class for report , i have coded the Model 1 type of
> jsp report can any one provide some hints how to proceed for
> action class for report.
> thanks
> rgds
>
> Birendar Singh Waldiya
>
>
>
> "Jonathan Wright" <jo...@aboutit.co.nz>
> 29-04-04 10:16 AM
> Please respond to
> "Struts Users Mailing List" <us...@struts.apache.org>
>
>
> To
> "Struts Users Mailing List" <us...@struts.apache.org> cc
> Subject
> Re: Database access in contextInitialized
>
>
>
>
> The 'dataSource' attribute is stored in your servlet context.
> So anywhere
> you can get a reference to that you can get hold of a
> reference to your data
> source.
>
> Hope that helps!
>
> Jonathan
>
> ----- Original Message -----
> From: "Samuel Rochas" <sa...@andinasoft.com>
> To: <st...@jakarta.apache.org>
> Sent: Thursday, April 29, 2004 5:15 AM
> Subject: Database access in contextInitialized
>
>
> > Hello Struts Gurus,
> >
> > I am starting with struts.
> > I used to make some initialization in my Servlets using the init()
> > method. With struts, I just implemented the
> contextInitialized method of
> > ServletContextListener Interface, and I have a place for such
> > initializations. Fine.
> >
> > The things I used to initialize were some Collections with
> data from a
> > database. With struts, I am now using the datasource
> configuration in
> > struts-config.xml and I access it in my Actions with:
> > getDataSource(request). Fine too.
> >
> > But, I don't have access to getDataSource() in my
> ServletContextListener
> > implementation. So how can I access my database there, the
> same way I
> > access it in the rest of the application?
> >
> > Thanx in advance
> > Samuel
> >
> > --- andinasoft SA - Software y Consulting ---
> > Mariano Aguilera 276 y Almagro - Quito, Ecuador
> > Tel. +593 2 290 55 18 ---- Cel. +593 9 946 4046
> > --------- http://www.andinasoft.com ---------
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ForwardSourceID:NT00006246
> DISCLAIMER: The information contained in this message is
> intended only and solely for the addressed individual or
> entity indicated in this message and for the exclusive use of
> the said addressed individual or entity indicated in this
> message (or responsible for delivery
> of the message to such person) and may contain legally
> privileged and confidential information belonging to Tata
> Consultancy Services. It must not be printed, read, copied,
> disclosed, forwarded, distributed or used (in whatsoever
> manner) by any person other than the addressee.
> Unauthorized use, disclosure or copying is strictly
> prohibited and may constitute unlawful act and can possibly
> attract legal action, civil and/or criminal. The contents of
> this message need not necessarily reflect or endorse the
> views of Tata Consultancy Services on any subject matter.
> Any action taken or omitted to be taken based on this message
> is entirely at your risk and neither the originator of this
> message nor Tata Consultancy Services takes any
> responsibility or liability towards the same. Opinions,
> conclusions and any other information contained in this message
> that do not relate to the official business of Tata
> Consultancy Services shall be understood as neither given nor
> endorsed by Tata Consultancy Services or any affiliate of
> Tata Consultancy Services. If you have received this message
> in error, you should destroy this message and may please
> notify the sender by e-mail. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Reports In Struts Frame work
Posted by Axel Stahlhut <as...@neusta.de>.
we are using cewolf, a set of tags based on jfreechart. Very nice, you
just have to implement the models behind the tags and then create all
kind of charts you may need. AFor cewolf and jefreechart on Linux you
need an XServer or something like xvfb (XVirtualFrameBuffer), if no
XWindow installed.
Geeta Ramani wrote:
>jfreechart *rocks*!! (http://www.jfree.org/jfreechart/)
>
>
>
>>-----Original Message-----
>>From: as as [mailto:sam_struts@yahoo.com]
>>Sent: Monday, May 10, 2004 4:02 PM
>>To: Struts Users Mailing List
>>Subject: Re: Reports In Struts Frame work
>>
>>
>>did u try jfree.org
>>have a look at jchart.org also
>>
>>birendar.waldiya@tcs.com wrote:
>>
>>Hi,
>>I want to implement reporting in struts framework , the
>>reports are like select and display query, i dont have any
>>idea how to implement then in this framwork specially , the
>>action class for report , i have coded the Model 1 type of
>>jsp report can any one provide some hints how to proceed for
>>action class for report.
>>thanks
>>rgds
>>
>>Birendar Singh Waldiya
>>
>>
>>
>>"Jonathan Wright" <jo...@aboutit.co.nz>
>>29-04-04 10:16 AM
>>Please respond to
>>"Struts Users Mailing List" <us...@struts.apache.org>
>>
>>
>>To
>>"Struts Users Mailing List" <us...@struts.apache.org> cc
>>Subject
>>Re: Database access in contextInitialized
>>
>>
>>
>>
>>The 'dataSource' attribute is stored in your servlet context.
>>So anywhere
>>you can get a reference to that you can get hold of a
>>reference to your data
>>source.
>>
>>Hope that helps!
>>
>>Jonathan
>>
>>----- Original Message -----
>>From: "Samuel Rochas" <sa...@andinasoft.com>
>>To: <st...@jakarta.apache.org>
>>Sent: Thursday, April 29, 2004 5:15 AM
>>Subject: Database access in contextInitialized
>>
>>
>>
>>
>>>Hello Struts Gurus,
>>>
>>>I am starting with struts.
>>>I used to make some initialization in my Servlets using the init()
>>>method. With struts, I just implemented the
>>>
>>>
>>contextInitialized method of
>>
>>
>>>ServletContextListener Interface, and I have a place for such
>>>initializations. Fine.
>>>
>>>The things I used to initialize were some Collections with
>>>
>>>
>>data from a
>>
>>
>>>database. With struts, I am now using the datasource
>>>
>>>
>>configuration in
>>
>>
>>>struts-config.xml and I access it in my Actions with:
>>>getDataSource(request). Fine too.
>>>
>>>But, I don't have access to getDataSource() in my
>>>
>>>
>>ServletContextListener
>>
>>
>>>implementation. So how can I access my database there, the
>>>
>>>
>>same way I
>>
>>
>>>access it in the rest of the application?
>>>
>>>Thanx in advance
>>>Samuel
>>>
>>>--- andinasoft SA - Software y Consulting ---
>>>Mariano Aguilera 276 y Almagro - Quito, Ecuador
>>>Tel. +593 2 290 55 18 ---- Cel. +593 9 946 4046
>>>--------- http://www.andinasoft.com ---------
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>
>>
>>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>ForwardSourceID:NT00006246
>>DISCLAIMER: The information contained in this message is
>>intended only and solely for the addressed individual or
>>entity indicated in this message and for the exclusive use of
>>the said addressed individual or entity indicated in this
>>message (or responsible for delivery
>>of the message to such person) and may contain legally
>>privileged and confidential information belonging to Tata
>>Consultancy Services. It must not be printed, read, copied,
>>disclosed, forwarded, distributed or used (in whatsoever
>>manner) by any person other than the addressee.
>>Unauthorized use, disclosure or copying is strictly
>>prohibited and may constitute unlawful act and can possibly
>>attract legal action, civil and/or criminal. The contents of
>>this message need not necessarily reflect or endorse the
>>views of Tata Consultancy Services on any subject matter.
>>Any action taken or omitted to be taken based on this message
>>is entirely at your risk and neither the originator of this
>>message nor Tata Consultancy Services takes any
>>responsibility or liability towards the same. Opinions,
>>conclusions and any other information contained in this message
>>that do not relate to the official business of Tata
>>Consultancy Services shall be understood as neither given nor
>>endorsed by Tata Consultancy Services or any affiliate of
>>Tata Consultancy Services. If you have received this message
>>in error, you should destroy this message and may please
>>notify the sender by e-mail. Thank you.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>---------------------------------
>>Do you Yahoo!?
>>Win a $20,000 Career Makeover at Yahoo! HotJobs
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org