2005年05月
2005年05月29日
モブログで投稿(失敗)
投稿しようとしたがメールも駄目だった。Niftyはひどすぎるなぁ……。
vodafoneもそうなんだけど、乗り換えに負担がかかるようなサービスを展開している会社は
サービスの質が悪いのが基本みたいだな。
以下、返信されたメール。
This is the Postfix program at host app.cocolog-nifty.com.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
For further assistance, please send mail to
If you do so, please include this problem report. You can
delete your own text from the message returned below.
The Postfix program
<secure@cocolog-l.rr.nifty.com>: Command died with status 255: "
/usr/local/cocolog/typepad/tools/mt-inbox". Command output: Use of
uninitialized value in substitution (s///) at
/usr/local/cocolog/typepad/tools/../../typepad/lib/MT/ConfigMgr.pm line
288, <FH> line 43. Use of uninitialized value in substitution (s///) at
/usr/local/cocolog/typepad/tools/../../typepad/lib/MT/ConfigMgr.pm line
288, <FH> line 43. 500 read timeout at
/usr/local/cocolog/typepad/tools/../../typepad/lib/MT/Inbox/Handler.pm line
778
ちなみに送ったのはこんなメール
------
これなら待たされることなく記事を投稿できるかな。
カテゴリーとか写真の位置は後で直すか。
昨日の夕飯はすき家。
あいかわらずコストパフォーマンスはよい。
vodafoneもそうなんだけど、乗り換えに負担がかかるようなサービスを展開している会社は
サービスの質が悪いのが基本みたいだな。
以下、返信されたメール。
This is the Postfix program at host app.cocolog-nifty.com.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
For further assistance, please send mail to
If you do so, please include this problem report. You can
delete your own text from the message returned below.
The Postfix program
<secure@cocolog-l.rr.nifty.com>: Command died with status 255: "
/usr/local/cocolog/typepad/tools/mt-inbox". Command output: Use of
uninitialized value in substitution (s///) at
/usr/local/cocolog/typepad/tools/../../typepad/lib/MT/ConfigMgr.pm line
288, <FH> line 43. Use of uninitialized value in substitution (s///) at
/usr/local/cocolog/typepad/tools/../../typepad/lib/MT/ConfigMgr.pm line
288, <FH> line 43. 500 read timeout at
/usr/local/cocolog/typepad/tools/../../typepad/lib/MT/Inbox/Handler.pm line
778
ちなみに送ったのはこんなメール
------
これなら待たされることなく記事を投稿できるかな。
カテゴリーとか写真の位置は後で直すか。
昨日の夕飯はすき家。
あいかわらずコストパフォーマンスはよい。
2005年05月23日
forwardとredirect
@it 基礎から学ぶサーブレット/JSP(13)より。
RequestDispatcher#forward
は、内部の別リソースに飛ばしている処理。
つまりブラウザとしては関係ない。
HttpServletResponse#sendRedirect
は、HTTPのステータスコードに
301 Moved Permanently やら 307 Temporary Redirect やら (どれが返るのかわからん)
を返すので、ブラウザがさらにリクエストを投げるらしい。
まぁMETAタグで
<META HTTP-EQUIV="refresh" content="5;URL=http://XXX">
と書くようなもんかな。
もしくは<body onload="location.href='XXX'"みたいな。
そこはいいんだけれども、strutsの
<logic:forward>と<logic:redirect>の違いがわからない。
forward - Forward control to the page specified by the specified ActionForward entry.
Performs a PageContext.forward() or HttpServletResponse.sendRedirect() call for the global ActionForward entry for the specified name. URL rewriting will occur automatically if a redirect is performed.
redirect - Render an HTTP Redirect
Performs an HttpServletResponse.sendRedirect() call to the hyperlink specified by the attributes to this tag. URL rewriting will be applied automatically, to maintain session state in the absence of cookies.
とりあえずメモ。
RequestDispatcher#forward
は、内部の別リソースに飛ばしている処理。
つまりブラウザとしては関係ない。
HttpServletResponse#sendRedirect
は、HTTPのステータスコードに
301 Moved Permanently やら 307 Temporary Redirect やら (どれが返るのかわからん)
を返すので、ブラウザがさらにリクエストを投げるらしい。
まぁMETAタグで
<META HTTP-EQUIV="refresh" content="5;URL=http://XXX">
と書くようなもんかな。
もしくは<body onload="location.href='XXX'"みたいな。
そこはいいんだけれども、strutsの
<logic:forward>と<logic:redirect>の違いがわからない。
forward - Forward control to the page specified by the specified ActionForward entry.
Performs a PageContext.forward() or HttpServletResponse.sendRedirect() call for the global ActionForward entry for the specified name. URL rewriting will occur automatically if a redirect is performed.
redirect - Render an HTTP Redirect
Performs an HttpServletResponse.sendRedirect() call to the hyperlink specified by the attributes to this tag. URL rewriting will be applied automatically, to maintain session state in the absence of cookies.
とりあえずメモ。