[Mav-user] Displaying data from the model using JSP technology
hi, i was wondering if it was possible to display data that has been retrieved bij controllers/handlers in the following manner: %=Clients.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]
[Mav-user] get Server info
Hello, with a HttpServletRequest, i can retrieve the Host name with : request.getServerName(); does anyone know if it is possible to retrieve such information within the Maverick Dispacher's init(ServletConfig) method ? -- -- Pierre de Soyres Ingénieur d'études e-Manation 14 Bd du Maréchal Juin 44100 Nantes FRANCE Tel: +33 (0)2 40 43 06 11 Fax: +33 (0)2 40 43 30 02 -- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Les informations contenues dans ce courrier electronique et dans les fichiers qui y sont attachees sont confidentielles et peuvent etre protegees legalement. Elles ne sont adressees qu'au destinataire. L'acces a ce courrier electronique par toute autre personne n'est pas autorise. Si vous n'etes pas le destinataire voulu, toute divulgation, copie ou diffusion de ce courrier electronique est interdite et peut etre illegale. Sauf mention contraire dans le corps du message, la presence de cette note prouve egalement que ce message electronique a ete verifie par un logiciel anti-virus. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- This email and any attached file are confidential and intended solely for the use of the individual or entity to whom they are addressed. Accessing this email by anyone else than the recipient is forbidden and may be illegal. If you received this email by error please notify the system administrator. This footnote also confirms that this message has been scanned by an anti-virus software. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf [INVALID FOOTER]
RE: [Mav-user] Display data using JSP
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]