simple question

<html>

<head>

<title>

HelloWorld.jsp

</title>

</head>

<body bgcolor=#FFFFFF>

<form method=post name=SearchCriteria

action = 'http://./unicode.jsp'>

<input type='text' name='text1' >

</form>

</body>

</html>

I have html file as above. I want to pass the value in the textbox to unicode.jsp. How can I do it?

Thanks

[482 byte] By [smallsun] at [2007-9-26 4:34:51]
# 1

This is the very 1st step of writing a jsp.U should consult a book before starting to work.

anyway for this the simplest way is to have a scripplet like this below in the unicode.jsp

<%

String textFieldValue;

textFieldValue = request.getParameter("text1");

%>

now textFieldValue will contain the info entered in the text1(name of the textbox) of the previous jsp.

rohit29 at 2007-6-29 17:51:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...