You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@gmail.com on 2007/06/25 02:43:31 UTC
Parameters Interceptor
Can someone enlighten me on the following excerpt from the
--
Scott
stanlick@gmail.com
Re: Parameters Interceptor
Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> "Similiarily it's possible to use
action.setPrimaryKey()
> property set call to actually load the model class
from
> persistent storage. Without any assumption on
parameter
> order you have to use patterns like 'Preparable'."
I thought it meant that once you have a known order of
parameter loading that you can rely on that order: in
the example given it seems like they're referring to
the ability to know modelClass's type, hence once
you've reached the setPrimaryKey method you know
enough to retrieve an appropriate instance of
modelClass.
Without ordering you'd need to use Preparable (well,
assuming a params -> prepare stack) to retrieve the
instance, because only then would you have complete
information (implementation and primary key).
d.
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Parameters Interceptor
Posted by st...@gmail.com.
Can someone enlighten me on the following excerpt from the
Apache Struts 2 Documentation
Parameters Interceptor
http://struts.apache.org/2.x/docs/parameters-interceptor.html
"Similiarily it's possible to use action.setPrimaryKey() property set call
to actually load the model class from persistent storage. Without any
assumption on parameter order you have to use patterns like 'Preparable'."