Kevin Gross wrote:
>
> Interesting. I used to do the same thing. Then I came up with
> an idea one step further -- I use a StringTokenizer object to
> scan for $$ in the HTML file. If the token returned starts with
> "com.", then I assume the token is a class name and check to see
> if it is an instance of Templet (an interface with a
> "String getHTML(HttpServletRequest)" method). If it is, I create
> an instance of the object, and call getHTML.

I am not sure I'm following you, but as you mention sounds like JSP-ish.
You lose however a big advantage of the approach I mentioned. You can
use these interfaces for HTML or for PDF, or even should be possible to
set VBA or WordBasic parameters for Word documents in win32.

HTML and XML have the advantage of being essentially text, so you can
edit it by hand, but this is not true for other documents you may want
to handle.


Carlos

___________________________________________________________________________
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