When a user hits a particular internal URL, then I have to return some HTML which is dynamically created < / P>
Some back-end services will be called to prepare a list of keys which are then used to create a list of html href links that are displayed to the user.
For this, I am considering using the servlet, is it a good practice? Since the servicelles have been around for some time, are there new / better ways of implementing this?
Many solutions, most of them (in Java) based on the SabTet API. If you already use Spring, there is a module called Spring MVC in the spring, which is a framework based on the servlet API to create web applications, which is based on MVC pattern:
- And appropriate
this That is used by most Web framework that is good pattern, but their own way each one, strengths and weaknesses.
You create a simple servlet, but markup generated from a servlet is ugly. This is the reason that servlets are usually used in combination with JSP after the MSC pattern. You can apply a micro-MVC framework only through servlets and JSP, but Spring-MVC and other frameworks offer so many additional benefits that are worth the investment. I personally like strippers, and it is very easy.
Comments
Post a Comment