请教一个关于JSP 嵌套Html页面代码的问题。
<%String teamName1 = new String(request.getParameter("teamName") .getBytes("ISO8859-1"), "UTF-8");if(teamName1.contains("男")){ <input type="hidden" id="sex" name="athlete.sex" value="男" />%><script>alert("性别是男!");</script><%}else if(teamName1.contains("女")){ <input type="hidden" id="sex" name="athlete.sex" value="女" />}%>
<%String teamName1 = new String(request.getParameter("teamName") .getBytes("ISO8859-1"), "UTF-8");if(teamName1.contains("男")){ %> <input type="hidden" id="sex" name="athlete.sex" value="男" /> <%}else if(teamName1.contains("女")){ %> <input type="hidden" id="sex" name="athlete.sex" value="女" /> <% } %>