Results 1 to 2 of 2
- 03-13-2011, 06:39 PM #1Member
- Join Date
- Mar 2011
- Rep Power
Almost new to J2EE and web development in Java
My name is Mati, and I am 22 years old. I live and study in U.S.A.
I have been developing desktop app in C# for the past two years. But now I am taking my masters and I am learning in Java. I am also interested in J2EE and wanted to develop web apps in Java. The problem is, I am very much confused with the tools, classes and etc Java uses. For example people say to me, you have to know Struts, Spring, JSP, Ant, Tomcat, Apache Tomcat, Hibernate, and etc. I tried to search every one of those and got some clue but not that much detail and now I am really confused where to START.
Before I go to coding (which is my interest), I wanted to know what tools to know and why and how they are used, at least the basics. Once I get some idea, I will keep on searching by myself. Can any body please tell me or give me a link of what tools I have to start with as a BEGINNER web developer? Can any body give me a brief description about them?I downloaded Eclipse and I am almost familier on how to use it and I also write some code on it.
These days, I downloaded J2EE, Struts, and Hibernate but I dont know how to use them and where to use them. No clue. Help me guys.
- 03-23-2011, 06:22 AM #2Member
- Join Date
- Mar 2011
- Rep Power
I understand how confusing it it doing J2EE. I'm pretty new to java as well, and have only recently finished a basic java course. Where I work has taken me on in the java team, where we are creating J2EE webapps.
I've listed some of the frameworks we use to build webapps, hope some of it is useful to you.
I would suggest that perhaps you should look into Maven. It's a great project build/dependency tool, kind of like Ant. I found it pretty simple to learn and setup. Basically Maven allows you to create a file called a POM which identifies project dependencies among other things. It will allow you to build the app and automatically download the dependencies the project requires.
This is an Object Relational Mapping (ORM) tool that takes the drudgery of SQL out of your application and allows you to persist data using Hibernate. An Excellent book on this is by Cameron McKenzie and is called Hibernate Made Easy ISBN: 978-0-615-20195-5
Basically you create an xml document which references your database (datasource) and will need to create a/some classes to persist this data using Hibernate sessions. Using Hibernate Annotations on your POJO's (Plain Old Java Objects) makes persistence really simple.
Ok, I cant say I have a good grip on Spring yet, but its an application for Dependency Injection. Again it requires an xml document to set it up. There should be plenty of tutorials on the internet to look at.
JSF (Java Server Faces):
this is the presentation part of an application. It's pretty easy to use and I would recommend the book "Core Javaserver Faces".
THE WAY TO START:
I'm sure others may have other ideas, but this is how I would start. You may need to have some knowledge on HTML, CSS as well. I prefer to use .XHTML pages than .HTML but that is a personal preference.
1. Look into Maven. Setup a directory structure as mentioned in the maven homepage. In the root of the project create a pom.xml and search the internet for examples to see what dependencies you may need.
2. Look into JSF. Create some basic webpages with some simple Entities (Beans).
3. Look into JPA and Hibernate: now start looking into how to persist your data and/or user details. Create a database and use Annotations to save some simple stuff to get the hang of it.
4. Next? The above 3 points may lead you to other places. This is enough to get something up and running.
5. Spring? Struts? Tomahawk? start looking into other things that your site may need.
I'm sure there are a 100 other frameworks that you could use, but these are the ones we use at work. JPA (Java Persistence API) is another that ties in as well, but I think you will have enough too look at with what Ive already mentioned.
Anyway, good luck and I hope you found something useful in there.
Last edited by sibernewf; 03-23-2011 at 06:31 AM.
- By java.noida in forum Jobs OfferedReplies: 0Last Post: 11-26-2010, 05:58 AM
- By espeo in forum Reviews / AdvertisingReplies: 5Last Post: 04-23-2010, 07:08 PM
- By softdev in forum Reviews / AdvertisingReplies: 1Last Post: 01-17-2008, 12:52 PM