Servlets Tutorial 14-For Beginners | HttpServlet | doGet | doPost | In Hindi
3,304 views · Published 11 March 2018 · 17:18 · Indexed 23 October 2026
Channel: AndroJavaTech4U · 2018 · Science & Technology
OverView of HttpServletClass:-
class HttpServlet extends GenericServlet
{
public void service(ServletRequest req,ServletResponse res)throws ServletException,IOException
{
}
protected void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
String name=request.getMethod();
if(name.equals("get"))
doGet(req,res);
else
doPost(req,res);
}
protected void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
}
protected void doPost(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
}
}
Stay tuned with me for more upcoming Videos,
don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺
Eclipse Download Url-
http://www.eclipse.org/downloads/
Apache Tomcat Url-
https://tomcat.apache.org/download-80.cgi
Servlet Interface
Methods of Servlet interface
There are 5 methods in Servlet interface. The init, service and destroy are the life cycle methods of servlet. These are invoked by the web container.
1. public void init(ServletConfig config)
2. public void service(ServletRequest request,ServletResponse response)
3. public void destroy()
4. public ServletConfig getServletConfig()
5. public String getServletInfo()
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm...
Firebase Tutorial No-6 URl-
https://www.youtube.com/watch?v=5IWBz...
Firebase Tutorial No-1 URl-
https://www.youtube.com/watch?v=gf0VQ...
Firebase Tutorial No-2 URl-
https://www.youtube.com/watch?v=srgAL...
Firebase Tutorial No-3 URl-
https://www.youtube.com/watch?v=TW0uO...
Firebase Tutorial No-4 URl-
https://www.youtube.com/watch?v=XXxRA...
Write program url using Firebase Database-
https://www.dropbox.com/s/wxggu30ajqa...
Sqlite database tutorials part-1 url-
https://www.youtube.com/watch?v=6a9lI...
Sqlite database tutorials part-2 url-
https://www.youtube.com/watch?v=h1Peq...
Storage option url-
https://www.youtube.com/watch?v=KgCfx...
Internal Storage url-
https://www.youtube.com/watch?v=O-VKJ...
External Storage url-
https://www.youtube.com/watch?v=EteGm...
Shared Prefrences url-
https://www.youtube.com/watch?v=KZJC2...
Spinner Url-
https://www.youtube.com/watch?v=o3KZz...
CustomListView Url-
https://www.youtube.com/watch?v=2geTp...
ListView In Android Studio Part-1
https://www.youtube.com/watch?v=taItn...
ListView In Android Studio Part-1
ListView In Android Studio Part-2 With EventHandling
https://www.youtube.com/watch?v=F3tsW...
ListView In Android Studio Part-3 With EventHandling
https://www.youtube.com/watch?v=fCh5D...
Firebase:-
https://www.youtube.com/watch?v=Lncmj...
How to Install Java Url-
https://www.youtube.com/watch?v=NXlHE...
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm...
GridLayout url-
https://www.youtube.com/watch?v=B3TUS...
TableLayout url-
https://www.youtube.com/watch?v=wbV3t...
RelativeLayout-
https://www.youtube.com/watch?v=80Kk_...
https://www.youtube.com/watch?v=1jnNF...
Linearlayout-
https://www.youtube.com/watch?v=yY3xL...
https://www.youtube.com/watch?v=vnEdL...
Connect on Socials:-
Facebook:- https://www.facebook.com/AndroJavaTec...
Twitter:- https://twitter.com/AndroJavaTech4U
Google Plus:- https://plus.google.com/u/0/+AndroJav...
LinkedIn:- https://www.linkedin.com/in/androjava...
More from this channel
-
18:08
Platform Independency Features of Java In Hindi #1
-
4:42
VMware Workstation Install With RedHat
-
8:35
Difference Between Program and Process
-
2:51
jconsole tool of java
-
5:38
JVM ( java virtual machine) architecture - tutorial
-
4:30
Java Fundamentals In Hindi #2 (Keyword In Java)
-
2:26
Working On WebLogic Server 12C In Hindi #2
-
21:59
Login and Registration Part1