[Opensource] cannot pass parameter to servlet
Jacques Grid
grid5 at hotmail.com
Tue Jun 18 11:59:33 PDT 2002
I have a jsp file that looks something like:
<%
response.setContentType( "text/html; charset=GB-2312-80");
%>
<a href="SomeServlet.do?state=process">Process</a>
When the link is clicked, there are times that the parameter "state" cannot
get passed to the servlet. The behavior is unpredictable. When I print
request.getParameter("state"), sometimes it's right, but sometimes it shows
null. I suspect it's caused by the charset since if I don't have that
statement, the servlet always get the right parameter. Help please. Thanks.
Jacq
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
More information about the Opensource
mailing list