Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

quickest route to java web form

Thread view: 
Peter Ashford - 09 Jan 2006 03:23 GMT
Hi

I'm confused by all the Java web frameworks out there.

What I want is a quick and simple route to getting a web page up with a
form, some data validation and input/output from a database.

Any suggestions for a web neophyte?  (But experienced Java programmer)

TIA

Peter.
zero - 09 Jan 2006 13:16 GMT
> Hi
>
[quoted text clipped - 8 lines]
>
> Peter.

If you're experienced in Java, the fastest to learn would be to just use a
(X)HTML form, and process the data with a servlet.  The problem with this
approach is that you'll probably need to create a lot of HTML output from
within the servlet - and that's a lot of println statements.

A quicker way (but possibly a little more study is needed) to create HTML
output is to use JSP.  This is still relatively simple to learn if you know
Java and basic HTML.

Signature

Beware the False Authority Syndrome

Raymond DeCampo - 10 Jan 2006 15:42 GMT
>>Hi
>>
[quoted text clipped - 17 lines]
> output is to use JSP.  This is still relatively simple to learn if you know
> Java and basic HTML.

It is not difficult to separate business logic from presentation using
the RequestDispatcher.  Simply do the business logic in the servlet and
then forward the request to a JSP for presentation.  Best of both worlds.

(To OP)  Once you have something simple going, then evaluate the
frameworks.  That way you understand what the frameworks really do.

HTH,
Ray

Signature

This signature intentionally left blank.

Oliver Wong - 10 Jan 2006 22:37 GMT
>>>I'm confused by all the Java web frameworks out there.
>>>
[quoted text clipped - 18 lines]
> (To OP)  Once you have something simple going, then evaluate the
> frameworks.  That way you understand what the frameworks really do.

   I'm in the same boat as the OP. I've read a bit about JSP, and even less
about servelets, and I'd like to get my feet wet. The machine I use to
develop at home runs Windows XP. Is there an easy way package I can get to
quickly get a server up and running to play around with?

   I've heard getting JSP and Apache working together is sometimes a real
pain.

   - Oliver
zero - 10 Jan 2006 22:53 GMT
>     I'm in the same boat as the OP. I've read a bit about JSP, and
>     even less
[quoted text clipped - 7 lines]
>
>     - Oliver

Apache Tomcat is the reference implementation for Servlets/JSPs, so I don't
think that should cause problems.  Maybe you heard about IIS and Apache?

On my development machine I have IIS 5.1 on XP Pro SP2 working together
with Apache Tomcat 5.5 for Servlets and JSPs - it works side by side with
ASP.NET and PHP without any problems.  Before people jump on me about
safety issues, let me again stress this is a development & testing machine.

You don't really need IIS btw, Tomcat has everything you need to get
started.  So I suggest you just download it, get a book or online tutorial
about Servlets/JSP, and jump right in.  I think you'll find it's not that
complicated.

Signature

Beware the False Authority Syndrome

David Segall - 11 Jan 2006 14:58 GMT
>>>>I'm confused by all the Java web frameworks out there.
>>>>
[quoted text clipped - 23 lines]
>develop at home runs Windows XP. Is there an easy way package I can get to
>quickly get a server up and running to play around with?
Sun suggest, and give away, Studio Creator.
<http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/index.html>.
It includes a testing server and DBMS.
>    I've heard getting JSP and Apache working together is sometimes a real
>pain.
There is probably no need to do this. A server that can serve JSP
pages can also serve HTML pages. Using two different cooperating
servers is sometimes recommended for speed and may be required if you
want to use server-side processing other than Servlets (e.g. PHP or
Perl).

In order to install Tomcat or Sun's Application Server
<http://java.sun.com/javaee/glassfish/> as a web server all you need
to do is to change the port it listens on to 80.
David Segall - 09 Jan 2006 15:10 GMT
>Hi
>
[quoted text clipped - 8 lines]
>
>Peter.
Sun suggest, and give away, Studio Creator.
<http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/index.html>.
If you use the included application server and DBMS it's about a day's
work. Unfortunately, configuring an on-line application server and the
database you actually use can be a lengthy and frustrating task.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.