views:

67

answers:

5

I'm new to servlets and JSP and I'm trying to discover forms, and how to make my own web form. I know HTML but and I see examples for using HTML tags in the servlets, but isn't there a more higher level way to just say "Make a form here, make a table there" without getting my hands dirty with HTML tags?

I want to build a war file and drop it on my jboss/tomcat server for testing. Then when its ready to go, I want to be able to distribute that war file and for it to be plug and play.

The end goal is to have a web site with some interaction (dropdowns, text fields) and some graphs that are drawn based on the user inputs.

Sorry so vague, I need some direction in the Java GUI department.

+1  A: 

Go for JSF with Richfaces with full flagged ajax support

org.life.java
+2  A: 

Check out Java Server Faces. (http://java.sun.com/javaee/javaserverfaces/)

ps, I just noticed Wikipedia has a nice list of web-application frameworks for the various languages/environments.

Kelly French
+1  A: 

One of the most difficult things to do absolutely right in a browser, is form submittal. That is, form submittal with error recovery.

Hence, it is a natural sweet spot for a helping library and many exist. I would suggest you look into JavaServer Faces where 2.0 with facelets is very powerful and default in Java EE6, but right now only ships with Glassfish 3.

If this is for learning, I would suggest using Glassfish instead of Tomcat, so you get a prepackaged learning environment.

Thorbjørn Ravn Andersen
You can just [download](http://javaserverfaces.dev.java.net) JSF 2.0 separately and run on Tomcat 6 or newer.
BalusC
That doesn't give you method calls with parameters in EL which is the most important difference to me. Also he is a newcomer.
Thorbjørn Ravn Andersen
+1  A: 

You may be interested in the echo framework.

Maurice Perry
Slick framework, very nice. I will definitely consider this one.
Brad Hein
+1  A: 

Try Google Web Toolkit code.google.com/webtoolkit/

shox