Comment

Carl van Denzen
code wrong,
January 22, 2009 at 9:35 AM

The code to produce the table is wrong. Tags <table> and <p> are not balanced, the <table> tags should not be within the while loop, and when you use a table, it should contains rows I guess?
"while(rs.next()){
out.println("<p><table>" + rs.getString(1) + " " + rs.getInt(2) + "</p></table>");
}
"
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Development process Questions

SERVLETS
SERVLETS  when i compile ur code i get the following errors. InsertServlet.java:3: package javax.Servlet does not exist import javax.Servlet....-sensitive so import it properly.You are importing the packages with wrong case 

Mobile Applications Questions

wrong year
wrong year  hello I m using the following code: NSDateFormatter *df = [[NSDateFormatter alloc] init]; [df setDateFormat:@"yyyy"]; NSDate *date... wrong year..   I think u are using other calendar Check Settings 

Java Beginners

What is wrong with this line
What is wrong with this line  What is wrong with this line...   You have not written the code in proper format. Here is your modified code. if (input.equals("exit") || input.equals("Exit 

Java Beginners

What is wrong with my servlet?
What is wrong with my servlet?  I'd like to know which part of the code is wrong. My code is: print("code sample"); import java.util.*; import...((new Integer(qty)).intValue()); return cd; } } print("code 

JSP Servlet Questions

Servlets
Servlets  What is the filter code to authenticate the user 

Development process Questions

Servlets
{ ^   Post your code. There may be some 

JSP Servlet Questions

Servlets
Servlets  servlet code to accept client details and store it in the database   Hi Friend, Try the following code: 1)insert.jsp: <%@page import="java.sql.*"%> <html> <form method="post" action 

Development process Questions

Servlets
have modified your code. import java.io.*; import java.sql.*; import...(); } } } The above code insert the values to database 

Development process Questions

Servlets
Servlets  the code is as follow import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class...(); } } }   Here the given code works fine: import java.io.*; import 

Development process Questions

Servlets
) java.lang.Thread.run(Unknown Source Here is the servlet code: import java.io. 

Development process Questions

Servlets
is the my code: import java.io.*; import java.lang.*; import java.sql.*; import 

Development process Questions

Servlets
Servlets  No its not working again it gives the following errors code is : import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class InsertServlet extends HttpServlet 

Java Beginners

Not sure whats wrong with my code HELP PLEASE?!?!
Not sure whats wrong with my code HELP PLEASE?!?!  I cant figure out what I am doing wrong in my code can anyone help me out??? Grades function computeGrade( ) { var hw, lab, midt, fin, avg; hw = parseFloat 

Java Beginners

What's wrong with my pagination code in JSP?
What's wrong with my pagination code in JSP?  Dear experts, I've.... Hope someone can advise me how to. Thanks! print("code sample"); <...; print("code sample");   JSP Pagination The given code retrieves 

Java Beginners

give the code for servlets session
give the code for servlets session  k give the code of total sample examples of servlet session 

JSP Servlet Questions

what is wrong with my JSP codes for updating a form?
what is wrong with my JSP codes for updating a form?  Hi experts, I have tried to emulate a code from a textbook but it doesn't work in my program. Hope someone can advise me where I had gone wrong. Tks. I've set up my 

Java Beginners

What's wrong with my form? - Java Beginners
What's wrong with my form?  Dear expert, I'm having trouble.... Here's my jsp code: Enquiries var objForm = new Object...; Hi Friend, Try the following code: 1)index.jsp: Enquiries 

JSP Servlet Questions

Using Servlets, JSP for Online Shopping
Using Servlets, JSP for Online Shopping  What is wrong with my code ? JSP <form action="LoginServlet "method="post" > <table>...(); } processRequest(request, response); } } }   The above code 

Servlet Interview Questions

Servlets Programming
Servlets Programming  Hi this is tanu, This is a code for knowing... visit the following links: http://www.roseindia.net/servlets/SimpleCounterInServlet.shtml http://www.roseindia.net/servlets/CounterInInit.shtml http 

