A text field? Do you mean an HTML element passed by way of a form? Just remember that a JSP is nothing more than an HTML page and a servlet. The value of an HTML element passed in a form is accessed the same way you would access it from a servlet, just use the request object.
String txt = request.getParameter("TEXTFIELDNAME");