I am embedding Java code in a piece of JSP on a HTML page:
<c:when test="<%=\"F\".equals(result[1])||\"P\".equals(result[1])%>">
The above code works. Now I need to make "F".equals(result[1]) to !("F".equals(result[1])). How do I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re not supposed to use scriptlet expressions inside JSTL tag attributes. You should use the JSP EL instead:
Read https://stackoverflow.com/tags/jsp/info for information and links about the JSTL and the EL.