Dan Connelly wrote:
> Being a "blank" myself, I tried the original struts-blank that you posted a
> few days ago on your web site. I got into trouble almost immediately. My
> own fault, no doubt. The Digester blew up when I amended struts-config.xml,
> adding a blankFormBean and a mapping for a blankAction to handle a blank
> <html:form>.
Obviously, if there is a problem with the stub application, I'll be
happy to fix it. I did run a quick test, and the version I checked-in
last night seems fine. You might want to try copying and pasting working
code from, say, the example application, to see how that goes for you.
I'm working on another one now that was based on the blank application,
which includes some simple forms and actions. I'd send that one to you
too, but it requires a DBMS -- do you have something already installed?
> How about expanding your struts-blank as follows (if you have not already
> done so):
The "scope" of the original blank application was to provide a
quick-and-easy way to get a Struts/Webapp file structure up and running,
generally by copying the WAR with your application's name, and adding
working code.
I did try to meet the design goal you mentioned: the most minimal of all
working Struts Applications.
The problem with taking it much farther is that "to name something is to
own something". So once we get past an "index.jsp", we start to get into
space that really belongs to the individual application.
Of course, if you have a different vision for a blank application,
developing an alternative version might be a good learning experience.
One good idea might be to provide working stub files that you could
"save as" a new Action or ActionForm subclass ("Action.stub" and
"ActionForm.stub").
I would like to continue to do a variety of sample applications with
more working code that people might want to use a basis for their own
projects.
I would also like to work toward something like an example library,
which might have working components that people could cut-and-paste into
their own applications.
>
> Ted:
>
> Being a "blank" myself, I tried the original struts-blank that you posted a
> few days ago on your web site. I got into trouble almost immediately. My
> own fault, no doubt. The Digester blew up when I amended struts-config.xml,
> adding a blankFormBean and a mapping for a blankAction to handle a blank
> <html:form>.
>
> I thought the amended XML syntax in my struts-config.xml looked okay.
> (But, who knows?? And, I didn't check your supplied DTD.)
>
> It is difficult for a neophyte "blank" like me to know if he has make a dumb
> XML mistake or if trying the blankest of blank <html:form> forms in
> index.jsp causes the Digester to implode (strangely).
>
> How about expanding your struts-blank as follows (if you have not already
> done so):
>
> 1. Blank form included in index.jsp:
> <html:form ACTION="blankAction.do">
> <html:submit> </html:submit>
> </html:form>
> 2. Code a blank form bean class, blankActionForm,
> empty subclass of ActionForm
> 3. Code a blank action, blankAction,
> empty sub-class of Action.
> 4. Add the minimum struts-config.xml defs and mappings to make this
> run.
>
> [If I've left something out, all the more reason for you to provide the
> augmented blank. I'm a blank.]
>
> Hitting the (blank) button on the Welcome page should return a blank page.
> Very blank.
>
> Specify nothing if not required, but comment the expected defaulted
> attributes, like "name". This blank starter app would come with 2 java
> source files already in WEB-INF/src. Skip the org.apache.struts.blank
> packaging for blankAction and blankActionForm. Two class files directly
> below WEB-INF/classes, of course. (Does this make the build.xml a bigger
> mess than you wanted??)
>
> Dan Connelly
>
> PS. Now that I have written this down, and now that there are yet more
> updates from cvs, I'm going to try it all again.
>
> ----- Original Message -----
> From: "Ted Husted" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 11, 2001 4:44 PM
> Subject: Re: cvs commit: jakarta-struts/web/blank - New directory
>
> > The message here should have been:
> >
> > Add source folder for struts-blank.war - Ready-to-rename application
> > starter WAR.
> >
> > ? - What configuration files do I need to update to add a new sample
> > application (struts-blank)?
> >
> > ? - What about providing the source for each sample application under <
> > WEBINF/src >, so that everything is together?
> >
> > -T.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/