[java ee programming] Re: Regarding JPA Basics Lab-HomeWork.

2009-06-05 Thread aks . itsme
well I am not sure about it being a common problem. I am pasting the code which works for me.. try { //Get the data from user's form String id = (String) request.getParameter("id"); //create an em. //Since the em is created inside a transaction, it is associsated with //the transaction utx.begin(

[java ee programming] Re: Clarification of Session, Response in JSP pages

2009-06-05 Thread Biljana Biljana
Hi! take a look your if, and you redirect, you user not null . If you want to go to index.jsp, just change in form where is your Back button that does't go to welcome page, or make if examination in that page in what option you want t go to welcome, in what you want to go to index page, this cod

[java ee programming] Re: Regarding JPA Basics Lab-HomeWork.

2009-06-05 Thread Biljana Biljana
Hi Mark!   this problem occured to everyone if you searche in groupe mail list. They said that we can't use remove() method, you must in delete servlet have sql statement which will delete person in database that you want to delete.   regards, Biljana --- On Fri, 6/5/09, aks.it...@gmail.com wro

[java ee programming] Re: Struts 2 - Indexed properties

2009-06-05 Thread Biljana Biljana
I don't know to much with < s: ...> tags, but I know how to do in usually jsp pages. I created one page with form where I add new car, or what ever, this form's action is activated one servlet which will add new car in list, this servlet at the end will dispatched to some jsp page you want. I so

[java ee programming] Problem with Spring Framework and Hibernate Lab

2009-06-05 Thread pxk5249
When I try to run the first project I get this error Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V Exception in thread "main" java.lang.ExceptionInInitializerError at HibernateUtil.(HibernateUtil.java:32) at Main.main(Main.j

[java ee programming] Re: Regarding JPA Basics Lab-HomeWork.

2009-06-05 Thread aks . itsme
Hi mak, It would be easier to help you,if you could paste the code where u have the logic to delete the record. akshay On Jun 5, 2009 9:55am, mak pandian wrote: > Hello , > Now i am doing JPA Basics Home work.I done delete option for every > records in the table.My logic is described below

[java ee programming] Regarding JPA Basics Lab-HomeWork.

2009-06-05 Thread mak pandian
Hello , Now i am doing JPA Basics Home work.I done delete option for every records in the table.My logic is described below. When the user click the delete option,The servlet DeleteServlet is invoked. In delete servlet,I get id from request parameter. And then i did in the same way what was in

[java ee programming] Cannot resolve reference Unresolved Ejb-Ref

2009-06-05 Thread JULIAN ENRIQUE OSORIO AMAYA
Hello everyone!!! I've been following a basic example using ejb3 and jsf ( http://luxlog.wordpress.com/2007/12/15/basic-example-web-app-with-glassfish-netbeans-60-jsf-and-ejb3/) But at the moment of @EJB injection in the JSF Managed Bean and then making the deploy displays this message in the Gla

[java ee programming] Struts 2 - Indexed properties

2009-06-05 Thread fjtorres
Hi all, I will let you know a little problem I have one application with Struts 2, Spring 2.5 and Hibernate. In one of screens have the detail of a client and relation their Cars. My thought was that when you press the add button will add a new line in the list of cars. This line be in edit mod

[java ee programming] Clarification of Session, Response in JSP pages

2009-06-05 Thread muhiuddin
I want to clear some concept in JSP. 1. I have made simple applicaiton login/logout. I click logout and invalidate session in controller.jsp and redirect page to index.html but when i click back button the previous page(welcom.jsp) still available. Can any one tell me how to correct that when i