> okay... cool, I'll check that out.
>
[quoted text clipped - 5 lines]
> Also, I don't have to worry at all about any HTML when programming the
> logic.
Oh boy does that exist... There are incredibly many frameworks that can
handle this for you in various ways. Most are additions to J2EE, ie.
they are implemented on top of servlets (or jsp), but Java Server Faces
is *part* of J2EE itself. Struts is the "defacto standard", but lots of
others exist. Some template-oriented, some component/event-oriented etc.
Most implement the MVC pattern. You really should spend some time
evaluating some of the more common technologies to pick one that suits
your needs.

Signature
Jon Martin Solaas
You can go grossly overboard and make sure all your data is xml. Then
just apply your xsl and you're OK. I have done that for 4-5 projects.
>>>All the examples I see for servlets use a PrintWriter to write out an
>>>HTML page. This seems rather tedious. Is there a way in the J2EE
>>>specification that I could use to create an html template, and then use
>>>the servlet to just "fill in the blanks" of the template?
IMO, serlets are introduced badly (see server-side programming is just
the same as GUI). generally it's a bad idea to use servlets as
templates. Use them as a wrapper to decode and kick off operations from
the request and then forward onto a dynamically determined JSP.
It would help if JSPs were introduced before Servlets. It's rather
easier to do Hello World in a JSP.
>>That is a rough description of JSP. See
>>http://mindprod.com/jgloss/jsp.html
> What about something that can be done similar to smarty.php.net? For
> instance, if i wanted to -totally separate- the display part from the
> business logic, I could use a template, and fill in the blanks. When I
> want a new look, I can just change templates.
See also JSTL. having a quick look at that site, it even looks quite
similar, superficially. JSTL uses tags, which you can write yourself,
although I would suggest you start with just JSTL and scriptlets where
necessary (scriptlets are embedded fragments of Java code).
Tom Hawtin
[Followup-to: comp.lang.java.help]

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
Bryce - 13 Sep 2005 16:31 GMT
>>>>All the examples I see for servlets use a PrintWriter to write out an
>>>>HTML page. This seems rather tedious. Is there a way in the J2EE
[quoted text clipped - 8 lines]
>It would help if JSPs were introduced before Servlets. It's rather
>easier to do Hello World in a JSP.
Servlets and JSPs approach different problems. JSPs are great for
implementing your presentation (HTML) stuff, but horrible for building
logic. Servlets on the other had, are good for programming logic (or,
as I always do, delegating to another class to do logic).
Servlet will get the data, save in session or request, then dispatch
to a JSP.. Works great for me
>>>That is a rough description of JSP. See
>>>http://mindprod.com/jgloss/jsp.html
[quoted text clipped - 12 lines]
>
>[Followup-to: comp.lang.java.help]
--
now with more cowbell