- - PR -
staticについて
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2004-11-03 21:44
@の部分はいままでFormatをインスタンス化していたのですがstaticに変えて
実行したところjasper Exceptionがでてしまいました。 どこがまずいんでしょうか?? public class ProductPosServlet extends HttpServlet{ public void doGet(HttpServletRequest request, HttpServletResponse response){ @hash_form = Format.chgCharCode(request); ・・・・・ } public class Format{ public static String chgCharCode(String p_str_text) throws Exception{ p_str_text = new String(p_str_text.getBytes("8859_1"), "Shift_JIS"); return(p_str_text); } public static HashMap chgCharCode(HttpServletRequest p_request) throws Exception{ HashMap hash_form = new HashMap(); String str_hash_key = null; Enumeration obj_enum = p_request.getParameterNames(); while(obj_enum.hasMoreElements()){ str_hash_key = (String)obj_enum.nextElement(); hash_form.put( str_hash_key ,chgCharCode(p_request.getParameter(str_hash_key)) ); } return(hash_form); } ・・・ |
|
投稿日時: 2004-11-04 01:03
JasperException ということは例外はJSP内ででているのでしょうか?
「の部分」とは? また、例外からなにか有用な情報は得られませんでしたか? |
1