Hello Everybody, Well my question is this when we have servlet and we have jsp then why then we use complicated tag-library and struts concept have been desigend ,when we can achieve the same thing from our jsp and servlets , why we are making the things so compicated when we can achieve the things simply. Thanks
jasmine kaur
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
I think that tag libraries can do things simply. It also make the code more readable.
1. Readability 2. Rapid development if you have completed taglib. 3. Easy to debug code/maintain code
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
lesley evensen
Greenhorn
Joined: Nov 02, 2001
Posts: 14
posted
0
To respond to the original question (why use the Apache "Struts" framework), when you have tag libraries allowing you to build pages integrated with Java beans, sql (and less javascript!): you shouldn't necessarily use Struts. The overhead may not be worthwhile if you are only building a small app (small is relative, but if you have only a half-dozen classes or so to deal with that may be a measure of 'small', and only a few pages). If you have MANY pages, Struts can help organize control flow, which is a big issue. If you don't want to write a large controller yourself, Struts provides that framework