You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Pham Tuan Minh <ph...@yahoo.com> on 2006/02/16 10:54:17 UTC
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org