I was reading a post here: http://www.caucho.com/quercus/faq/question.xtp?question_id=9 In general, people are arguing that when there is user input or other interaction involved, it's best to let the servlet handle that and then pass on to a JSP for the response. That makes sense to me. However, one guy said that he has found JSP custom tags adept at handling the input and so doesn't need servlets to clean that up. Personally, I have been writing a lot of JSPs but still don't know much about custom tags, so I'm wondering if any of you have the same opinion, or if I should definitely just use servlets for that stuff. Thanks for any helpful opinions...
Bear, I like your responses (your experience has affected my decisions numerous times!). I'm wondering what you think about this guy's design for creating reusable input validation custom tags: http://www.developer.com/java/web/print.php/3287891 Apparently, his argument is that this is a good approach just because you can update the tags or reuse the tags in numerous pages and you always have the validation taken care of (whereas in a servlet you would have to rewrite every time you had a servlet validating a zip code or something like that). Is he correct? Or can you achieve the same thing with servlets, and in as just a reusable manner? Also, this guy has his own style for trying to use JSPs and JavaBeans, which suggests it's better than using servlets for validation: http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms.html Are these guys just smoking something? Thanks for any more opinions... [ February 16, 2004: Message edited by: S. C. Huey ]
(whereas in a servlet you would have to rewrite every time you had a servlet validating a zip code or something like that).