Bear Bibeault wrote:Java code in a JSP? In 2011? Really?
And, as the value of text1 can't be known until after the JSP executes and the page is sent to the browser where the user can enter the value, there is no way to do this.
I suggest you read this article to understand what JSP is and how it works.
What if the text1 is hard coded say like :
<INPUT TYPE="TEXT" NAME="text1" VALUE="My Value">
P.S : I know it might be a silly question, however I wanted to clear this point.