File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Use of logic:present Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Use of logic:present" Watch "Use of logic:present" New topic

Use of logic:present

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243


What exactly is the use of logic resent?? Also where can I get a complete description with examples for all the Struts tag libraries?? Please help guys!

SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243

Anyone to help me on my post above
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
1.2.7 tags:

You can find all other versions on

logic :p resent
Depending on which attribute is specified, this tag checks the current request, and evaluates the nested body content of this tag only if the specified value is present. Only one of the attributes may be used in one occurrence of this tag, unless you use the property attribute, in which case the name attribute is also required.
[ May 15, 2007: Message edited by: Dom Lassy ]
It is sorta covered in the JavaRanch Style Guide.
subject: Use of logic:present
Similar Threads
EL Empty operator
What metrics do you really use?
Which software do you use to draw diagrams for SCEA Part 2?
How to debug Struts program in Eclipse?
Struts Properties File