Why do you want to store the value entered in the textbox in a String variable ? If you want to get the value entered in the text at the server side, use request.getParameter("view") (assuming view is the name of your text box). If you need to get the value entered in the text at the client side go as per Pankaj's advice.
you will have to make one thing clear in your mind first.
Life called,so here I am.<br />Cheers<br />Niki.:-)