answersLogoWhite

0

How the pass value from the HTML pages to the servlet?

Updated: 8/21/2019
User Avatar

Wiki User

10y ago

Best Answer

You need a form to pass value to a servlet. In the form tag, the action element passes the value into the servlet.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How the pass value from the HTML pages to the servlet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you pass values from an sevlet to an HTML page?

You cannot. A HTML file is a static file and it cannot get or receive dynamic contents that a Servlet may pass or send.


How will you pass values from HTML page to the servlet?

we are passing values from the HTML to the Servlet by using HTML controls. ex:name,password.......... In servlets we have one method for getting the values from HTML is getParameter() example: String s1=req.getParameter("T1"); String s2=req.getParameter("T2"); in above example T1,T2 are the names of the HTML controls, String is a class and req is the object of the HttpServlet.


What is the difference between servletcontext and servletconfig?

ServletContext Defines a set of methods that a servlet uses to communicate with its servlet container.ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized.You can specify param-value pairs for ServletContext object in tags in web.xml file.The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets. The ServletContext parameters are specified for an entire application outside of any particular servlet and are available to all the servlets within that application.By Santanu


How to pass form data between HTML pages without using url in java?

This can be accomplished by submitting the form data using the POST method.


How many pages does The Snake's Pass have?

The Snake's Pass has 365 pages.


How many pages does Let Time Pass have?

Let Time Pass has 194 pages.


How many pages does Please Pass the Guilt have?

Please Pass the Guilt has 150 pages.


How do you Retrieve data from drop down box in one servlet and pass to another servlet?

The data that is present in a web page is available in the Form object of the page which can be accessed from the HTTP Request. If the request object gets passed from one servlet to another the data also would get passed.


Can someone please tell me how do you edit the HTML coding of an Articulate quiz so as to have more custom result pages instead of just pass and fail?

you cant, you just cant man..im oh so sorry


How can you pass a JavaScript value into a PHP file?

JavaScript lives in the browser, PHP lives on the server.To pass a value from JavaScript to a PHP page, you can eitherdo an HTML form submituse AJAXIn both cases, the value is sent to the server and you write your PHP to handle it and send a response.The important thing is that the JavaScript value won't be available in PHP when you first generate the page, creating the page and handling the value submitted from the browser are two distinct steps.


How many pages does a bank pass book have?

It depends from bank to bank. It may have around 10-20 pages in most cases.


What are the different parameter passing methods used by c plus plus?

Pass by value, constant value, reference and constant reference. Pass by value is the default in C++ (pass by reference is the default in Java).