Hi,
We do it the following way:
1) Programmer writes a template with all the functionality needed and
no design bits
2) Designer edits the HTML (without the use of DreamWeaver,
CyberStudio, FrontPage or anything like that) and previews it directly as
served by a web server and the template toolkit. She is reminded not to
touch the dynamic bits under any circumstances!
The motivation is that more often than not the designer edits existing pages
(the site keeps changing). Rarely she designs a page from scratch.
I agree that an average page is much more complex than the simple examples.
Cheers,
Petr
----------
From: Gabriel Wong [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, 03 March, 1999 9:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Template programming
Ted Stockwell wrote:
> I think that either straight servlets or JSP would be a good
choice.
>
> Currently, I am generating HTML documentation from JSPs. There
are many
> names and such whose values come from a bean. I edit and
recompile the bean
> to change values in the documentation.
> I also have beans that generate HTML objects like tables and
stuff. I add
> values to the bean and then ask the bean to give me the HTML for
the entire
> table. A OO HTML framework might be a better way to go here, this
way works
> for me right now.
> I also have a bean that isolates the layout of my pages from the
content.
> It has a property named "Content", I generate the content that
goes into a
> page, set the content property of the bean, and then get the HTML
for the
> entire page from the bean. This way I can change the LAYOUT of
all my pages
> by changing a single bean (if not using frames then put a toolbar
at the top
> or put the toolbar on the left, if using frames then do nothing,
change
> margins, background color, etc, etc.). There are lots of games
you can play
> this way.
>
> I think that you should make the choice between servlets and JSP
based on
> who will be creating the pages. If geeks(sorry, I mean,
developers) are
> going to make the pages then using straight servlets and an OO
framework
> that generate's HTML (like Weblogic's htmlKona framework) might be
the best
> choice. If designers (non-geeks) are going to make the pages then
JSP would
> definitely be the better choice, designers create HTML and use JSP
tags to
> connect to beans (easier said than done but theoretically
everything's
> great...).
Theoretically Yes. In practice though not the same. Case in point
I created
some jsp files and gave it to a designer to enhance. It was rather
confusing to
him. Forget about those simple examples demonstrated in the specs.
If you
create a a more complex jsp page with jsp tags in textfields, url
links etc. the
jsp page when viewed by a browser looks messy and confusing. Most
web
development tools use a
browser to preview pages. So until browsers are made to ignore jsp
tags you
will have a very hard time convincing a designer that jsp is the
best thing
since slice bread. Which means the java developer is also the web
designer too.
>
> Definitely make a small prototype before you commit to anything.
>
> ted stockwell
>
> > -----Original Message-----
> > From: Timothy Gallagher [SMTP:[EMAIL PROTECTED]]
> >
> > I have an interesting problem and I'm not sure if it is
appropriate as
> > servlet or through some other technique.
> >
> > I need to create a site that, once finished, will allow me to
copy the
> > site to another server and allow the new server to change some
of the
> > characteristics. A simple example would be to allow the title
to
> > change to reflect the new server. There will be about 30 pages
total,
> > so hand editing will become overwhelming, although once the
majority of
> > the editing is done, it will not be done again.
> >
> > Is this best with JSP, servlets, or some other method?
> >
> >
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff SERVLET-INTEREST".
Archives:
http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html