Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Send a Response Status in servlet

All Response status is defined in HttpServletResponse Class. You can then use constants (response.SC_OK,response.SC_NOT_FOUND etc..) values to return process status to the browser.

Tutorial Details:

All Response status is defined in HttpServletResponse Class. You can then use constants (response.SC_OK,response.SC_NOT_FOUND etc..) values to return process status to the browser. In the given example, two methods are defined doGet(), doPost. Constants value request and response are used to return status to browser. The setContentType() method of ServletResponse set the content type of response.


 

Rate Tutorial:
http://www.roseindia.net/servlets/send-response-status.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Send a Response Status in servlet

View Tutorial:
Send a Response Status in servlet

Related Tutorials:

Understanding Java Card 2.0 - JavaWorld March 1998
Understanding Java Card 2.0 - JavaWorld March 1998
 
Secure a Web application, Java-style - JavaWorld April 2000
Secure a Web application, Java-style - JavaWorld April 2000
 
Use Microsoft's Internet Information Server as a Java servlet engine - JavaWorld June 2000
Use Microsoft's Internet Information Server as a Java servlet engine - JavaWorld June 2000
 
Servlet 2.3: New features exposed - JavaWorld January 2001
Servlet 2.3: New features exposed - JavaWorld January 2001
 
Add XML to your J2EE applications - JavaWorld February 2001
Integrate an XML presentation layer in the J2EE layered architecture
 
Servlets in Apache Tomcat and BEA Systems' WebLogic Server - JavaWorld February 2001
Servlets in Apache Tomcat and BEA Systems' WebLogic Server - JavaWorld February 2001
 
Deliver cellular messages with SMS - JavaWorld March 2001
Deliver cellular messages with SMS - JavaWorld March 2001
 
Filter code with Servlet 2.3 model - JavaWorld June 2001
Filter code with Servlet 2.3 model - JavaWorld June 2001
 
Create email-based apps with JAMES
Create email-based apps with JAMES
 
Mix protocols transparently in Web applications
Mix protocols transparently in Web applications
 
A recipe for cookie management
A recipe for cookie management
 
Servlet 2.4: What's in store
Servlet 2.4: What's in store
 
SAAJ: No strings attached
SAAJ: No strings attached
 
good design pattern
good design pattern
 
2Way HTTP Compression Servlet Filter
2Way HTTP Compression Servlet Filter 2Way compression filter is a Servlet filter that compresses and decompresses both HTTP requests and HTTP responses using gzip. It was originally written to compress SOAP messages, but it can be used for any Web appl
 
Internet & Intranets: Java Servlets
What are servlets? "Servlets are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to upd
 
JSP Architecture
JSP Architecture JSP ARCHITECTURE J PS pages are high level extension of servlet and it enable the developers to embed java code in html pages. JSP files are finally compiled into a servlet by the JSP engine. Compiled servlet is used by the engine
 
Introduction to JSP Scriptlets
Introduction to JSP Scriptlets INTRODUCTION TO JSP SCRIPTLETS Syntax of JSP Scriptles are: <% //java codes %> JSP Scriptlets begins with <% and ends %> .We can embed any amount of java code in the JSP Scriptlets. JSP Engine places these code
 
Accessing Database from servlets through JDBC!
Accessing Database from servlets through JDBC! Java Servlets J ava Servlets are server side components that provides a powerful mechanism for developing server side of web application. Earlier CGI was developed to provide server side capabilities
 
Download Search Engine Code its free and Search engine is developed in Servlets
Download Search Engine Code its free and Search engine is developed in Servlets Download Search Engine Code Installation Instruction Download and unzip the file into your favorite directory. Create a database on your MySQL Server. Run all the
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.