[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Test value of ${message }

Posted on 2007-08-08
Medium Priority
Last Modified: 2012-05-05
I have the following code in a jsp/struts page

                  <html:messages  id="message" message="true">
                        <p>${message }</p>

How do I test to see if ${message} actually is returning something?
Question by:894359
  • 2
LVL 18

Expert Comment

ID: 19660656
<c:out value="${message}" />
LVL 18

Accepted Solution

Eternal_Student earned 2000 total points
ID: 19660666
To test to see if it is empty you could do this:

      <c:when test="${empty message}">
            <c:out value="${message}" />

That is JSTL you could just use JSP to do the same thing if you wanted.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Will the future of mobile app development include the same trends as those most relevant today? Find out by checking out the 7 trends of the future.
Last month Marc Laliberte, WatchGuard’s Senior Threat Analyst, contributed reviewed the three major email authentication anti-phishing technology standards: SPF, DKIM, and DMARC. Learn more in part 2 of the series originally posted in Cyber Defense …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

834 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