This is the type of thing that JSP was designed to address. You can invoke
your servlet to retrieve any dynamic data that you need, based on the data,
you can potentially decide which template (JSP) to use, then pass the data
to the jsp page via the requestdispatcher.forward().
John Zerbe - Mellon Bank
IM&R - Middleware Team
Phone: 412-234-1048 E-Mail:[EMAIL PROTECTED]
> -----Original Message-----
> From: Marty Halvorson [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 19, 2000 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: inline or not
>
> At 10:20 19-01-00 -0500, you wrote:
> >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.
>
> Solution 2 is far and away the best. Just read the file containing the
> html inside the servlet, replace the data, and send the result.
>
> I'd also use <!--% and %--> as the delimiters for the tags. That way the
> tag names would not be displayed because they're inside of comments.
>
> Marty
>
> __________________________________________________________________________
> _
> 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