JSP Servlet Questions

Servlets Program
Servlets Program  Hi, I have written the following servlet: [code] package com.nitish.servlets; import javax.servlet.*; import java.io.*; import... [/code] The problem I am facing is when I tried to compile the code, it gave me 

Java Beginners

please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page  <p>?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN 

JSP Servlet Questions

Wrong parameter values while exporting data from jsp to excel
Wrong parameter values while exporting data from jsp to excel   This is a jsp report. When i export the report data to an excel, the parameter.... This is the my jsp code - <%@ page contentType="text/html;charset=windows-1252 

JSP Servlet Questions

jsp and servlets
jsp and servlets  i want code for remember password and forget password so please send as early as possible ............. thanks in advance   Please visit the following link: http://www.roseindia.net/jsf/richfaces 

JSP Servlet Questions

Error in servlets
Error in servlets  I cant execute my servlet or jsp programs. Im getting an error resource not found. I am using tomcat 6.0. I have set the path and class path correctly. My code is also correct. I have done everything but i 

Java Beginners

please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page
 

JavaMail Questions

provide code in servlets,javascript,jsp - JavaMail
provide code in servlets,javascript,jsp  i create mail like fallowing subject:TEXTFEILD Email:TEXTAREA FOOTER:TEXTFEILD >here some... hope that, this link will help you. if you have any problem then send me code 

JSP Servlet Questions

read XML file and display it using java servlets
Xml which is present in my d drive plz can u should go through my code n tell me the things where i went wrong java servlet program protected void...="HttpServlet methods. Click on the + sign on the left to edit the code."> 

Java Beginners

servlets - Java Beginners
code. Servlets are serverside programs, we can execute servlets with in web... effectively because html code is hard coded in servlets,so it is very difficult...servlets  what is the difference b/w servlets and JSP, what servlets 

JSP Servlet Questions

Servlets in JSF - JSP-Servlet
. by double click on the control i am writing the code. As i can write the code in the form itself by double clicking why should i go for servlets to write code...Servlets in JSF  Hi! I am using Java Visual Studio to develop my 

JDBC Questions

servlets+jdbc+oracle - JDBC
servlets+jdbc+oracle  can you please help me to create a dynamic website. can you send me source code for creating a dynamic website for an engneering college 

Servlet Interview Questions

servlets
servlets  what is the duties of response object in servlets 

Servlet Interview Questions

servlets
servlets  why we are using servlets 

Java Beginners

servlets - Java Beginners
servlets   Q: i write program to upload image into perticular folder.but i want to store that path into database but not image and display that image in page from the db.pls any one send me code for that in servlets asap.pls 

Servlet Interview Questions

servlets
what are advantages of servlets  what are advantages of servlets   Please visit the following link: Advantages Of Servlets 

JSP Servlet Questions

Servlets
Servlets  How to edit and delete a row from the existing table in servlets 

Servlet Interview Questions

servlets - Servlet Interview Questions
servlets  i am using servlets. in that servlet i have an option... press "no" he should not be logout thanks . send the code for this  Hi friend, Code to solve the problem : Close window 

Servlet Interview Questions

servlets
servlets  How do you communicate between the servlets?   We can communicate between servlets by using RequestDespatcher interface and servlet chaining 

JSP Servlet Questions

JSP-Servlets-JDBC
JSP-Servlets-JDBC  Hi all, 1, Create - i want sample code ( if possible with explanation) to create a registration form in JSP, and the form..... It will be helpful if it's made into sub modules, JSP, Driver Constants, Servlets, Java Beans 

Java Beginners

