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(
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo