JSP + Servlets + EJB: Java EE 6 & GlassFish 3 using NetBeans 6.9 (Part 1 of 5)

Java

Video is ready, Click Here to View ×


This multi-part screencast series shows how NetBeans 6.9 provides comprehensive tooling for Java EE 6 & GlassFish 3. The different parts show:

1. A simple Java EE 6 application (JSP, Servlets, EJB)
2. Reading database table using Java Persistence API 2
3. Using Facelets with Java Server Faces 2
4. Contexts & Dependency Injection with JSF 2
5. RESTful Web services using JAX-RS

This is part #1 and all screencasts are hosted at http://blogs.sun.com/arungupta.

20 thoughts on “JSP + Servlets + EJB: Java EE 6 & GlassFish 3 using NetBeans 6.9 (Part 1 of 5)

  1. nice tutorial…i have a problem in persistence. I'm using many to one relationship in my entity. After running the entire projeect tables are created but values are not persisting.
    could you please tell me the error.
    Glassfish error is : WARNING: java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: requirment.buyer[ id=null ].

  2. Hello,
    Thanks very much for a nice tutorial , I have a question that can you help me in a web application to enter data in text feild of jsp and then data should save in a text file. I have 2 java classes and jsps to enter the data in the text boxes. The sevlet code is a bit tricky for me. Could you give me any advise. ?
    Thanks

  3. @arun: I wrote a simple jsp file and tried to run, it is throwing "The requested URL /HelloWeb/ was not found on this server". i followed the same steps which has been mentioned in netbeans tutorial.

    can u pls let me know the possible reasone for this error?

    Thanks
    >>>>>>>
    Shailendra

  4. @masifshoukat This is generated as a code template, use the below code:

    int count;
    if (request.getSession().getAttribute("count") == null) {
    count = 0;
    } else {
    count = (Integer) request.getSession().getAttribute("count");
    }
    request.getSession().setAttribute("count", ++count);
    out.println("Accessed: " + request.getSession().getAttribute("count"));

  5. Hi arun,

    thanks for this interesting and helpful tutorial.

    i have one problem, in helloservlet when you wrote session and press entered of something it generated template code, but when i tried the same it didnt generated the template code. can you please explain the steps how to generate template code using short key or something like u did in this video.

    thanks for any help

    sincerely

    asif

  6. Hi arun,

    thanks for this interesting and helpful tutorial.

    i have one problem, in helloservlet when you wrote session and press entered of something it generated template code, but when i tried the same it didnt generated the template code. can you please explain the steps how to generate template code using short key or something like u did in this video.

    thanks for any help

    sincerely

    asif

  7. hi Arun,
    Thanks for great tutorial.
    But I am facing one problem and it is "requested URL not found on server".
    I have written one small html file and it is throwing this error. Can you pls let me know the possible reason for same? Same html file is working fine in eclipse.

    Thanks in advance.

  8. This was an immensely helpful tutorial. You make excellent use of the medium of YouTube and your examples and easy to follow whiel at the same time very informative. Thank you very much.

    On a personal note: It's both frightening and very interresting to see how fast things are moving and how much easier it has become to perform previously tedious and mundane tasks such as persistence. This highlights the need for the individual developer to stay current. 🙂

  9. Great tutorials and thanks for your great work!

    Would be great if you create a screencast using CDI, JSF, Facelets together with JPA (that is all technologies combined) to create a web application. I am particularly interested of using CDI and JPA. We really lack this kind of tutorials.

    Keep up!

Leave a Reply

Your email address will not be published. Required fields are marked *