Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Error: object type required, but boolean found

Status
Not open for further replies.

bcdeyo

Programmer
Apr 5, 2002
5
US
Hello,

I'm hoping someone here can help me out. I'm trying to compile a jsp page, and I get this error:

object type required, but boolean found

The code with the error is:

<input type=&quot;radio&quot; name=&quot;medselect&quot;
value=&quot;<%=health.getHPlan(employee.GetEmpMed(processInputBean.getEMP_NO()))%>&quot;
<% if (processOutputBean.getMedchange().equals(&quot;N&quot;)) { %> checked <% } %>
/>

The error is specifically happening with this line:

<% if (processOutputBean.getMedchange().equals(&quot;N&quot;)) { %> checked <% } %>

Thanks in advance for any help you can give me!

Ben
 
Hi,

I, did try what you are doing and I id not get any Exception. Do you think am I missing any thing.

<%
String value = &quot;Y&quot;;
%>
<form name=&quot;f1&quot;>
<input type=&quot;radio&quot; name=&quot;medselect&quot; value=&quot;123&quot;
<% if (value.equals(&quot;N&quot;)) { %> checked <% } %>
/>

</form>

I did make value=&quot;N&quot; even then I did not get any exception

Cheeers,
-Venu
 
It doesn't look like you're missing anything. I'm using Oracle9i JDeveloper to develop, compile, and test this program. It seems like the code previously worked with an earlier JDeveloper program. I also think it compiled successfully the first time with this JDeveloper version, but since that first time, it keeps giving me that error. Could it be something with JDeveloper? Thanks for your help!

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top