RE: Maverick with validation framwork

"Aapo Laakkonen" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Organization ProjectCast Oy
Message-ID <001401c2fda8$c326ace0$1d9dedc3@bungle>
> FormProc (from SourceForge) and Validator (from Jakarta).
> I was curious if anyone has used a framework and what
> your experience regarding these frameworks is.

I have used FormProc. It's very easy. How I intagrated it was adding
parameter to controller that tells the name of form.

<controller ...>
   <param name="form" value"login" />
</controller>

And here is the integration code:

try {

	this.getContext().getParams().remove("form");

	// this.form is automatically populated with BeanUtils.
      if (this.form != null) {

      	FormManager fm = new FormManager();
            HttpForm form = new HttpForm(this.form, null);
            fm.configure(form);

		// this.validationResults can be used by views.
		this.validationResults =
form.process(this.getRequest());

		if (!this.validationResults.isValid()) {
			log.debug("Form validation failed. Returning to
input.");
			return INPUT;
		}

	}
	
} catch (Exception e) {
	throw e;
}



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.