Nope, 1 and 2 are valid. If I write the URL of the GET request on the WAP device, the parameters work, but for some reason it doesn't works if I use the wml form.
-----Original Message----- From: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: Re: can't get request params from wap device Could it be that '1' and '2' are not valid parameter names. Try to add at least one letter infront of the numbers, e.g. 'param1', 'p1' or something similar. Joerg Morales, Ramses wrote: > Hi. > > I wrote one action to authenticate users using a wap device, but I can't > make it work, because the request parameters are null, and they shouldn't. > > This is the login wml page: > > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" > "http://www.wapforum.org/DTD/wml_1.1.xml"> > <wml><card title="Login" id="index"> > <do label="Ok" type="accept"> > <go href="/cocoon/pendientes/lista"/> > </do> > <p>username:<br/> > <input name="1" type="text"/> > </p> > <p>password:<br/> > <input name="2" type="password"/> > </p> > </card> > </wml> > > The action gets called when "lista" is matched, but > > request.getParameter("parameterName"); > > returns null. > > What am I missing?? > > I thought the server side processing of a wap device would be identicall to > that of a normal browser. > > Thanks for your help. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> **************************************************************************** La informacion en este correo electronico es confidencial y puede estar legalmente protegida. El contenido esta dirigido solamente al destinatario. Cualquier acceso al mismo por otra persona, no esta autorizado. Si Ud. no es el destinatario intencionado, cualquier divulgacion, copia, distribucion o cualquier otra accion tomada u omitida concerniente a la informacion contenida en el mismo, esta prohibida y puede ser ilegal. Si Ud. ha recibido este correo por error, por favor contactar al remitente o elimine el mensaje. ---------------------------------------------------------------------------- The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you have received this mail in error, please contact the sender or delete the message. **************************************************************************** --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>