Building my first Java Web Application
I have to build a java web application and I'm not sure where to start.
I have a good amount of experience with jav开发者_运维技巧a but I would like to know if anybody can point me to a good example of how to integrate java into a web page?
I searched google without much luck. Is there a decent example on how to do this? Is it similar to adding a flash object with an object tag? Thanks
You can start creating sample web application based on html and servlets, This site will guide you in doing so.
http://www.servletworld.com/servlet-tutorials/simple-servlet-example.html
You will need
JDK Apache Tomcat(jars will be in tomcat so no need to download separatly)
There's an app for that.
http://www.appfuse.org
AppFuse is an open source project and application that uses open source tools built on the Java platform to help you develop Web applications quickly and efficiently. It was originally developed to eliminate the ramp-up time found when building new web applications for customers. At its core, AppFuse is a project skeleton, similar to the one that's created by your IDE when you click through a wizard to create a new web project.
You ahould start searching about :
- Servlets (and Apache Tomcat)
- JSP
- Java Faces (and Apache MyFaces)
- Existing web frameworks
I think the easiest is to download Netbeans for Java EE with Glassfish, install it and use a wizard to create your first Hello World web application.
Then I recommend learning Spring MVC - I think it is the easiest to start with and very flexible so you can add more and more functionalities later. For templating, I recommend FreeMarker or Velocity.
精彩评论