views:

185

answers:

4

Pls give a link with sample if possible

A: 

Sorry, didn't read your question properly.

The answer would be: no.

But, if you can use JSF, Facelets templates are pretty similar to ASP.NET master pages.

Pablo Santa Cruz
A: 

According to this article, JSP does not have an equivalent technology:

Although various JSF IDEs offer page templating to a certain extent such as IBM page templating, there is not yet a uniform easy way to build page templates such as how you use Microsoft "Master Page" templating technology.

Matthew Jones
A: 

No, not really. Here is an idea of how you might put one together that sort of works like ASP.NET.

Tom Cabanski
A: 

ASP.NET master page is a templating technology. JSP itself is already less or more a templating technology. There's under each the <jsp:include> tag to include templates. You can use it dynamically with EL, but it is however not very advanced/enhanced. Facelets has brought changes in it.

JavaServer PagesTM (JSPTM) technology, previously used as the presentation technology for JavaServer Faces, does not support all of the new features available in JavaServer Faces 2.0. JSP is considered as a deprecated presentation technology for JavaServer Faces 2.0.

On Facelets you can use JSF, which is a component based MVC framework like ASP.NET MVC.

Alternatives outside the Java EE API are Apache Tapestry and Apache Tiles.

BalusC