Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2008, 07:28 AM
Authorized User
 
Join Date: Oct 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hafizmuhammadmushtaq Send a message via Yahoo to hafizmuhammadmushtaq
Default how to generate tables using servlets

i want to create a web-application that will ask user to enter a number and will show a “Mathematical table” of that number.
To develop this application i have created an html page say “Input.html” which will show an input field to the user to enter the number.
When user will click on the “Submit” button, the form inside that html page will be submitted to a Servlet say “MathTableGeneratorServlet”. The Servlet will get the input number entered by the user and will generate an HTML table containing mathematical table information and will send the html client back to the client. For example if user enters 2, it should print the table of 2 in the form of html table.............can anyone tell, how can i do this???????

 
Old April 14th, 2008, 10:28 PM
jomet
Guest
 
Posts: n/a
Default

this is very simple.
just output html table using out.println();

like
out.println("<table><tr><td>");
out.println(i);
out.println("<td>");


using for loop create your mathematical table

jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Inner classes in Servlets vikkiefd Servlets 1 April 24th, 2008 04:30 AM
Servlets achukuttan Servlets 1 March 26th, 2007 02:04 AM
a problem in servlets bala_in J2EE 1 August 10th, 2006 03:37 PM
How to generate CREATE TABLE statements for tables method Access VBA 0 April 3rd, 2005 01:17 PM
Generate Pivot Tables using variables dmw Excel VBA 0 April 13th, 2004 05:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.