I have generally worked in the exploded war way and while this works it
doesn't solve the problem (and problem is relative) of where all your source
code goes and what is what. And in hind sight I don't think we can put
views in a src path next to controllers and models because they aren't
really source code in a "gets compiled" sort of way. They would need to be
copied to the appropriate place on a build.
Freddy's quickstart is a step in the right direction but it has some flaws
IMHO. One is it doesn't internally take care of a development container to
run your app in. You have to either go get jetty, set a jetty home, etc etc
or run it in Tomcat which is another manual process the way Freddy has it
set up. Now for the absolute beginner this is a catch 22. While it might
be the simplest most understandable approach for learning, it doesn't help
you get started as quickly as possible because there are additional
downloads and possible setup required beyond getting stripes.
I don't want stripes to turn into Grails or something like it. I just want
to be able to do something like:
stripes-gen create myApp
stripes-gen run
And the only thing I need to download is a StripesGen or StripesQuickstart
package. Everything else is there for the basics of a new stripes app and a
server to run it on. I have all those pieces. I just don't have the right
scripts to bring it all together. It would also be a benefit to the stripes
community if we were, to some extent, following the same general practices
which includes project structure, IMO.
Anyway, I'm probably going to do something like this for myself at least. I
suppose I'll throw it out for public consumption at some point and others
can use it if they want. I just wanted to know if anyone else might be
interested in creating some sort of Stripes community standard.
Gregg
On Mon, Nov 17, 2008 at 1:40 PM, Oscar Westra van Holthe - Kind <
[EMAIL PROTECTED]> wrote:
> On 17-11-2008 at 11:40, Gregg Bolinger wrote:
> > For the wonderfully splendedness that is Stripes there is one thing that
> I
> > don't like. Everyone has a different project structure. I'm wondering
> if
> > anyone would be interested in unifying an application development
> structure
> > for Stripes with some sort of app generator. It would be grails/rails -
> > esque but totally optional. so something like:
> [...]
>
> The main problem that I encounter with any new project layout is
> understanding what goes where. So for me, understanding the translation to
> a .war and/or .ear file is crucial.
>
> As a result, I prefer an exploded .war / .ear directory structure. For
> bigger
> projects I'll also have a second directory for optional components.
>
> To start, it's then easier for me to have a empty application, that starts
> up
> with an empty page that describes what goes where. Something like:
>
> This is an empty MVC-application using the Stripes framework
> - Your views (JSP/...) should go next to this one here: ...
> - Your controller (action beans) should go here: ...
> - Your model your go here: ...
>
> Naturally, such an empty application will be tailored to the kind of
> deployment (.war or .ear file).
>
>
> Oscar
>
> --
> ,-_ "[Think before you act.]
> /() ) Life is hard, but it's a lot harder when you're stupid."
> (__ ( -- Redd Fox
> =/ ()
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users