Solved

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

Posted on 2011-09-10
2
309 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now