hi!

> I guess u r issue can easily solved by instead u use JSP.. and ask the
> Form to submit the information to the same jsp itself.
>

... and by using JavaScript it's even easier and you don't need support from
the server-side:
<html>
<script language="javascript">
function addValue(name,passw) {
 document.all.tags("td")[0].innerHTML =
document.all.tags("td")[0].innerHTML+"<br>"+name;
 document.all.tags("td")[1].innerHTML =
document.all.tags("td")[1].innerHTML+"<br>"+passw;
 document.f.name.value="";
 document.f.passw.value="";
}
</script>

<form name="f">
Name:<input name="name"><br>
Password:<input name="passw"><br>
</form>
<input type=submit
onclick="addValue(document.f.name.value,document.f.passw.value)">

<table>
<tr><td>&nbsp;</td><td>&nbsp;</td></tr>
</table>
</html>

+ it does exactly what you want!

-mw

>
> Hope the following code helps..
> Name this file as simple.jsp
>
> <%@ page import="java.sql.*, java.io.*" %>
>
> <html>
> <body >
> <form action="http://localhost/samples/simple.jsp " method="post">
> <input type="text" name="T1" size="31">
> <%
>         String reqParam=request.getParameter("parameterName ");
>         if reqParam=="some value"
>         {
>         out.println("  some thing ");
>         }
>         else{
>          out.println(" some other thing ");
>         }
>
> %>
> <input type="submit" value="Submit" name="B1">
> </form >
> </body>
> </html >
>
>
> Sorry if this solution is off the track  :(
> Aroon
>

___________________________________________________________________________
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