Derek Dougans <[EMAIL PROTECTED]> wrote:
__________

>Do you mean you generated JavaScript based on the table's meta-data and
>dynamically wrote that into the document?
>
Yes, something like that, it was
a while ago, and I don't have the code
to hand (my palm and I are on a train),
 but I remember it set the
maxlength for the html field set
a star next to it if it was manditory
and I think it inserted whatever it
could (browser dependant) to ensure the field only accepted numbers/upper case or 
whatever.

>More generally, what have people done with integrating html/servlet code? Is
>caching some pre-written templates with data placeholders and manipulating
>these at runtime an acceptable approach? I was thinking of having my product
>classes implement a 'ProductDisplay' interface such that they know how to
>render their data with respect to the data placeholders. Something like:

...snip...

>I'd really like to abstract data/process/display (not keen on using JSP for
>this reason) and this is as good as I can think of.
>

On the (old) project I was talking
about, we used fragments of fixed
text and glued them together
dynamically, interspersed with
with dynamic data. We only got
away with this because the client
is -very- process bound, so once
a UI has been documented and
accepted it is a major issue to
change it (think retraining in 20
countries).
You could probably get the effect
you want by using fragmentary
servlets,'included' from a master.

These days we just output XML
from the servlet ,
and post process it through an xsl
transform to Html, ascii, wml or
in an extrem case Sql as required.

Tim

http://www.westpoint.ltd.uk/

Internet reconnaissance services.

___________________________________________________________________________
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