Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add an if statement in jsp?

800340Mar 20 2007 — edited Mar 20 2007
Hi all,

I have a displayTag table and wonder how to have a condition on the following code:
  <display:column title="Accept?">
            <html:multibox property="select" value = "<%=bean.toString() %>" />
	      </display:column>
Basically, I would like to have this code (checkBox) appear only if a bean property is true (otherwise don't show it)
if (bean.userApprove)
// don't show checkBox
else
//show the checkBox
thanks for any pointers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2007
Added on Mar 20 2007
2 comments
450 views