You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Morales, Ramses" <Ra...@cwpanama.com> on 2002/11/25 22:50:32 UTC

can't get request params from wap device

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.
 
****************************************************************************
La informacion en este correo electrónico es confidencial y puede estar
legalmente protegida.  El contenido está dirigido solamente al destinatario.
Cualquier acceso al mismo por otra persona, no está autorizado.  Si Ud. no
es el destinatario intencionado, cualquier divulgación, copia, distribución
o cualquier otra acción tomada u omitida concerniente a la información
contenida en el mismo, está 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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: can't get request params from wap device

Posted by Joerg Heinicke <jo...@gmx.de>.
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>