tag:blogger.com,1999:blog-8712770457197348465.post7477783961768796526..comments2024-03-28T02:47:19.159-07:00Comments on Javarevisited: Difference between Servlet and JSP? Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-8712770457197348465.post-87690653946201306212020-12-26T20:42:30.121-08:002020-12-26T20:42:30.121-08:00Hello Deepak, JSP should be free of logic, your lo...Hello Deepak, JSP should be free of logic, your logic hence code should go to controller class and JSP should just render the data provided to it by Controller. This is proven way to create a MVC application. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-14483074230959414982020-12-21T20:14:24.221-08:002020-12-21T20:14:24.221-08:00Hi! I am mentioning your statement "Even thou...Hi! I am mentioning your statement "Even though you can use HTML tags as String inside Servlet and Java code as Scriptlet inside JSP, both are considered as bad practice and should be avoided at all cost because they are very hard to maintain."<br /><br />If this is the fact - what should be used instead?<br /><br />ThanksDeepak Tiwarihttps://www.blogger.com/profile/06760718769243223139noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-18437463544572527992017-08-31T11:26:36.445-07:002017-08-31T11:26:36.445-07:003) doesn't make sense. It says that JSP is fas...3) doesn't make sense. It says that JSP is faster than JSP. Is there a typo here somewhere?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-53070287641847355422017-07-18T05:23:08.807-07:002017-07-18T05:23:08.807-07:00Hello Shashi, This happened because JSP are conver...Hello Shashi, This happened because JSP are converted into Servlet at the request time. It is then compiled and loaded by Servlet container, but for Servlet it directly load the class from the WAR file. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-77828958376142751292017-07-17T09:16:48.482-07:002017-07-17T09:16:48.482-07:00Hi Javin,
I have a question for you, Please provi...Hi Javin,<br /><br />I have a question for you, Please provide the answer,<br /><br />why it is not required to recompile and redepoly jsp app but it is opposite for servets. In case of JSPs if we just save the page and refresh it in browser changes gets reflected.<br /><br />Please explain if there is any mechanism behind it.<br /><br />Thanks in advance shashihttps://www.blogger.com/profile/15537989423877365790noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-37446721630037827122017-05-13T08:05:53.621-07:002017-05-13T08:05:53.621-07:00Thank you @Edward, glad you like my explanation of...Thank you @Edward, glad you like my explanation of Servlet and JSP.javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-85597092193613379362017-05-13T07:38:41.874-07:002017-05-13T07:38:41.874-07:00Easily digestible explanation. Cheers.Easily digestible explanation. Cheers.Anonymoushttps://www.blogger.com/profile/11374266308852149313noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-75026274244502468672017-05-08T01:49:23.117-07:002017-05-08T01:49:23.117-07:00your welcome @Anonymous, glad that you find my tut...your welcome @Anonymous, glad that you find my tutorials useful. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-31527383463247268442017-05-07T08:06:21.829-07:002017-05-07T08:06:21.829-07:00Thanks Javin. I have been following your post sinc...Thanks Javin. I have been following your post since a month now, they are really helpful. Keep up the good work.Anonymousnoreply@blogger.com