1

From tutorial

If your ReverseServlet is located at http://example.com/servlet/ReverseServlet, then when you run the Reverse program using

http://example.com/servlet/ReverseServlet "Reverse Me"

I am confused about the last line - how is it possible to pass "Reverse Me" into servlet and how is this available within servlet?

1) When a <form action="MyServlet"> within an html-form, I then do String userInputIntoFormControl = request.getParameter("textBoxName") within my Servlet, but what to do here within my Servlet?

2) why such a strange form of passing information (args/params) into servlet is needed and when is it practically used?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.