Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    Which framework should i use for building ecommerce webiste in java

    I have the following options but i am confused which one to use to build a ecommerce website in java

    1)JSF2 with facelets
    2)SPring MVC
    3)Wicket


    I only know basic java and jut vague idea about servelte and JSP.
    Just build a 3 pages website in servelt , jsp 4 years ago.


    SO Can anyone help me in deciding where should i start with
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #2
    Regular Coder brad211987's Avatar
    Join Date
    Sep 2005
    Location
    Ohio
    Posts
    631
    Thanks
    10
    Thanked 50 Times in 50 Posts
    I've become quite a fan of Spring, but also would suggest looking into Google Web Toolkit (GWT). I used Wicket for a while but didn't care for it as much. JSF wasn't too bad though, if you go that route, have a look at IceFaces for some AJAX functionality.

  • #3
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    ACtually i have to do a new website in java. I used to do in php before but the client wants in java.

    Now i have never build any site in java/jsp/servelte before and i want to start learning.

    But there are many frameworks that i am confused , i was thinking it like php where i know that i buy book on php and start learning but here in java , i don't know ehre to start or which books to buy so that i can start with my hello world example

    so u mean GWT is the replacement of Spring or its an addon with Spring.
    same with iceface , which should i start with
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #4
    Regular Coder brad211987's Avatar
    Join Date
    Sep 2005
    Location
    Ohio
    Posts
    631
    Thanks
    10
    Thanked 50 Times in 50 Posts
    IceFaces is an extension to Java Server Faces(JSF).
    GWT is a completely separate framework from Google.
    Spring is another framework that does many different things such as Inversion of Control (IoC) and Dependency Injection (DI) as well as serving as an MVC framework.

    Too many acronyms?

    I would recommend learning JSP and Servlets by themselves first. All of the java web frameworks in one way or another utilize these technologies including the above. Once you have a good grasp of Servlets, you can move on to anything you like.

    My personal (and biased) recommendation for the moment is GWT. It is a bit unique in that the user interface code you write is written in Java, but actually compiles directly to Javascript instead of bytecode. You complement this with Servlets and Remote Procedure Calls (RPC) for asynchronous communication. So its pure Java code, and compiles to an AJAX heavy web application with a strong java based servlet back end.

    Regardless of which way you go, I would also learn spring, as well as hibernate for data access. My current Java web application toolset for my current project looks like this:

    Google Web Toolkit for the core of the application (This includes servlets)
    Spring for dependency injection on the server side code to help with loose coupling (this also includes servlets)
    Hibernate for database access and transaction management
    Java based portal using portlets (similar to a servlet) to aggregate it all together.

    All in all, you can leverage many different frameworks, design patterns and tools with Java on the web. Start with servlets and move on to whatever looks interesting and useful to you from there.

  • Users who have thanked brad211987 for this post:

    o0O0o.o0O0o (06-18-2010)

  • #5
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Thank you very much for that explanation , i now got idea what to do.

    One thing more , According to you if i have to build a simple website with member login , few products for shopping using above technologies, how much time you think it will roughly take to build it using the technology you said above.

    Provided i know only very basic core java (just simple programs). I have to start from scrath with JSP , Servlets , GWT


    DO i have to code all the members area from scrath or there are libraries in framework which can make logins , shop cart easier

    Thanks
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #6
    Regular Coder brad211987's Avatar
    Join Date
    Sep 2005
    Location
    Ohio
    Posts
    631
    Thanks
    10
    Thanked 50 Times in 50 Posts
    A simple website with a login shouldn't take long at all with a generic servlet that you can post data to for the login. A servlet container like tomcat can even handle securing certain resources for you.

  • #7
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Can i pick up the frameworks GWT , SPring , Hibernate and build website within 6 months.

    Also if i have vps Linux server can i be able to install all those GWT , Spring , Hibernate etc
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #8
    Regular Coder brad211987's Avatar
    Join Date
    Sep 2005
    Location
    Ohio
    Posts
    631
    Thanks
    10
    Thanked 50 Times in 50 Posts
    Yes, and Yes.

    You can definitely be proficient in all of them within 6 months. I won't claim that you will master any of them though, but learning enough to do a reasonably complex web application is completely obtainable.

    Keep in mind that the frameworks are extra that utilize the underlying technology. If you really want to master Java web development, its all Servlets. The frameworks and libraries simply make life easier and make it easier to organize and stick to design patterns.

  • #9
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Thanks for that , that gave me enough confidence, i was stuck because when someone told me do site in java i thought it as only java but someone confused me with many frameworks and i was confused what to do.


    Where did Java Beans , EJB , JEE6 fit here or i don't need them .

    Can i start with this book

    http://www.amazon.com/Expert-Spring-.../dp/159059584X

    or first i nned to do basic in simple servlets and JSP
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #10
    Regular Coder brad211987's Avatar
    Join Date
    Sep 2005
    Location
    Ohio
    Posts
    631
    Thanks
    10
    Thanked 50 Times in 50 Posts
    Java Beans in their pure form are simple java objects (POJOs, or plain old java objects). Basically a class with a default constructor and any number of basic properties.

    EJB I have much less experience with, but they are different from the standard JavaBeans.

    Most of what you really need is already in the standard JDK, J2EE adds a significant amount of web application and enterprise level api packages that you can use. Strictly speaking, you don't "need" anything except a servlet container and knowledge of the servlet api.

    I don't know much about the book. I've been through a good portion of "Spring in Action" and found it to be pretty good.

  • #11
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Ok thanks for that i think it will be good if can start one books and finish it to get some understanding for jsp and servlets

    Can i start with this book or this one

    Just recommend me one basic book so that i can start
    Last edited by o0O0o.o0O0o; 06-18-2010 at 04:29 AM.
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •