JspWriter println() throws java.io.IOException
所以必须捕捉异常!
try{
out.println("<font size=12>hello</font>");}catch(Exception e){}

解决方案 »

  1.   

    看看api  如果它的方法有定义throws异常 你就要捕捉 或者也抛出异常
      

  2.   

    好的操作数据库的class有吗?谢谢
      

  3.   

    import javax.servlet.jsp.*;
    import java.io.*;
    JspWriter out= null;
    public void setOut( JspWriter out)
      throws IOExecption
    {
    this.out=out;
    }
    public void test()
      throws IOExecption
    {
    out.println("<font size=12>hello</font>");
    }
      

  4.   

    我有一个BEAN,要的话先给我加分把.决不食言
      

  5.   

    到 google搜索一下 有一些不错 找一个你觉得适合的吧