my dog learned polymorphism*
The moose likes Struts and the fly likes Java Ranch Article About Struts 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Java Ranch Article About Struts 1.1" Watch "Java Ranch Article About Struts 1.1" New topic
Author

Java Ranch Article About Struts 1.1

Mikey Warren
Ranch Hand

Joined: Jun 15, 2001
Posts: 30
Just tried running through the examples in the two articles linked to at the top of this forum - they're very good as a quick introduction to getting a simple struts app. running.

- but I had a problem getting the 1.1 version working with the javascript validation. First the xml file should be "validation.xml" not "validations.xml" as its referred to in the article.
Second (I suppose this was my fault - but others may make the same mistake) the struts-config.xml file needs to refer to version 1.1 in the doctype (not 1.0). If you're just following the instructions then its easy not to notice this.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Thanks for letting us know. I'll tip Tom about these so he can update the article.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
The problem with the name of the file is that I wasn't consistent in the article, sometimes using validation.xml and sometimes using validations.xml. But it only took a year for someone to notice.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Mikey Warren
Ranch Hand

Joined: Jun 15, 2001
Posts: 30
Feel I'm being picky now, but just incase it helps anyoe else, the minlength of 5 set in validation.xml won't allow user to log on (as "user" is less than 5 characters long obviously) - so change the minLength, or the username of user, in loginBean.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Thank you, Mikey. I think I will make you my official proof reader!
By the way, Mikey is my son's name so you are automatically on my good list!
[ April 01, 2004: Message edited by: Thomas Paul ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Ranch Article About Struts 1.1