从下面这处开始后面的else怎么都被隔开了?jsp和Html可以混和,但是像这样混的话jsp的语法就不对了
<%
String str="";
String error="";
if(error.indexOf("a")!=-1)
{%>

解决方案 »

  1.   

    out.print("<input type=\"hidden\"
    value=\""+month+"\"name=\"month\">");
    这两句在代码中就是分成两行的吗?不能这么分,写一行上out.print("<input type=\"hidden\"value=\""+month+"\"name=\"month\">");
      

  2.   

    out.print("<input type=\"hidden\"
    value=\""+month+"\"name=\"month\">");改成out.print("<input type=\"hidden\" value=\""+month+"\" name=\"month\">");
      

  3.   

    out.print("<input type=\"hidden\"
    value=\""+month+"\"name=\"month\">");改成
    out.print("<input type=\"hidden\" value=\""+month+"\" name=\"month\">");