you can run a java program by typing: java param1 param2 param3 etc
how can you run a program in a servlet by entering multiple parameters via a form and then envoking the servlet.
lets suppose : have an html page with 3 text fields
inside form element action attribute is used to specify the name servlet with its actual path.. or define the method inside your method attribute which can be POST/ GET
invoking a servlet by submit button ( can say send a request to the server on specified servlet) then servlet handle the request by it's defined method it can be doPOST/doGET or other doXXX http methods.
after handle this request you can receive these parameter by "getParameter" method of HttpRequest Interface.
your text field name is "abc"
request.getParameter("abc"); by this you can get the value.. of this text field
hope it helps.. or for more clarification see http://coreservlets.com inside Servlet & Jsp
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.