Solved

How the browser can get the output info from the servlet in java

Posted on 2011-09-10
2
311 Views
Last Modified: 2012-05-12
When the http client call a servlet on server by the HTML form, the servlet on server will select some data inside database.

May I know how these selected data can be displayed in client side. Is it correct to use the Response class of doGet() to achieve it. Any simple sample code for it, thanks.
0
Comment
Question by:turbot_yu
  • 2
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36516023
to display on client side, you have to return the data to client side
http://www.ibm.com/developerworks/web/library/x-servlets-and-xml/

or just print the table from servlet only
http://www.rgagnon.com/javadetails/java-0378.html
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 500 total points
ID: 36516030
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question