Login  Register

Re: Dev - move of the bsh location from the 'WEB-INF/action' directory

Posted by David E. Jones on Apr 27, 2006; 8:48am
URL: http://ofbiz.116.s1.nabble.com/Dev-move-of-the-bsh-location-from-the-WEB-INF-action-directory-tp167795p167797.html


Jacopo is correct about these points. The convention in OFBiz right now is to put FTL files in the directories directly under a webapp root, though they of course don't _have_ to go there technically. The same thing applies to BSH scripts being under the <webapp-root>/WEB-INF/actions directory. They don't have to go there, but for people who are used to working with J2EE Servlet based webapps that sort of place is the expected location, and that is the target audience for such things.

Also, the separation of the location of FTL files from BSH scripts is intentional as in larger teams some of those who work with FTL files never touch the BSH scripts, or never should, and this makes it easier to set up source tools and such to make such restrictions possible.

If typing it is annoying then maybe some creative copy-paste is in order?

-David


Jacopo Cappellato wrote:

> Hans,
>
> it could be a good idea, but there are a few issues we have to take into
> account:
>
> a) all the bsh scripts that depend on http related resources (request,
> response etc...) should not be moved outside of the webapp folder
>
> b) I think that it is important to store webapp's scripts and
> configuration files under the WEB-INF folder because all the resources
> under this special folder are not publicly served by the application
> servers (it's one of the J2EE specifications)
>
> Jacopo
>
> Hans Bakker wrote:
>> A proposal to change the directory standard:
>>
>> Currently all bsh scripts are stored as follows:
>> /applications/applName/webapp/webappName/WEB-INF/actions/subwebappName/bshName.bsh
>>
>> in the applications which do not use jpublish, can't we move these a bit
>> higher up like:
>> /applications/applName/webapp/webappName/subwebappName/bshName.bsh
>>
>> together with the ftl files ?
>>
>> they are then easier to find and not so far down the directory tree....
>>
>> any opinions?
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>  
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev