Sunday, 8 July 2012
J2EE: SERVLET: doGet() vs. doPost()
Do you like this Article?
doGet():
doPost():
- protected void doGet(HttpServletRequest req, HttpServletResponse resp)throws ServletException, java.io.IOException – is a method of Class HttpServlet. It is called by the server (via the service method) to allow a servlet to handle a client's GET request.
- In doGet(), the client’s request parameters are appended to the URL and sent along with header information.
- doGet() is not a secured process because the request parameters are clearly visible in the URL.
- Since request parameters are sent along with header information, so only a limited amount of data should be sent.
doPost():
- Protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException – is a method of Class HttpServlet. It is called by the server (via the service method) to allow a servlet to handle a POST request.
- In doPost(), the client’s request parameters are submitted via form.
- As in doPost(), client’s request parameters are sent via form body, the parameters’ values are not visible in any where, so its safe and secure.
- This method allows the client to send data of unlimited length to the Web server a single.
Subscribe to:
Post Comments
(
Atom
)
Popular Posts
-
public - public means everyone can access it.That means it's in global scope. As, main method is called by JVM [ Java Virtual Machine...
-
throw is used to throw an exception in a program, explicitly . Whereas, throws is included in the method's declaration part, wi...
-
Singleton in one of the most popular yet controversial design pattern, in the world of object oriented programming. It's one of t...
-
Web Container / Servlet Container / Servlet Engine : In J2EE Architecture , a web container (also known as servlet container or ser...
-
Program compiles. But at runtime throws an error “NoSuchMethodError”.
-
Vector : It's synchronized. It's slower than ArrayList. It's generally used in ...
-
doGet(): protected void doGet(HttpServletRequest req, HttpServletResponse resp)throws ServletException, java.io.IOException – is a met...
-
In Java Programming Language , we must declare a variable name and type, before using it. The data type of a variable defines the th...
14 Responses to “ J2EE: SERVLET: doGet() vs. doPost() ”
7 September 2012 at 21:32
hello ! have u any interest in data structure ???
7 September 2012 at 21:34
hello ! have u any interest in data structure ???
2 March 2018 at 11:27 This comment has been removed by the author.
17 March 2018 at 12:35
Nice article about Java Servlet doGet() and doPost.
Servlet Interview Questions and Answers. .
thanks for this
28 July 2018 at 17:22
hi your blog Article is very nice & thanks for sharing the information.java training
10 August 2018 at 12:57
Very interesting blog. java training in chennai
29 August 2018 at 18:10
best blog.thank you for sharing useful info.
visit
web programming tutorial
welookups
3 November 2018 at 14:51
Thanks for sharing an information to us. If someone want to know about Ethical Hacking. I think this is the right place for you! ceh Training
29 May 2019 at 11:06 This comment has been removed by the author.
29 May 2019 at 13:20
Nice article.Thank you.
Java Training with Placements
7 June 2019 at 14:21
Most Usefull blog.. thanks for sharing with us... Waiting for your upcoming data...
RPA training in bangalore
Robotics Courses in Bangalore
Robotics Classes in Coimbatore
Robotics Courses in Coimbatore
RPA Training in Coimbatore
RPA Training in Coimbatore
Robotics Training Centers in Coimbatore
German Classes in Bangalore
Hadoop Training in Bangalore
Selenium Training in Coimbatore
6 July 2019 at 17:31
Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
Java Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai
24 August 2021 at 17:53
Java programming is one of the basic technology to get a job in IT field, which helps to create the best software application for free and Enterprise (Organization use). Get Java Training and its advance concept leads to reach the best position.
30 March 2022 at 16:29
J2Ee: Servlet: Doget() Vs. Dopost()
~
Java Interview Questions >>>>> Download Now
>>>>> Download Full
J2Ee: Servlet: Doget() Vs. Dopost()
~
Java Interview Questions >>>>> Download LINK
>>>>> Download Now
J2Ee: Servlet: Doget() Vs. Dopost()
~
Java Interview Questions >>>>> Download Full
>>>>> Download LINK
Post a Comment