Meaningless Drivel is fun!*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Value Object" Watch "Value Object" New topic
Author

Value Object

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Hey,
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
http://www.tiago182.spyw.com/
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4456
    
    6

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]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
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
 
jQuery in Action, 2nd edition
 
subject: Value Object