File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Value Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Value Object" Watch "Value Object" New topic

Value Object

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
I'm trying to use 3 layers: access control, services and data. I'd like to use VO's in my Struts Application, but I don't know where to find ValueObject.class.
Simple question: where can I get a .JAR file that include an implementation of this class?
Valeu galera!

Tiago Fernandez
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

I don't think there's one specific ValueObject class. The pattern formerly known as Value Object is now preferably called the Transfer Object pattern (a simplification of Martin Fowler's name for it, "Data Transfer Object"). The implementation will depend on what kind of data you want to transfer.

Junilu - [How to Ask Questions] [How to Answer Questions]
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Value Object is just a Sun Pattern to e.g. reduce network traffic when work with EJB's. In an environment without EJB's a value object makes no sense, cause it is a simple class which represents a data object. Check out the following resource
Transfer Object
I agree. Here's the link:
subject: Value Object
It's not a secret anymore!