I notice that the link seems to be down.
-T.
Steve Raeburn wrote:
I've made a start on a Struts examples application, similar to the Tomcat examples. You might find it looks a bit familiar ;-)
I would appreciate some feedback on whether this is the kind of thing you had in mind. Should I carry on with this or am I completely off-base?
You can view the results so far at http://bobcat.webappcabaret.net/ninsky/index.jsp. You can view the source online (wouldn't be a very good sample app otherwise, would it?)
If you think it's going to be useful, please offer any suggestions as to what to add. If anyone wants to play with it you can download the war at http://bobcat.webappcabaret.net/ninsky/download/ninsky.war
Steve
-----Original Message----- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: May 25, 2003 2:16 PM To: Struts Users Mailing List Subject: Re: Example of <html:select> in use
James Mitchell wrote:
In a way, I was hoping the test cases I wrote recently would
sort-of take care
of this. Although they are not as newbie friendly as a nice
deployable war,
they demonstrate the before and after souce view of (more or
less) every
possible configuration of every tag.
They need a bit of refactoring and they are not complete for
every tag (yet),
but I think I got a nice start on them and I hope to have the
time soon to
finish them.
Yes, it would be a good idea for an examples application to do double-duty as a vehicle for unit testing. Someone might try to roll runtime unit tests and the exercise taglibs into a coherent examples application.
The end-game being when people ask for an "example of <html:select> use", we can say "see the <html:select> example in the examples application", and feel good about it. =:0)
The <html:select> example in the exercise-taglibs application is quite nice, except that it does not use an Action to generate the data. This makes it harder to see the forest for the trees. (And doesn't demonstrate best practices.)
So while, it's a very fine test page (as intended), it's only a mediocre example page. I'll continue to point people there when they ask, but with lingering regret.
As mentioned, a generic "Struts Examples" application, using pages and Actions together, would be a very good exercise for someone learning to use Struts, especially if they need to turn around and teach Struts to their team.
-Ted.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]