my requirement is to make HTML templates( option2 ) as language based
templates.any ideas ?
Thanks
Sanga


On Wed, 19 Jan 2000, Craig R. McClanahan wrote:

> Stephane Cloutier wrote:
>
> >         I have to create an HTML page with a table containing dynamic values and
> > decide to use a servlet.  Has I'm not sure about the HTML page look, I
> > would like to use an architecture that permit to change to HTML with an
> > appropriate editor without having to change the servlet code (which imply I
> > can't hardcode the HTML page in my code).  I think about 2 solutions but
> > still don't know which one would be the best (for performance especially):
> >
> > 1- Create an HTML page with inline <servlet> tags for all dynamic values
> > (so that each dynamic value is replace by a call to a servlet who return
> > the right value).
> >
> > 2- Create an HTML template with own-defined tags so that when this page is
> > requested, the servlet is called, read the template and replace all the
> > own-defined tags by the appropriate values.
> >
> >         I would have tend to solution #1 for easyness but maybe I missed some
> > considerations.  Any ideas?  Also, does the most web server support
> > <servlet> tags or they're more rares?  What about Netscape Entreprise
> > Server 3.0?
> >
>
> The <servlet> tag is available in many, but not all, servlet engines -- it's not
> completely portable because it is not part of the servlet API standard.
>
> You should also add at least two more solution options to your list:
>
> 3 - JSP pages, which are essentially HTML pages with custom tags that
>   let you interact with your business logic and produce dynamic data.
>   <http://java.sun.com/products/jsp>.  JSP pages are portable across
>   servlet engines that implement the standard.
>
> 4 - Template systems based on servlets that let you separate the HTML
>   text from your logic, and have special tags for data retrieval, looping,
>   and other good stuff.  One example of this is <http://www.webmacro.org>.
>
> Personally, I use solution 3 (JSP) for my HTML page generation, coupled with
> servlets and JavaBeans process requests and represent the data model of my
> applications.  From an architectural viewpoint, this is described pretty well in
> several white papers produced by IBM and JavaSoft -- one place in particular to look
> is Chapter 4 of the "Developing Enterprise Applications with the Java2 Platform,
> Enterprise Edition" document at JavaSoft.  It can be found in the J2EE pages under
> <http://java.sun.com/j2ee>.
>
> >         Thanks a lot,
> >         Stephane
> >
>
> Craig McClanahan
>
> ___________________________________________________________________________
> 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

Reply via email to