You are on page 1of 33

Northern Western Railway

Came being on 1st October, 2002. Carved out of 2 divisions each from Northern and Western Railways
Division Name Jaipur Division Total No. Of Stations 128 Total No. Of Trains Staff Strength 146 15065

Bikaner Division Jodhpur Division


Ajmer Division

198 144
130

142 92
36

13728 10231
9046

Supervisor Technical School, Ajmer


Aims Technology up-gradation Improved productivity Enhanced safety Updating the knowledge of the supervisors Labs RAC Lab, Computer Lab, Diesel Lab, Welding Lab etc.

Supervisor Technical School, Ajmer


Need Of Training Electric locomotive Diesel locomotives Super Fast Trains Introduction of rolling stocks with Air brake system Growing transportation needs of our country modern technologies Railway Organization Present Status

Basic Web Design Fundamentals


URL http://www.google.com
Top Level Domain Protocol Sub Domain Resource Name

http://www.codeproject.com:80 http://www.indiaresults.com/index.jsp http://www.in.com?id=254

Basic Web Design Fundamentals


Domain Name System

Common Web Protocol


1. HTTP 2.FTP 3.SMTP 4.RTP

Basic Web Design Fundamentals


HTML and CSS
HTML
Hyper Text Markup Language Standard for web design Contains Predefined Tags

CSS
Cascading Style Sheets Developed to control presentation of html Presentation is separate from html structure

Basic Web Design Fundamentals


XML
Contains rules for defining document structure Very much flexible Tags can be created by designer
<version> <trip name=trip1> <price>2500</price> <duration>2 days</duration> </trip> </version>

Java Script
A scripting language used to add interactivity and functions to website. Created by Netscape in 1995. Dynamic Menus and Client side validations

Basic Web Design Fundamentals


AJAX
Asynchronus Java Script and XML Dont refresh the whole page only a portion of the page

Application Programming Interface


An exposed set of functions that allow other applications to access features and functionality Small sites use it Dont give source code only functions.

Web Application Technologies


HTTP Client Server Architecture

HTTP Request Methods


HEAD OPTIONS GET POST PUT DELETE TRACE

Web Application Technologies


Execution of CGI program
CGI- Common Gateway Interface Browser needs to send data to the CGI program on the server by specifying it in the URL The CGI program parse the CGI data and generates a response This response send back to the web browser

Advantages Of CGI
good web browser compatibility it has no limitation of browser and firewall CGI is easy to learn and use CGI Doesnt require any special library to create a CGI program freely available scripts that provide shopping carts, credit card processing, template systems, discussion forums etc.

Web Application Technologies


Disadvantages Of CGI

CGI programs are slow since they need to fork a new process for every HTTP request and the database connection must be reopened for the next instance of the program. They put excessive pressure or loads on the server

Web Application Technologies


MVC Architecture
Modelviewcontroller (MVC) is a software architecture, currently considered an architectural pattern used in software engineering. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). The view renders the model into a form suitable for interaction, typically a user interface element. The controller receives user input and initiates a response by making calls on model objects.

Java Servlet
Java Servlet
A servlet is a Java programming language class used to extend the capabilities of servers. It can be thought of as a Java Applet that runs on a server instead of a browser. To deploy and run, the Apache Tomcat Server may be used. The servlet API, contained in the Java package hierarchy javax.servlet

Java Servlet
Advantages Over CGI
In CGI each time a request comes a separate shell is created for execution but in the servlet only a thread is created. CGI request causes the CGI script to be copied and loaded into memory as many times as there are requests but in the servlet one copy of the servlet class created in memory that stays there also between requests. A servlet can be run by a servlet engine in a restrictive environment, called a sandbox. This makes a restrictive use of potentially harmful servlets possible.

Java Servlet
Servlet Life Cycle

Java Servlet
Struct Framework
Struts is an open-source web application framework for developing Java EE web applications. It uses and extends the Java Servlet API to encourage developers to adopt a model-view-controller (MVC) architecture. The goal of Struts is to separate the model from the view and the controller . Struts provides the controller (a servlet known as ActionServlet) Requests from the client are sent to the controller in the form of "Actions" defined in the configuration file. The model code returns an "ActionForward", a string telling the controller what output page to send to the client.

Java Server Pages


Java Server Pages
JavaServer Pages (JSP) is a Java technology that helps software developers serve dynamically generated web pages based on HTML, XML, or other document types. may be viewed as a high-level abstraction of Java servlets. JSP pages are loaded in the server and installed Java server packet called a Java EE Web Application, often packaged as a .war or .ear file archive. JSP syntax is a fluid mix of two basic content forms: scriptlet elements and markup. Markup is typically standard HTML or XML, while scriptlet elements are delimited blocks of Java code which may be intermixed with the markup.

Java Server Pages


JSP Page Life Cycle

Java Server Pages


Basic JSP scripting elements
Scripting
Comment

Element Example
<%--comment--%>

Directive
Declaration

<%@ directive%>
<%! Declaration >

Scriptlet
Expression

<%code%>
<%= expression %>

Java Server Pages


Benefits Of JSP
The JSP technology is platform independent Simple to understand and follow MVC Architecture Takes all benefits of java language features. Very useful for the designer works on view components. The JSP technology emphasizes the use of reusable components. These components can be combined or manipulated towards developing more purposeful components and page design.

Rich Internet Applications


RIAs or Rich Internet Application are web applications that work like fully fledged desktop application in many ways. A site-specific browser is a browser minus the menus and controls. RIAs let you perform in-line editing, drag and drop items or interact directly with the elements.

Rich Internet Applications


JavaFX
javaFX is a software platform for creating and delivering rich Internet applications that can run across a wide variety of connected devices. On desktop, the current release supports Windows XP, Windows Vista and Mac OS X operating systems. On mobile, JavaFX is capable of running on multiple mobile operating systems, including Symbian OS, Windows Mobile, and proprietary real-time operating systems.

Rich Internet Applications


Microsoft Silverlight
Microsoft Silverlight is an application framework for writing and running rich internet applications, with features and purposes similar to those of Adobe Flash. While early versions of Silverlight focused on streaming media, current versions support multimedia, graphics and animation, and give developers support to many interactive things The run-time environment for Silverlight is available as a plug-in for most web browsers.

Rich Internet Applications


MXML
MXML (shorts for Macromedia eXtensible Markup Language) is an xml based markup language used in flex for defining the user interface.

ActionScript
ActionScript 3.0 is an object oriented language developed primarily by Adobe for creating application or multimedia content which can be run in Flash client runtimes like Flash Player and AIR.

Flash Builder
Adobe flash builder 4.5 formerly adobe flex builder is an Integrated Development Environment ( IDE ) from adobe system for ActionScripts and flex development.

Project : Railway Museum

Project : Railway Museum

Project : Railway Museum

Project : Railway Museum

Project : Railway Museum

Project : Railway Museum

CONCLUSION
NORTH-WESTERN RAILWAY, AJMER. The training helps in gaining depth knowledge about technologies used in development of real life projects. I gain the knowledge of working as a team member in the team of developers and they give me very good knowledge of how to work on different type of tools and software environment. The use of RIA is most common and needed in the present scenario. RIA used with java servlet, jsp and struct gives the complete package for developing any website efficiently and reliably.

You might also like