File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
logic:notpresent vs logic;empty
Joined: Jul 02, 2007
Aug 16, 2007 05:26:00
Can anyone tell me the Difference between logic:notpresent and logic:empty
Joined: Feb 06, 2006
Aug 16, 2007 09:59:00
usually notpresent is used for availability of roles so you can tailor your jsp pages based on roles. But it basically checks for the existance of objects.
empty is for checking if strings (length of 0) or collections (null) are empty.
[ August 16, 2007: Message edited by: Joe Sal ]
Joined: Jul 03, 2007
Aug 17, 2007 01:10:00
The wrapped content of notPresent tag is processed based on whether the object specified does not exist.
notPresent tag can be used with these attributes
cookie, header, parameter , name ,property, role and user
It is sorta covered in the
JavaRanch Style Guide
subject: logic:notpresent vs logic;empty
how to assign bean value to jsp variable in struts
How to know about MessageResources.properties file?
javax. servlet .ServletException: No getter method
Problem with a select tag
Cannot find bean in any scope Error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014