how can I retrive and store the contents (of a text box ) to a string in the same jsp i.e., if "text1" is a textbox in a login1.jsp then i want to store the contents of the "text1" into a string "str1" in the same login1.jsp. is it possible? if so please reply me as quickly as possible
thanks in advance and grateful to every one who ever reply
i think not 100 percent sure if you are giving request to your jsp from other jsp or html page then while submitting the jsp page on which you have your text box give name of your current jsp name in action attribute of form tag
Maybe you need to read something about "Submitting a form". The value of your textbox will be sent in the request when you submit the form. To you want to get it back from a servlet, or from a JSP file ?