object « Database « JSP-Servlet Q&A





1. how to send a ResultSet object in jsp back to html (javascript)?    stackoverflow.com

i have a Jsp page which queries a mysql database , i want to send the Resultset object to an html page as a response object ? i need the resultset ...

2. Object oriented database    stackoverflow.com

I don't know if this is the right title for this question. Anyway, recently I have heard about that you could make life easier when creating database. By in which you use ...

3. Passing a resultSet object    coderanch.com

6. IllegalStateException - while passing Resultset Object from one JSP to another!!    coderanch.com

Sandeep

Sun Certified Programmer for Java 2 Platform

Oracle Certified Solution Developer - JDeveloper
-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java
-- Object-Oriented Analysis and Design with UML

Oracle Certified Enterprise Developer - Oracle Internet Platform
-- Enterprise Connectivity with J2EE
-- Enterprise Development on the Oracle Internet ...

9. Pass a resultset object from a servlet to jsp    coderanch.com

package com.choral.be; import com.oreilly.servlet.MultipartRequest; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.OutputStream; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import javax.servlet.RequestDispatcher; import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import oracle.sql.BLOB; import oracle.jdbc.driver.OracleDriver; import oracle.jdbc.OracleResultSet; public class addCandidate extends HttpServlet { public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { System.out.println("1"); HttpSession session ...





10. Object structure for databases in servlets    coderanch.com

Hi, I'm coming from a PHP background into Java servlets and have a little trouble with the OO side of things when using them. My main issue at the moment is how I structure the classes to allow them acccess to the database. What I currently have is a connection pool from javaexchange.com and that is wrapped up inside a DatabaseConnector ...

11. Reusing ResultSet object in Servlets.    coderanch.com

Class sampleClass extends HttpServlet{ private ResultSet rs; public void setRs(ResultSet theRs){ rs = theRs; } public ResultSet getRs(){ return rs; } public void querryNow(String querry){ Object MyObjCon = getServletContext.getAttribute("someAttribute"); Resultset rs; Connection con; Statement stm; try{ com = (Connection)MyObjCon; stm = con.preapareStatement(); rs = stm.executeQuerry(querry); setRs(rs); }catch(SQLExeption err){ // error handling.. } }

13. How to avoid persisting a child object, which is already there in database?    coderanch.com

Hello all, i am using EJB 3.0 I have a scenario, where i don't want to persist a child object with @OneToOne annotation. @Entity(name = "Alarm") @Table(name = "ALARM") public class Alarm extends AppMO { public Alarm() { } /** * Constructor - called by the factory. * @param name Name of this object. */ public Alarm(String name, String MOType, String ...

14. pass ResultSet object one JSP to another JSP    forums.oracle.com