Hi,
I had some posting-troubles in wml, too. So i decided to URLencode it.
Something like that worked.
<p>
yourName:
<input maxlength="10" title="yourName:" name="yourName" type="text"/>
<a href="result?yourName=$(yourName:escape)">
[send]</a>
</p>
<xsl:template match="input">
<p>
yourName:
<input type="text" name="yourName" title="yourName:" maxlength="10"/>
<a>
<xsl:attribute name="href"><xsl:value-of
select="$result_page"/>?yourName=$(yourName:escape)</xsl:attribute>
[senden]</a>
</p>
</xsl:template>
Richard
[EMAIL PROTECTED] (Stanley Ho) am 10.01.2002 02:28:22
Bitte antworten an [EMAIL PROTECTED]
An: [EMAIL PROTECTED]
Kopie: (Blindkopie: Richard Gfrerer/DEBIS/EDVG/AT)
Thema: Problem with my XSP page interact with WML
I have a problem to get the "request-parameter
postfield" in my WML code for my XSP page. I use
cocoon 1.8.2. But i can able to get the parameter in
my stylesheet as a <xsl:param name="username"/>
WHY? I test under HTML, it's OK. I hope u can help
me..
This is the code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
<do type="accept">
<go
href="http://localhost:8080/cocoon/TGV/test.xml?search=1"
method="post">
<postfield name="username" value="$(var)"/>
</go>
</do>
<p>
Enter CustID
<input name="var" />
</p>
</card>
</wml>
In my xsp page i write:
<?xml version="1.0"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="stylesheet/wap/test-wml.xsl"
type="text/xsl" media="wap"?>
<xsp:page
language="java"
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:esql="http://apache.org/cocoon/SQL/v2"
xmlns:request="http://www.apache.org/1999/XSP/Request"
>
.......
<page>
....
<p><request:get-parameter-values
name="username"/></p>
....
</page>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>