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.