<%= %> cannot be connected with equals() : <%= %> cannot be connected with equals().
I am making JSP & Servlet app.
Now I wrote in JSP file like

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-css -->


            <table>
              <tbody>
                
                <tr>
                  <td><%= item.getName() %></td>
                </tr>
                <tr>
                  <td>

    			<% if(request.getAttribute("code").equals.new(<%= item.getCode() %>)){
    			 %>
                    <input type="submit" value="Click"
                      onclick="JavaScript:Submit(<%= item.getCode() %>,<%= item.getCount() %>);"
                      <%
                      if(request.getAttribute("count") != null){
                      if(request.getAttribute("count").equals("0")){

    										%>
    										disabled
    										<%
    									}
                      }


    											%>

<!-- end snippet -->

But,<% if(request.getAttribute("code").equals.new(<%= item.getCode() %>))
has too much errors,so this grammer is wrong.
But I do not know how to fix.I wanna know how to connected with equals() & <%= %>.

