• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple JSP question

Prince

Member
How can I read the values of a TEXT FIELD within a JSP? What is the code that can access the text field?

I don't want to pass the values by session to itself.
 
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");
 
Back
Top