null与""

来源:互联网 发布:主持人音效软件 编辑:程序博客网 时间:2024/04/30 04:27
 jsp-->servert时,只要是表单里有的属性,就算你没写任何东西,默认的会提交一个空(" ");而你在地址栏里没有写属性名和值时,它就是为null;这是因为servletApi(or null if the parameter does not exist.)!
原创粉丝点击