Very New to Struts w/ 3 Questions
posted 20 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi,
I'm trying to convert a non-struts Java application into struts, and need to cut some corners due to tight deadlines.
#1: Can I still use my regular html form tags, or do I have to change all or some of them to struts html tags?
#2: Can someone point me to a thorough & working Validator Framework w/ struts sample?
#3: Would anyone happen to know why my password form element loses it's value before it gets to the form bean? The login name gets there, but the password doesn't.
Thanks in Advance for any assistance.
Lulu
I'm trying to convert a non-struts Java application into struts, and need to cut some corners due to tight deadlines.
#1: Can I still use my regular html form tags, or do I have to change all or some of them to struts html tags?
#2: Can someone point me to a thorough & working Validator Framework w/ struts sample?
#3: Would anyone happen to know why my password form element loses it's value before it gets to the form bean? The login name gets there, but the password doesn't.
Thanks in Advance for any assistance.
Lulu
posted 20 years ago
You can still use regular html form tags, but you'll find the prepopulation features of Struts tags very beneficial.
Can't think of one. If I were cutting corners because of time constraints, the validator framework would be one my first cut. I assume you've only a couple days to finish this.
The element isn't losing its value. There is probably a typo between the field's name and the setter method in the ActionForm, causing the ActionForm to not get the value.
[ April 21, 2005: Message edited by: Marc Peabody ]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Lulu Carr:
Hi,
#1: Can I still use my regular html form tags, or do I have to change all or some of them to struts html tags?
You can still use regular html form tags, but you'll find the prepopulation features of Struts tags very beneficial.
#2: Can someone point me to a thorough & working Validator Framework w/ struts sample?
Can't think of one. If I were cutting corners because of time constraints, the validator framework would be one my first cut. I assume you've only a couple days to finish this.
#3: Would anyone happen to know why my password form element loses it's value before it gets to the form bean? The login name gets there, but the password doesn't.
The element isn't losing its value. There is probably a typo between the field's name and the setter method in the ActionForm, causing the ActionForm to not get the value.
[ April 21, 2005: Message edited by: Marc Peabody ]
A good workman is known by his tools.
posted 20 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
1. pre-populate and re-populate upon failed validation
2. http://struts.apache.org/userGuide/dev_validator.html
3. remove your onsubmit="clearPassword();" from your submit button...uh...just kidding...what marc said.
if you cut the validation framework, there isn't are really strong need to use struts-html. so 2 birds, 1 stoner...
2. http://struts.apache.org/userGuide/dev_validator.html
3. remove your onsubmit="clearPassword();" from your submit button...uh...just kidding...what marc said.
if you cut the validation framework, there isn't are really strong need to use struts-html. so 2 birds, 1 stoner...
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
| I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |











