001 /* 002 * Copyright (c) 2009 The openGion Project. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 013 * either express or implied. See the License for the specific language 014 * governing permissions and limitations under the License. 015 */ 016 package org.opengion.hayabusa.taglib; 017 018 import org.opengion.hayabusa.common.HybsSystem; 019 import org.opengion.hayabusa.common.HybsSystemException; 020 import org.opengion.fukurou.util.ErrorMessage; 021 import org.opengion.fukurou.util.XHTMLTag; 022 import org.opengion.fukurou.util.Attributes; 023 024 import static org.opengion.fukurou.util.StringUtil.nval ; 025 026 import java.util.Locale ; 027 import java.io.ObjectOutputStream; 028 import java.io.ObjectInputStream; 029 import java.io.IOException; 030 031 /** 032 * エラーメãƒ?‚»ãƒ¼ã‚¸ã‚?表形å¼ã§è¡¨ç¤ºã™ã‚‹ã‚¿ã‚°ã§ã™ã? 033 * 034 * Query 関係ã?実行時ã«ã‚¨ãƒ©ãƒ¼/ワーニングãŒç™ºç”Ÿã™ã‚‹ã¨ã€HybsSystem.ERR_MSG_KEY ã‚’ã‚ー㫠035 * ErrorMessage オブジェクãƒ?ã‚’ã‚»ãƒ?‚·ãƒ§ãƒ³ã«ç™»éŒ²ã—ã¾ã™ã? 036 * ã“ã?æƒ??ã‚’å?ã«ã€è¡¨é¡?TITLE)ã‹ã?å†?®¹(BODY)を表示ã—ã¾ã™ã? 037 * 基本çš?«ã¯?Œè¡¨é¡Œè¡¨ç¤ºæ™‚ã«ã¯?Œãƒªãƒ³ã‚¯ã‚’張りã?共通エラー表示画é¢ã‚’オープン 038 * 出æ¥ã‚‹æ§˜ã«ãªã£ã¦ã?¾ã™ã? 039 * 040 * @og.formSample 041 * â—å½¢å¼ï¼? 042 * <og:errorMessage command="{@command}" clear="{@clear}" /> 043 * â—body?šãªã? 044 * 045 * â—Tag定義?? 046 * <og:errorMessage 047 * command ã€TAG】コマンãƒ?NEW,RENEW,RESET,REVIEW)ã‚’ã‚»ãƒ?ƒˆã—ã¾ã? 048 * clear ã€TAG】メãƒ?‚»ãƒ¼ã‚¸ã‚’å?期化ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false) 049 * viewType ã€TAG】表示形å¼ã?表é¡?TITLE)ã‹ã?å†?®¹(BODY)ã€ã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:TITLE) 050 * displayMsg ã€TAG】plsqlUpdate ã®çµæžœã‚’ç”»é¢ä¸Šã«è¡¨ç¤ºã™ã‚‹ãƒ¡ãƒ?‚»ãƒ¼ã‚¸IDを指定ã—ã¾ã?åˆæœŸå€¤:MSG0059『登録ã—ã¾ã—ãŸã€? 051 * warningMsg ã€TAG】登録処ç?®Ÿè¡Œå¾Œã?ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°çµæžœã‚’ç”»é¢ä¸Šã«è¡¨ç¤ºã™ã‚‹ãƒ¡ãƒ?‚»ãƒ¼ã‚¸IDを指定ã—ã¾ã?åˆæœŸå€¤:ERR0020) 052 * debug ã€TAG】デãƒãƒƒã‚°æƒ??ã‚’å?力ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false) 053 * /> 054 * 055 * â—使用ä¾? 056 * result.jsp ç‰ã?SQL登録実行後ã?戻り画é¢ã«ã€ä¸Šè¨˜ã‚¿ã‚°ã‚’é?ç½®ã™ã‚Œã°ã€? 057 * エラーメãƒ?‚»ãƒ¼ã‚¸ãŒå˜åœ¨ã™ã‚Œã°,リンクã¨ãªã£ã¦ç¾ã‚Œã?ç„¡ã‘れã°,ãªã«ã‚? 058 * ç¾ã‚Œã¾ã›ã‚“ã€? 059 * リンクã®ã¨ã³å…ˆã?自動的ã«è¨å®šã•れã¾ã™ã? 060 * ãªãŠã?clear="true" ã¾ãŸã?ã€command="NEW" ã®å ´åˆã«ã€ã‚¨ãƒ©ãƒ¼ãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã¯ã€? 061 * クリアã•れã¾ã™ã? 062 * 063 * [entry.jsp] 064 * <% String forwardPage="result.jsp"; %> 065 * <jsp:forward page="<%= response.encodeRedirectURL( forwardPage ) %>" > 066 * <jsp:param name="command" value="REVIEW" /> 067 * <jsp:param name="clear" value="false" /> 068 * </jsp:forward> 069 * 070 * [result.jsp] 071 * <og:errorMessage command="{@command}" clear="{@clear}" /> 072 * 073 * @og.group エラー処ç? 074 * 075 * @version 4.0 076 * @author Kazuhiko Hasegawa 077 * @since JDK5.0, 078 */ 079 public class ErrorMessageTag extends CommonTagSupport { 080 //* ã“ã?プãƒã‚°ãƒ©ãƒ??VERSIONæ–?—å?ã‚’è¨å®šã—ã¾ã™ã? {@value} */ 081 private static final String VERSION = "5.2.1.0 (2010/10/01)" ; 082 083 private static final long serialVersionUID = 521020101001L ; 084 085 /** command å¼•æ•°ã«æ¸¡ã™äº‹ã?出æ¥ã‚?コマンãƒ? æ–°è¦?{@value} */ 086 public static final String CMD_NEW = "NEW" ; 087 /** command å¼•æ•°ã«æ¸¡ã™äº‹ã?出æ¥ã‚?コマンãƒ? 冿¤œç´¢ {@value} */ 088 public static final String CMD_RENEW = "RENEW" ; 089 /** command å¼•æ•°ã«æ¸¡ã™äº‹ã?出æ¥ã‚?コマンãƒ? å–æ¶?{@value} */ 090 public static final String CMD_RESET = "RESET" ; 091 /** command å¼•æ•°ã«æ¸¡ã™äº‹ã?出æ¥ã‚?コマンãƒ? å†è¡¨ç¤º {@value} */ 092 public static final String CMD_REVIEW = "REVIEW" ; 093 /** command å¼•æ•°ã«æ¸¡ã™äº‹ã?出æ¥ã‚?コマンãƒ?リスãƒ? */ 094 // private static final String[] COMMAND_LIST = new String[] { CMD_NEW , CMD_RENEW , CMD_RESET , CMD_REVIEW }; 095 private static final String errMsgId = HybsSystem.ERR_MSG_KEY; 096 private final String errMsgFile = HybsSystem.sys( "ERR_MSG_FILENAME" ); 097 private final int maxRowCount = HybsSystem.sysInt( "DB_MAX_ROW_COUNT" ) ; 098 099 private transient ErrorMessage errMessage = null; 100 private String command = null; 101 private boolean msgClear = false; 102 private String viewType = "TITLE"; // TITLE/BODY 103 104 // 2.0.1.0 (2002/10/10) ãƒ?ƒ•ォルト表示ã—ãªã?‹ã‚‰ã?MSG0059=登録ã—ã¾ã—ãŸã€‚ã«å¤‰æ›´ã—ã¾ã™ã? 105 private String displayMsg = "MSG0059"; // åˆæœŸå€¤ã¯ã€Žç™»éŒ²ã—ã¾ã—ãŸã€‚ã? 106 private String warningMsg = "ERR0020"; // ãƒ??タ登録時ã«ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°ãŒç™ºç”Ÿã—ã¾ã—ãŸã€? 107 108 /** 109 * Taglibã®é–‹å§‹ã‚¿ã‚°ãŒè¦‹ã¤ã‹ã£ãŸã¨ãã«å‡¦ç?™ã‚?doStartTag() ã‚?オーãƒã?ライドã—ã¾ã™ã? 110 * 111 * @og.rev 3.5.4.0 (2003/11/25) エラーオブジェクトã?クリアã«ã€RENEW or null も追åŠ?—ã¾ã™ã? 112 * 113 * @return 後続å?ç??æŒ?¤º(SKIP_BODY) 114 */ 115 @Override 116 public int doStartTag() { 117 // ã‚¯ãƒªã‚¢ãŒæŒ‡ç¤ºã•れるã‹ã€ã‚³ãƒžãƒ³ãƒ‰ãŒ NEW or RESET or RENEW or null ã®å ´åˆã?ã€ã‚¨ãƒ©ãƒ¼ã‚’クリアã™ã‚‹ã€? 118 if( msgClear || CMD_NEW.equals( command ) || CMD_RESET.equals( command ) ) { 119 // 3.5.4.9 (2004/02/25) RENEW ã®æ™‚ã?ã€ã‚¨ãƒ©ãƒ¼ã‚’クリアã—ãªã?? 120 removeSessionAttribute( errMsgId ); 121 msgClear = true; 122 } 123 else { 124 errMessage = (ErrorMessage)getSessionAttribute( errMsgId ); 125 if( errMessage == null ) { msgClear = true; } 126 } 127 128 return(SKIP_BODY); // Body を評価ã—ãªã? 129 } 130 131 /** 132 * Taglibã®çµ‚äº?‚¿ã‚°ãŒè¦‹ã¤ã‹ã£ãŸã¨ãã«å‡¦ç?™ã‚?doEndTag() ã‚?オーãƒã?ライドã—ã¾ã™ã? 133 * 134 * @og.rev 2.1.0.3 (2002/11/08) command = NEW ã®ã¨ãã‚‚ã€ã?登録ã—ã¾ã—ãŸã€‚ã?メãƒ?‚»ãƒ¼ã‚¸ãŒè¡¨ç¤ºã•れるãƒã‚°ã‚’ä¿®æ£ 135 * @og.rev 3.1.1.2 (2003/04/04) Tomcat4.1 対応ã?release2() ã‚?doEndTag()ã§å‘¼ã¶ã€? 136 * @og.rev 3.5.5.2 (2004/04/02) TaglibUtil.makeHTMLErrorTable メソãƒ?ƒ‰ã‚’利用 137 * @og.rev 4.0.0.0 (2007/10/18) メãƒ?‚»ãƒ¼ã‚¸ãƒªã‚½ãƒ¼ã‚¹çµ±å? getResource().getMessage > getResource().getLabel ) 138 * @og.rev 4.1.3.0 (2008/09/04) メãƒ?‚»ãƒ¼ã‚¸ã‚’spanã§å›²ã?ç”»é¢é·ç§»ãªã—モード対å¿? 139 * @og.rev 5.2.1.0 (2010/10/01) 戻るリンク時ã«ä¸è¦ãªæ”¹è¡ŒãŒå‡ºåŠ›ã•れる件ã«å¯¾å¿? 140 * 141 * @return 後続å?ç??æŒ?¤º 142 */ 143 @Override 144 public int doEndTag() { 145 debugPrint(); // 4.0.0 (2005/02/28) 146 147 String msg = null; 148 if( errMessage == null ) { 149 if( CMD_REVIEW.equals( command ) || CMD_RENEW.equals( command ) ) { 150 // 5.2.1.0 (2010/10/01) 戻るリンク時ã«ä¸è¦ãªæ”¹è¡ŒãŒå‡ºåŠ›ã•れる件ã«å¯¾å¿? 151 // msg = getResource().getMessage( displayMsg ) + HybsSystem.BR; 152 msg = getResource().getLabel( displayMsg ); 153 if( msg != null && msg.length() > 0 ) { msg += HybsSystem.BR; } 154 } 155 } 156 else { 157 if( "TITLE".equalsIgnoreCase( viewType ) ) { 158 msg = makeTitle(); 159 } 160 else if( "BODY".equalsIgnoreCase( viewType ) ) { 161 msg = TaglibUtil.makeHTMLErrorTable( errMessage,getResource() ); // 3.5.5.2 (2004/04/02) 162 } 163 else { 164 String errMsg = "viewType属æ?ã« TITLE/BODY 以外ã?é ?›®ãŒæŒ‡å®šã•れã¦ã?¾ã™ã?" 165 + "[" + viewType + "]" ; 166 throw new HybsSystemException( errMsg ); 167 } 168 } 169 170 jspPrint( "<span class=\"errmsg\">" ); // 4.1.3.0 (2008/09/04) 171 if( msg != null && msg.length() > 0 ) { jspPrint( msg ); } 172 jspPrint( "</span>" ); 173 174 return(EVAL_PAGE); 175 } 176 177 /** 178 * タグリブオブジェクトをリリースã—ã¾ã™ã? 179 * ã‚ャãƒ?‚·ãƒ¥ã•れã¦å†åˆ©ç”¨ã•れるã?ã§ã€ãƒ•ィールドã?åˆæœŸè¨å®šã‚’行ã„ã¾ã™ã? 180 * 181 * @og.rev 2.0.0.4 (2002/09/27) カスタãƒ?‚¿ã‚°ã® release() メソãƒ?ƒ‰ã‚’ã?追åŠ? 182 * @og.rev 2.0.1.0 (2002/10/10) ãƒ?ƒ•ォルト表示ã—ãªã?‹ã‚‰ã?MSG0059=登録ã—ã¾ã—ãŸã€‚ã«å¤‰æ›´ã—ã¾ã™ã? 183 * @og.rev 3.1.1.2 (2003/04/04) Tomcat4.1 対応ã?release2() ã‚?doEndTag()ã§å‘¼ã¶ã€? 184 * 185 */ 186 @Override 187 protected void release2() { 188 super.release2(); 189 command = null; 190 errMessage = null; 191 msgClear = false; 192 viewType = "TITLE"; // TITLE/BODY 193 displayMsg = "MSG0059"; // åˆæœŸå€¤ã¯ã€Žç™»éŒ²ã—ã¾ã—ãŸã€‚ã? 194 warningMsg = "ERR0020"; // ãƒ??タ登録時ã«ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°ãŒç™ºç”Ÿã—ã¾ã—ãŸã€? 195 } 196 197 /** 198 * エラーメãƒ?‚»ãƒ¼ã‚¸ã‚’ã‚¿ã‚°æƒ??ã®æ–?—å?ã«å¤‰æ›ã—ã¦è¿”ã—ã¾ã™ã? 199 * 200 * ã“ã“ã§ã¯ã€æ£å¸¸ãªãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã‚‚異常ãªãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã‚‚作æ?ã—ã¾ã™ã? 201 * 202 * @og.rev 3.6.0.1 (2004/09/29) ワーニングã€ã‚¨ãƒ©ãƒ¼æ™‚ã?スタイルシートをé©ç”¨ 203 * @og.rev 3.6.0.7 (2004/11/06) target 属æ?ã‚?_new ã‹ã‚‰ _blank ã«å¤‰æ›´ 204 * @og.rev 4.0.0.0 (2007/10/18) メãƒ?‚»ãƒ¼ã‚¸ãƒªã‚½ãƒ¼ã‚¹çµ±å? getResource().getMessage > getResource().getLabel ) 205 * @og.rev 5.1.7.0 (2010/06/01) エラー・ワーニングメãƒ?‚»ãƒ¼ã‚¸ã®å¾Œã«æ”¹è¡Œã‚’入れる(displayMsgã¨ä»•様をåˆã‚ã›ã‚‹) 206 * 207 * @return エラーメãƒ?‚»ãƒ¼ã‚¸ã®ã‚¿ã‚°æƒ??æ–?—å? 208 */ 209 private String makeTitle() { 210 String href = getContextPath() + "/" + errMsgFile ; 211 212 Attributes attri = new Attributes(); 213 attri.set( "href" , href ); 214 attri.set( "target" , "_blank" ); // 3.6.0.7 (2004/11/06) 215 216 final String title ; 217 if( warningMsg != null ) { 218 title = "<span class=\"msg_warning\">" 219 // + getResource().getMessage( warningMsg ) 220 + getResource().getLabel( warningMsg ) 221 // 5.1.7.0 (2010/06/01) ワーニングメãƒ?‚»ãƒ¼ã‚¸ã®å¾Œã«æ”¹è¡Œã‚’入れる 222 + "</span>" + HybsSystem.BR; 223 } 224 else { 225 title = "<span class=\"msg_error\">" 226 + errMessage.getTitle() 227 // 5.1.7.0 (2010/06/01) エラーメãƒ?‚»ãƒ¼ã‚¸ã®å¾Œã«æ”¹è¡Œã‚’入れる 228 + "</span>" + HybsSystem.BR; 229 } 230 231 attri.set( "body" , title ); 232 233 String key = "pageSize"; 234 String val = String.valueOf( maxRowCount ); 235 String urlEnc = XHTMLTag.urlEncode( key,val ); 236 237 return XHTMLTag.link( attri,urlEnc ) ; 238 } 239 240 /** 241 * ã€TAG】コマンãƒ?NEW,RENEW,RESET,REVIEW)ã‚’ã‚»ãƒ?ƒˆã—ã¾ã™ã? 242 * 243 * @og.tag 244 * コマンドã?,HTMLã‹ã‚‰(get/post)æŒ?®šã•れã¾ã™ã?ã§,CMD_xxx ã§è¨å®šã•れる 245 * フィールド定数値ã®ã?¥ã‚Œã‹ã‚’ã?æŒ?®šã§ãã¾ã™ã? 246 * 247 * @param cmd コマンãƒ?public static final 宣è¨?•れã¦ã?‚‹æ–?—å?) 248 * @see <a href="{@docRoot}/constant-values.html#org.opengion.hayabusa.taglib.ErrorMessageTag.CMD_NEW">コマンド定数</a> 249 */ 250 public void setCommand( final String cmd ) { 251 String cmd2 = getRequestParameter( cmd ); 252 if( cmd2 != null && cmd2.length() > 0 ) { command = cmd2.toUpperCase(Locale.JAPAN); } 253 } 254 255 /** 256 * ã€TAG】メãƒ?‚»ãƒ¼ã‚¸ã‚’å?期化ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false)ã€? 257 * 258 * @og.tag 259 * メãƒ?‚»ãƒ¼ã‚¸ã¯ã€ä¸?ˆ¬ã«ã¯?Œã‚¨ãƒ©ãƒ¼ãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã‹ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°ã§ã™ã? 260 * æœ?µ‚å?ç?§ãƒ¡ãƒ?‚»ãƒ¼ã‚¸ãŒç„¡ã‘れã°?Œæ¨™æº–ã§ã‚¯ãƒªã‚¢ã—ã¾ã™ã? 261 * ã¾ãŸã?command ã?NEW ã®å ´åˆã‚‚ã€ãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã¯è‡ªå‹•ã§ã‚¯ãƒªã‚¢ã•れã¾ã™ã? 262 * åˆæœŸå€¤ã¯ã€ã‚¯ãƒªã‚¢ã—ãªã?(true 以å¤?ã§ã™ã? 263 * 264 * @param flag [true:クリアã™ã‚‹/ãれ以å¤?ã—ãªã„] 265 */ 266 public void setClear( final String flag ) { 267 msgClear = nval( getRequestParameter( flag ),msgClear ); 268 } 269 270 /** 271 * ã€TAG】表示形å¼ã?表é¡?TITLE)ã‹ã?å†?®¹(BODY)ã€ã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:TITLE)ã€? 272 * 273 * @og.tag 274 * ä¸?ˆ¬ã«ã¯?Œè¡¨é¡?TITLE) を表示ã—ã¦ãŠãã¾ã™ã? 275 * 表題表示時ã«ã¯?Œãƒªãƒ³ã‚¯ã‚’張りã?共通エラー表示画é¢ã‚’オープン 276 * 出æ¥ã‚‹æ§˜ã«ãªã£ã¦ã?¾ã™ã? 277 * 278 * @param flag 表示形å¼?表é¡?TITLE)ã‹ã?å†?®¹(BODY) 279 */ 280 public void setViewType( final String flag ) { 281 viewType = nval( getRequestParameter( flag ),viewType ); 282 } 283 284 /** 285 * ã€TAG】plsqlUpdate ã®çµæžœã‚’ç”»é¢ä¸Šã«è¡¨ç¤ºã™ã‚‹ãƒ¡ãƒ?‚»ãƒ¼ã‚¸IDを指定ã—ã¾ã?åˆæœŸå€¤:MSG0059『登録ã—ã¾ã—ãŸã€?ã€? 286 * 287 * @og.tag 288 * æŒ?®šã—ãŸãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã‚’リソースã‹ã‚‰å–å¾—ã—ã¦è¡¨ç¤ºã—ã¾ã™ã? 289 * 表示ã•ã›ãŸããªã??åˆã?, displayMsg = "MSG0065" ã‚’ã‚»ãƒ?ƒˆã—ã¦ãã ã•ã„ã€? 290 * åˆæœŸå€¤ã¯ã€MSG0059『登録ã—ã¾ã—ãŸã€‚ã?を表示ã—ã¾ã™ã? 291 * 292 * @og.rev 2.0.1.0 (2002/10/10) ãƒ?ƒ•ォルト表示ã—ãªã?‹ã‚‰ã?MSG0059=登録ã—ã¾ã—ãŸã€‚ã«å¤‰æ›´ã—ã¾ã™ã? 293 * @og.rev 3.2.0.0 (2003/05/22) 引数ã«ä½•ã‚‚ã‚»ãƒ?ƒˆã•れãªã?¨ãã«ã€ãƒ‡ãƒ•ォルトã?æ–?—を表示ã™ã‚‹ã‚ˆã†ã«å¤‰æ›´ã€? 294 * 295 * @param id ãƒ?‚£ã‚¹ãƒ—レイã«è¡¨ç¤ºã•ã›ã‚‹ãƒ¡ãƒ?‚»ãƒ¼ã‚¸ ID 296 */ 297 public void setDisplayMsg( final String id ) { 298 displayMsg = nval( getRequestParameter( id ),displayMsg ); 299 // String ids = getRequestParameter( id ); 300 // if( ids != null ) { displayMsg = ids; } 301 } 302 303 /** 304 * ã€TAG】登録処ç?®Ÿè¡Œå¾Œã?ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°çµæžœã‚’ç”»é¢ä¸Šã«è¡¨ç¤ºã™ã‚‹ãƒ¡ãƒ?‚»ãƒ¼ã‚¸IDを指定ã—ã¾ã?åˆæœŸå€¤:ERR0020)ã€? 305 * 306 * @og.tag 307 * æŒ?®šã—ãŸãƒ¡ãƒ?‚»ãƒ¼ã‚¸ã‚’リソースã‹ã‚‰å–å¾—ã—ã¦è¡¨ç¤ºã—ã¾ã™ã? 308 * 表示ã•ã›ãŸããªã??åˆã?, warningMsg = "" ã‚’ã‚»ãƒ?ƒˆã—ã¦ãã ã•ã„ã€? 309 * åˆæœŸå€¤ã¯ã€ERR0020『データ登録時ã«ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°ãŒç™ºç”Ÿã—ã¾ã—ãŸã€‚ã?を表示ã—ã¾ã™ã? 310 * 311 * @og.rev 2.0.1.0 (2002/10/10) ãƒ?ƒ•ォルト表示ã—ãªã?‹ã‚‰ã?ERR0020=ãƒ??タ登録時ã«ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°ãŒç™ºç”Ÿã—ã¾ã—ãŸã€‚ã«å¤‰æ›´ã—ã¾ã™ã? 312 * 313 * @param id ãƒ?‚£ã‚¹ãƒ—レイã«è¡¨ç¤ºã•ã›ã‚‹ãƒ¡ãƒ?‚»ãƒ¼ã‚¸ ID 314 */ 315 public void setWarningMsg( final String id ) { 316 // warningMsg = nval( getRequestParameter( id ),warningMsg ); 317 String ids = getRequestParameter( id ); 318 if( ids != null ) { warningMsg = ids; } 319 } 320 321 /** 322 * シリアライズ用ã®ã‚«ã‚¹ã‚¿ãƒ?‚·ãƒªã‚¢ãƒ©ã‚¤ã‚ºæ›¸ãè¾¼ã¿ãƒ¡ã‚½ãƒ?ƒ‰ 323 * 324 * @og.rev 4.0.0.0 (2006/09/31) æ–°è¦è¿½åŠ? 325 * @serialData 326 * 327 * @param strm ObjectOutputStreamオブジェクãƒ? 328 */ 329 private void writeObject( final ObjectOutputStream strm ) throws IOException { 330 strm.defaultWriteObject(); 331 } 332 333 /** 334 * シリアライズ用ã®ã‚«ã‚¹ã‚¿ãƒ?‚·ãƒªã‚¢ãƒ©ã‚¤ã‚ºèªã¿è¾¼ã¿ãƒ¡ã‚½ãƒ?ƒ‰ 335 * 336 * ã“ã“ã§ã¯ã€transient 宣è¨?•れãŸå†?ƒ¨å¤‰æ•°ã®å†??åˆæœŸåŒ–ãŒå¿?¦ãªãƒ•ィールドã?ã¿è¨å®šã—ã¾ã™ã? 337 * 338 * @og.rev 4.0.0.0 (2006/09/31) æ–°è¦è¿½åŠ? 339 * @serialData 340 * 341 * @param strm ObjectInputStreamオブジェクãƒ? 342 * @see #release2() 343 */ 344 private void readObject( final ObjectInputStream strm ) throws IOException , ClassNotFoundException { 345 strm.defaultReadObject(); 346 } 347 348 /** 349 * ãƒ?ƒãƒ?‚°æ™‚ã?æ–?—å?ã‚’è¿”ã—ã¾ã™ã? 350 * 351 * @return ã“ã?オブジェクトã?ãƒ?ƒãƒ?‚°è¡¨ç¾æ–?—å? 352 */ 353 @Override 354 public String toString() { 355 return org.opengion.fukurou.util.ToString.title( this.getClass().getName() ) 356 .println( "VERSION" ,VERSION ) 357 .println( "errMsgId" ,errMsgId ) 358 .println( "errMsgFile" ,errMsgFile ) 359 .println( "maxRowCount" ,maxRowCount) 360 .println( "command" ,command ) 361 .println( "msgClear" ,msgClear ) 362 .println( "viewType" ,viewType ) 363 .println( "displayMsg" ,displayMsg ) 364 .println( "warningMsg" ,warningMsg ) 365 .println( "Other..." ,getAttributes().getAttribute() ) 366 .fixForm().toString() ; 367 } 368 }