s begri wrote:Sorry , It should be XHTML file .
(You can go back and fix it.)
The question doesn't make much sense. There is no choice
between XHTML and JSP. JSP is a server-side templating mechanism for creating text-based responses to send to the the browser. That text response could be XHTML, HTML, JSON, XML, or any other text format.
So you can use JSP to create XHTML -- you don't choose between them.