L
lord0
Hi there,
I've recently been dabbling in JSP and servlets after years of hacking Perl
*shucks*. What I would like to do it to seperate the design of my webpages
i.e. the HTML as much as possible from the code i.e. the java.
Now I stand to be corrected but JSP don't seem to be the solution as you end
up (well I do) with loadsa code in a page which is then compiled into a
servlet anyway - yuk, yuk. Servlets don't seem quite right, though I'd
rather use servlets than JSP, as I seem to end up with servlets full of
HTML - yuk.
In Perl I'd use something like HTML::Template which allows you to embed
"variables" in HTML pages which are then filled in by the script i.e.
<p>Welcome back <TMPL_VAR USERNAME></p>
I'd like to do something like this with a servlet and a (HTML) template
I have looked into this but I find the array of _possible_ solutions a
trifle confusing. i.e. Struts, XMLC, HTML.Template.java, JSP includes etc
etc.
Is there an generally accepted/common/best way to do this? Any advice/urls
etc appreciated
Cheers
Lord0
I've recently been dabbling in JSP and servlets after years of hacking Perl
*shucks*. What I would like to do it to seperate the design of my webpages
i.e. the HTML as much as possible from the code i.e. the java.
Now I stand to be corrected but JSP don't seem to be the solution as you end
up (well I do) with loadsa code in a page which is then compiled into a
servlet anyway - yuk, yuk. Servlets don't seem quite right, though I'd
rather use servlets than JSP, as I seem to end up with servlets full of
HTML - yuk.
In Perl I'd use something like HTML::Template which allows you to embed
"variables" in HTML pages which are then filled in by the script i.e.
<p>Welcome back <TMPL_VAR USERNAME></p>
I'd like to do something like this with a servlet and a (HTML) template
I have looked into this but I find the array of _possible_ solutions a
trifle confusing. i.e. Struts, XMLC, HTML.Template.java, JSP includes etc
etc.
Is there an generally accepted/common/best way to do this? Any advice/urls
etc appreciated
Cheers
Lord0