Dear Preeti,

Please visit
http://www.geocities.com/deepak_38/free_jsp_hosting.htm

for more information.

Regards
Deepak Kumar

--- Preeti <[EMAIL PROTECTED]> wrote:
> hi friends
> Hey if any one knows the Free hosting web sites for
> JSP please let me know
> as I need it urgently
> Regards Preeti
>
> ----- Original Message -----
> From: Sachin S. Khanna <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 18, 2001 7:02 AM
>
>
> > Find the modified jsp and bean files below :
> > They are working :-)
> > bean file :
> >
> > mport java.sql.*;
> > import java.util.*;
> >
> > public class databank {
> >
> > private String driver =
> "sun.jdbc.odbc.JdbcOdbcDriver";
> > private String url = "jdbc:odbc:db1";
> > private Connection connection;
> > private Statement statement;
> > private ResultSet res;
> > private ResultSetMetaData meta;
> > private String naam;
> > private int aantal;
> >
> > public databank(){}
> >
> > public ResultSet lijst(){
> >   try {
> >    String query = "select * from klant";
> >    Class.forName(driver);
> >    connection = DriverManager.getConnection(url);
> >    statement = connection.createStatement();
> >    res = statement.executeQuery(query);
> >   }
> >   catch (SQLException e){
> >   }
> >   catch (ClassNotFoundException cnfex){}
> >
> >   return res;
> > }
> > }
> > ------------------------------
> > jsp file
> >
> > html>
> > <body>
> >
> > <%@ page import="databank" %>
> > <%@ page import="java.sql.*" %>
> >
> > <jsp:useBean id="db" class="databank"  />
> >
> > <%!  ResultSet res;
> >      ResultSetMetaData meta;
> >      int aantal;
> >      int kol;
> > %>
> >
> > <% res = db.lijst();
> >  %>
> >
> > <% if(!res.next()) {
> > System.out.println("Reached here again");
> >             out.println("Deze instructie heeft
> geen resultaten");
> >     }
> >     else
> >
> >       res.next();
> > %>
> > <%= res.getString(0) %>
> > <% } %>
> >
> >
> > </body>
> > </html>
> >
> >
> >
> > Have a nice day.
> > With regards,
> > Sachin S. Khanna
> > http://www.emailanorder.com
> > ----- Original Message -----
> > From: Jonas Devries <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, May 18, 2001 3:14 PM
> >
> >
> > > This is the whole jsp-file!!!
> > >
> > > Hope you can do something with it!!
> > >
> > > Thanx
> > > Jonas
> > >
> > > <html>
> > > <body>
> > >
> > > <%@ page import="databank" import="java.sql.*"
> %>
> > >
> > > <jsp:useBean id="db" class="databank"  />
> > >
> > > <%!  ResultSet res;
> > >      ResultSetMetaData meta;
> > >      int aantal;
> > >      int kol;
> > > %>
> > >
> > > <% res = db.lijst("select * from klant"); %>
> > >
> > > <% if(!res.next()) {
> > >             out.println("Deze instructie heeft
> geen resultaten");
> > >     }
> > >     else { %>
> > > <%= res.getString(0) %>
> > > <% } %>
> > >
> > >
> > > </body>
> > > </html>
> > >
> > >
> > > >From: "Sachin S. Khanna"
> <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server
> Pages specification and
> > > >     reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Date: Fri, 18 May 2001 14:37:47 +0530
> > > >
> > > >Couple of things :
> > > >a) Provide the complete source code for the
> jsp.
> > > >b) Apparently nothing seems to be wrong with
> your java bean code.
> > > >Have a nice day.
> > > >With regards,
> > > >Sachin S. Khanna
> > > >http://www.emailanorder.com
> > > >----- Original Message -----
> > > >From: Jonas Devries <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Friday, May 18, 2001 1:04 PM
> > > >
> > > >
> > > > > Does somebody knows why this code doesn't
> work?  I want to acces a
> MS
> > =
> > > > > Access DB and give a simple query.  I give
> the ResultSet back to my
> > JSP
> > > >=
> > > > > file but he gives some errors.  JSP and
> Java-bean are included.
> > Errors
> > > >=
> > > > > also.  There is data in the db and the
> odbc-jdbc driver is
> installed.
> > > > >
> > > > > Thank you very much in advance
> > > > >
> > > > > Jonas
> > > > >
> > > > >
> > > > > import java.sql.*;
> > > > > import java.util.*;
> > > > >
> > > > > public class databank {
> > > > >
> > > > > private String driver =3D
> "sun.jdbc.odbc.Jdbc.OdbcDriver";
> > > > > private String url =3D "jdbc:odbc:db1";
> > > > > private Connection connection;
> > > > > private Statement statement;
> > > > > private ResultSet res;
> > > > > private ResultSetMetaData meta;
> > > > > private String naam;
> > > > > private int aantal;
> > > > >
> > > > > public databank(){}
> > > > > =20
> > > > > =20
> > > > > public ResultSet lijst(){
> > > > >
> > > > >   try {
> > > > >    String query =3D "select * from klant";
> > > > >    Class.forName(driver);
> > > > >    connection =3D
> DriverManager.getConnection(url);        =20
>
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to