tags:

views:

61

answers:

0

hi can someone give me the correct syntax to pass parameter to a servlet from a html page.. i tried using anchor tag but the parameter is not getting passed.. this is what i did..\

<form name="form2" action="/cs002/NewServlet" method="post">
    Enter your username      : <input type="text" name="Username" value="" size="15" />
    ***

<a href="/cs002/NewServlet1?Uname=" form2.Username.value>Check availability</a>