开发者

What is the difference between the JSP and the JSTL? [duplicate]

This question already has answers here: 开发者_JAVA百科 What is the difference between JSF, Servlet and JSP? (16 answers) Closed 6 years ago.

I have learned about servlets and the JSP's before, but I don't know what is the JSTL and the difference between the JSP and the JSTL.


JSP is a technology similar to ASP that let you embed Java code inside HTML pages. This code can be inserted by means of <% %> blocks or by means of JSP tags. The last option is generally preferred over the first one, since tags adapt better to own tag representation form of HTML, so your pages will look more readable. JSP lets you even define your own tags (you must write the code that actually implement the logic of those tags in Java). JSTL is just a standard tag library provided by Sun (well, now Oracle) to carry out common tasks (such as looping, formatting, etc.).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