Hi Alex,

You can use a logic:equal tag to check result stored in your form. Then a
bean:message to display the appropriate Yes or No message.

Jon.



-----Original Message-----
From: Alex Colic [mailto:[EMAIL PROTECTED]] 
Sent: 06 June 2001 16:11
To: Struts
Subject: setting boolean to yes/no

Hi,

I have a form with a checkbox that sets a boolean property in one of my
classes. At a later page I display a msg if the user has selected the
checkbox and I get 'true' or 'false' displayed. What I am actually looking
for is a 'Yes' or 'No' to be displayed. Is there a clean way of getting the
boolean value and then converting it to the 'yes/no' and then displaying
them on a page?

Thanks for any help.

Alex

Reply via email to