Re: [Mav-user] ${model} question

2003-09-30 Thread Travis Reeder
model is the Controller that you specify in maverick.xml.  This 
controller is stuffed in the the request attributes under the name 
"model".

To get the model outside of jstl might make more sense:

MyController model = (MyController)request.getAttribute("model");

So ${model.dest} would be actually something like model.getDest();

jstl just makes it easier (less lines).

Travis

Thompson, Kris wrote:

model is the name provided by Maverick.  So if you have a property in your controller called user (getUser and setUser) then you can access that value by choosing model.user in the jsp.  


-Original Message-
From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 8:19 AM
To: [EMAIL PROTECTED]
Subject: RE: [Mav-user] ${model} question
In the most examples the controller is a model. Controller may have
inherited several properties from parent class, e.g. getDest().
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ed Thompson
Sent: Tuesday, September 30, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: [Mav-user] ${model} question
I am trying to understand the use of ${model} in the Maverick 
examples.
In the example where ${model.dest} is referneced, I looked at the 
generated .jave file, and cannot detrmine how ${model} is 
resolved into 
an object.  The only reference generated is:

_jspx_the_c_out_1(${model}");

What I do not understand is where (what object?)  the model is 
referenced from.  Does my question make sense?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]


RE: [Mav-user] ${model} question

2003-09-30 Thread Thompson, Kris
model is the name provided by Maverick.  So if you have a property in your controller 
called user (getUser and setUser) then you can access that value by choosing 
model.user in the jsp.  

> -Original Message-
> From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 30, 2003 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Mav-user] ${model} question
> 
> 
> In the most examples the controller is a model. Controller may have
> inherited several properties from parent class, e.g. getDest().
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ed Thompson
> Sent: Tuesday, September 30, 2003 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] ${model} question
> 
> 
> I am trying to understand the use of ${model} in the Maverick 
> examples.
> In the example where ${model.dest} is referneced, I looked at the 
> generated .jave file, and cannot detrmine how ${model} is 
> resolved into 
> an object.  The only reference generated is:
> 
> _jspx_the_c_out_1(${model}");
> 
> What I do not understand is where (what object?)  the model is 
> referenced from.  Does my question make sense?
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> [INVALID FOOTER]
> 


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]


RE: [Mav-user] ${model} question

2003-09-30 Thread Aapo Laakkonen
In the most examples the controller is a model. Controller may have
inherited several properties from parent class, e.g. getDest().

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ed Thompson
Sent: Tuesday, September 30, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: [Mav-user] ${model} question


I am trying to understand the use of ${model} in the Maverick examples.
In the example where ${model.dest} is referneced, I looked at the 
generated .jave file, and cannot detrmine how ${model} is resolved into 
an object.  The only reference generated is:

_jspx_the_c_out_1(${model}");

What I do not understand is where (what object?)  the model is 
referenced from.  Does my question make sense?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]


[Mav-user] ${model} question

2003-09-30 Thread Ed Thompson
I am trying to understand the use of ${model} in the Maverick examples.
In the example where ${model.dest} is referneced, I looked at the 
generated .jave file, and cannot detrmine how ${model} is resolved into 
an object.  The only reference generated is:

_jspx_the_c_out_1(${model}");

What I do not understand is where (what object?)  the model is 
referenced from.  Does my question make sense?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]