- PR -

staticについて

1
投稿者投稿内容
タマ
ベテラン
会議室デビュー日: 2004/08/08
投稿数: 56
投稿日時: 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);
}
・・・
山本 裕介
ぬし
会議室デビュー日: 2003/05/22
投稿数: 2415
お住まい・勤務地: 恵比寿
投稿日時: 2004-11-04 01:03
JasperException ということは例外はJSP内ででているのでしょうか?
「の部分」とは?
また、例外からなにか有用な情報は得られませんでしたか?
1

スキルアップ/キャリアアップ(JOB@IT)