i am working on a simple jsp page, it contain 2 textbox firstname and lastname,and a ok button, when textbox is filled and button is clicked, I need to get values of firstname and lastname and post to url http://mydomain/firstname/lastname, how to do this?
Share
Let the form submit to a
Servletwhich sends a redirect to the particular URL. E.g. in JSP:With the following in
doPost()method of a servlet mapped onurl-patternof/servletURL:This will end up in the desired URL.