Link how a submit

Hello, How can use a link like submit in a form.Thanks..
[70 byte] By [Sharam_la] at [2007-11-26 14:51:58]
# 1

Try using JSP wid javascript....

hope the example below helps.....

<%@ page lanaguage="java">

<html>

<head>

<script language="javascript">

function formSubmit(){

document.FormName.action = "SampleServlet"

document.FormName.method = "POST"

document.FormName.submit()

}

</script>

</head>

<body>

<form name="FormName">

<input name="uname" type="text">

<input name="pwd" type="text">

<a href="javascript:formSubmit()">SUBMIT</a>

</form>

</body>

</html>

REGARDS,

RaHuL

RahulSharnaa at 2007-7-8 8:40:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...