Question about bsh script usages.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about bsh script usages.

lshein
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
Reply | Threaded
Open this post in threaded view
|

Re: Question about bsh script usages.

jonwimp
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

Reply | Threaded
Open this post in threaded view
|

Re: Question about bsh script usages.

Sumit Pandit-4
 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 <[hidden email]> 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