Web Component

Definition - What does Web Component mean?

A Web component is a server-side object used by a Web-based client (browsers) to interact with J2EE applications. Web components come in two types:

  1. Java Servlet: A server-side Web component used to process requests and construct responses.
  2. JavaServer Pages: Used to create dynamic Web content and server/platform-independent Web-based applications.

Techopedia explains Web Component

A Web browser interacts with a J2EE application via the Java Servlet and JavaServer Pages Web components. However, Web component development and execution processes differ from typical stand-alone Java classes.

The Web container - the environment where Web components are executed - also provides services required for execution. If a Web component is executed by a Web container, the component must first be deployed in a Web container.

There are four basic steps involved in Web component development and execution:

  1. Writing Web component code. A deployment descriptor also may be included in the code.
  2. Packaging the Web component, along with the resources referenced in the code such as images and videos.
  3. Installing the Web component in the Web container.
  4. Accessing the link that refers to the Web component.
Posted by:

Connect with us

Techopedia logo for Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
Techopedia on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join 138,000+ IT pros on our weekly newsletter