GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 895 of 928    Print  
Pass values from HTML page to the Servlet
How to pass values from HTML page to the Servlet?


  
Total Answers and Comments: 1 Last Update: April 09, 2009     Asked by: shilpamj 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 08, 2009 10:10:26   #1  
anithananduri Member Since: January 2009   Contribution: 11    

RE: Pass values from HTML page to the Servlet
we can pass html data to servlet using getParameter() method


for example in doPost(......

public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {


// reads text field data named as fname
String name request.getParameter("fname").trim();
}



}

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Applets are executed within a web browser, and there's an easy way to load show a specific URL. 1. Get a reference to the applet context 2. Call the showDocument method with a URL object as parameter. The following code snippet shows you how this can ...


In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that

Latest Answer : To upload the files from HTML :Use form like thesemethod should be POST and enctype is multipart/form-dataEG  :: is  ...




What is Single-ton Pattern?,How can u follow this pattern? I read servlet container follows the single-ton pattern? what it means..so can any one expain it?
I read servlet container follows the single-ton pattern 
View Question | Asked by : laxman23in

View Question | Asked by : hari

Using Java Reflection how can i call a method which i specify in a JSP page.i mean if i have 3 methods in my java class when i specify one of my method name in Jsp page in a textbox when i submit the page that particular method has to be called using java Reflection
Read Answers (1) | Asked by : Vidhya Srikanth


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Assign values during declaration

How to assign values during declaration of variables Declaring variables tells the compiler the data type the variable is assigned and no storage area is allocated during this stage. It is possible to assign values during declaration itself. For example, consider the following program: main() {
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Neuro-linguistic Programming Methods

Neuro linguistic Programming Methods There are several methods used for performing Neuro linguistic Programming on an individual for obtaining insights into the psyche of the person in order to correct to modify certain patterns of behavior These techniques are also used for Neuro linguistic trainin
 

The Difficult Past of Neuro-linguistic programming

The Difficult Past of Neuro linguistic programming Neuro linguistic programming has had a rocky past with a number of lawsuits rivalry unsystematic development and intermittent progress During the 1980s the two founders separated after the lawsuit filed by Bandler Bandler went on to file several law
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape