Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something like ASP.NET web user controls in Java/struts/jsp

Tags:

java

asp.net

In java/struts/jsp world, is there something like the ASP.NET custom user control, a piece of UI with back end code that performs a specific logic, and can be pulled and used in another place (for example something like the login control).

like image 552
Mohamed Faramawi Avatar asked Aug 25 '10 22:08

Mohamed Faramawi


1 Answers

The current Java EE API offers JSF 2.0 on Facelets for this. Note that Struts(2) is actually a competitor to JSF and that JSP is a view technology like ASP, not a MVC framework. As per Java EE 6 / JSF 2.0, JSP is been replaced by Facelets as the default view technology.

On top of the basic JSF implementation you can choose from a lot of "rich" component libraries which adds an extra CSS and Ajax sausage, for example PrimeFaces (showcase) and OpenFaces (showcase).

See also:

  • What is the mainstream Java alternative to ASP.NET?
  • What is the difference between JSP, Servlet and JSF?
  • Java EE 6 tutorial - chapters 4-10
  • Coreservlets.com JSF 2.0 tutorial
like image 87
BalusC Avatar answered Nov 03 '22 21:11

BalusC