You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Len <ls...@salmonllc.com> on 2007/07/02 22:10:52 UTC
Question about bsh script usages.
In generale I am looking to not use bsh scripts to retrieve and display ofbiz data. I rather create java class in order to do this.
Has any other developers used this approach? If so what are the best practices?
Currently we have defined Events( HttpServletRequest request, HttpServletResponse response) called from the controller.xml file which make the proper calls to the Ofbiz service engine to get the data. The data is then put back into request objects for the FTL to display.
Other ideas were to create Services (DispatchContext dctx, Map context) called from the individual page.xml file.
Any suggestions?
Thank You
Len Shein
Office: 516.742.7888 ext.225
Home: 732.333.4303
Re: Question about bsh script usages.
Posted by sumit pandit <ss...@gmail.com>.
Len, The Jonathon is right. bean BSH gives vary flexible behaviour in
compare to java class. it is almost same as the java. since there is no need
to compile therefore it is good for quick response
On 7/3/07, Jonathon -- Improov <jo...@improov.com> wrote:
>
> You can create Java "classes" in bsh, and then move them over to Java
> classes later on. You don't
> need to compile bsh, so you can develop faster with them.
>
> Jonathon
>
> Len wrote:
> > In generale I am looking to not use bsh scripts to retrieve and display
> ofbiz data. I rather create java class in order to do this.
> >
> > Has any other developers used this approach? If so what are the best
> practices?
> >
> > Currently we have defined Events( HttpServletRequest request,
> HttpServletResponse response) called from the controller.xml file which
> make the proper calls to the Ofbiz service engine to get the data. The data
> is then put back into request objects for the FTL to display.
> >
> > Other ideas were to create Services (DispatchContext dctx, Map context)
> called from the individual page.xml file.
> >
> > Any suggestions?
> >
> >
> >
> > Thank You
> >
> > Len Shein
> >
> > Office: 516.742.7888 ext.225
> >
> > Home: 732.333.4303
> >
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.476 / Virus Database: 269.9.14/883 - Release Date: 7/1/2007
> 12:19 PM
>
>
--
Sumit Pandit
Re: Question about bsh script usages.
Posted by Jonathon -- Improov <jo...@improov.com>.
You can create Java "classes" in bsh, and then move them over to Java classes later on. You don't
need to compile bsh, so you can develop faster with them.
Jonathon
Len wrote:
> In generale I am looking to not use bsh scripts to retrieve and display ofbiz data. I rather create java class in order to do this.
>
> Has any other developers used this approach? If so what are the best practices?
>
> Currently we have defined Events( HttpServletRequest request, HttpServletResponse response) called from the controller.xml file which make the proper calls to the Ofbiz service engine to get the data. The data is then put back into request objects for the FTL to display.
>
> Other ideas were to create Services (DispatchContext dctx, Map context) called from the individual page.xml file.
>
> Any suggestions?
>
>
>
> Thank You
>
> Len Shein
>
> Office: 516.742.7888 ext.225
>
> Home: 732.333.4303
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.9.14/883 - Release Date: 7/1/2007 12:19 PM