Thank for your response.
I'm sorry. I try using
$request.getParameter("submit1") (not
#request.getParameter("submit1")) but the result is
"$request.getParameter("submit1")" is displayed, not
the value of parameter ("true" or "false").
--- Balaji Chandrasekaran <[EMAIL PROTECTED]> wrote:
>
> Use $request.getParameter("submit1")...it will work
>
> -----Original Message-----
> From: Pham Tuan Minh
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 3:24 PM
> To: Jetspeed Users List
> Subject: getParameter - Velocity
>
>
> Hi all,
> I use velocity and I try to get parameter of a form.
>
> In jsp, to get parameter of a form:
> <%
> request.getParameter("submit1");
> %>
> Please, show me the function to get parameter of a
> form in velocity. Thanks.
>
> There is description of my problem in detail.
>
> <html>
>
> <head>
> <script type="text/javascript">
> function greet()
> {
> document.frm1.submit1.value = "true";
> document.frm1.submit();
> }
> </script>
> </head>
>
> <body>
>
> <form method="POST" name = "frm1">
> <input type="hidden" name="submit1" value="false">
> <table>
> <td>
> <a onclick="greet();">
> <img src="button1.gif">
> </a>
> </td>
> </table>
> </form>
>
> </body>
> </html>
>
> I try using #request.getParameter("submit1"), but I
> get a error.
> How to get parameter "submit1" in velocity. Please,
> help me.
>
> Thanks again.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------------------------------
> This message, including any attachments, contains
> confidential information intended for a specific
> individual and purpose, and is intended for the
> addressee only. Any unauthorized disclosure, use,
> dissemination, copying, or distribution of this
> message or any of its attachments or the information
> contained in this e-mail, or the taking of any
> action based on it, is strictly prohibited. If you
> are not the intended recipient, please notify the
> sender immediately by return e-mail and delete this
> message.
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]