.... do people first create html pages using some html editor and then convert into a JSP or they directly create JSPs
JSPs generate dynamic content as oppose to HTML pages which are static. But we use HTML to display the output with JSPs so the difference is we add JSP tags (which generate the dynamic content) inside the HTML.
The bottom line is that you create/edit them the same way you did your HTML pages. In fact, take any HTML page and change the extension to .jsp and you have a JSP page (a JSP page doesn't have to contain any JSP/JSTL/Whatever tags).
Use what works best for you.
All kidding aside, when it comes to the point where you are using JSP, you should be a mature enough coder to be able to code from scratch rather than relying on tools to generate code for you.
I think the choice of tool for HTML editing is a personal one. The fact that some may choose to use a WYSIWYG editor doesn't mean they are necessarily immature. I was brought up to do things without fancy editors, so that's just my personal choice. I can, however, understand how some may have been brought up using WYSIWYG and are simply more comfortable using them.
Of course, to use one that destroys JSP (or other) tags would be less than useful. I would expect that a developer choosing a tool for development would not choose one that would make the work harder.
Aman Goel wrote:People directly write JSP pages. That's the advantage of JSP over servlet.
Servlet's has it's own lifecycle methods that can be written for us by IDE's no matter what we use that servlet for. But with modern JSPs (has it's own lifecycle methods too), with it's usage (mainly for the view) what's generated by the IDE may be useless.
Aman Goel wrote:Hi Guys. People directly write JSP pages. That's the advantage of JSP over servlet.
Mainly, in a servlet you write the Java code and embedded some HTML syntax in it. But with JSP you write HTML and embedded some Java code in it. Well, that's in simple language.
So in MVC, JSPs are used (and should be used) in constructing the view and Servlets are used as controllers.
So my idea is that discussing advantage of JSP over servlet is not possible because both are used in two different fields.