answersLogoWhite

0

The correct way is to define an input type. The format for it would be <form action="" type="post"><input type="text"/></form>

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How to retrieve data from jsp to servlet?

To retrieve data from a JSP to a servlet, you can use form elements in your JSP to collect user input and submit it to the servlet. When creating the form, ensure to set the action attribute to the servlet's URL and the method attribute to either GET or POST. In the servlet, you can access the submitted data using the request.getParameter(&quot;parameterName&quot;) method, where &quot;parameterName&quot; corresponds to the name attribute of the form input elements. This allows you to process the data as needed in your servlet.


What is doPost in servlet?

doPost() is the method in the servlet that is used to service the Http requests submitted using the Post option. HTML forms can be submitted in two ways using the Get method and the Post method. You can specify the method while declaring the form itself. So you will have two methods in the servlet doGet() and doPost() each for one of them


How do you get data from database when you pick up item from database list?

Here is a simple method for connecting to your MySql database and outputting some data. &lt;?php #Connect to MySQL database $db=mysql_connect("localhost","YourDatabaseUserName","YourDatabasePassword"); mysql_select_db("YourDatabaseName",$db) or die ("cant change"); #Select data from database table called customers. $result = mysql_query("select * from customers Order By LastName, FirstName",$db); while ($row = mysql_fetch_array($result)) { $FirstName = $row["FirstName"]; $LastName = $row["LastName"]; echo "$LastName, $FirstName"; ?&gt;&lt;br&gt;&lt;? } ?&gt;


When need to retrieve only a single value from the database which method is efficient?

ExecuteScalar()


How do you get information from a form that is submitted using the get method?

In a form submitted using the GET method, the data is appended to the URL as query parameters. You can access this data using the $_GET superglobal array in PHP, or by parsing the URL in other programming languages.


What is the correct order steps of the scientific method?

The correct steps for the scientific method are: Observation Hypothesis Theory Scientific Law


How do you spell Method?

That is the correct spelling for the word "method" (technique, process).


What does overloading rely on to identify the correct method?

If more than one method shares the same name, the number of arguments provided is used to identify the correct method.


What is method in HTML form?

There are two form methods: method="POST" and method="GET" GET makes the page it sends the form info from retrieve it from the URL. POST sends the data, and can handle more characters than GET.


When is division the correct method for solving a math problem?

When the correct answer is a quotient.


What is the correct order for the steps of scientific method?

The correct steps for the scientific method are: Observation Hypothesis Theory Scientific Law


How does an automated phone system function?

Automated phone system works by using computer database system to communicated with people this method is mostly used in banks and firms to retrieve information and put the customer through to the correct department therefore saving time.