Hi,
I have been mixing scriptlets and html in my code as follows:
<% if (%> <
jsp:getProperty name="job" property="status"/> <% == "hot"){%>
<option value="hot" selected="true">Hot </option>
<% } else { %>
<option value="hot" selected="true">Hot </option>
<% } %>
Which I assumed is perfectly doable.
But when I try to run the application, it is throwing compilation errors.
Error(20,26): Syntax error, insert ") Statement" to complete IfStatement
Error(20,78): Syntax error on token "==", invalid (
Error(20,78): The left-hand side of an assignment must be a variable
Error(20,86): Syntax error, insert "AssignmentOperator Expression" to complete Assignment
Error(20,86): Syntax error, insert ";" to complete Statement
Error(22,26): Syntax error on token "else", delete this token
Any suggesstions?
Thanks, Uma