<body>
<%String userId=(String) session.getAttribute("userId"); %>
<html:form action="ask.do?userId=<%=userId%>">
<html:hidden property="userId"/><html:errors property="userId"/><br/>
topic : <html:text property="topic"/><html:errors property="topic"/><br/>
content : <html:text property="content"/><html:errors property="content"/><br/>
<html:submit/><html:cancel/>
</html:form>
</body>我在之前一个action里的session里存了一个叫userId的字符串,现在想在另一个jsp里把存的那个字符串连同我在表格里输入的两个信息一起传给另一个action,那个action里我设置了参数叫userId,但不知道为什么出现这样的错误,求大神帮忙解决.出现的问题: 2011-7-8 20:16:52 org.apache.tomcat.util.http.Parameters processParameters
信息: Parameters: Character decoding failed. Parameter 'userId' with value '<%=userId%>' has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values.
<%String userId=(String) session.getAttribute("userId"); %>
<html:form action="ask.do?userId=<%=userId%>">
<html:hidden property="userId"/><html:errors property="userId"/><br/>
topic : <html:text property="topic"/><html:errors property="topic"/><br/>
content : <html:text property="content"/><html:errors property="content"/><br/>
<html:submit/><html:cancel/>
</html:form>
</body>我在之前一个action里的session里存了一个叫userId的字符串,现在想在另一个jsp里把存的那个字符串连同我在表格里输入的两个信息一起传给另一个action,那个action里我设置了参数叫userId,但不知道为什么出现这样的错误,求大神帮忙解决.出现的问题: 2011-7-8 20:16:52 org.apache.tomcat.util.http.Parameters processParameters
信息: Parameters: Character decoding failed. Parameter 'userId' with value '<%=userId%>' has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values.
解决方案 »
- 页面中怎么获取单选按钮的值呢
- 问下这个spring的配置有什么区别?
- 一个比较难的问题
- tomcat异常
- 如何实现Java的上传下载!
- <jsp:include>如何引入其他实例内的文件??
- 租的服务器上网站被挂上 http://count.count.xj.cn/images/images/1.css 怎么解决啊?谢谢!
- java web项目中,你们是怎样实现文件的上传的啊?
- 郁闷中,关于servlet/jsp服务器的问题,up有分
- bird_flying是个jsp新手,希望找个有经验的人学习一下,请发信到[email protected],多谢!!
- table 里面的一个舒心纹理
- input text为什么会自动清除value
我之前在别的地方的一个超链接就可以用啊
<a href="./detail.do?name=<%=result.get(0)%>"><%=result.get(0) %></a>
这个没问题.请问有什么解决的方法吗?或是别的实现我想要的结果的方法.
只能整个属性(action)使用<%= %>
或者用el
<html:form action="ask.do?userId=${userId}">