Solved

Can boolean values be used in Struts logic:notEqual tags?

Posted on 2009-04-02
2
3,724 Views
Last Modified: 2013-11-24
Can boolean values be used in Struts logic:equal tags?  I'm having trouble getting the following to work in a JSP:

<logic:notEqual id="useOfSimilarCases" value="true">
      <%=useOfSimilarCases%><bean:write name="details" property="crumbName" />
</logic:notEqual>

The notEqual tag is not working.

This is how I am getting useOfSimilarCases:
<%
ApplicationKeys myAppKeys = (ApplicationKeys) session.getAttribute("applicationKeys");
boolean useOfSimilarCases = myAppKeys.isUsingRelatedCases();
%>

0
Comment
Question by:jwright9
2 Comments
 
LVL 92

Expert Comment

by:objects
ID: 24054772
>

try:



0
 
LVL 14

Accepted Solution

by:
boonleng earned 500 total points
ID: 24056082
try:


0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now