
JSP+servlet
virus026
目标高于工作
展开
-
用 MyEciplse时 some character can not mapped using "iso-8859-1" character encoding 解决
<br />今天在MyEclipse里写一个properties的文件时,里面要输入中文,居然出现发如下提示错误: <br /> <br />问题一:<br /><br /> characters cannot be mapped using “ISO-8859-1“ character encoding. Either change the encoding or remove the characters which are not supported by the “ISO-8859-1“转载 2010-07-07 15:53:00 · 599 阅读 · 0 评论 -
JSP 中getParameter和getAttribute区别
<br /><br />(1)HttpServletRequest 类有setAttribute()方法,而没有setParameter()方法<br />(2)当两个Web组件之间为链接关系时,被链接的组件通过 getParameter()方法来获得请求参数,<br />(3)当两个Web组件之间为转发关系时,转发目标组件通过 getAttribute()方法来和转发源组件共享request范围内的数据。<br />一般通过表单和链接传递的参数使用getParameter<br />通过 requ转载 2010-06-24 13:17:00 · 880 阅读 · 0 评论