Very true.
If one should extend the problem of recoding...then the same validations
might have to be done in...
JavaScript, Servlets, EJB and Database too.
Hope this link will help in this respect a bit...
http://theserverside.com/patterns/thread.jsp?thread_id=85

V

Prompted by the recent mini-discussion on validation I thought I'd put
down a few thoughts.

1. validation on client side is more speedy since there is no network
trip involved
2. validation on the server side is easier becaue Java is powerfull
than JS


It seems to me that it would be nice if one could build tags with
taglibs that would automatically include JavaScript validation,
perhaps by specifying the JavaScript functions within some sort of
defined framework, eg:

  function boolean isValid(String name,String content)

  function boolean isValid(String name,String[] selected)

etc...

Taglibs seem to me to be the future of good server side Java... and
far from being a JSP specific thing it seems to me that they could be
plugged into any server side framework.


Nic

___________________________________________________________________________
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