Servlets - Java Beginners
Servlets  Hi, How can i run the servlet programon my system? I wrote the code in java.(I've taken the Helloworld program as example program... for more information, http://www.roseindia.net/servlets/ Thanks Amardeep 

Servlet Interview Questions

servlets
what is the architecture of a servlets package  what is the architecture of a servlets package   The javax.servlet package provides interfaces and classes for writing servlets. The Servlet Interface The central 

Java Beginners

servlets deploying - Java Beginners
servlets deploying  how to deploy the servlets using tomcat?can you...); } } -------------------------------------------------------  This is servlets mapping code. deploy javacode.ServletDeploy deploy /jsp 

JSP Servlet Questions

servlets - JSP-Servlet
;This is servlets code. package javacode; import java.io.*; import java.sql.... servlets.  Hi friend, employee form in servlets... ---------------------------------------------- Read for more information. http://www.roseindia.net/servlets 

JDBC Questions

java servlets jdbc - JDBC
java servlets jdbc  i am running the servlet program with jdbc connections in this porgram i used two 'esultset' objects.. in this wat ever coding... sent to me response thank u  Hi friend, Plz send me code 

JSP Servlet Questions

Servlets
Servlets  How to check,whether the user is logged in or not in servlets to disply the home page 

JSP Servlet Questions

servlets - JSP-Servlet
the user back to the JSP page?Please give java or pseudo code examples.  ... { res.setContentType("text/html"); PrintWriter out = res.getWriter(); String code... = req.getAttribute("javax.servlet.error.status_code"); messageObj 

Java Interview Questions

servlets
servlets  why we require wrappers in servlets? what are its uses? Please explain   These wrappers classes help you to modify request...://www.roseindia.net/servlets/response-filte.shtml 

Development process Questions

Servlets
. Anyways, please visit the following links: http://www.roseindia.net/servlets/introductiontoconfigrationservlet.shtml http://www.roseindia.net/servlets 

JSP Servlet Questions

jsp,servlets - JSP-Servlet
that arrays in servlets and i am getting values from textbox in jsp..., Try the following code: 1)sports.jsp: Select favourite sports 

JSP Servlet Questions

servlets
servlets  How to open and read the contents of a text file in servlets?   Please visit the following link: Read text file using Servlet 

JSP Servlet Questions

java Servlets - JSP-Servlet
java Servlets  Hi i am having a doubt regarding servlets as i am...?  Hello, tell me one thing that you are writing your html code in servlet through "out.println()" if yes then try this My servlet code// public 

JSP Servlet Questions

servlets - JSP-Servlet
first onwards i.e., i don't know about reports only i know upto servlets... to generate pdf report. Try the following code: 1)pdf.jsp: Name... link: http://www.roseindia.net/servlets/index.shtml Thanks 

Servlet Interview Questions

servlets - Servlet Interview Questions
;  This is java code... information. http://www.roseindia.net/servlets/   ... for more information. http://www.roseindia.net/servlets 

JSP Servlet Questions

servlets
servlets   Hi what is pre initialized servlets, how can we achives?   When servlet container is loaded, all the servlets defined in the web.xml file does not initialized by default. But the container receives 

WebSevices Questions

Servlets and
Servlets and   Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks 

Servlet Interview Questions

servlets
servlets why do we need web-inf directory in web application  why do we need web-inf directory in web application? means what's the benefits of doing so 

JSP Servlet Questions

Doubt in servlets - JSP-Servlet
the dynamic data .  Hi Friend, Try the following code: 1... the following link: http://www.roseindia.net/servlets/index.shtml Thanks 

Servlet Interview Questions

servlets
which are the differ ways you can communicat between servlets  which are the differ ways you can communicat between servlets   Different ways of communicating between servlets:- 1)Using RequestDispatcher object. 2 

Servlet Interview Questions

servlets - Servlet Interview Questions
page "mypage.jsp": The following code is from the "myservlet" class... or pseudo code.  Hi registration form in jsp...); } }   In this example not using of pseudo code only using of java 

Servlet Interview Questions

servlets
package supports the development of servlets that use the HTTP protocol. The classes... javax.servlet.GenericServlet and serves as the base class for HTTP servlets. HttpServlet-Request 

Servlet Interview Questions

