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

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
53,302
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 16, 2010

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.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (arungupta)

  • 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

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

    int count; if (request.getSession().getAttri­bute("count") == null) { count = 0; } else { count = (Integer) request.getSession().getAttrib­ute("count"); } request.getSession().setAttrib­ute("count", ++count); out.println("Accessed: " + request.getSession().getAttrib­ute("count"));

  • 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.

  • @lohiashailendra And where is this HTML file added ?

    What are you trying to achieve ?

  • 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!

  • @cvasilak CDI + JPA will be coming in future, stay tuned!

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • thank you my friend

  • Thank you Mr.Gupta.

  • Not sure what oracle will do to glassfish

  • @tembehval This also happened to me! Did you solve it??

  • 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

  • Good tutor. Bit I just looking for the same of intellij IDEA with Glassfish integration.

    Anyway thanks.

  • @lohiashailendra Oh, I'm sorry for my bad voting... it was accidentally.

  • glassfish unit test No EJBContainer provider available

  • Mr Arungupta... After a very long search, I found your tutorial. Honestly, worth spending time. Please please, add more tutorials like this. I would be interested if you can show an example of how to connect to database using struts of any version, using mysql. Please, will you? Thanks in advance.... Shri

  • @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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more