jsp « Development « JPA Q&A





1. JPA and InnoDB, and JSP/JSTL questions    stackoverflow.com

A couple of questions:

  1. If I have mapped a Customer with an i-var List<Order> orders with annotation CascadeType.ALL, should I also set the relation in MySQL InnoDB ON DELETE CASCADE? Or will ...

2. How to pass (properly) a Java Object from a Servlet to a JSP page    stackoverflow.com

I've been everywhere on the web, and i'm little lost and couldn't solve my problem. I'm creating a web application using Eclipse, with JSP on the client side, and Servet/Hibernate on the ...

3. NullPointerException in JSP    stackoverflow.com

I keep getting a NullPointerException when I run the program.

java.lang.NullPointerException
        at org.apache.jsp.student_jsp._jspService(student_jsp.java from :65)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
 ...

4. Error with hbm2doc while building with ant    stackoverflow.com

I'm getting a very strange error while trying to build a project through ant. The message I get is:

[hibernatetool] 01:02:01,865 DEBUG TemplateProducer:40 - Writing doc/entities/index.ftl to /Brainspan/Brainspan/core/hibernatedocs/entities/index.html
[hibernatetool] An exception occurred while ...

5. Help configuring Hibernate,Jpa, Stripesist on Stripes    stackoverflow.com

I need some help configuring JPA Stripersist and Hibernate on a Stripes project I have the Stripersist.jar and JPA.jar, the book i have is not that clear about how to get the ...

6. Getting ServletException and NoClassDefFoundError during webapp startup    stackoverflow.com

I'm getting the following errors: javax.servlet.ServletException: Error instantiating servlet class auth.Login and java.lang.NoClassDefFoundError: javax/persistence/Persistence How do I ensure my project's configuration is properly setup? To me, this look correct. enter image description here

7. OFBiz + Hibernate? OFBiz + JSP?    stackoverflow.com

Would love some guidance on two things.

  1. I'm considering building out a commerce site using JSPs as the front-end (and a very lightweight MVC framework I use frequently and which suits my ...

8. Can I use Javabeans with hibernate?    stackoverflow.com

I'm using a hibernate2 plugin in my web project with jsp. My project also contains a register page. Can I use Javabeans to send information from a html <form> using hibernate's class? ...

9. Hibernate-Servlets-JSPs    coderanch.com





10. Hibernate with JSP    coderanch.com

In a well written app, JSP and Hibernate would never know the other existed. Hibernate is an ORM framework which would live in the back end of the application. JSP, a templating language for formatting the out put lives on the front end. If your app is large enough to warrant an ORM layer, you should be well beyond writing any ...

11. Any JSP + Hibernate examples?    coderanch.com

To be honest, I'd steer away from anything that mixes Hibernate with JSP. A properly constructed web application should sequester all database access in its model layer, which should be completely UI-agnostic. Your model layer should be usable from a Swing app, a web app, or even a command line app. If you are mixing servlets/JSP and database access in the ...

12. JSP to hibernate    coderanch.com

13. Error while deploying JPA    coderanch.com

You seem to be mixing up EJB 2.1 CMP and JPA. (This is one of the reasons why we steered away from going over EJB 2.1 in the book. It can confuse people more than it helps them.) I think in this instance it would be best for you to start fresh with EJB 3.0. You do not need getter or ...

14. Storing double linked tree structure using JPA (sons-fathers)    coderanch.com

I have a question regarding tree structures and JPA. My example is an entierly male population where the nodes are HumanMan's which may or may not have sons. In this structure it's convienient to have instance variables holding references to each HumanMan's father as well as his sons. That way you're able to traverse the tree in a fast and simple ...

15. Hibernate, Toplink, and so on...    coderanch.com

16. Headstart JPA    coderanch.com

Hello to all, Very simple question. I have never developed an application using any of the application framework available today like Struts, Hibernate or Spring. I have used just JSPs and Servlets for application development. I have a requirement to use JPA for application development. My Question is : Can JPA be used with JSPs and Servlets or do I need ...





17. org.hibernate.NonUniqueObjectException    coderanch.com

Hello, I didnt used the hibernate, i just use EJB3 and JBoss, i get this Exception when i try to save beans with entityManager.persisten(). Finance newFinance = new Finance(this.entityManager.find(User.class, userName), ...); this.entityManager.persistence(newFinance); Finance newFinance2 = new Finance(this.entityManager.find(User.class, userName), ...); this.entityManager.persistence(newFinance2); // I GOT THE EXCEPTION HERE the Finance and the User are entity beans, which Finance has a User property. And ...

18. Hibernate implements JPA.    coderanch.com

Kengkaj , Though you were wrong on this "If you use EJB 3, you don't need to use Hibernate, because EJB 3 already includes JPA implementation. " as Paul said But you made one valid point " But don't use Hibernate interfaces, use JPA interfaces. If your codes use Hibernates interfaces, your codes will not be portable. " I want to ...

