Reputation: 8462
With ASP.net MVC 3.0 and visual studio 2010 I can generate views easily by selecting the Controller action ( right click + scaffolding ), so I select the type of View (details,list,edit...) and I can even select the Entity/List that the view will use as datasource.
The questions is: Is there such thing working with Java JSP and servlet with eclipse where I don't have to manually change web.xml?
Upvotes: 0
Views: 530
Reputation: 1108802
There's something wrong here. Comparing ASP.NET MVC with JSP/Servlets is really like comparing apples with oranges. ASP.NET MVC is a fullworthy component based MVC framework, but JSP is a barebones view technology and Servlet is just a barebones HTTP controller API. There is absolutely no means of a comparable component based MVC framework here with JSP/Servlet.
You need to look for a component based MVC framework in Java side. From the standard Java EE API, JSF is been offered.
However, as to the tooling, there are as far as I know no "Scaffolding" plugins for JSF available in Eclipse which does bottom-top code generation all the way from DB until with the JSF view. Closest what you can get in Eclipse is generating JPA entities from DB, but it stops here.
Netbeans has a JSF CRUD generator though.
Upvotes: 1