RE: Display data using JSP

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.