Hello All,
In a servlet I recover my parameters as follows:
String subscriberNom = request.getParameter("nom"
! = null? request.getParameter("nom"
: "";
String subscriberPrenom = request.getParameter("prenom"
! = null? request.getParameter("prenom"
: "";
String subscriberTel = request.getParameter("tel"
! = null? request.getParameter("tel"
: "";
String subscriberEmail = request.getParameter("email"
! = null? request.getParameter("email"
: "";
These parameters are sent in JSP as follows: .
< form method="POST "name="form_email" action="/snw/newsEtpFather?task=Add ">
< input name="nom" type="text "class="z" size="25 ">
< input name="prenom" type="text "class="z" size="25 ">
< input name="tel" type="text "class="z" size="25 ">
< input name="email" type="text "class="z" size="25 ">..
The problem that i have is that when the value of one of these parameters does contain a "special" character (like é an ' ), only the part before this character is recieved on my servlet
Example:
if I put in the field "prenom" the value "prénom", the value recieved on the servlet is "pr"!!!!
I checked on the JSP and the values of the fields are well sent to the servlet.
Someone can say to me where is the problem.
Thank you in advance.
In a servlet I recover my parameters as follows:
String subscriberNom = request.getParameter("nom"
String subscriberPrenom = request.getParameter("prenom"
String subscriberTel = request.getParameter("tel"
String subscriberEmail = request.getParameter("email"
These parameters are sent in JSP as follows: .
< form method="POST "name="form_email" action="/snw/newsEtpFather?task=Add ">
< input name="nom" type="text "class="z" size="25 ">
< input name="prenom" type="text "class="z" size="25 ">
< input name="tel" type="text "class="z" size="25 ">
< input name="email" type="text "class="z" size="25 ">..
The problem that i have is that when the value of one of these parameters does contain a "special" character (like é an ' ), only the part before this character is recieved on my servlet
Example:
if I put in the field "prenom" the value "prénom", the value recieved on the servlet is "pr"!!!!
I checked on the JSP and the values of the fields are well sent to the servlet.
Someone can say to me where is the problem.
Thank you in advance.