19. Hibernate/JSP: NoClassDefFoundError    coderanch.com

hibernateMySQL.cfg.xml wrote: com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/bioscoopholding bioscoopholding cocacola org.hibernate.dialect.MySQL5InnoDBDialect thread ...

21. JPA implementation ?    coderanch.com

Hi, I am little confused about JPA services and its implementation. In EJB3 in Action , it says JPA standardizes the ORM framework so that you can run your code with any persistence provider.I am not clear yet that : 1) does JPA not provide implemention for its services i.e EntityManager and cannot be used without persistence provider i.e (Hibernate or ...

22. JPA 2 and Servlets/JSP    coderanch.com

23. How to Get Data Into Comobox From Databse Using Hibernate in JSP Page?    coderanch.com

Any One Solve this Problem. This is what i do with my page of get value from database into combo box. <%@page contentType="text/html" pageEncoding="UTF-8" import="java.util.*,org.hibernate.*,util.*,entity.*"%> Online Attendance Main Page <% try { SessionFactory sf = HibernateUtil.getSessionFactory(); Session s = sf.openSession(); Transaction tx ...

24. Retreiving image through JPA and displaying it    coderanch.com

Hi I am storing users data in a table along with pictures using JPA. I have successfully stored the images in data base. I have to display the data on a JSF page in data table along with the pictures. Now I am facing the problem of how to display the pictures. When I retrieve the data, all the records are ...

25. deployment error ,jpa(wl10.3.3)    coderanch.com

I tried to write a simple appn using jpa BookBank.java package entity.library; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import java.util.Collection; import javax.persistence.*; import java.io.Serializable; @Entity @Table(name="bookbank") public class BookBank implements Serializable { long id; String title; String author; double price; //protected Collection lineitems; public BookBank() { super(); } public BookBank(String title, String author, double price) { ...

26. difference between JPA and Hibernate?    coderanch.com

27. Java EE Enterprise Application Client + Hibernate Question    coderanch.com

Good afternoon everybody, I'm in a bit of trouble here. I need to develop a Java EE 6 Enterprise Application consisting of only one Enterprise Application Client. My problem is that the Application Client needs Hibernate to have access to some information on a local database. I noticed that if I import the Hibernate libraries, the application client won't deploy on ...

28. Standard way to handle Repository in JPA    coderanch.com

Hi All, Consider the following scenario. There is a table in db whose content together form as a repository. This table will be updated (updation of existing extities, addtion of new entities or removal of entities) rarely. So currently the approach that I was using was to create a singleton XXXRepository pojo which will read all the rows (entities) from XXX ...

29. Hibernate Updation problem    coderanch.com

I am getting a strange behavior from hibernate. The Problem is I tried to load a login page in struts 2. This page request a stateless session bean to verify user name and password. The stateless session bean uses hibernate to fetch data from database. Now when I change the password in the database directly and then use it to login ...

31. issue on jpa    coderanch.com

32. Memory Issues with JPA    coderanch.com

Thanks for the reply.... I have used jmap command on the glassfish process id and it gives high memory for all persistence classes. Also, if there is issue with the code or Application then that would behave the same after i deploy and not after 4-5 hrs with 30-40 users. Regards, Nilesh Chhapru.

33. Hibernate and JSP    coderanch.com

Hello, I learned some Hibernate and I would like to putt it to use with my knowledge of JSP. I would like to make a web page and try to make something bigger out of it. Can somebody help me? I know how to map the entity class and I make a configuration xml, that part is ok. But the problem ...

34. Problems with hibernate in jsp    java-forums.org

35. display tag hibernate problem    java-forums.org

i retrive child table(MaterialRequestItems) attributes using select query from hibernate and then set to list named ''REQUEST " materialRequest is object of MaterialRequest(parent table) in hibernate POJO class but i need to get materialCode . ie i need to get column materialCode from parent table... can u provide ...

36. experiencing a problem using Hibernate featuring JSP..pl help :( :(    java-forums.org

i created a jsp application in hibernate using myeclipse8.6...n wen i kept it on server to access its give error as jsp cud not be compiles..Compilation of JSP File '/MyJsp.jsp' failed: MyJsp.jsp:4:18: The import org.hibernate cannot be resolved <%@ page import="org.hibernate.cfg.*" %> ^-----------------^ MyJsp.jsp:5:18: The import org.hibernate cannot be resolved <%@ page import="org.hibernate.*" %> ^-------------^ MyJsp.jsp:6:18: The import org.hibernate cannot be ...

37. Sample Project in Hibernate and JSP    forum.hibernate.org

38. experiencing a problem using Hibernate featuring JSP..    forum.hibernate.org

i created a jsp application in hibernate using myeclipse8.6...n wen i kept it on server to access its give error as jsp cud not be compiles..Compilation of JSP File '/MyJsp.jsp' failed: MyJsp.jsp:4:18: The import org.hibernate cannot be resolved <%@ page import="org.hibernate.cfg.*" %> ^-----------------^ MyJsp.jsp:5:18: The import org.hibernate cannot be resolved <%@ page import="org.hibernate.*" %> ^-------------^ MyJsp.jsp:6:18: The import org.hibernate cannot be ...

39. exists a jsp taglib for hibernate?    forum.hibernate.org

Over here, we've written a straightforward taglib that operates much like a c:forEach given a hql query. it's pretty full featured, being able to take a jdni context ( or generate from scratch ), let's you set start/max , and specify an iterate or a find .. i'm not really sure that you'd need more than that for a hibernate tag ...

40. hibernate in a jsp    forum.hibernate.org

41. Need help for slow jsp application    forum.hibernate.org

42. Slow JSP Application please help me....    forum.hibernate.org

If you have some idea please help me !!!! Tomcat 4.0, JSTL (DB Tags) and a lot of SQL with agregate function for creating reports, Oracle 9i and all sql from login into Users are tooo slow Please tell me if Hibernate must to solve this problem i will send this SQL TNX Best regrads, Me - Hibernate newbie

43. JSP and Hibernate Error    forum.hibernate.org

Hi Im trying to use hibernate in a JSP class, but when it runs it throws the following error: The Persitance classes(objects) exist in a directory called Chinchilla, but it still throws the error "WRONG NAME" if i take the Chinchilla. out of the one-to-many class name in the bag then it says it can not find associated class! please help ...

44. JSP with hibernate    forum.hibernate.org

45. JSP: Internal Server Error    forum.hibernate.org

List records = session.find( "from HibernateConsumptionRecord as record where record.userId = ?" + " and record.consumptionDate >= ? and record.consumptionDate <= ?", ...

46. cglib + WebLogic 8.1 JSP-EL returns nulls with Hibernate 3.1    forum.hibernate.org

public ClassB { private Integer id = null; public Integer getId () { return id; } public String toString() { ...

47. Using JSP with Hibernate Error:Servlet.service()    forum.hibernate.org

Newbie Joined: Wed Feb 01, 2006 10:33 am Posts: 15 Hey, We are having problems with calling and using a hibernate method (in a seperate .java file) from a jsp.page. We used the method getUsers which are located in the java file. This method uses Hibernate to communicate with the DB and return a list of users. We tested this method ...

48. Best practice for hibernate when use with JSP    forum.hibernate.org

Hi, I'm using Hibernate 3.1.3 and using JSP for development. I read from some hibernate examples that we should put persistence related coding in DAO classes. I'm designing a search page where user can enter one or multiple search criteria values. For example, user can search by title, or author, or subject or isbn or combination of these. Let say I ...

49. Use in JSP    forum.hibernate.org

50. Accessing set from jsp page    forum.hibernate.org

Hello, Maybe this is not a pure hibernate issue, but I'm sure that many people have ever had the same problem. I have a Pojo with a Set attribute, representing a foreign key in other table: public class Cliente { .... attributes declarations private Set alquileres = new HashSet(); ..... getters and setters } The problem appears when I try to ...

51. Two formbacking objects in jsp form    forum.hibernate.org

52. problem in JSP file    forum.hibernate.org

FOLLOWING IS MY JSP FILE, <%@ taglib uri="http://java.sun.com/jsp/jstl/core_rt" prefix="c" %> ViewAllMyObjects

JBuilder Generated JSP

Id Name Address Email Phone
${mobj.id} ${mobj.name} ${mobj.address} ${mobj.email} ${mobj.phone}
Click here to add ...

53. HJibernate - JSP    forum.hibernate.org

54. jsp project with hibernate (create sesion problem)    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: hibernate3.jar Mapping documents: dynamic web project Code between sessionFactory.openSession() and session.close(): protected void doPost(HttpServletRequest request, HttpServletResponse response) import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.Statement; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtil implements java.io.Serializable { public static final SessionFactory sessionFactory; static { try ...

55. web application with jsp and hibernate    forum.hibernate.org

hi All, I am new to hibernate. I am using eclipse3.4.1 ide. eclipse3.4.1 doesn't support hibernate. So,I have installed the plugin hibernate synchronizer. please answer the question. I have written the code for spd.jsp below <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="org.students.hyd.Product"%> <%@page import="org.hibernate.*"%> <%@page import="org.hibernate.cfg.Configuration"%> <%@page import="org.hibernate.Session"%>

56. from jsp to hibernate    forum.hibernate.org

hello everybody! i am a new web programer.i have configure all my mapping from hibernate to my database.i want to use jsp as a presentation layer using jakarta tomcat.i have inmported all my external libraries(lib of hibernate)into webinf/lib of jakarata. i catch the data from a html form and i want to save them into my database using hibernate.how can i ...

57. jsp with hibernate    forums.oracle.com