At 11:03 AM 9/3/99 +0300, you wrote:
>Hello,
>My question is about passing parameters to servlets written for a WAP
server, NOT for a web server.
>The following code segment passes the value of variable $(fname) to a
servlet called welcome2.
>    <do type="accept" label="Send">
>      <go method="get" href="http://welcome2">
>        <postfield name="name" value="$(fname)"/>
>      </go>
>    </do>
>What I would like to know is how I can get the value of "name" parameter
in the servlet?
>Btw, getParameter("name") does not work b/c it returns the value of "name"
parameter specified in
>the HTML file that refers to the applet with the <PARAM> tag, which is not
the case here.
>Thanks in advance,
>
>Ali Yildirim
>[EMAIL PROTECTED]

Why not just put the parameters into the URL?

<do type="accept" label="Send">
  <go method="get" href="http://welcome2?name=$(fname)"/>
</do>

This way you CAN get the parameters with "getParameter("name")".

Joona Palaste

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to