The model is placed in (by default) the request attribute collection.
If you want to use embedded JSP scriptlets, the expression is:

<%= ((YourModel)request.getAttribute("model")).getClients().getName() %>

However, be careful about NullPointerExceptions if part of the chain
breaks down.  Personally I find the JSTL taglibs to be much, much more
pleasant.

If you're feeling adventurous, the JSP2.0 stuff in Tomcat5 is almost
Velocitylike.

Jeff Schnitzer
[EMAIL PROTECTED]

> -----Original Message-----
> From: Marco Pas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 03, 2003 10:30 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Mav-user] Display data using JSP
> 
> Hi,
> 
> i was wondering if it  was possible to display data that has been
> retrieved
> bij controllers/handlers in the following manner:
> 
> <%=controllername.attribute%>
> 
> so lets say i have a controller called getClients with attribute Name.
> Can i call <%=getClients.name%>
> 
> What is the most easiest way to display the data ?
> Do i need to use the taglibs as mentioned in the friendbook example ?
> 
> Kind Regards,
> Marco
> 
> 
> -------------------------------------------------------
> 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]

Reply via email to