做图书管理系统代码老是出错,急! 有没有大神可以帮忙看看

图片说明

是这个navigation.jsp有错误,我想要删掉一些功能,但是怕删错
<%@include file="navigation.jsp"%>这一句报错
Multiple annotations found at this line:
- Manager cannot be resolved to a variable
- The static method toChinese(String) from the type ChStr should be accessed in a
static way
- The static method toChinese(String) from the type ChStr should be accessed in a
static way
- Manager cannot be resolved to a variable

http://www.java1234.com/a/kaiyuan/javaWeb/2013/0503/312.html
http://blog.sina.com.cn/s/blog_4b5bc0110101a97e.html

多谢~我改的代码就是你第一个链接里发的,不过代码错误不知道怎么改

看报错应该是 ChStr类中的toChinese(String strvalue)方法应该为静态的,即static的。

 public class ChStr {
    public static String toChinese(String strvalue) {
        try {
            if (strvalue == null) { 
                strvalue="";    
            } else {
                strvalue = new String(strvalue.getBytes("ISO8859_1"), "GBK");
                strvalue = strvalue.trim(); 
            }
        } catch (Exception e) {
            strvalue="";
        }
        return strvalue;
}