貝努-重生的神話
我要讓妳過好日子
2008年3月24日 星期一
html input 空字串問題
html中的from使用的input元素
<input name="in" type="text">
如果沒有輸入任何值的話,submit後
由jsp的out.getParameter("in")取到的值,
將會是"" <-空字串,而不是null。
寫jsp時,需特別注意。
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
查看行動版
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言