JSP documents(.jspx) vs JSP pages(.jsp)

Hello,I need to know :1) what is the difference between .jspx file and a simple jsp file?2) Which is better and based on what factors we should decide which one to use while building the application.Thanks.
[241 byte] By [J_JGa] at [2007-11-26 16:31:05]
# 1

I think JSPX files are JSP in XML syntax and JSP files are the regular JSP files.

You can use either regular JSP syntax or JSP in XML syntax to achieve the same results, but I was reading in JSP 2.1 specificiation that the development of XML syntax was limited.

So I would recommend JSP syntax.

But if you want to generate XML like JSP pages for whatever reason then use JSP in XML syntax.

Other best practice solutions are to use JSTL instead of scriptlets, as it leads to cleaner and easier code. JSTL is easy to learn.

appy77a at 2007-7-8 22:55:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...