servlets
what are sessions in servlets  what are sessions in servlets   A Session refers to all the request that a single client makes to a server...: http://roseindia.net/jsp/jspsession/ http://www.roseindia.net/servlets 

Servlet Interview Questions

the servlets
what is diff between generic servlets and httpservlets  what is diff between generic servlets and httpservlets   Difference between GenericServlet and HTTPServlet: 1)GenericServlet belongs to javax.servlet package 

Servlet Interview Questions

servlets
regarding the user usage and habits. Servlets sends cookies to the browser client...://www.roseindia.net/jsp/jspcookies.shtml http://www.roseindia.net/servlets/use 

Java Beginners

what is wrong with this program
what is wrong with this program  import java.io.*; class Distance { int feet,inch; void read() { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine()); inch 

JSP Servlet Questions

servlets
servlets  hi i am using servlets i have a problem in doing an application. in my application i have html form, in which i have to insert on date value, this date value is retrieved as a request parameter in my servlet 

JSP Servlet Questions

java servlets with database interaction
java servlets with database interaction  hai friends i am doing a web application in that i have a registration page, after successfully registered... i have done if you want i can send sample code. mycode import java.io. 

Servlet Interview Questions

servlets
servlets  what are different authentication options available in servlets   There are four ways of authentication:- HTTP basic authentication HTTP digest authentication HTTPS client authentication Form-based 

Servlet Interview Questions

servlets
what are filters in java servlets  what are filters in java   Filters are powerful tools in servlet environment. Filters add certain functionality to the servlets apart from processing request and response paradigm 

Java Beginners

what is wrong in this program
what is wrong in this program  import java.io.*; class Distance { int feet; int inch; void read(int feet, int inch) { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine 

JSP Servlet Questions

Servlets vs JSP - JSP-Servlet
Servlets vs JSP  What is the main difference between Servlets and JSP..., JSP elements, and JSP directives while servlet is totally uses java code. 3)Java Server Pages is that they are document-centric. Servlets, on the other hand 

Java Beginners

what is wrong in this program......
what is wrong in this program......  program to implement given inheritance import java.io.*; class Student { int rno; String name; DataInputStream ob = new DataInputStream(System.in); void getRoll 

Mobile Applications Questions

J2me app with servlets
J2me app with servlets  Can we send and receive message from our servlet website to mobile? if yes,then how.. without using any router..code plz??   Please visit the following link: http://www.roseindia.net 

JSP Servlet Questions

servlets - JSP-Servlet
servlets  what kind of reports java will support and also send the pdf format of that support report pls   Hi Friend, It also supports rtf format. We have already send you the code for pdf format. Thanks 

Java Beginners

java servlets - Java Beginners
page send code to me 

Java Beginners

servlets - Java Beginners
, Please post your code. Thanks 

Java Interview Questions

Servlets - Java Interview Questions
Servlets  write an application to print "Hello,user name"where Hello is a part of filter and user name is taken inside first servlet.  Hi Friend, Try the following code: 1)hello.jsp Username 

Servlet Interview Questions

Servlets - Servlet Interview Questions
code: import java.io.*; import javax.servlet.*; import javax.servlet.http. 

Servlet Interview Questions

servlets - Servlet Interview Questions
to another page with these two attributes please send the code to me thanks 

JSP Servlet Questions

Servlets - JSP-Servlet
is it please send me..  Hi Friend, Try the following code: 1 

JSP Servlet Questions

Servlets - JSP-Servlet
, We check your code and it can be successfully compile : Your problem 

Servlet Interview Questions

SERVLETS
 

JSP Servlet Questions

servlets
 

JSP Interview Questions

servlets
 

Servlet Interview Questions

the servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

servlets
 

Servlet Interview Questions

the servlets
 

Java Beginners

servlets
 

Java Beginners

servlets
 

Servlet Interview Questions

servlets
 

Java Beginners

Servlets
 

Java Interview Questions

servlets
 

Advertisements Advertisements
 

 

 

DMCA.com