Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Joined: Sep 28, 2002
Originally posted by Hung Tang:
I suggest you should create a Form-To-DTO mapping in your actions so you decouple the web layer from your model layer. Your model layer would accept these DTOs and use them to persist to the DB or whatever you want to do with them.
thanx for the reply Tang, can u plz explain more about this technique, or alternatively provide link for a tutorial on this. I am new to struts so i am not aware of all its capabilities. thanx again
Hi all, Manning Press has made Chapter 12 of their book: Husted, Ted et al. Struts in Action: Building Web Applications with the Leading Java framework (Greenwich: Manning Press, 2003) available for download in PDF format from the following URL: http://www.manning.com/husted/chap12.pdf This chapter discusses the Validator framework that can be used to validate data entry forms, etc. In particular, it covers the following topics: - Understanding the need to validate data. - Configuring and using the Commons Validator. - Using multiple and localized validations. - Writing your own validators. As the Validator framework is fairly new and does not come with a lot of documentation, this chapter is well worth the read. Darryl
Joined: Feb 14, 2002
can u plz explain more about this technique, or alternatively provide link for a tutorial on this.