Mathematical Logic – Translation

Translating English sentences into propositional forms We take an example to explain the procedure: Example: Convert the following sentence into propositional form:                 “If I earn more than 2Lac Rupees then I must file income tax return”. 1.  Identify the basic simple sentences and denote them with some variables.        In the above ...

Mathematical Logic – Predicate Calculus

Statements involving variables such as:               x > 5 i.e. “x is greater than 5” are very common in Mathematics and in computer programs. Such a statement is neither ‘false’ nor ‘true’ unless the possible value for variable x is specified and hence it is not a proposition. Predicates and quantifiers ...

Context Switch

A context switch (sometimes, process switch or a task switch) is the switching of the CPU from one process or thread to another.It is sometimes described as the kernel suspending execution of one process on the CPU and resuming execution of some other process that had previously been suspended.   Context switching can be described ...

Locality of Reference

Analysis of a large number of typical program has shown that the references to memory at any given interval of time tend to be confined within a few localized areas in memory. This is phenomenon is known as the property of locality of reference.          Over short interval of time, the addresses generated ...

Creating an application using Struts2

Creating an application using Struts2
Step 1. Open Eclipse and Goto New >> Dynamic Web Project Step 2. Provide “StrutsApplication” as Project name and select “2.4” as Dynamic web module version and click Next Step 3. Click Next Step 4. Click Next Step 5. Click Finish Step 6.  Copy all the required JAR files in WebContent >> WEB-INF >> lib folder. Create this folder if ...

Struts Components

Struts Components
The web.xml File (Deployment Descriptor) This is the file which the container reads. This file has all the configuration information which we have defined for our web application. The configuration information includes the index file, the default welcome page, the mapping of our servlets including path and the extension name, any init parameters, information related ...

Overview of Struts Framework

Overview of Struts Framework
Overview of Struts Framework Open source Based on the Model-View-Controller (MVC) design paradigm, distinctly separating all three levels: Model: application state View: presentation of data (JSP, HTML) Controller: routing of the application flow Implements the JSP Model 2 Architecture Stores application routing information and request mapping in a single core file, struts-config.xml The Struts Framework, ...

Struts

What is Struts? Struts Framework was developed by Craig McLanahan in 2002 and subsequently handed over to Apache Jakarta project group. Struts Framework is the implementation of Model-View-Controller (MVC) design pattern for the JSP and Servlets.   What is Model-View-Controller (MVC) ? Model-View-Controller architecture is all about dividing application components into three different categories Model, View ...

ServletConfig and ServletContext

Both ServletConfig and ServletContext are configuration objects used by servlet container to initialize various init parameters for a web application.However, they differ in terms of the scope and availability of init parameters defined by both of them    S.No.  ServletConfig  ServletContext  1. one ServletConfig object per servlet  one ServletContext object shared by all the servlets ...

Preinitialization of Servlet

A container does not initialize the servlets as soon as it starts up, it initializes a servlet when it receives a request for that servlet first time. This is called lazy loading. The servlet specification defines the element, which can be specified in the deployment descriptor to make the servlet container load and initialize the ...