<html:link page='/fenye.do?p="+<%=(a+1)%>+"'>下一页</html:link>

解决方案 »

  1.   

    a是个变量吧。
    <html:link page='/fenye.do?p=<%=a+1%>'>下一页</html:link>
      

  2.   

    <html:link page='/fenye.do?p="+<%=(a+1)%>+"'>下一页</html:link>
    和原来一样警告: Unhandled Exception thrown: class java.lang.NumberFormatException
      

  3.   

    <html:link page='/fenye.do?p=<%=a+1%>'>下一页</html:link>
    地址栏显示为/fenye.do?p=<%=a+1%>java.io.CharConversionException: isHexDigit
    .....
    警告: Unhandled Exception thrown: class java.lang.NumberFormatException
      

  4.   

    你的a不是一个数值变量,
    <html:link page='/fenye.do?p=<%=Integer.parseInt(a)+1%>'>下一页</html:link>