0% found this document useful (0 votes)
15 views157 pages

Project Report of Java IRCTC - CLONE

The project report details the development of an IRCTC Clone, a web-based ticket booking system that mimics the functionalities of the Indian Railway Catering and Tourism Corporation. It includes user registration, train search, and ticket booking features, developed using Java, JSP, HTML, CSS, and MySQL. The report also outlines the system design, implementation, results, and future enhancements such as online payment integration and mobile application development.

Uploaded by

jamonamithe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views157 pages

Project Report of Java IRCTC - CLONE

The project report details the development of an IRCTC Clone, a web-based ticket booking system that mimics the functionalities of the Indian Railway Catering and Tourism Corporation. It includes user registration, train search, and ticket booking features, developed using Java, JSP, HTML, CSS, and MySQL. The report also outlines the system design, implementation, results, and future enhancements such as online payment integration and mobile application development.

Uploaded by

jamonamithe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PROJECT REPORT

“IRCTC CLONE(Ticket Booking System)”

REPORT SUBMITTED FOR THE PARTIAL FULFILMENT OF THE

REQUIREMENT FOR THE THREE-YEAR DIPLOMA IN

“Computer Science/Information Technology”

SUBMITTED TO

“COLLEGE NAME”

CITY

SUBMITTED BY:

STUDENT NAME

(College Enrolment Number- XXXXXXX)

20XX-20XX

Under the Guidance of

Mr. Yuvraj Singh

Senior Trainer and Developer


PWT/IT/2024/…...

CERTIFICATE OF COMPLETION

This is to certify that Mr. /Ms. Student Name of Diploma (Computer


Science) from College Name was working on the project entitled
“IRCTC CLONE(Ticket Booking System)” in Pasiware
Technologies (P) Ltd. She/he was engaged with us for training
during JUNE 2025 to JULY 2025 for 28 days.

She/he has done an excellent job during his/her engagement with the
Software Development & Testing Division of the company. She/he has
completed his/her project during the training tenure. His/her
performance has been good and satisfactory.

I would like to take this opportunity to express my appreciation to


Mr./Ms. Student Name for his/her work and wish him/her all the very
best for his/her future endeavours.

Regards,

Mr. Yuvraj Singh (Director)

Pasiware Technologies (P) Ltd

Varanasi (U.P.)
DECLARATION

I, <student name>, hereby, declare that the Project Report submitted


to <College Name> for the award of three-year Diploma in <Branch
Name> was done under the guidance of Mr. Yuvraj Singh, Senior
Trainer and Developer, Pasiware Technologies (P) Ltd.

I also declare that the information in this report is correct as per my


knowledge and I bear any responsibilities for any error or omission, if
any. The matter embodied in this project work has not been submitted
earlier for award of any degree or diploma to the best of my knowledge
and belief.

Student Name

Date:
ACKNOWLEDGEMENT

I would like to express my sincere gratitude to my trainer and mentor

Mr. Yuvraj Singh, Senior Trainer and Developer, (Pasiware

Technologies (P) Ltd.), who gave me his full support and

encouraged me to work in an innovative and challenging project for

Educational field.

His knowledge and guidance were extremely helpful in completion of

my training.

I would also extend my thanks to every member of Pasiware

Technologies (P) Ltd. for their support and co-operation.

Student Name
ABSTRACT
The IRCTC Clone project is a web-based application developed to simulate the
core functionalities of the Indian Railway Catering and Tourism Corporation
(IRCTC) online ticket booking system. The project provides modules for user
registration, login, train search, and ticket booking, as well as an admin
module for managing trains and bookings. Developed using Java, JSP, HTML,
CSS, and MySQL, the system demonstrates the working of a real-life online
railway reservation system.
TABLE OF CONTENTS
1. Introduction
2. Objectives
3. Tools and Technologies Used
4. System Design & Methodology
5. Implementation
6. Results
7. Conclusion
8. Future Scope
9. References
1. INTRODUCTION
The IRCTC Clone project is designed to replicate the essential features of an
online railway ticket booking system. The aim is to provide users with
functionalities like train search, registration, login, ticket booking, and
cancellation, while administrators can manage trains, bookings, and user
data. The system uses JSP and Java for backend logic, HTML/CSS for the
frontend, and MySQL as the database.

2. OBJECTIVES
- To develop a user-friendly platform for online train ticket booking.
- To implement secure user registration and login modules.
- To provide an admin panel for managing trains and bookings.
- To simulate the working of a real-life online reservation system.

3. TOOLS AND TECHNOLOGIES USED


- Programming Language: Java (JSP, Servlets)
- Frontend: HTML, CSS
- Backend: JSP, Servlets
- Database: MySQL
- IDE/Tools: NetBeans / Eclipse
- Web Server: Apache Tomcat

4. SYSTEM DESIGN & METHODOLOGY


The system is divided into two main modules: User Module and Admin
Module.
User Module:
- User Registration and Login
- Search Trains
- Book Tickets
- View and Cancel Tickets

Admin Module:
- Add and Manage Trains
- Manage User Bookings
- View Reports
5. IMPLEMENTATION
The implementation is carried out using JSP and Java for the server-side logic.
The user interacts with the system through web pages designed in
JSP/HTML/CSS. The backend connects to a MySQL database to store user
details, train schedules, and booking records. The admin interface allows for
managing train schedules and monitoring user activities.

6. RESULTS
The project successfully demonstrates the working of an online railway ticket
booking system. Users can register, log in, search for trains, and book tickets.
Admins can add new trains and manage bookings. Screenshots of the system
have been attached below (add images here).

7. CONCLUSION
The IRCTC Clone project successfully replicates the core functionalities of a
real railway ticket booking system. It provides a simple yet effective
demonstration of how online reservation systems operate.

8. FUTURE SCOPE
- Implementing online payment gateway integration.
- Adding advanced features like seat selection and dynamic pricing.
- Enhancing security with OTP verification and encryption.
- Developing a mobile application version of the system.

9. REFERENCES
1. Official Java Documentation - https://docs.oracle.com/javase/
2. JSP & Servlet Tutorials - https://www.javatpoint.com
3. MySQL Documentation - https://dev.mysql.com/doc/

10. DATABASE DESIGN


The database for the IRCTC Clone project is implemented using MySQL.
It consists of three major tables: registration, train_details, and
bookingrecord.
These tables collectively store the user information, train details, and ticket
booking records.

1. registration Table:
- id (Primary Key, int, Auto Increment)
- FullName (varchar)
- mobile (varchar)
- mail (varchar)
- DateOfBirth (varchar)
- password (varchar)
- date (varchar)
- status (varchar) → defines if user is 'user' or 'admin'

2. train_details Table:
- id (Primary Key, int, Auto Increment)
- trainName (varchar)
- trainNo (varchar)
- startingStation (varchar)
- endingStation (varchar)
- startingTime (varchar)
- endingTime (varchar)
- price (varchar)
- date (varchar)

3. bookingrecord Table:
- id (Primary Key, int, Auto Increment)
- name (varchar)
- age (varchar)
- doj (varchar) → date of journey
- trainid (varchar) → references train_details(id)
- pnr (varchar) → unique booking reference
- userid (varchar) → references registration(mobile)
- payment (varchar)
- date (varchar)

RELATIONSHIPS:
- A user (registration) can make multiple bookings (bookingrecord).
- Each booking is associated with a train (train_details).
11. ENTITY RELATIONSHIP DIAGRAM
The ER diagram below represents the relationships between different entities
in the IRCTC Clone database.

12. DATABASE SCHEMA TABLES


Below are the schema tables with their respective attributes and data types
for better understanding of the database design.

registration
Column Name Data Type
id INT (PK, Auto Increment)
FullName VARCHAR(50)
mobile VARCHAR(50)
mail VARCHAR(50)
DateOfBirth VARCHAR(50)
password VARCHAR(50)
date VARCHAR(50)
status VARCHAR(50)
train_details
Column Name Data Type
id INT (PK, Auto Increment)
trainName VARCHAR(100)
trainNo VARCHAR(100)
startingStation VARCHAR(100)
endingStation VARCHAR(100)
startingTime VARCHAR(100)
endingTime VARCHAR(100)
price VARCHAR(100)
date VARCHAR(100)

bookingrecord
Column Name Data Type
id INT (PK, Auto Increment)
name VARCHAR(100)
age VARCHAR(100)
doj VARCHAR(100)
trainid VARCHAR(100) (FK →
train_details.id)
pnr VARCHAR(100)
userid VARCHAR(100) (FK →
registration.mobile)
payment VARCHAR(100)
date VARCHAR(100)

13. SAMPLE SQL QUERIES

Insert a new user


INSERT INTO registration (FullName, mobile, mail, DateOfBirth, password,
date, status)
VALUES ('Rahul Sharma', '9876543210', '[email protected]', '1999-05-12',
'mypassword', NOW(), 'user');
Add a new train
INSERT INTO train_details (trainName, trainNo, startingStation, endingStation,
startingTime, endingTime, price, date)
VALUES ('Rajdhani Express', '12301', 'Mumbai', 'Delhi', '08:00 PM', '08:00 AM',
'1500', NOW());

Book a ticket
INSERT INTO bookingrecord (name, age, doj, trainid, pnr, userid, payment,
date)
VALUES ('Rahul Sharma', '26', '2025-08-25', '1', 'PNR123456', '9876543210',
'Success', NOW());

Get all trains between two stations


SELECT trainName, trainNo, startingTime, endingTime, price
FROM train_details
WHERE startingStation='Varanasi' AND endingStation='Delhi';

Get all bookings of a user


SELECT b.pnr, b.name, b.age, t.trainName, t.startingStation, t.endingStation,
b.doj, b.payment
FROM bookingrecord b
JOIN train_details t ON b.trainid = t.id
WHERE b.userid='9876543210';

Count total bookings per train


SELECT t.trainName, COUNT(b.id) AS total_bookings
FROM bookingrecord b
JOIN train_details t ON b.trainid = t.id
GROUP BY t.trainName;

14. PROJECT SOURCE CODE SUMMARY


The IRCTC Clone project consists of multiple modules including frontend JSP
pages, backend Java classes,
and configuration files. Below is a summarized explanation of the project
structure and some important code snippets.
Project Structure

- src/java/dbpack/DbManager.java → Database connection manager


- web/ → Main frontend JSP pages (login.jsp, registration.jsp, index.jsp,
ticket_booking.jsp, etc.)
- web/admin/ → Admin panel (add_Train.jsp, adminHome.jsp, bookinghi.jsp,
etc.)
- web/user/ → User dashboard (booknow.jsp, profile.jsp, payment.jsp, etc.)
- web/css/style.css → Styling
- web/images/ → UI assets
- WEB-INF/lib/com.mysql.jdbc_5.1.5.jar → MySQL JDBC driver
- META-INF/context.xml → Database configuration

Important Files

1. DbManager.java – Manages database connectivity using JDBC.


2. controller.jsp – Handles user requests and backend logic for login,
registration, and booking.
3. JSP Pages – Provide user interface for booking, login, admin operations, etc.

DbManager.java (Snippet)
package dbpack;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class DbManager {


Connection con=null;
PreparedStatement ps=null;
ResultSet rs=null;

public DbManager() {
try {
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/irctc?
characterEncoding=utf-8","root","");
} catch(Exception e) {
e.printStackTrace();
}
}
}

login.jsp (Snippet)
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="login"/>
<table class="w-100">
<tr>
<td>Mobile</td>
<td><input type="text" name="mobile" required></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" required></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Login"></td>
</tr>
</table>
</form>

15. FULL PROJECT SOURCE CODE


This section contains the complete source code of the project files (text-
based). Binary assets (images, class files, jars) are excluded. Each file
appears with its relative path.

IRCTC_CLONE/build.xml
Lines: 72 | Size: 3.4 KB

<?xml version="1.0" encoding="UTF-8"?>


<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="IRCTC_CLONE" default="default" basedir=".">
<description>Builds, tests, and runs the project IRCTC_CLONE.</description>
<import file="nbproject/build-impl.xml"/>
<!--

There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:

-pre-init: called before initialization of project properties


-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying

Example of pluging an obfuscator after the compilation could look like

<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>

For list of available properties check the imported


nbproject/build-impl.xml file.

Other way how to customize the build is by overriding existing main targets.
The target of interest are:

init-macrodef-javac: defines macro for javac compilation


init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation

Example of overriding the target for project execution could look like

<target name="run" depends="<PROJNAME>-impl.jar">


<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.

-->
</project>

IRCTC_CLONE/build/generated/src/org/apache/jsp/
index_jsp.java
Lines: 70 | Size: 2.4 KB

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase


implements org.apache.jasper.runtime.JspSourceDependent {

private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

private static java.util.List<String> _jspx_dependants;

private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;

public java.util.List<String> getDependants() {


return _jspx_dependants;
}

public void _jspService(HttpServletRequest request, HttpServletResponse response)


throws java.io.IOException, ServletException {

PageContext pageContext = null;


HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;

try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector)
application.getAttribute("com.sun.appserv.jsp.resource.injector");

out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE html>\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-
8\">\n");
out.write(" <title>JSP Page</title>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" <h1>Hello World!</h1>\n");
out.write(" </body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}

IRCTC_CLONE/build/web/META-INF/context.xml
Lines: 3 | Size: 0.1 KB

<?xml version="1.0" encoding="UTF-8"?>


<Context antiJARLocking="true" path="/IRCTC_CLONE"/>

IRCTC_CLONE/build/web/admin/add_Train.jsp
Lines: 65 | Size: 3.5 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 11:16:48 AM
Author : pc
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>

<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid" style="overflow: hidden;">

<jsp:include page="navbaar.jsp"/>
<div class="row">
<div class="col-sm-12">
<h2 style="text-align: center;color: white;background-color: brown;"
class="py-2 my-5">Add Train</h2>
<form action="controller.jsp" method="POST">
<input type="hidden" name="page" value="addT">
<table class="table table-border">
<tr>
<td style="text-align: center;">Enter Train Name</td>
<td><input type="text" name="TrainName" placeholder="Enter Train
Name" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train No.</td>
<td><input type="text" name="TrainNo" placeholder="Enter Train No."
style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Starting Point/Station</td>
<td><input type="text" name="StartingStation" placeholder="Enter
Train Starting Point/Station" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Ending Point/Station</td>
<td><input type="text" name="EndingStation" placeholder="Enter Train
Ending Point/Station" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Starting Time</td>
<td><input type="text" name="StartingTime" placeholder="Enter Train
Starting Time" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Ending Time</td>
<td><input type="text" name="EndingTime" placeholder="Enter Train
Ending Time" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Price</td>
<td><input type="text" name="Price" placeholder="Price"
style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td colspan="2" class="text-center" style="margin: auto;"><input
type="submit" placeholder="Price" style="padding: 10px;border-radius: 5px; margin:
auto;" class="btn btn-success"/></td>
</tr>
</table>
</form>
</div>
</div>

</div>
</body>
</html>

IRCTC_CLONE/build/web/admin/adminHome.jsp
Lines: 101 | Size: 3.2 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Train
Details</h1>
<table class="table table-bordered">
<tr>
<th>
Train Name
</th>
<th>
Train No
</th>
<th>
Starting Station
</th>
<th>
Ending Station
</th>
<th>
Starting Time
</th>
<th>
Ending Time
</th>
<th>
price
</th>
<th>
date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from train_details");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("trainName")%>
</td>
<td>
<%=rs.getString("trainNo")%>
</td>
<td>
<%=rs.getString("startingStation")%>
</td>
<td>
<%=rs.getString("endingStation")%>
</td>
<td>
<%=rs.getString("startingTime")%>
</td>
<td>
<%=rs.getString("endingTime")%>
</td>
<td>
<%=rs.getString("price")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/admin/bookinghi.jsp
Lines: 107 | Size: 3.4 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Booking
Hi</h1>
<table class="table table-bordered">
<tr>
<th>
Name
</th>
<th>
Age
</th>
<th>
Journy Date
</th>
<th>
Price
</th>
<th>
Train Name
</th>
<th>
Pnr
</th>
<th>
From
</th>
<th>
To
</th>
<th>
Booking Date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from bookingrecord left join train_details on
bookingrecord.trainid=train_details.id");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("name")%>
</td>
<td>
<%=rs.getString("age")%>
</td>
<td>
<%=rs.getString("doj")%>
</td>
<td>
<%=rs.getString("price")%>
</td>
<td>
<%=rs.getString("trainName")%>
</td>
<td>
<%=rs.getString("pnr")%>
</td>
<td>
<%=rs.getString("startingStation")%>
</td>
<td>
<%=rs.getString("endingStation")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/admin/controller.jsp
Lines: 23 | Size: 1.0 KB

<%@page import="dbpack.DbManager"%>
<%
if(request.getParameter("page").equals("addT"))
{
String TrainName=request.getParameter("TrainName");
String TrainNo=request.getParameter("TrainNo");
String StartingStation=request.getParameter("StartingStation");
String EndingStation=request.getParameter("EndingStation");
String StartingTime=request.getParameter("StartingTime");
String EndingTime=request.getParameter("EndingTime");
String Price=request.getParameter("Price");
String query="INSERT INTO `train_details`(`trainName`, `trainNo`, `startingStation`,
`endingStation`, `startingTime`, `endingTime`, `price`, `date`) VALUES
('"+TrainName+"','"+TrainNo+"','"+StartingStation+"','"+EndingStation+"','"+StartingTime
+"','"+EndingTime+"','"+Price+"',now())";
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(query))
{
out.print("<script>alert('Inserted');window.location.href='add_Train.jsp';</script>");
}
else
{
out.print("<script>alert('Something Went Wrong Please Try
Again');window.location.href='add_Train.jsp';</script>");
}
}
%>

IRCTC_CLONE/build/web/admin/header.jsp
Lines: 6 | Size: 0.5 KB

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"

integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/
5mcr" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"

integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck
+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="../css/style.css">

IRCTC_CLONE/build/web/admin/logout.jsp
Lines: 5 | Size: 0.1 KB

<%
session.removeAttribute("userId");
session.invalidate();
response.sendRedirect("../login.jsp");
%>

IRCTC_CLONE/build/web/admin/navbaar.jsp
Lines: 28 | Size: 1.1 KB

<div class="row">
<div class="col-sm-12">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="adminHome.jsp">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bookinghi.jsp">Booking Hi</a>
</li>
<li class="nav-item">
<a class="nav-link" href="add_Train.jsp">Add Train</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.jsp">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>

IRCTC_CLONE/build/web/contact.jsp
Lines: 148 | Size: 8.0 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contact Us - IRCTC</title>
<jsp:include page="header.jsp"/>

<style>

</style>
</head>

<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">

<!-- navbar start -->


<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- contact section -->

<div class="row ">


<div class="col-md-10 mx-auto">
<div class="row mt-5">

<h2 class="mt-5 p-4 text-center fw-bold" style="color:rgb(24, 24,


158);">CONTACT US</h2>

<div class="col-md-6 mb-4">


<div class="contact-card p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-ticket icon"></i> For Railway
Tickets Booked Through IRCTC</h4>
<p><strong>Customer Care Numbers:</strong> 14646 / 08044647999 /
08035734999</p>
<p><strong>Languages Supported:</strong> Hindi, English, Punjabi,
Bengali, Assamese, Odia,
Marathi, Gujarati, Tamil, Telugu, Kannada, Malayalam</p>
<p><strong>Enhanced Interface:</strong> <a
href="https://equery.irctc.co.in/"
target="_blank">https://equery.irctc.co.in/</a></p>
</div>
</div>

<div class="col-md-6 mb-4">


<div class="contact-card h-100 p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-info-circle icon"></i> General
Information</h4>
<p><strong>I-tickets/e-tickets:</strong> <a
href="https://equery.irctc.co.in/"
target="_blank">https://equery.irctc.co.in</a></p>
<p><strong>Cancellation of E-tickets:</strong> <a
href="mailto:[email protected]">[email protected]</a></p>
<p><strong>IRCTC iMudra Prepaid Wallet & Card:</strong> <a
href="https://equery.irctc.co.in/"
target="_blank">https://equery.irctc.co.in</a>
</p>
</div>
</div>

<div class="col-md-12 mb-3">


<div class="contact-card p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-credit-card icon"></i> IRCTC
Loyalty Credit Card Contact</h4>
<ul class="list-unstyled">
<li><strong>IRCTC-SBI</strong><br>Contact: 0124-39021212 /
18001801295<br>Email: <a

href="mailto:[email protected]">[email protected]</a></li>
<li class="mt-2"><strong>IRCTC-BOB</strong><br>Contact:
1800225100 /
18001031006<br>Email:
<a
href="mailto:[email protected]">[email protected]</a>
</li>
<li class="mt-2"><strong>IRCTC-HDFC</strong><br>Contact:
18002026161 /
18602676161<br>URL:
<a href="https://www.hdfcbank.com/personal/need-help/contact-us"
target="_blank">HDFC
Contact</a>
</li>
<li class="mt-2"><strong>IRCTC-RBL</strong><br>Contact: +91
2262327777 / +91
2271190900<br>Email: <a

href="mailto:[email protected]">[email protected]</a></li>
<li class="mt-2">For other queries: <a

href="mailto:[email protected]">[email protected]</a></li>
</ul>
</div>
</div>

<div class="col-md-12 mb-4">


<div class="contact-card p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-building icon"></i> Registered
Office - Corporate Office</h4>
<p>Indian Railway Catering and Tourism Corporation Ltd.,<br>
4th Floor, Tower-D, World Trade Centre,<br>
Nauroji Nagar, New Delhi-110029</p>
</div>
</div>
</div>
</div>
</div>
<!-- contact section end -->
<!-- footer start -->
<div class="row footer rounded-5 ">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal Chaurasiya
</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>

<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></
script>
</body>

</html>

IRCTC_CLONE/build/web/controller.jsp
Lines: 49 | Size: 1.5 KB

<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%
if(request.getParameter("page").equals("reg"))
{
String dob=request.getParameter("dob");
String name=request.getParameter("name");
String number=request.getParameter("number");
String password=request.getParameter("password");
String mail=request.getParameter("mail");
DbManager dm=new DbManager();
String query="insert into
registration(FullName,mobile,DateOfBirth,password,mail,status,date)
value('"+name+"','"+number+"','"+dob+"','"+password+"','"+mail+"','user',now())";
if(dm.insertUpdateDelete(query))
{
out.print("<script>alert('Inserted');window.location.href='login.jsp'</script>");
}
else
{
out.print("<script>alert('error');window.location.href='registration.jsp'</script>");
}
}
else if(request.getParameter("page").equals("login"))
{
String userId=request.getParameter("userId");
String password=request.getParameter("password");
String query="select * from registration where mobile='"+userId+"' and
password='"+password+"'";
DbManager dm=new DbManager();
ResultSet rs=dm.select(query);
if(rs.next())
{
if(rs.getString("status").equals("admin"))
{
session.setAttribute("userId",userId);
response.sendRedirect("admin/adminHome.jsp");
}
else
{
session.setAttribute("userId",userId);
response.sendRedirect("user/userHome.jsp");
}
}
else
{
out.print("<script>alert('invalid userid or
Password');window.location.href='login.jsp'</script>");
}

%>

IRCTC_CLONE/build/web/css/style.css
Lines: 83 | Size: 1.7 KB

body {
background-color:rgb(185, 185, 236);
font-family: popin;
}

.nav_bg {
background: linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));
}

.nav-link:hover {
background-color: rgb(14, 14, 183);
color: white;
transition: all 0.6s ease-in-out;
transform: scale(1.1);
}

.slider {

background: url(../images/train.jpg);
background-repeat: no-repeat;
background-size: cover;
}

.slider_h1 {
font-size: 60px;
color: rgb(40, 40, 124);
}

.card-text {
text-align: justify;
font-size: 14px;
}

.last_icon {
background: linear-gradient(90deg, rgb(61, 61, 177), rgb(100, 58, 116));

}
.contact-card {
background: rgba(255, 255, 255, 0.7);
transition: transform 0.8s ease;
}

.contact-card:hover {
transform: translateY(-8px) scale(1.02);
}

.contact-card h4 {
color: rgb(24, 24, 158);
}

.contact-card a {
color: rgb(24, 24, 158);
text-decoration: none;
}

.gallary-img {
transition: transform 0.4s ease, box-shadow 0.4s ease;

.gallary-img:hover {
transform: scale(1.05);

.social_icon
{
background: linear-gradient(to right, #2c236c, #b958a5);
}
.footer
{
background-color: rgb(16, 16, 118);
color:white;
font-size:14px;
}
.line:hover
{
border: 1px solid goldenrod;
}

IRCTC_CLONE/build/web/gallary.jsp
Lines: 151 | Size: 7.2 KB

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>

<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">

<!-- navbar start -->


<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- Gallary Section Start -->
<div class="row mt-5">
<div class="col-md-12">

<div class="row mt-5 pt-5 pb-5" >


<div class="col-md-10 mx-auto text-center">
<h2 class="fw-bold mb-4" style="color: rgb(24, 24, 158);">OUR GALLARY</h2>
<div class="row g-4">
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train1.jpg" class="card-img-top gallary-img" alt="Train
Image 1">
</div>
</div>
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train2.jpg" class="gallary-img rounded-5" alt="Train
Image 2">
</div>
</div>
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train3.jpg" class=" gallary-img rounded-5" alt="Train
Image 3">
</div>
</div>
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train4.jpg" class=" gallary-img rounded-5" alt="Train
Image 4">
</div>
</div>
<div class="col-md-4">
<div class="card shadow">
<img src="images/train5.jpg" class=" gallary-img rounded-5" alt="Train
Image 5">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train6.jpg" class="gallary-img rounded-5" alt="Train
Image 6">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train7.jpg" class="gallary-img rounded-5" alt="Train
Image 7">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train8.jpg" class="gallary-img rounded-5" alt="Train
Image 8">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train9.jpg" class="gallary-img rounded-5" alt="Train
Image 9">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train10.jpg" class="gallary-img rounded-5" alt="Train
Image 10">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train11.jpg" class="gallary-img rounded-5" alt="Train
Image 11">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train12.jpg" class="gallary-img" alt="Train Image 12">
</div>
</div>
</div>
</div>
</div>

</div>
</div>
<!-- Gallary Section End -->

<!-- footer start -->


<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/build/web/header.jsp
Lines: 6 | Size: 0.5 KB

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"

integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/
5mcr" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"

integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck
+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/style.css">

IRCTC_CLONE/build/web/index.jsp
Lines: 319 | Size: 17.2 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- news -->
<div class="row fixed-top" style="background: linear-gradient(90deg,white, rgb(131,
131, 195));">
<div class="col-md-12">
<marquee behavior="" direction="">Welcome to My IRCTC.</marquee>
</div>
</div>
<!-- news end -->
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- slider start -->
<div class="row mt-5">
<div class="col-md-12 mt-5 slider">
<div class="row mt-5">
<div class="col-md-6 ">
<div class="card mx-2 mt-4 rounded-3 p-3">
<form action="train_List.jsp" method="post">
<table class="table border-none">
<tr>
<td><a href="#" class="btn btn-primary form-control">PNR
STATUS</a></td>
<td><a href="#" class="btn btn-primary form-control">CHARTS /
VACANCY</a></td>
</tr>
<tr>
<td colspan="2">
<h3 class="text-center">TICKET BOOKING</h3>
</td>
</tr>
<tr>
<td><input type="text" name="From" class="form-control"
placeholder="From"></td>
<td><input type="text" name="To" class="form-control"
placeholder="To"></td>
</tr>
<tr>
<td><input type="date" name="date"
class="form-control"></td>
<td>
<select name="" id="" class="form-control">
<option value="">All Classes</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<select name="" id="" class="form-control">
<option value="">GENERAL</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" class="btn form-control text-white fw-
bold"
style="background-color:orangered;">SEARCH</button>
</td>
</tr>
</table>
</form>
</div>
<div class="card mx-2 mt-2 mb-4 p-3">
<p class=" fw-bold text-center" style="font-size: 12px;">
<span class="text-primary"> Customers can use enhanced interface for
their IRCTC related
queries!! https://equery.irctc.co.in</span> <br>
<span class="text-danger"> Customer Care Numbers :
14646/08044647999 /08035734999</span>
<br>
<span class="text-info">BEWARE OF FRAUDSTERS: Always download
official IRCTC Rail
Connect App from the Google Play Store or Apple App Store
only.</span>
</p>

</div>
</div>
<div class="col-md-6">
<h1 class="text-center mt-5 fw-bold slider_h1">INDIAN RAILWAY</h1>
<pre class="text-center fs-4">Safety | Security | Punctually</pre>
</div>
</div>

</div>
</div>
<!-- slider end -->
<!-- ramayan start -->
<div class="row mt-3 mb-4">
<div class="col-md-8 mx-auto">
<img src="images/ramayan_yatra .jpeg" width="100%" alt="">
</div>
</div>
<!-- ramayan end -->
<!-- writeen start -->
<div class="row mt-5">
<div class="col-md-6 mx-auto text-center text-justify ">
<h1 class="fs-1 fw-bold ">Have you not found the right one?
<br>Find a service suitable for you here.
</h1>
</div>
</div>
<!-- writeen end -->
<!-- icon section -->
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col">h</div>

</div>

</div>
</div>
<!-- icon section -->
<!-- Holiday ssection start -->
<div class="row">
<div class="col-md-9 mx-auto">
<!-- row 1 -->
<div class="row">
<div class="col-md-4 ">
<div class="card h-100 shadow-lg">
<img src="images/exterior.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-1">Maharajas' Express</h3>
<p class="card-text pt-1 px-2">Redefining Royalty, Luxury and
Comfort, Maharajas'
express
takes
you on a sojourn to the era of bygone stately splendour of princely
states. Sylvan
furnishings, elegant ambience and modern amenities are
amalgamated for an
?Experience Unsurpassed?. It has been a winner of ?World?s Leading
Luxury train? by
World Travel Awards consecutively for last six years</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Thailand.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">International Packages</h3>
<p class="card-text p-2">Best deals in International Holiday packages,
handpicked by
IRCTC, for Thailand, Dubai, Sri Lanka, Hong Kong, China, Macau,
Bhutan, Nepal, U.K.,
Europe, USA, Australia etc. The packages are inclusive of sightseeing,
meals, visa
charges and overseas medical insurance to give you a hassle-free and
memorable
experience</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Kashmir.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">Domestic Air Packages</h3>
<p class="card-text p-2">Be it the spiritual devotee seeking blessings
of Tirupati,
Shirdi or Mata Vaishno Devi or the leisure traveller wanting to relish
the Blue
mountains of North East, Sand-dunes of Rajasthan, Hamlets of
Ladakh, Wonders of
Himalayas, Serene lakes or Picturesque Islands, IRCTC has it all.
Discover India
through IRCTC!</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
</div>
<!-- row 1 end -->
<!-- row 2-->
<div class="row mt-4">
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Bharat_Gaurav.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">Bharat Gaurav Tourist Train</h3>
<p class="card-text pt-2 px-2">IRCTC offers Exclusive Rail tour
packages with confirmed
train
tickets, sight-seeing and meals for enchanting Nilgiri Mountains,
Darjeeling, Kullu
Manali, Kashmir, Gangtok or divine tours of Mata Vaishno Devi,
Rameswaram, Madurai,
Shirdi, Tirupati etc. Holiday packages/ Land packages to these
destinations are also
available</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Manali.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">Rail Tour Packages</h3>
<p class="card-text pt-2 px-2 pb-4 ">IRCTC operates Bharat Gaurav
Tourist Train having
AC III-Tier
accommodation on train specially designed to promote domestic
tourism in India. This
train runs on various theme based circuits covering pilgrimage and
heritage
destinations in its itinerary on a 5 days to 20 days trip and showcase
India?s rich
cultural heritage</p> <br>
<a href="#" class="ps-2 ">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mx-auto shadow-lg" style="width: 23rem;">
<img src="images/HOME_BOTTOM_RIGHT.jpeg" height="624px"
class="card-img-top shadow-lg"
alt="...">

</div>
</div>
</div>
<!-- row 2 end -->
</div>
</div>
<!-- Holiday ssection end -->
<!-- last icons start -->

<div class="row p-3 my-2 rounded-5 social_icon">


<div class="col-md-10 mx-auto ">
<div class="row">
<div class="col-md-6">
<h5 class="text-white text-end p-2">Get Connected with us on social
networks</h5>
</div>
<div class="col-md-6">
<div class="d-flex">
<a href="#" class="btn btn-primary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="btn btn-success rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-whatsapp"></i>
</a>
<a href="#" class="btn btn-danger rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-youtube"></i>
</a>
<a href="#" class="btn btn-dark rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="btn btn-info rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="#" class="btn btn-primary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-telegram-plane"></i>
</a>
<a href="#" class="btn btn-danger rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-pinterest-p"></i>
</a>
<a href="#" class="btn btn-secondary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-tumblr"></i>
</a>
<a href="#" class="btn btn-warning rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fas fa-ghost"></i>
</a>
<a href="#" class="btn btn-primary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-twitter"></i>
</a>
</div>

</div>
</div>

</div>
</div>

<!-- last icons end -->


<!-- footer start -->
<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>
</html>

IRCTC_CLONE/build/web/login.jsp
Lines: 101 | Size: 4.9 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->

<!-- login start -->


<div class="row">
<div class="col-sm-12" >
<div class="row">
<div class="col-sm-6 m-5 shadow-lg mx-auto p-4 rounded-5" style=" background:
linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));">
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="login"/>
<table class=" w-100 mx-auto rounded-5">
<tr>
<td><h2 class="text-center text-white mb-3 fw-bold">LOGIN</h2></td>
</tr>
<tr>
<td><input type="number" name="userId" class="form-control my-1"
placeholder="User Id"></td>
</tr>

<tr>
<td><input type="password" name="password" class="form-control my-1"
placeholder="Password"></td>
</tr>
<tr>
<td><button value="submit" class="btn form-control my-1 fw-bold text-white"
style="background-color: orangered;">Submit</button></td>
</tr>
</table>
</form>
</div>

</div>
</div>
</div>
<!-- login end -->
<!-- footer start -->
<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/build/web/navbaar.jsp
Lines: 38 | Size: 2.2 KB

<div class="row p-0 m-0 mt-4">


<div class="col-md-12 p-0 m-0">
<nav class="navbar navbar-expand-lg nav_bg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand ms-4" href="index.htmlx">
<img src="images/logo.png" alt="">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-
controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto mb-2 mb-lg-0 fs-5 fw-bold ">
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="index.jsp">Home</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="contact.jsp">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2"
href="registration.jsp">Registration</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="login.jsp">Login</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="#">About us</a>
</li>
</ul>
</div>
<a class="navbar-brand me-4" href="#">
<img src="images/secondry-logo.png" alt="">
</a>
</div>
</nav>
</div>
</div>

IRCTC_CLONE/build/web/registration.jsp
Lines: 113 | Size: 5.5 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>

<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->

<!-- ragistration start -->


<div class="row mt-5" >
<div class="col-sm-12" >
<div class="row mt-5">
<div class="col-sm-6 m-5 mx-auto p-4 rounded-5 shadow-lg" style=" background:
linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));">
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="reg"/>
<table class=" w-100 mx-auto rounded-5">
<tr>
<td><h2 class="text-center fw-bold text-white
mb-3">REGISTRATION</h2></td>
</tr>
<tr>
<td><input type="date" name="dob" class="form-control my-1"
placeholder="User Name"></td>
</tr>
<tr>
<td><input type="text" name="name" class="form-control my-1"
placeholder="Full Name"></td>
</tr>
<tr>
<td><input type="password" name="password" class="form-control my-1"
placeholder="Password"></td>
</tr>
<tr>
<td><input type="password" name="cpassword" class="form-control my-1"
placeholder="Confirm Password"></td>
</tr>
<tr>
<td><input type="email" name="mail" class="form-control my-1"
placeholder=" Email"></td>
</tr>
<tr>
<td><input type="number" name="number" class="form-control my-1"
placeholder=" Mobile"></td>
</tr>
<tr>
<td><button value="submit" class="btn form-control my-1 fw-bold text-white"
style="background-color: orangered;">Submit</button></td>
</tr>
</table>
</form>
</div>

</div>

</div>
</div>
<!-- ragistration end -->
<!-- footer start -->
<div class="row footer ">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/build/web/ticket_booking.jsp
Lines: 123 | Size: 6.2 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- ticket-booking start -->
<div class="row mt-5">
<div class="col-md-12">
<div class="row mt-5" >
<div class="col-md-6 mx-auto shadow-lg rounded-5 p-5 m-5" style=" background:
linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));">

<form action="">
<table class=" w-100">
<tr>
<td colspan="2">
<h3 class="text-center fw-bold text-white">TICKET BOOKING</h3>
</td>
</tr>
<tr>
<td><a href="#" class="btn btn-primary form-control my-1">PNR
STATUS</a></td>
<td><a href="#" class="btn btn-primary form-control my-1">CHARTS /
VACANCY</a></td>
</tr>

<tr>
<td colspan="2"><input type="text" class="form-control my-1"
placeholder="Form"></td>
</tr>
<tr>
<td colspan="2"><input type="text" class="form-control my-1"
placeholder="To"></td>
</tr>
<tr>
<td><input type="date" class="form-control my-1"></td>
<td>
<select name="" id="" class="form-control my-1">
<option value="">All Classes</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<select name="" id="" class="form-control my-1">
<option value="">GENERAL</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<a href="" class="btn form-control text-white fw-bold"
style="background-color:orangered;">SEARCH</a>
</td>
</tr>
</table>
</form>

</div>
</div>
</div>
</div>
<!-- ticket booking end -->
<!-- footer start -->
<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>
IRCTC_CLONE/build/web/train_List.jsp
Lines: 44 | Size: 2.1 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<div class="row mt-5 bg-light">
<div class="col-sm-12 py-5">
<h2 style="background-color:brown;color: white;" class="py-2 text-
center">Train List</h2>
<!--train details-->
<%
String From=request.getParameter("From");
String To=request.getParameter("To");
String date=request.getParameter("date");
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from train_details where
StartingStation='"+From+"' and EndingStation='"+To+"'");
while(rs.next())
{
%>
<a href="user/booknow.jsp?id=<%=rs.getString("id")%>"
style="color:black;text-decoration: none"><div class="mt-2" style="height: auto;width:
80%;margin-left: 10%;border: 1px solid black;border-radius:5px;">
<p style="font-size: 25px;font-weight: 700;padding-left: 25px;"><
%=rs.getString("TrainName")%> / <%=rs.getString("TrainNo")%></p>
<p style="font-size: 25px;font-weight: 700;padding-left: 25px;">₹ <
%=rs.getString("Price")%> <span style="margin-left: 50%;"> Running date: All
days</span></p>
<p style="font-size: 25px;font-weight: 700;padding-left: 25px;">Starting Time
: <%=rs.getString("startingTime")%> <span style="margin-left: 32%;"> Ending Time : <
%=rs.getString("endingTime")%></span></p>
</div></a>
<% } %>
</div>
</div>
</div>
</body>
</html>

IRCTC_CLONE/build/web/user/bookinghi.jsp
Lines: 107 | Size: 3.4 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Booking
Hi</h1>
<table class="table table-bordered">
<tr>
<th>
Name
</th>
<th>
Age
</th>
<th>
Journy Date
</th>
<th>
Price
</th>
<th>
Train Name
</th>
<th>
Pnr
</th>
<th>
From
</th>
<th>
To
</th>
<th>
Booking Date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from bookingrecord left join train_details on
bookingrecord.trainid=train_details.id where userid='"+userId+"'");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("name")%>
</td>
<td>
<%=rs.getString("age")%>
</td>
<td>
<%=rs.getString("doj")%>
</td>
<td>
<%=rs.getString("price")%>
</td>
<td>
<%=rs.getString("trainName")%>
</td>
<td>
<%=rs.getString("pnr")%>
</td>
<td>
<%=rs.getString("startingStation")%>
</td>
<td>
<%=rs.getString("endingStation")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/user/booknow.jsp
Lines: 43 | Size: 1.3 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
String id=request.getParameter("id");
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<div class="row">
<div class="col-sm-12">
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="booknow">
<input type="hidden" name="trainid" value="<%out.print(id);%>">
<input type="text" name="name" placeholder="Enter name">
<input type="text" name="age" placeholder="Enter age">
<input type="date" name="date">
<button type="submit">Submit</button>
</form>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/user/changeP.jsp
Lines: 17 | Size: 0.6 KB

<%@page import="dbpack.DbManager"%>
<%
String oldPass=request.getParameter("oldPass");
String password=request.getParameter("password");
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(

"update registration set password='"+password+"' where mobile='"+userId+"' and


password='"+oldPass+"'"))
{
out.print("<script>alert('updated');window.location.href='userHome.jsp'</script>");
}
else
{
out.print("<script>alert('error');window.location.href='changePassword.jsp'</script>");
}
%>

IRCTC_CLONE/build/web/user/changePassword.jsp
Lines: 48 | Size: 1.6 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--change password form design-->
<form action="changeP.jsp" method="post">
<input type="hidden" name="page" value="login"/>
<table class=" w-100 mx-auto rounded-5">
<tr>
<td><h2 class="text-center text-white mb-3 fw-bold">Change
Password</h2></td>
</tr>
<tr>
<td><input type="text" name="oldPass" class="form-control my-1"
placeholder="Enter old password"></td>
</tr>

<tr>
<td><input type="password" name="password" class="form-control my-1"
placeholder="Password"></td>
</tr>
<tr>
<td><button value="submit" class="btn form-control my-1 fw-bold text-white"
style="background-color: orangered;">Submit</button></td>
</tr>
</table>
</form>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/user/controller.jsp
Lines: 25 | Size: 0.9 KB

<%@page import="java.util.Random"%>
<%@page import="dbpack.DbManager"%>
<%
String userId=session.getAttribute("userId").toString();
String name=request.getParameter("name");
String age=request.getParameter("age");
String date=request.getParameter("date");
String trainid=request.getParameter("trainid");
Random rm=new Random();
int fn=rm.nextInt(1000);
String fnrand=Integer.toString(fn);
String pnr=trainid+userId+age+fnrand;
out.print(pnr);
String query="insert into bookingrecord(name,age,doj,trainid,userid,pnr,date)
values('"+name+"','"+age+"','"+date+"','"+trainid+"','"+userId+"','"+pnr+"',now())";
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(query))
{
session.setAttribute("pnr", pnr);
response.sendRedirect("payment.jsp");
}
else
{
out.print("<script>alert('Something Went Wrong Please Try
Again');window.location.href='../index.jsp';</script>");
}
%>

IRCTC_CLONE/build/web/user/header.jsp
Lines: 6 | Size: 0.5 KB

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"

integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/
5mcr" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"

integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck
+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="../css/style.css">

IRCTC_CLONE/build/web/user/logout.jsp
Lines: 5 | Size: 0.1 KB

<%
session.removeAttribute("userId");
session.invalidate();
response.sendRedirect("../login.jsp");
%>

IRCTC_CLONE/build/web/user/navbaar.jsp
Lines: 31 | Size: 1.2 KB
<div class="row">
<div class="col-sm-12">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="userHome.jsp">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="profile.jsp">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bookinghi.jsp">Booking Hi</a>
</li>
<li class="nav-item">
<a class="nav-link" href="changePassword.jsp">Change Password</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.jsp">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>

IRCTC_CLONE/build/web/user/payment.jsp
Lines: 32 | Size: 0.8 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<a href="paymentScript.jsp?status=Success" class="btn btn-success">Payment
Success</a>
<a href="paymentScript.jsp?status=Failed" class="btn btn-danger">Payment
Failed</a>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/user/paymentScript.jsp
Lines: 25 | Size: 0.7 KB

<%@page import="dbpack.DbManager"%>
<%
String status=request.getParameter("status");
String pnr=session.getAttribute("pnr").toString();
out.print(pnr);
out.print(status);
String query="update bookingrecord set payment='"+status+"' where pnr='"+pnr+"'";
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(query))
{
session.removeAttribute("pnr");
if(status.equals("Success"))
{
out.print("<script>alert('Booking Success');window.location.href='../index.jsp';</script>");
}
else
{
out.print("<script>alert('Booking Failed');window.location.href='../index.jsp';</script>");
}
}
else
{
out.print("<script>alert('Something Went Wrong Please Try
Again');window.location.href='../index.jsp';</script>");
}
%>
IRCTC_CLONE/build/web/user/profile.jsp
Lines: 83 | Size: 2.5 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Profile</h1>
<table class="table table-bordered">
<tr>
<th>
Name
</th>
<th>
Mobile number
</th>
<th>
Mail
</th>
<th>
Dob
</th>
<th>
Date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from registration where mobile='"+userId+"'");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("FullName")%>
</td>
<td>
<%=rs.getString("mobile")%>
</td>
<td>
<%=rs.getString("mail")%>
</td>
<td>
<%=rs.getString("DateOfBirth")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/build/web/user/userHome.jsp
Lines: 30 | Size: 0.6 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/nbproject/ant-deploy.xml
Lines: 38 | Size: 2.0 KB

<?xml version="1.0" encoding="UTF-8"?>


<project default="-deploy-ant" basedir=".">
<target name="-init" if="deploy.ant.enabled">
<property file="${deploy.ant.properties.file}"/>
<tempfile property="temp.module.folder" prefix="tomcat" destdir="$
{java.io.tmpdir}"/>
<unwar src="${deploy.ant.archive}" dest="${temp.module.folder}">
<patternset includes="META-INF/context.xml"/>
</unwar>
<xmlproperty file="${temp.module.folder}/META-INF/context.xml"/>
<delete dir="${temp.module.folder}"/>
</target>
<target name="-check-credentials" if="deploy.ant.enabled" depends="-init">
<fail message="Tomcat password has to be passed as tomcat.password property.">
<condition>
<not>
<isset property="tomcat.password"/>
</not>
</condition>
</fail>
</target>
<target name="-deploy-ant" if="deploy.ant.enabled" depends="-init,-check-
credentials">
<echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/>
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"
classpath="${tomcat.home}/server/lib/catalina-ant.jar"/>
<deploy url="${tomcat.url}/manager" username="${tomcat.username}"
password="${tomcat.password}" path="${Context(path)}"
war="${deploy.ant.archive}"/>
<property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/>
</target>
<target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init,-check-
credentials">
<echo message="Undeploying ${Context(path)}"/>
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"
classpath="${tomcat.home}/server/lib/catalina-ant.jar"/>
<undeploy url="${tomcat.url}/manager" username="${tomcat.username}"
password="${tomcat.password}" path="${Context(path)}"/>
</target>
</project>

IRCTC_CLONE/nbproject/build-impl.xml
Lines: 1445 | Size: 79.7 KB

<?xml version="1.0" encoding="UTF-8"?>


<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***

For the purpose of easier reading the script


is divided into following sections:
- initialization
- compilation
- dist
- execution
- debugging
- javadoc
- test compilation
- test execution
- test debugging
- cleanup

-->
<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1"
xmlns:webproject2="http://www.netbeans.org/ns/web-project/2"
xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".."
default="default" name="IRCTC_CLONE-impl">
<import file="ant-deploy.xml"/>
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<target depends="dist,javadoc" description="Build whole project." name="default"/>
<!--
INITIALIZATION SECTION
-->
<target name="-pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init" name="-init-private">
<property file="nbproject/private/private.properties"/>
</target>
<target depends="-pre-init,-init-private" name="-init-user">
<property file="${user.properties.file}"/>
<!-- The two properties below are usually overridden -->
<!-- by the active platform. Just a fallback. -->
<property name="default.javac.source" value="1.4"/>
<property name="default.javac.target" value="1.4"/>
</target>
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
<property file="nbproject/project.properties"/>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property"
if="dist.ear.dir" name="-do-ear-init"/>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property"
name="-do-init">
<condition property="have.tests">
<or>
<available file="${test.src.dir}"/>
</or>
</condition>
<condition property="have.sources">
<or>
<available file="${src.dir}"/>
</or>
</condition>
<condition property="netbeans.home+have.tests">
<and>
<isset property="netbeans.home"/>
<isset property="have.tests"/>
</and>
</condition>
<condition property="no.javadoc.preview">
<isfalse value="${javadoc.preview}"/>
</condition>
<property name="javac.compilerargs" value=""/>
<condition property="no.deps">
<and>
<istrue value="${no.dependencies}"/>
</and>
</condition>
<condition property="no.dist.ear.dir">
<not>
<isset property="dist.ear.dir"/>
</not>
</condition>
<property name="build.web.excludes" value="${build.classes.excludes}"/>
<condition property="do.compile.jsps">
<istrue value="${compile.jsps}"/>
</condition>
<condition property="do.debug.server">
<or>
<not>
<isset property="debug.server"/>
</not>
<istrue value="${debug.server}"/>
<and>
<not>
<istrue value="${debug.server}"/>
</not>
<not>
<istrue value="${debug.client}"/>
</not>
</and>
</or>
</condition>
<condition property="do.debug.client">
<istrue value="${debug.client}"/>
</condition>
<condition property="do.display.browser">
<istrue value="${display.browser}"/>
</condition>
<condition property="do.display.browser.debug.old">
<and>
<isset property="do.display.browser"/>
<not>
<isset property="do.debug.client"/>
</not>
<not>
<isset property="browser.context"/>
</not>
</and>
</condition>
<condition property="do.display.browser.debug">
<and>
<isset property="do.display.browser"/>
<not>
<isset property="do.debug.client"/>
</not>
<isset property="browser.context"/>
</and>
</condition>
<available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
<available file="${persistence.xml.dir}/persistence.xml"
property="has.persistence.xml"/>
<condition property="do.war.package.with.custom.manifest">
<isset property="has.custom.manifest"/>
</condition>
<condition property="do.war.package.without.custom.manifest">
<not>
<isset property="has.custom.manifest"/>
</not>
</condition>
<condition property="do.tmp.war.package.with.custom.manifest">
<and>
<isset property="has.custom.manifest"/>
<or>
<isfalse value="${directory.deployment.supported}"/>
<isset property="dist.ear.dir"/>
</or>
</and>
</condition>
<condition property="do.tmp.war.package.without.custom.manifest">
<and>
<not>
<isset property="has.custom.manifest"/>
</not>
<or>
<isfalse value="${directory.deployment.supported}"/>
<isset property="dist.ear.dir"/>
</or>
</and>
</condition>
<condition property="do.tmp.war.package">
<or>
<isfalse value="${directory.deployment.supported}"/>
<isset property="dist.ear.dir"/>
</or>
</condition>
<property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
<condition else="" property="application.args.param" value="${application.args}">
<and>
<isset property="application.args"/>
<not>
<equals arg1="${application.args}" arg2="" trim="true"/>
</not>
</and>
</condition>
<property name="source.encoding" value="${file.encoding}"/>
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
<and>
<isset property="javadoc.encoding"/>
<not>
<equals arg1="${javadoc.encoding}" arg2=""/>
</not>
</and>
</condition>
<property name="javadoc.encoding.used" value="${source.encoding}"/>
<property name="includes" value="**"/>
<property name="excludes" value=""/>
<property name="runmain.jvmargs" value=""/>
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-
Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
<and>
<isset property="endorsed.classpath"/>
<length length="0" string="${endorsed.classpath}" when="greater"/>
</and>
</condition>
<condition else="false" property="jdkBug6558476">
<and>
<matches pattern="1\.[56]" string="${java.specification.version}"/>
<not>
<os family="unix"/>
</not>
</and>
</condition>
<property name="javac.fork" value="${jdkBug6558476}"/>
<condition property="junit.available">
<or>
<available classname="org.junit.Test" classpath="${run.test.classpath}"/>
<available classname="junit.framework.Test" classpath="$
{run.test.classpath}"/>
</or>
</condition>
<condition property="testng.available">
<available classname="org.testng.annotations.Test" classpath="$
{run.test.classpath}"/>
</condition>
<condition property="junit+testng.available">
<and>
<istrue value="${junit.available}"/>
<istrue value="${testng.available}"/>
</and>
</condition>
<condition else="testng" property="testng.mode" value="mixed">
<istrue value="${junit+testng.available}"/>
</condition>
<condition else="" property="testng.debug.mode" value="-mixed">
<istrue value="${junit+testng.available}"/>
</condition>
</target>
<target depends="init" name="-init-cos" unless="deploy.on.save">
<condition property="deploy.on.save" value="true">
<or>
<istrue value="${j2ee.deploy.on.save}"/>
<istrue value="${j2ee.compile.on.save}"/>
</or>
</condition>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-
check">
<fail unless="src.dir">Must set src.dir</fail>
<fail unless="test.src.dir">Must set test.src.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="build.web.dir">Must set build.web.dir</fail>
<fail unless="build.generated.dir">Must set build.generated.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
<fail unless="dist.war">Must set dist.war</fail>
<condition property="missing.j2ee.server.home">
<and>
<matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
<not>
<isset property="j2ee.server.home"/>
</not>
</and>
</condition>
<fail if="missing.j2ee.server.home">
The Java EE server classpath is not correctly set up - server home directory is missing.
Either open the project in the IDE and assign the server or setup the server classpath
manually.
For example like this:
ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
</fail>
<fail unless="j2ee.platform.classpath">
The Java EE server classpath is not correctly set up. Your active server type is $
{j2ee.server.type}.
Either open the project in the IDE and assign the server or setup the server classpath
manually.
For example like this:
ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property
"j2ee.platform.classpath" in a .properties file)
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
</fail>
</target>
<target name="-init-macrodef-property">
<macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
</target>
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-
macrodef-javac-with-processors">
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}"
name="classpath"/>
<attribute default="${javac.processorpath}" name="processorpath"/>
<attribute default="${build.generated.sources.dir}/ap-source-output"
name="apgeneratedsrcdir"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<attribute default="${empty.dir}" name="gensrcdir"/>
<element name="customize" optional="true"/>
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<mkdir dir="@{apgeneratedsrcdir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}"
destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="$
{javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}"
srcdir="@{srcdir}" target="${javac.target}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
</dirset>
</src>
<classpath>
<path path="@{classpath}"/>
</classpath>
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line="${javac.compilerargs}"/>
<compilerarg value="-processorpath"/>
<compilerarg path="@{processorpath}:${empty.dir}"/>
<compilerarg line="${ap.processors.internal}"/>
<compilerarg value="-s"/>
<compilerarg path="@{apgeneratedsrcdir}"/>
<compilerarg line="${ap.proc.none.internal}"/>
<customize/>
</javac>
</sequential>
</macrodef>
</target>
<target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-
processors" unless="ap.supported.internal">
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}"
name="classpath"/>
<attribute default="${javac.processorpath}" name="processorpath"/>
<attribute default="${build.generated.sources.dir}/ap-source-output"
name="apgeneratedsrcdir"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<attribute default="${empty.dir}" name="gensrcdir"/>
<element name="customize" optional="true"/>
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}"
destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}"
includeantruntime="false" includes="@{includes}" source="${javac.source}"
srcdir="@{srcdir}" target="${javac.target}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
</dirset>
</src>
<classpath>
<path path="@{classpath}"/>
</classpath>
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line="${javac.compilerargs}"/>
<customize/>
</javac>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-
processors" name="-init-macrodef-javac">
<macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}"
name="classpath"/>
<sequential>
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="$
{excludes}" includes="${includes}" srcdir="@{srcdir}">
<classpath>
<path path="@{classpath}"/>
</classpath>
</depend>
</sequential>
</macrodef>
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${build.classes.dir}" name="destdir"/>
<sequential>
<fail unless="javac.includes">Must set javac.includes</fail>
<pathconvert pathsep="${line.separator}" property="javac.includes.binary">
<path>
<filelist dir="@{destdir}" files="${javac.includes}"/>
</path>
<globmapper from="*.java" to="*.class"/>
</pathconvert>
<tempfile deleteonexit="true" property="javac.includesfile.binary"/>
<echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
<delete>
<files includesfile="${javac.includesfile.binary}"/>
</delete>
<delete file="${javac.includesfile.binary}"/>
</sequential>
</macrodef>
</target>
<target if="${junit.available}" name="-init-macrodef-junit-init">
<condition else="false" property="nb.junit.batch" value="true">
<and>
<istrue value="${junit.available}"/>
<not>
<isset property="test.method"/>
</not>
</and>
</condition>
<condition else="false" property="nb.junit.single" value="true">
<and>
<istrue value="${junit.available}"/>
<isset property="test.method"/>
</and>
</condition>
</target>
<target name="-init-test-properties">
<property name="test.binaryincludes" value="&lt;nothing&gt;"/>
<property name="test.binarytestincludes" value=""/>
<property name="test.binaryexcludes" value=""/>
</target>
<target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="$
{nb.junit.batch}">
<macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed"
fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
<test methods="@{testmethods}" name="@{testincludes}" todir="$
{build.test.results.dir}"/>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-
junit-batch" unless="${nb.junit.single}">
<macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<property name="run.jvmargs.ide" value=""/>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed"
fork="true" showoutput="true" tempdir="${build.dir}">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
<filename name="@{testincludes}"/>
</fileset>
<fileset dir="${build.test.classes.dir}" excludes="@{excludes},$
{excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
<filename name="${test.binarytestincludes}"/>
</fileset>
</batchtest>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<jvmarg line="${run.jvmargs.ide}"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-
batch" if="${junit.available}" name="-init-macrodef-junit"/>
<target if="${testng.available}" name="-init-macrodef-testng">
<macrodef name="testng" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<condition else="" property="testng.methods.arg"
value="@{testincludes}.@{testmethods}">
<isset property="test.method"/>
</condition>
<union id="test.set">
<fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}"
includes="@{includes}">
<filename name="@{testincludes}"/>
</fileset>
</union>
<taskdef classname="org.testng.TestNGAntTask" classpath="$
{run.test.classpath}" name="testng"/>
<testng classfilesetref="test.set" failureProperty="tests.failed"
listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}"
mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="IRCTC_CLONE"
testname="TestNG tests" workingDir="${basedir}">
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
<propertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</propertyset>
<customize/>
</testng>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-test-impl">
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<echo>No tests executed.</echo>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-
junit-impl">
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<webproject2:junit excludes="@{excludes}" includes="@{includes}"
testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize/>
</webproject2:junit>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-
testng-impl">
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<webproject2:testng excludes="@{excludes}" includes="@{includes}"
testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize/>
</webproject2:testng>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-
impl" name="-init-macrodef-test">
<macrodef name="test" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<sequential>
<webproject2:test-impl excludes="@{excludes}" includes="@{includes}"
testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize>
<classpath>
<path path="${run.test.classpath}:${j2ee.platform.classpath}:$
{j2ee.platform.embeddableejb.classpath}"/>
</classpath>
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${runmain.jvmargs}"/>
</customize>
</webproject2:test-impl>
</sequential>
</macrodef>
</target>
<target if="${junit.available}" name="-init-macrodef-junit-debug" unless="$
{nb.junit.batch}">
<macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed"
fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
<test methods="@{testmethods}" name="@{testincludes}" todir="$
{build.test.results.dir}"/>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=$
{jpda.address}"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-
junit-debug-batch">
<macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<property name="run.jvmargs.ide" value=""/>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed"
fork="true" showoutput="true" tempdir="${build.dir}">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
<filename name="@{testincludes}"/>
</fileset>
<fileset dir="${build.test.classes.dir}" excludes="@{excludes},$
{excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
<filename name="${test.binarytestincludes}"/>
</fileset>
</batchtest>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<jvmarg line="${run.jvmargs.ide}"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=$
{jpda.address}"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="$
{junit.available}" name="-init-macrodef-junit-debug-impl">
<macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<webproject2:junit-debug excludes="@{excludes}" includes="@{includes}"
testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize/>
</webproject2:junit-debug>
</sequential>
</macrodef>
</target>
<target if="${testng.available}" name="-init-macrodef-testng-debug">
<macrodef name="testng-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<element name="customize2" optional="true"/>
<sequential>
<condition else="-testclass @{testClass}" property="test.class.or.method"
value="-methods @{testClass}.@{testMethod}">
<isset property="test.method"/>
</condition>
<condition else="-suitename IRCTC_CLONE -testname @{testClass} $
{test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
<matches pattern=".*\.xml" string="@{testClass}"/>
</condition>
<delete dir="${build.test.results.dir}" quiet="true"/>
<mkdir dir="${build.test.results.dir}"/>
<webproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG"
classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
<customize>
<customize2/>
<jvmarg value="-ea"/>
<arg line="${testng.debug.mode}"/>
<arg line="-d ${build.test.results.dir}"/>
<arg line="-listener org.testng.reporters.VerboseReporter"/>
</customize>
</webproject1:debug>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-
macrodef-testng-debug-impl">
<macrodef name="testng-debug-impl"
uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<element implicit="true" name="customize2" optional="true"/>
<sequential>
<webproject2:testng-debug testClass="@{testClass}"
testMethod="@{testMethod}">
<customize2/>
</webproject2:testng-debug>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-
macrodef-test-debug-junit">
<macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<sequential>
<webproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}"
testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize>
<classpath>
<path path="${run.test.classpath}:${j2ee.platform.classpath}:$
{j2ee.platform.embeddableejb.classpath}"/>
</classpath>
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${runmain.jvmargs}"/>
</customize>
</webproject2:test-debug-impl>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-
init-macrodef-test-debug-testng">
<macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<sequential>
<webproject2:testng-debug-impl testClass="@{testClass}"
testMethod="@{testMethod}">
<customize2>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
</customize2>
</webproject2:testng-debug-impl>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng"
name="-init-macrodef-test-debug"/>
<target name="-init-macrodef-java">
<macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${runmain.jvmargs}"/>
<classpath>
<path path="@{classpath}:${j2ee.platform.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-nbjsdebug">
<macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${client.url}" name="webUrl"/>
<sequential>
<nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
</sequential>
</macrodef>
</target>
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="name"/>
<attribute default="${debug.classpath}:${j2ee.platform.classpath}"
name="classpath"/>
<sequential>
<nbjpdastart addressproperty="jpda.address" name="@{name}" transport="$
{debug-transport}">
<classpath>
<path path="@{classpath}"/>
</classpath>
</nbjpdastart>
</sequential>
</macrodef>
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${build.classes.dir}" name="dir"/>
<sequential>
<nbjpdareload>
<fileset dir="@{dir}" includes="${fix.classes}">
<include name="${fix.includes}*.class"/>
</fileset>
</nbjpdareload>
</sequential>
</macrodef>
<macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-
project/1">
<sequential>
<nbjpdaappreloaded/>
</sequential>
</macrodef>
</target>
<target name="-init-debug-args">
<property name="version-output" value="java version &quot;${ant.java.version}"/>
<condition property="have-jdk-older-than-1.4">
<or>
<contains string="${version-output}" substring="java version &quot;1.0"/>
<contains string="${version-output}" substring="java version &quot;1.1"/>
<contains string="${version-output}" substring="java version &quot;1.2"/>
<contains string="${version-output}" substring="java version &quot;1.3"/>
</or>
</condition>
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -
Djava.compiler=none">
<istrue value="${have-jdk-older-than-1.4}"/>
</condition>
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
<os family="windows"/>
</condition>
<condition else="${debug-transport-by-os}" property="debug-transport" value="$
{debug.transport}">
<isset property="debug.transport"/>
</condition>
</target>
<target depends="-init-debug-args" name="-init-macrodef-debug">
<macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}:${j2ee.platform.classpath}"
name="classpath"/>
<attribute default="${application.args.param}" name="args"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=$
{jpda.address}"/>
<jvmarg line="${runmain.jvmargs}"/>
<classpath>
<path path="@{classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<arg line="@{args}"/>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-taskdefs">
<fail unless="libs.CopyLibs.classpath">
The libs.CopyLibs.classpath property is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
of NetBeans IDE installation and is usually located at
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-
copylibstask.jar
</fail>
<taskdef classpath="${libs.CopyLibs.classpath}"
resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
</target>
<target name="-init-ap-cmdline-properties">
<property name="annotation.processing.enabled" value="true"/>
<property name="annotation.processing.processors.list" value=""/>
<property name="annotation.processing.run.all.processors" value="true"/>
<property name="javac.processorpath" value="${javac.classpath}"/>
<property name="javac.test.processorpath" value="${javac.test.classpath}"/>
<condition property="ap.supported.internal" value="true">
<not>
<matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
</not>
</condition>
</target>
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-
cmdline-supported">
<condition else="" property="ap.processors.internal" value="-processor $
{annotation.processing.processors.list}">
<isfalse value="${annotation.processing.run.all.processors}"/>
</condition>
<condition else="" property="ap.proc.none.internal" value="-proc:none">
<isfalse value="${annotation.processing.enabled}"/>
</condition>
</target>
<target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-
ap-cmdline">
<property name="ap.cmd.line.internal" value=""/>
</target>
<!--
pre NB7.2 profiling section; consider it deprecated
-->
<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check"
if="profiler.info.jvmargs.agent" name="profile-init"/>
<target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target if="profiler.info.jvmargs.agent" name="-profile-post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent"
name="-profile-init-check">
<fail unless="profiler.info.jvm">Must set JVM to use for profiling in
profiler.info.jvm</fail>
<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in
profiler.info.jvmargs.agent</fail>
</target>
<!--
end of pre NB7.2 profiling section
-->
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-
check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-
debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-
debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
<!--
COMPILATION SECTION
-->
<target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
<target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
<target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar"
unless="no.deps"/>
<target depends="init,deps-jar" name="-pre-pre-compile">
<mkdir dir="${build.classes.dir}"/>
</target>
<target name="-pre-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-copy-webdir">
<copy todir="${build.web.dir}">
<fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}"
includes="${includes}"/>
</copy>
<copy todir="${build.web.dir}/WEB-INF">
<fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
</copy>
</target>
<target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-
persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest"
if="have.sources" name="-do-compile">
<webproject2:javac destdir="${build.classes.dir}" gensrcdir="$
{build.generated.sources.dir}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
</copy>
</target>
<target if="has.custom.manifest" name="-copy-manifest">
<mkdir dir="${build.meta.inf.dir}"/>
<copy todir="${build.meta.inf.dir}">
<fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
</copy>
</target>
<target if="has.persistence.xml" name="-copy-persistence-xml">
<mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
<copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
<fileset dir="${persistence.xml.dir}" includes="persistence.xml orm.xml"/>
</copy>
</target>
<target name="-post-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile"
description="Compile project." name="compile"/>
<target name="-pre-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
<fail unless="javac.includes">Must select some files in the IDE or set
javac.includes</fail>
<webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}"
includes="${javac.includes}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-
post-compile-single" name="compile-single"/>
<property name="jspc.schemas" value="/resources/schemas/"/>
<property name="jspc.dtds" value="/resources/dtds/"/>
<target depends="compile" description="Test compile JSP pages to expose compilation
errors." if="do.compile.jsps" name="compile-jsps">
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true"
fork="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-schemas ${jspc.schemas}"/>
<arg value="-dtds ${jspc.dtds}"/>
<arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/>
<arg value="-javaEncoding ${source.encoding}"/>
<arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
<classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:$
{libs.jsp-compilation.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:
${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes"
srcdir="${build.generated.dir}/src"/>
</target>
<target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
<fail unless="javac.jsp.includes">Must select some files in the IDE or set
javac.jsp.includes</fail>
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspCSingle"
failonerror="true" fork="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-schemas ${jspc.schemas}"/>
<arg value="-dtds ${jspc.dtds}"/>
<arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
<arg value="-jspc.files"/>
<arg path="${jsp.includes}"/>
<arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/>
<arg value="-javaEncoding ${source.encoding}"/>
<classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:$
{libs.jsp-compilation.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:
${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes"
srcdir="${build.generated.dir}/src">
<customize>
<patternset includes="${javac.jsp.includes}"/>
</customize>
</webproject2:javac>
</target>
<target name="compile-single-jsp">
<fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
<antcall target="-do-compile-single-jsp"/>
</target>
<!--
DIST BUILDING SECTION
-->
<target name="-pre-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,compile-jsps,-pre-dist"
if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,$
{dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist"
if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="$
{build.meta.inf.dir}/MANIFEST.MF">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,$
{dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist"
if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,$
{dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist"
if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="$
{build.meta.inf.dir}/MANIFEST.MF">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,$
{dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-
without-manifest" name="do-dist"/>
<target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
<copyfiles files="${file.reference.com.mysql.jdbc_5.1.5.jar}" iftldtodir="$
{build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
<copyfiles files="${file.reference.com.mysql.jdbc_5.1.5.jar}" todir="$
{build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
<delete dir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-
manifest" if="do.tmp.war.package" name="do-ear-dist">
<dirname file="${dist.ear.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="$
{build.web.dir}/META-INF/MANIFEST.MF">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,$
{dist.archive.excludes}"/>
</jar>
</target>
<target name="-post-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution
(WAR)." name="dist"/>
<target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist"
description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
<!--
EXECUTION SECTION
-->
<target depends="run-deploy,run-display-browser" description="Deploy to server and
show in browser." name="run"/>
<target name="-pre-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-post-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-pre-nbmodule-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -
pre-run-deploy task instead. -->
</target>
<target name="-post-nbmodule-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -
post-run-deploy task instead. -->
</target>
<target name="-run-deploy-am">
<!-- Task to deploy to the Access Manager runtime. -->
</target>
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-
tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-
deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-
deploy,-post-run-deploy,-do-update-breakpoints" name="run-deploy"/>
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="$
{forceRedeploy}"/>
</target>
<target name="-init-deploy-ant" unless="netbeans.home">
<property name="deploy.ant.archive" value="${dist.war}"/>
<property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
<property name="deploy.ant.enabled" value="true"/>
</target>
<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-
undeploy"/>
<target if="netbeans.home" name="-run-undeploy-nb">
<fail message="Undeploy is not supported from within the IDE"/>
</target>
<target depends="init,-pre-dist,dist,-post-dist" name="verify">
<nbverify file="${dist.war}"/>
</target>
<target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-
browser-nb,-display-browser-cl" name="run-display-browser"/>
<target if="do.display.browser" name="-init-display-browser">
<condition property="do.display.browser.nb.old">
<and>
<isset property="netbeans.home"/>
<not>
<isset property="browser.context"/>
</not>
</and>
</condition>
<condition property="do.display.browser.nb">
<and>
<isset property="netbeans.home"/>
<isset property="browser.context"/>
</and>
</condition>
<condition property="do.display.browser.cl">
<isset property="deploy.ant.enabled"/>
</condition>
</target>
<target if="do.display.browser.nb.old" name="-display-browser-nb-old">
<nbbrowse url="${client.url}"/>
</target>
<target if="do.display.browser.nb" name="-display-browser-nb">
<nbbrowse context="${browser.context}" url="${client.url}" urlPath="$
{client.urlPart}"/>
</target>
<target if="do.display.browser.cl" name="-get-browser" unless="browser">
<condition property="browser" value="rundll32">
<os family="windows"/>
</condition>
<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
<os family="windows"/>
</condition>
<condition property="browser" value="/usr/bin/open">
<os family="mac"/>
</condition>
<property environment="env"/>
<condition property="browser" value="${env.BROWSER}">
<isset property="env.BROWSER"/>
</condition>
<condition property="browser" value="/usr/bin/firefox">
<available file="/usr/bin/firefox"/>
</condition>
<condition property="browser" value="/usr/local/firefox/firefox">
<available file="/usr/local/firefox/firefox"/>
</condition>
<condition property="browser" value="/usr/bin/mozilla">
<available file="/usr/bin/mozilla"/>
</condition>
<condition property="browser" value="/usr/local/mozilla/mozilla">
<available file="/usr/local/mozilla/mozilla"/>
</condition>
<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
<available file="/usr/sfw/lib/firefox/firefox"/>
</condition>
<condition property="browser" value="/opt/csw/bin/firefox">
<available file="/opt/csw/bin/firefox"/>
</condition>
<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
<available file="/usr/sfw/lib/mozilla/mozilla"/>
</condition>
<condition property="browser" value="/opt/csw/bin/mozilla">
<available file="/opt/csw/bin/mozilla"/>
</condition>
</target>
<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
<fail unless="browser">
Browser not found, cannot launch the deployed application. Try to set the
BROWSER environment variable.
</fail>
<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
<echo>Launching ${browse.url}</echo>
<exec executable="${browser}" spawn="true">
<arg line="${browser.args} ${browse.url}"/>
</exec>
</target>
<target depends="init,-init-cos,compile-single" name="run-main">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject1:java classname="${run.class}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-
main">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
</target>
<target depends="init" if="netbeans.home" name="-do-update-breakpoints">
<webproject1:nbjpdaappreloaded/>
</target>
<!--
DEBUGGING SECTION
-->
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-
tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE."
if="netbeans.home" name="debug">
<nbstartserver debugmode="true"/>
<antcall target="connect-debugger"/>
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true"
forceRedeploy="true"/>
<antcall target="debug-display-browser-old"/>
<antcall target="debug-display-browser"/>
<antcall target="connect-client-debugger"/>
</target>
<target if="do.debug.server" name="connect-debugger" unless="is.debugged">
<condition property="listeningcp" value="sourcepath">
<istrue value="${j2ee.compile.on.save}"/>
</condition>
<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="$
{listeningcp}" name="${name}" transport="${jpda.transport}">
<classpath>
<path path="${debug.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<sourcepath>
<path path="${web.docbase.dir}"/>
</sourcepath>
</nbjpdaconnect>
</target>
<target if="do.display.browser.debug.old" name="debug-display-browser-old">
<nbbrowse url="${client.url}"/>
</target>
<target if="do.display.browser.debug" name="debug-display-browser">
<nbbrowse context="${browser.context}" url="${client.url}" urlPath="$
{client.urlPart}"/>
</target>
<target if="do.debug.client" name="connect-client-debugger">
<webproject1:nbjsdebugstart webUrl="${client.url}"/>
</target>
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-
debuggee-main-test">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject1:debug classname="${debug.class}" classpath="$
{debug.test.classpath}"/>
</target>
<target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-
debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
<target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug"
if="netbeans.home" name="debug-single"/>
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="$
{debug.class}"/>
</target>
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
<webproject1:nbjpdastart name="${debug.class}"/>
</target>
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-
debuggee-single">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject1:debug classname="${debug.class}"/>
</target>
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-
single" if="netbeans.home" name="debug-single-main"/>
<target depends="init" name="-pre-debug-fix">
<fail unless="fix.includes">Must set fix.includes</fail>
<property name="javac.includes" value="${fix.includes}.java"/>
</target>
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-
debug-fix">
<webproject1:nbjpdareload/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-
fix"/>
<!--
=================
PROFILING SECTION
=================
-->
<!--
pre NB7.2 profiling section; consider it deprecated
-->
<target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent"
name="-profile-pre72">
<condition else="start-profiled-server" property="profiler.startserver.target"
value="start-profiled-server-extraargs">
<isset property="profiler.info.jvmargs.extra"/>
</condition>
<antcall target="${profiler.startserver.target}"/>
<antcall target="run"/>
<antcall target="-profile-start-loadgen"/>
</target>
<target if="profiler.info.jvmargs.agent" name="start-profiled-server">
<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}"
javaPlatform="${profiler.info.javaPlatform}" startupTimeout="$
{profiler.j2ee.serverStartupTimeout}">
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg value="${profiler.j2ee.agentID}"/>
</nbstartprofiledserver>
</target>
<target if="profiler.info.jvmargs.agent" name="start-profiled-server-extraargs">
<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}"
javaPlatform="${profiler.info.javaPlatform}" startupTimeout="$
{profiler.j2ee.serverStartupTimeout}">
<jvmarg value="${profiler.info.jvmargs.extra}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg value="${profiler.j2ee.agentID}"/>
</nbstartprofiledserver>
</target>
<target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent"
name="-profile-test-single-pre72">
<fail unless="netbeans.home">This target only works when run from inside the
NetBeans IDE.</fail>
<nbprofiledirect>
<classpath>
<path path="${run.test.classpath}"/>
<path path="${j2ee.platform.classpath}"/>
</classpath>
</nbprofiledirect>
<junit dir="${profiler.info.dir}" errorproperty="tests.failed"
failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:$
{profiler.current.path}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
<test name="${profile.class}"/>
<classpath>
<path path="${run.test.classpath}"/>
<path path="${j2ee.platform.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
</junit>
</target>
<target if="netbeans.home" name="-profile-check">
<condition property="profiler.configured">
<or>
<contains casesensitive="true" string="${run.jvmargs.ide}" substring="-
agentpath:"/>
<contains casesensitive="true" string="${run.jvmargs.ide}" substring="-
javaagent:"/>
</or>
</condition>
</target>
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-
tmp-dist-with-manifest,-do-tmp-dist-without-manifest" name="-do-profile">
<startprofiler/>
<nbstartserver profilemode="true"/>
<nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true"
profilemode="true"/>
<antcall target="debug-display-browser-old"/>
<antcall target="debug-display-browser"/>
<antcall target="-profile-start-loadgen"/>
</target>
<target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the
IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
<antcall target="-do-profile"/>
</target>
<target depends="-profile-test-single-pre72" name="profile-test-single"/>
<target depends="-profile-check" if="profiler.configured" name="profile-test"
unless="profiler.info.jvmargs.agent">
<startprofiler/>
<antcall target="test-single"/>
</target>
<target if="profiler.loadgen.path" name="-profile-start-loadgen">
<loadgenstart path="${profiler.loadgen.path}"/>
</target>
<!--
JAVADOC SECTION
-->
<target depends="init" if="have.sources" name="javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}"
charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="$
{javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="$
{javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="$
{javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}"
useexternalfile="true" version="${javadoc.version}" windowtitle="$
{javadoc.windowtitle}">
<classpath>
<path path="${javac.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/>
</fileset>
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
<include name="**/*.java"/>
</fileset>
</javadoc>
<copy todir="${dist.javadoc.dir}">
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/doc-files/**"/>
</fileset>
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
<include name="**/doc-files/**"/>
</fileset>
</copy>
</target>
<target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse"
unless="no.javadoc.preview">
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
</target>
<target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc."
name="javadoc"/>
<!--

TEST COMPILATION SECTION


-->
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
<mkdir dir="${build.test.classes.dir}"/>
<property name="j2ee.platform.embeddableejb.classpath" value=""/>
</target>
<target name="-pre-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests"
name="-do-compile-test">
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:$
{j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}"
srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-
post-compile-test" name="compile-test"/>
<target name="-pre-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single"
if="have.tests" name="-do-compile-test-single">
<fail unless="javac.includes">Must select some files in the IDE or set
javac.includes</fail>
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:$
{j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}"
excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-
test-single,-post-compile-test-single" name="compile-test-single"/>
<!--

TEST EXECUTION SECTION


-->
<target depends="init" if="have.tests" name="-pre-test-run">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
<webproject2:test includes="${includes}" testincludes="**/*Test.java"/>
</target>
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-
post-test-run">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details
above.</fail>
</target>
<target depends="init" if="have.tests" name="test-report"/>
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-
test-browse" description="Run unit tests." name="test"/>
<target depends="init" if="have.tests" name="-pre-test-run-single">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-
do-test-run-single">
<fail unless="test.includes">Must select some files in the IDE or set
test.includes</fail>
<webproject2:test excludes="" includes="${test.includes}" testincludes="$
{test.includes}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single"
if="have.tests" name="-post-test-run-single">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details
above.</fail>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-
test-run-single" description="Run single unit test." name="test-single"/>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-
do-test-run-single-method">
<fail unless="test.class">Must select some files in the IDE or set test.class</fail>
<fail unless="test.method">Must select some method in the IDE or set
test.method</fail>
<webproject2:test excludes="" includes="${javac.includes}" testincludes="$
{test.class}" testmethods="${test.method}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method"
if="have.tests" name="-post-test-run-single-method">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details
above.</fail>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-
method,-post-test-run-single-method" description="Run single unit test." name="test-single-
method"/>
<!--

TEST DEBUGGING SECTION


-->
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-
debug-start-debuggee-test">
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
<webproject2:test-debug excludes="" includes="${javac.includes}" testClass="$
{test.class}" testincludes="${javac.includes}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-
debug-start-debuggee-test-method">
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
<fail unless="test.method">Must select some method in the IDE or set
test.method</fail>
<webproject2:test-debug excludes="" includes="${javac.includes}" testClass="$
{test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="$
{test.method}"/>
</target>
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-
start-debugger-test">
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="$
{test.class}"/>
</target>
<target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-
test" name="debug-test"/>
<target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-
debuggee-test-method" name="debug-test-method"/>
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-
do-debug-fix-test">
<webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home"
name="debug-fix-test"/>
<!--

CLEANUP SECTION
-->
<target depends="init" name="deps-clean" unless="no.deps"/>
<target depends="init" name="do-clean">
<condition property="build.dir.to.clean" value="${build.web.dir}">
<isset property="dist.ear.dir"/>
</condition>
<property name="build.dir.to.clean" value="${build.web.dir}"/>
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
</delete>
<delete dir="${build.dir}"/>
<available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed"
type="dir"/>
<delete dir="${dist.dir}"/>
</target>
<target depends="do-clean" if="status.clean-failed" name="check-clean">
<echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib
- they are probably locked by the J2EE server. "/>
<echo level="info" message="To delete all files undeploy the module from Server
Registry in Runtime tab and then use Clean again."/>
</target>
<target depends="init" if="netbeans.home" name="undeploy-clean">
<nbundeploy failOnError="false" startServer="false"/>
</target>
<target name="-post-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean"
description="Clean build products." name="clean"/>
<target depends="clean" description="Clean build products." name="clean-ear"/>
</project>

IRCTC_CLONE/nbproject/genfiles.properties
Lines: 9 | Size: 0.5 KB

build.xml.data.CRC32=6e568cb8
build.xml.script.CRC32=6e51fc30
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as
build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for
you.
nbproject/build-impl.xml.data.CRC32=6e568cb8
nbproject/build-impl.xml.script.CRC32=cb628d33
nbproject/[email protected]

IRCTC_CLONE/nbproject/private/private.properties
Lines: 7 | Size: 0.5 KB

deploy.ant.properties.file=C:\\Users\\yuvra\\AppData\\Roaming\\NetBeans\\8.0\\
tomcat80.properties
j2ee.server.domain=C:/Users/yuvra/AppData/Roaming/NetBeans/8.0/apache-tomcat-
8.0.3.0_base
j2ee.server.home=C:/Program Files/Apache Software Foundation/Apache Tomcat 8.0.3
j2ee.server.instance=tomcat80:home=C:\\Program Files\\Apache Software Foundation\\
Apache Tomcat 8.0.3:base=apache-tomcat-8.0.3.0_base
selected.browser=Chrome
user.properties.file=C:\\Users\\yuvra\\AppData\\Roaming\\NetBeans\\8.0\\build.properties

IRCTC_CLONE/nbproject/private/private.xml
Lines: 28 | Size: 1.6 KB

<?xml version="1.0" encoding="UTF-8"?>


<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2"
lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/D:/IRCTC_CLONE/web/navbaar.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/user/navbaar.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/contact.jsp</file>
<file>file:/D:/IRCTC_CLONE/src/java/dbpack/DbManager.java</file>
<file>file:/D:/IRCTC_CLONE/web/login.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/user/profile.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/user/changePassword.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/user/changeP.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/ticket_booking.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/header.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/index.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/user/userHome.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/user/logout.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/gallary.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/controller.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/css/style.css</file>
<file>file:/D:/IRCTC_CLONE/web/user/header.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/registration.jsp</file>
<file>file:/D:/IRCTC_CLONE/web/admin/adminHome.jsp</file>
</group>
</open-files>
</project-private>

IRCTC_CLONE/nbproject/project.properties
Lines: 87 | Size: 3.7 KB

annotation.processing.enabled=true
annotation.processing.enabled.in.editor=true
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
build.classes.dir=${build.web.dir}/WEB-INF/classes
build.classes.excludes=**/*.java,**/*.form
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
build.web.dir=${build.dir}/web
build.web.excludes=${build.classes.excludes}
client.urlPart=
compile.jsps=false
conf.dir=${source.root}/conf
debug.classpath=${build.classes.dir}:${javac.classpath}
debug.test.classpath=\
${run.test.classpath}
display.browser=true
# Files to be excluded from distribution war
dist.archive.excludes=
dist.dir=dist
dist.ear.war=${dist.dir}/${war.ear.name}
dist.javadoc.dir=${dist.dir}/javadoc
dist.war=${dist.dir}/${war.name}
endorsed.classpath=\
${libs.javaee-endorsed-api-6.0.classpath}
excludes=
file.reference.com.mysql.jdbc_5.1.5.jar=C:\\Users\\yuvra\\OneDrive\\Desktop\\
com.mysql.jdbc_5.1.5.jar
includes=**
j2ee.compile.on.save=true
j2ee.copy.static.files.on.save=true
j2ee.deploy.on.save=true
j2ee.platform=1.7-web
j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/
lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-
storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/
catalina.jar:${j2ee.server.home}/lib/ecj-4.3.1.jar:${j2ee.server.home}/lib/el-api.jar:$
{j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:$
{j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:$
{j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:$
{j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:$
{j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:$
{j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:$
{j2ee.server.home}/lib/tomcat-spdy.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:$
{j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:$
{j2ee.server.home}/lib/websocket-api.jar
j2ee.server.type=Tomcat
jar.compress=false
javac.classpath=\
${file.reference.com.mysql.jdbc_5.1.5.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true
javac.deprecation=false
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.preview=true
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
lib.dir=${web.docbase.dir}/WEB-INF/lib
no.dependencies=false
persistence.xml.dir=${conf.dir}
platform.active=default_platform
resource.dir=setup
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
# Space-separated list of JVM arguments used when running a class with a main method or
a unit test
# (you may also define separate properties like run-sys-prop.name=value instead of -
Dname=value):
runmain.jvmargs=
source.encoding=UTF-8
source.root=src
src.dir=${source.root}/java
test.src.dir=test
war.content.additional=
war.ear.name=${war.name}
war.name=IRCTC_CLONE.war
web.docbase.dir=web
webinf.dir=web/WEB-INF

IRCTC_CLONE/nbproject/project.xml
Lines: 24 | Size: 0.9 KB

<?xml version="1.0" encoding="UTF-8"?>


<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.web.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/web-project/3">
<name>IRCTC_CLONE</name>
<minimum-ant-version>1.6.5</minimum-ant-version>
<web-module-libraries>
<library dirs="200">
<file>${file.reference.com.mysql.jdbc_5.1.5.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries>
<web-module-additional-libraries/>
<source-roots>
<root id="src.dir" name="Source Packages"/>
</source-roots>
<test-roots>
<root id="test.src.dir" name="Test Packages"/>
</test-roots>
</data>
</configuration>
</project>

IRCTC_CLONE/src/java/dbpack/DbManager.java
Lines: 65 | Size: 1.2 KB

package dbpack;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DbManager
{
Connection con=null;
PreparedStatement ps=null;
ResultSet rs=null;

public DbManager()
{
try
{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/irctc?
characterEncoding=utf-8","root","");
}
catch(ClassNotFoundException e1)
{
e1.printStackTrace();
}
catch(SQLException e2)
{
e2.printStackTrace();
}
}
public boolean insertUpdateDelete( String query)
{
try
{
ps=con.prepareStatement(query);
if(ps.executeUpdate()>0)
{
return true;
}
else
{
return false;
}
}
catch(SQLException e1)
{
return false;
}
}
public ResultSet select(String query)
{
try
{
ps=con.prepareStatement(query);
rs=ps.executeQuery();
}
catch(SQLException e)
{
e.printStackTrace();
}
return rs;
}
}

IRCTC_CLONE/web/META-INF/context.xml
Lines: 3 | Size: 0.1 KB

<?xml version="1.0" encoding="UTF-8"?>


<Context antiJARLocking="true" path="/IRCTC_CLONE"/>

IRCTC_CLONE/web/admin/add_Train.jsp
Lines: 65 | Size: 3.5 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 11:16:48 AM
Author : pc
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>

<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid" style="overflow: hidden;">

<jsp:include page="navbaar.jsp"/>
<div class="row">
<div class="col-sm-12">
<h2 style="text-align: center;color: white;background-color: brown;"
class="py-2 my-5">Add Train</h2>
<form action="controller.jsp" method="POST">
<input type="hidden" name="page" value="addT">
<table class="table table-border">
<tr>
<td style="text-align: center;">Enter Train Name</td>
<td><input type="text" name="TrainName" placeholder="Enter Train
Name" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train No.</td>
<td><input type="text" name="TrainNo" placeholder="Enter Train No."
style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Starting Point/Station</td>
<td><input type="text" name="StartingStation" placeholder="Enter
Train Starting Point/Station" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Ending Point/Station</td>
<td><input type="text" name="EndingStation" placeholder="Enter Train
Ending Point/Station" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Starting Time</td>
<td><input type="text" name="StartingTime" placeholder="Enter Train
Starting Time" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Enter Train Ending Time</td>
<td><input type="text" name="EndingTime" placeholder="Enter Train
Ending Time" style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td style="text-align: center;">Price</td>
<td><input type="text" name="Price" placeholder="Price"
style="width: 80%;padding: 10px;border-radius: 5px;"/></td>
</tr>
<tr>
<td colspan="2" class="text-center" style="margin: auto;"><input
type="submit" placeholder="Price" style="padding: 10px;border-radius: 5px; margin:
auto;" class="btn btn-success"/></td>
</tr>
</table>
</form>
</div>
</div>

</div>
</body>
</html>

IRCTC_CLONE/web/admin/adminHome.jsp
Lines: 101 | Size: 3.2 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Train
Details</h1>
<table class="table table-bordered">
<tr>
<th>
Train Name
</th>
<th>
Train No
</th>
<th>
Starting Station
</th>
<th>
Ending Station
</th>
<th>
Starting Time
</th>
<th>
Ending Time
</th>
<th>
price
</th>
<th>
date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from train_details");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("trainName")%>
</td>
<td>
<%=rs.getString("trainNo")%>
</td>
<td>
<%=rs.getString("startingStation")%>
</td>
<td>
<%=rs.getString("endingStation")%>
</td>
<td>
<%=rs.getString("startingTime")%>
</td>
<td>
<%=rs.getString("endingTime")%>
</td>
<td>
<%=rs.getString("price")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/web/admin/bookinghi.jsp
Lines: 107 | Size: 3.4 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Booking
Hi</h1>
<table class="table table-bordered">
<tr>
<th>
Name
</th>
<th>
Age
</th>
<th>
Journy Date
</th>
<th>
Price
</th>
<th>
Train Name
</th>
<th>
Pnr
</th>
<th>
From
</th>
<th>
To
</th>
<th>
Booking Date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from bookingrecord left join train_details on
bookingrecord.trainid=train_details.id");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("name")%>
</td>
<td>
<%=rs.getString("age")%>
</td>
<td>
<%=rs.getString("doj")%>
</td>
<td>
<%=rs.getString("price")%>
</td>
<td>
<%=rs.getString("trainName")%>
</td>
<td>
<%=rs.getString("pnr")%>
</td>
<td>
<%=rs.getString("startingStation")%>
</td>
<td>
<%=rs.getString("endingStation")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>
IRCTC_CLONE/web/admin/controller.jsp
Lines: 23 | Size: 1.0 KB

<%@page import="dbpack.DbManager"%>
<%
if(request.getParameter("page").equals("addT"))
{
String TrainName=request.getParameter("TrainName");
String TrainNo=request.getParameter("TrainNo");
String StartingStation=request.getParameter("StartingStation");
String EndingStation=request.getParameter("EndingStation");
String StartingTime=request.getParameter("StartingTime");
String EndingTime=request.getParameter("EndingTime");
String Price=request.getParameter("Price");
String query="INSERT INTO `train_details`(`trainName`, `trainNo`, `startingStation`,
`endingStation`, `startingTime`, `endingTime`, `price`, `date`) VALUES
('"+TrainName+"','"+TrainNo+"','"+StartingStation+"','"+EndingStation+"','"+StartingTime
+"','"+EndingTime+"','"+Price+"',now())";
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(query))
{
out.print("<script>alert('Inserted');window.location.href='add_Train.jsp';</script>");
}
else
{
out.print("<script>alert('Something Went Wrong Please Try
Again');window.location.href='add_Train.jsp';</script>");
}
}
%>

IRCTC_CLONE/web/admin/header.jsp
Lines: 6 | Size: 0.5 KB

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"

integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/
5mcr" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"

integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck
+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="../css/style.css">
IRCTC_CLONE/web/admin/logout.jsp
Lines: 5 | Size: 0.1 KB

<%
session.removeAttribute("userId");
session.invalidate();
response.sendRedirect("../login.jsp");
%>

IRCTC_CLONE/web/admin/navbaar.jsp
Lines: 28 | Size: 1.1 KB

<div class="row">
<div class="col-sm-12">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="adminHome.jsp">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bookinghi.jsp">Booking Hi</a>
</li>
<li class="nav-item">
<a class="nav-link" href="add_Train.jsp">Add Train</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.jsp">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>

IRCTC_CLONE/web/contact.jsp
Lines: 148 | Size: 8.0 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contact Us - IRCTC</title>
<jsp:include page="header.jsp"/>

<style>

</style>
</head>

<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">

<!-- navbar start -->


<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->

<!-- contact section -->

<div class="row ">


<div class="col-md-10 mx-auto">
<div class="row mt-5">

<h2 class="mt-5 p-4 text-center fw-bold" style="color:rgb(24, 24,


158);">CONTACT US</h2>

<div class="col-md-6 mb-4">


<div class="contact-card p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-ticket icon"></i> For Railway
Tickets Booked Through IRCTC</h4>
<p><strong>Customer Care Numbers:</strong> 14646 / 08044647999 /
08035734999</p>
<p><strong>Languages Supported:</strong> Hindi, English, Punjabi,
Bengali, Assamese, Odia,
Marathi, Gujarati, Tamil, Telugu, Kannada, Malayalam</p>
<p><strong>Enhanced Interface:</strong> <a
href="https://equery.irctc.co.in/"
target="_blank">https://equery.irctc.co.in/</a></p>
</div>
</div>

<div class="col-md-6 mb-4">


<div class="contact-card h-100 p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-info-circle icon"></i> General
Information</h4>
<p><strong>I-tickets/e-tickets:</strong> <a
href="https://equery.irctc.co.in/"
target="_blank">https://equery.irctc.co.in</a></p>
<p><strong>Cancellation of E-tickets:</strong> <a
href="mailto:[email protected]">[email protected]</a></p>
<p><strong>IRCTC iMudra Prepaid Wallet & Card:</strong> <a
href="https://equery.irctc.co.in/"
target="_blank">https://equery.irctc.co.in</a>
</p>
</div>
</div>

<div class="col-md-12 mb-3">


<div class="contact-card p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-credit-card icon"></i> IRCTC
Loyalty Credit Card Contact</h4>
<ul class="list-unstyled">
<li><strong>IRCTC-SBI</strong><br>Contact: 0124-39021212 /
18001801295<br>Email: <a

href="mailto:[email protected]">[email protected]</a></li>
<li class="mt-2"><strong>IRCTC-BOB</strong><br>Contact:
1800225100 /
18001031006<br>Email:
<a
href="mailto:[email protected]">[email protected]</a>
</li>
<li class="mt-2"><strong>IRCTC-HDFC</strong><br>Contact:
18002026161 /
18602676161<br>URL:
<a href="https://www.hdfcbank.com/personal/need-help/contact-us"
target="_blank">HDFC
Contact</a>
</li>
<li class="mt-2"><strong>IRCTC-RBL</strong><br>Contact: +91
2262327777 / +91
2271190900<br>Email: <a

href="mailto:[email protected]">[email protected]</a></li>
<li class="mt-2">For other queries: <a

href="mailto:[email protected]">[email protected]</a></li>
</ul>
</div>
</div>

<div class="col-md-12 mb-4">


<div class="contact-card p-4 rounded-5 shadow-lg">
<h4 class="fw-bold"><i class="fas fa-building icon"></i> Registered
Office - Corporate Office</h4>
<p>Indian Railway Catering and Tourism Corporation Ltd.,<br>
4th Floor, Tower-D, World Trade Centre,<br>
Nauroji Nagar, New Delhi-110029</p>
</div>
</div>
</div>
</div>
</div>
<!-- contact section end -->
<!-- footer start -->
<div class="row footer rounded-5 ">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal Chaurasiya
</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>

<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></
script>
</body>

</html>

IRCTC_CLONE/web/controller.jsp
Lines: 49 | Size: 1.5 KB

<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%
if(request.getParameter("page").equals("reg"))
{
String dob=request.getParameter("dob");
String name=request.getParameter("name");
String number=request.getParameter("number");
String password=request.getParameter("password");
String mail=request.getParameter("mail");
DbManager dm=new DbManager();
String query="insert into
registration(FullName,mobile,DateOfBirth,password,mail,status,date)
value('"+name+"','"+number+"','"+dob+"','"+password+"','"+mail+"','user',now())";
if(dm.insertUpdateDelete(query))
{
out.print("<script>alert('Inserted');window.location.href='login.jsp'</script>");
}
else
{
out.print("<script>alert('error');window.location.href='registration.jsp'</script>");
}
}
else if(request.getParameter("page").equals("login"))
{
String userId=request.getParameter("userId");
String password=request.getParameter("password");
String query="select * from registration where mobile='"+userId+"' and
password='"+password+"'";
DbManager dm=new DbManager();
ResultSet rs=dm.select(query);
if(rs.next())
{
if(rs.getString("status").equals("admin"))
{
session.setAttribute("userId",userId);
response.sendRedirect("admin/adminHome.jsp");
}
else
{
session.setAttribute("userId",userId);
response.sendRedirect("user/userHome.jsp");
}
}
else
{
out.print("<script>alert('invalid userid or
Password');window.location.href='login.jsp'</script>");
}

%>

IRCTC_CLONE/web/css/style.css
Lines: 83 | Size: 1.7 KB

body {
background-color:rgb(185, 185, 236);
font-family: popin;
}

.nav_bg {
background: linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));
}

.nav-link:hover {
background-color: rgb(14, 14, 183);
color: white;
transition: all 0.6s ease-in-out;
transform: scale(1.1);
}
.slider {

background: url(../images/train.jpg);
background-repeat: no-repeat;
background-size: cover;
}

.slider_h1 {
font-size: 60px;
color: rgb(40, 40, 124);
}

.card-text {
text-align: justify;
font-size: 14px;
}

.last_icon {
background: linear-gradient(90deg, rgb(61, 61, 177), rgb(100, 58, 116));

.contact-card {
background: rgba(255, 255, 255, 0.7);
transition: transform 0.8s ease;
}

.contact-card:hover {
transform: translateY(-8px) scale(1.02);
}

.contact-card h4 {
color: rgb(24, 24, 158);
}

.contact-card a {
color: rgb(24, 24, 158);
text-decoration: none;
}

.gallary-img {
transition: transform 0.4s ease, box-shadow 0.4s ease;

.gallary-img:hover {
transform: scale(1.05);

}
.social_icon
{
background: linear-gradient(to right, #2c236c, #b958a5);
}
.footer
{
background-color: rgb(16, 16, 118);
color:white;
font-size:14px;
}
.line:hover
{
border: 1px solid goldenrod;
}

IRCTC_CLONE/web/gallary.jsp
Lines: 151 | Size: 7.2 KB

<!doctype html>
<html lang="en">

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>

<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">

<!-- navbar start -->


<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- Gallary Section Start -->
<div class="row mt-5">
<div class="col-md-12">

<div class="row mt-5 pt-5 pb-5" >


<div class="col-md-10 mx-auto text-center">
<h2 class="fw-bold mb-4" style="color: rgb(24, 24, 158);">OUR GALLARY</h2>
<div class="row g-4">
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train1.jpg" class="card-img-top gallary-img" alt="Train
Image 1">
</div>
</div>
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train2.jpg" class="gallary-img rounded-5" alt="Train
Image 2">
</div>
</div>
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train3.jpg" class=" gallary-img rounded-5" alt="Train
Image 3">
</div>
</div>
<div class="col-md-4">
<div class="card shadow ">
<img src="images/train4.jpg" class=" gallary-img rounded-5" alt="Train
Image 4">
</div>
</div>
<div class="col-md-4">
<div class="card shadow">
<img src="images/train5.jpg" class=" gallary-img rounded-5" alt="Train
Image 5">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train6.jpg" class="gallary-img rounded-5" alt="Train
Image 6">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train7.jpg" class="gallary-img rounded-5" alt="Train
Image 7">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train8.jpg" class="gallary-img rounded-5" alt="Train
Image 8">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train9.jpg" class="gallary-img rounded-5" alt="Train
Image 9">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train10.jpg" class="gallary-img rounded-5" alt="Train
Image 10">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train11.jpg" class="gallary-img rounded-5" alt="Train
Image 11">
</div>
</div>
<div class="col-md-4">
<div class="card ">
<img src="images/train12.jpg" class="gallary-img" alt="Train Image 12">
</div>
</div>
</div>
</div>
</div>

</div>
</div>
<!-- Gallary Section End -->

<!-- footer start -->


<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/web/header.jsp
Lines: 6 | Size: 0.5 KB

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"

integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/
5mcr" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"

integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck
+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/style.css">

IRCTC_CLONE/web/index.jsp
Lines: 319 | Size: 17.2 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- news -->
<div class="row fixed-top" style="background: linear-gradient(90deg,white, rgb(131,
131, 195));">
<div class="col-md-12">
<marquee behavior="" direction="">Welcome to My IRCTC.</marquee>
</div>
</div>
<!-- news end -->
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- slider start -->
<div class="row mt-5">
<div class="col-md-12 mt-5 slider">
<div class="row mt-5">
<div class="col-md-6 ">
<div class="card mx-2 mt-4 rounded-3 p-3">
<form action="train_List.jsp" method="post">
<table class="table border-none">
<tr>
<td><a href="#" class="btn btn-primary form-control">PNR
STATUS</a></td>
<td><a href="#" class="btn btn-primary form-control">CHARTS /
VACANCY</a></td>
</tr>
<tr>
<td colspan="2">
<h3 class="text-center">TICKET BOOKING</h3>
</td>
</tr>
<tr>
<td><input type="text" name="From" class="form-control"
placeholder="From"></td>
<td><input type="text" name="To" class="form-control"
placeholder="To"></td>
</tr>
<tr>
<td><input type="date" name="date"
class="form-control"></td>
<td>
<select name="" id="" class="form-control">
<option value="">All Classes</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<select name="" id="" class="form-control">
<option value="">GENERAL</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" class="btn form-control text-white fw-
bold"
style="background-color:orangered;">SEARCH</button>
</td>
</tr>
</table>
</form>
</div>
<div class="card mx-2 mt-2 mb-4 p-3">
<p class=" fw-bold text-center" style="font-size: 12px;">
<span class="text-primary"> Customers can use enhanced interface for
their IRCTC related
queries!! https://equery.irctc.co.in</span> <br>
<span class="text-danger"> Customer Care Numbers :
14646/08044647999 /08035734999</span>
<br>
<span class="text-info">BEWARE OF FRAUDSTERS: Always download
official IRCTC Rail
Connect App from the Google Play Store or Apple App Store
only.</span>
</p>

</div>
</div>
<div class="col-md-6">
<h1 class="text-center mt-5 fw-bold slider_h1">INDIAN RAILWAY</h1>
<pre class="text-center fs-4">Safety | Security | Punctually</pre>
</div>
</div>

</div>
</div>
<!-- slider end -->
<!-- ramayan start -->
<div class="row mt-3 mb-4">
<div class="col-md-8 mx-auto">
<img src="images/ramayan_yatra .jpeg" width="100%" alt="">
</div>
</div>
<!-- ramayan end -->
<!-- writeen start -->
<div class="row mt-5">
<div class="col-md-6 mx-auto text-center text-justify ">
<h1 class="fs-1 fw-bold ">Have you not found the right one?
<br>Find a service suitable for you here.
</h1>
</div>
</div>
<!-- writeen end -->
<!-- icon section -->
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col">h</div>

</div>

</div>
</div>
<!-- icon section -->
<!-- Holiday ssection start -->
<div class="row">
<div class="col-md-9 mx-auto">
<!-- row 1 -->
<div class="row">
<div class="col-md-4 ">
<div class="card h-100 shadow-lg">
<img src="images/exterior.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-1">Maharajas' Express</h3>
<p class="card-text pt-1 px-2">Redefining Royalty, Luxury and
Comfort, Maharajas'
express
takes
you on a sojourn to the era of bygone stately splendour of princely
states. Sylvan
furnishings, elegant ambience and modern amenities are
amalgamated for an
?Experience Unsurpassed?. It has been a winner of ?World?s Leading
Luxury train? by
World Travel Awards consecutively for last six years</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Thailand.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">International Packages</h3>
<p class="card-text p-2">Best deals in International Holiday packages,
handpicked by
IRCTC, for Thailand, Dubai, Sri Lanka, Hong Kong, China, Macau,
Bhutan, Nepal, U.K.,
Europe, USA, Australia etc. The packages are inclusive of sightseeing,
meals, visa
charges and overseas medical insurance to give you a hassle-free and
memorable
experience</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Kashmir.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">Domestic Air Packages</h3>
<p class="card-text p-2">Be it the spiritual devotee seeking blessings
of Tirupati,
Shirdi or Mata Vaishno Devi or the leisure traveller wanting to relish
the Blue
mountains of North East, Sand-dunes of Rajasthan, Hamlets of
Ladakh, Wonders of
Himalayas, Serene lakes or Picturesque Islands, IRCTC has it all.
Discover India
through IRCTC!</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
</div>
<!-- row 1 end -->
<!-- row 2-->
<div class="row mt-4">
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Bharat_Gaurav.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">Bharat Gaurav Tourist Train</h3>
<p class="card-text pt-2 px-2">IRCTC offers Exclusive Rail tour
packages with confirmed
train
tickets, sight-seeing and meals for enchanting Nilgiri Mountains,
Darjeeling, Kullu
Manali, Kashmir, Gangtok or divine tours of Mata Vaishno Devi,
Rameswaram, Madurai,
Shirdi, Tirupati etc. Holiday packages/ Land packages to these
destinations are also
available</p>
<a href="#" class=" ps-2">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card h-100 shadow-lg">
<img src="images/Manali.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h3 class="card-title p-2">Rail Tour Packages</h3>
<p class="card-text pt-2 px-2 pb-4 ">IRCTC operates Bharat Gaurav
Tourist Train having
AC III-Tier
accommodation on train specially designed to promote domestic
tourism in India. This
train runs on various theme based circuits covering pilgrimage and
heritage
destinations in its itinerary on a 5 days to 20 days trip and showcase
India?s rich
cultural heritage</p> <br>
<a href="#" class="ps-2 ">Read More --&gt;</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mx-auto shadow-lg" style="width: 23rem;">
<img src="images/HOME_BOTTOM_RIGHT.jpeg" height="624px"
class="card-img-top shadow-lg"
alt="...">

</div>
</div>
</div>
<!-- row 2 end -->
</div>
</div>
<!-- Holiday ssection end -->
<!-- last icons start -->

<div class="row p-3 my-2 rounded-5 social_icon">


<div class="col-md-10 mx-auto ">
<div class="row">
<div class="col-md-6">
<h5 class="text-white text-end p-2">Get Connected with us on social
networks</h5>
</div>
<div class="col-md-6">
<div class="d-flex">
<a href="#" class="btn btn-primary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="btn btn-success rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-whatsapp"></i>
</a>
<a href="#" class="btn btn-danger rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-youtube"></i>
</a>
<a href="#" class="btn btn-dark rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="btn btn-info rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="#" class="btn btn-primary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-telegram-plane"></i>
</a>
<a href="#" class="btn btn-danger rounded-circle mx-1 shadow" style="width:
40px; height: 40px;">
<i class="fab fa-pinterest-p"></i>
</a>
<a href="#" class="btn btn-secondary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-tumblr"></i>
</a>
<a href="#" class="btn btn-warning rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fas fa-ghost"></i>
</a>
<a href="#" class="btn btn-primary rounded-circle mx-1 shadow"
style="width: 40px; height: 40px;">
<i class="fab fa-twitter"></i>
</a>
</div>

</div>
</div>

</div>
</div>

<!-- last icons end -->


<!-- footer start -->
<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/web/login.jsp
Lines: 101 | Size: 4.9 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->

<!-- login start -->


<div class="row">
<div class="col-sm-12" >
<div class="row">
<div class="col-sm-6 m-5 shadow-lg mx-auto p-4 rounded-5" style=" background:
linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));">
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="login"/>
<table class=" w-100 mx-auto rounded-5">
<tr>
<td><h2 class="text-center text-white mb-3 fw-bold">LOGIN</h2></td>
</tr>
<tr>
<td><input type="number" name="userId" class="form-control my-1"
placeholder="User Id"></td>
</tr>

<tr>
<td><input type="password" name="password" class="form-control my-1"
placeholder="Password"></td>
</tr>
<tr>
<td><button value="submit" class="btn form-control my-1 fw-bold text-white"
style="background-color: orangered;">Submit</button></td>
</tr>
</table>
</form>
</div>

</div>

</div>
</div>
<!-- login end -->
<!-- footer start -->
<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/web/navbaar.jsp
Lines: 38 | Size: 2.2 KB
<div class="row p-0 m-0 mt-4">
<div class="col-md-12 p-0 m-0">
<nav class="navbar navbar-expand-lg nav_bg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand ms-4" href="index.htmlx">
<img src="images/logo.png" alt="">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-
controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto mb-2 mb-lg-0 fs-5 fw-bold ">
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="index.jsp">Home</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="contact.jsp">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2"
href="registration.jsp">Registration</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="login.jsp">Login</a>
</li>
<li class="nav-item">
<a class="nav-link p-3 rounded-2" href="#">About us</a>
</li>
</ul>
</div>
<a class="navbar-brand me-4" href="#">
<img src="images/secondry-logo.png" alt="">
</a>
</div>
</nav>
</div>
</div>

IRCTC_CLONE/web/registration.jsp
Lines: 113 | Size: 5.5 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>

<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->

<!-- ragistration start -->


<div class="row mt-5" >
<div class="col-sm-12" >
<div class="row mt-5">
<div class="col-sm-6 m-5 mx-auto p-4 rounded-5 shadow-lg" style=" background:
linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));">
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="reg"/>
<table class=" w-100 mx-auto rounded-5">
<tr>
<td><h2 class="text-center fw-bold text-white
mb-3">REGISTRATION</h2></td>
</tr>
<tr>
<td><input type="date" name="dob" class="form-control my-1"
placeholder="User Name"></td>
</tr>
<tr>
<td><input type="text" name="name" class="form-control my-1"
placeholder="Full Name"></td>
</tr>
<tr>
<td><input type="password" name="password" class="form-control my-1"
placeholder="Password"></td>
</tr>
<tr>
<td><input type="password" name="cpassword" class="form-control my-1"
placeholder="Confirm Password"></td>
</tr>
<tr>
<td><input type="email" name="mail" class="form-control my-1"
placeholder=" Email"></td>
</tr>
<tr>
<td><input type="number" name="number" class="form-control my-1"
placeholder=" Mobile"></td>
</tr>
<tr>
<td><button value="submit" class="btn form-control my-1 fw-bold text-white"
style="background-color: orangered;">Submit</button></td>
</tr>
</table>
</form>
</div>

</div>

</div>
</div>
<!-- ragistration end -->
<!-- footer start -->
<div class="row footer ">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/web/ticket_booking.jsp
Lines: 123 | Size: 6.2 KB

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0 m-0" style="overflow-x: hidden;">
<!-- navbar start -->
<jsp:include page="navbaar.jsp"/>
<!-- navbar end -->
<!-- ticket-booking start -->
<div class="row mt-5">
<div class="col-md-12">
<div class="row mt-5" >
<div class="col-md-6 mx-auto shadow-lg rounded-5 p-5 m-5" style=" background:
linear-gradient( rgb(24, 24, 158),rgb(246, 243, 243));">

<form action="">
<table class=" w-100">
<tr>
<td colspan="2">
<h3 class="text-center fw-bold text-white">TICKET BOOKING</h3>
</td>
</tr>
<tr>
<td><a href="#" class="btn btn-primary form-control my-1">PNR
STATUS</a></td>
<td><a href="#" class="btn btn-primary form-control my-1">CHARTS /
VACANCY</a></td>
</tr>

<tr>
<td colspan="2"><input type="text" class="form-control my-1"
placeholder="Form"></td>
</tr>
<tr>
<td colspan="2"><input type="text" class="form-control my-1"
placeholder="To"></td>
</tr>
<tr>
<td><input type="date" class="form-control my-1"></td>
<td>
<select name="" id="" class="form-control my-1">
<option value="">All Classes</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<select name="" id="" class="form-control my-1">
<option value="">GENERAL</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<a href="" class="btn form-control text-white fw-bold"
style="background-color:orangered;">SEARCH</a>
</td>
</tr>
</table>
</form>

</div>
</div>
</div>
</div>
<!-- ticket booking end -->
<!-- footer start -->
<div class="row footer rounded-5">
<div class="col-md-10 mx-auto p-4 ">
<div class="row">
<div class="col-md-3 footer-link">
<h class="p-1 line">IRCTC Trains</h>
<a href="#" class="d-block text-white text-decoration-none line p-
1">General Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Important Information</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Enquiries</a>
</div>
<div class="col-md-3 footer-link">
<h class="p-1 line">How To</h>
<a href="#" class="d-block text-white text-decoration-none line p-1 ">IRCTC
Official App</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Advertise with us</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Refund Rules</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Person
With Disability
Facilities</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">IRCTC eWallet</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Co-branded Card
Benefits</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC-
iPAY Payment
Gateway</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">IRCTC
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">DMRC
Ticket Booking at
IRCTC</a>
</div>
<div class="col-md-3 footer-link">
<h class="line p-1">Others</h>
<a href="#" class="d-block text-white text-decoration-none line p-1">For
Newly Migrated
Agents</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Mobile
Zone</a>
<a href="#" class="d-block text-white text-decoration-none line p-
1">Policies</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">Ask
Disha ChatBot</a>
<a href="#" class="d-block text-white text-decoration-none line p-1">About
us</a>
</div>
</div>
<hr class="bg-light">
<div class="row">
<div class="col-md-12 text-center">
<p class="mb-0">&copy; 2025 My IRCTC. Designed by Pranjal
Chaurasiya</p>
</div>
</div>
</div>
</div>
<!-- footer end -->

</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
crossorigin="anonymous"></script>
</body>

</html>

IRCTC_CLONE/web/train_List.jsp
Lines: 44 | Size: 2.1 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<div class="row mt-5 bg-light">
<div class="col-sm-12 py-5">
<h2 style="background-color:brown;color: white;" class="py-2 text-
center">Train List</h2>
<!--train details-->
<%
String From=request.getParameter("From");
String To=request.getParameter("To");
String date=request.getParameter("date");
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from train_details where
StartingStation='"+From+"' and EndingStation='"+To+"'");
while(rs.next())
{
%>
<a href="user/booknow.jsp?id=<%=rs.getString("id")%>"
style="color:black;text-decoration: none"><div class="mt-2" style="height: auto;width:
80%;margin-left: 10%;border: 1px solid black;border-radius:5px;">
<p style="font-size: 25px;font-weight: 700;padding-left: 25px;"><
%=rs.getString("TrainName")%> / <%=rs.getString("TrainNo")%></p>
<p style="font-size: 25px;font-weight: 700;padding-left: 25px;">₹ <
%=rs.getString("Price")%> <span style="margin-left: 50%;"> Running date: All
days</span></p>
<p style="font-size: 25px;font-weight: 700;padding-left: 25px;">Starting Time
: <%=rs.getString("startingTime")%> <span style="margin-left: 32%;"> Ending Time : <
%=rs.getString("endingTime")%></span></p>
</div></a>
<% } %>
</div>
</div>
</div>
</body>
</html>

IRCTC_CLONE/web/user/bookinghi.jsp
Lines: 107 | Size: 3.4 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Booking
Hi</h1>
<table class="table table-bordered">
<tr>
<th>
Name
</th>
<th>
Age
</th>
<th>
Journy Date
</th>
<th>
Price
</th>
<th>
Train Name
</th>
<th>
Pnr
</th>
<th>
From
</th>
<th>
To
</th>
<th>
Booking Date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from bookingrecord left join train_details on
bookingrecord.trainid=train_details.id where userid='"+userId+"'");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("name")%>
</td>
<td>
<%=rs.getString("age")%>
</td>
<td>
<%=rs.getString("doj")%>
</td>
<td>
<%=rs.getString("price")%>
</td>
<td>
<%=rs.getString("trainName")%>
</td>
<td>
<%=rs.getString("pnr")%>
</td>
<td>
<%=rs.getString("startingStation")%>
</td>
<td>
<%=rs.getString("endingStation")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/web/user/booknow.jsp
Lines: 43 | Size: 1.3 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
String id=request.getParameter("id");
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<div class="row">
<div class="col-sm-12">
<form action="controller.jsp" method="post">
<input type="hidden" name="page" value="booknow">
<input type="hidden" name="trainid" value="<%out.print(id);%>">
<input type="text" name="name" placeholder="Enter name">
<input type="text" name="age" placeholder="Enter age">
<input type="date" name="date">
<button type="submit">Submit</button>
</form>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/web/user/changeP.jsp
Lines: 17 | Size: 0.6 KB

<%@page import="dbpack.DbManager"%>
<%
String oldPass=request.getParameter("oldPass");
String password=request.getParameter("password");
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(

"update registration set password='"+password+"' where mobile='"+userId+"' and


password='"+oldPass+"'"))
{
out.print("<script>alert('updated');window.location.href='userHome.jsp'</script>");
}
else
{
out.print("<script>alert('error');window.location.href='changePassword.jsp'</script>");
}
%>

IRCTC_CLONE/web/user/changePassword.jsp
Lines: 48 | Size: 1.6 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--change password form design-->
<form action="changeP.jsp" method="post">
<input type="hidden" name="page" value="login"/>
<table class=" w-100 mx-auto rounded-5">
<tr>
<td><h2 class="text-center text-white mb-3 fw-bold">Change
Password</h2></td>
</tr>
<tr>
<td><input type="text" name="oldPass" class="form-control my-1"
placeholder="Enter old password"></td>
</tr>

<tr>
<td><input type="password" name="password" class="form-control my-1"
placeholder="Password"></td>
</tr>
<tr>
<td><button value="submit" class="btn form-control my-1 fw-bold text-white"
style="background-color: orangered;">Submit</button></td>
</tr>
</table>
</form>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/web/user/controller.jsp
Lines: 25 | Size: 0.9 KB

<%@page import="java.util.Random"%>
<%@page import="dbpack.DbManager"%>
<%
String userId=session.getAttribute("userId").toString();
String name=request.getParameter("name");
String age=request.getParameter("age");
String date=request.getParameter("date");
String trainid=request.getParameter("trainid");
Random rm=new Random();
int fn=rm.nextInt(1000);
String fnrand=Integer.toString(fn);
String pnr=trainid+userId+age+fnrand;
out.print(pnr);
String query="insert into bookingrecord(name,age,doj,trainid,userid,pnr,date)
values('"+name+"','"+age+"','"+date+"','"+trainid+"','"+userId+"','"+pnr+"',now())";
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(query))
{
session.setAttribute("pnr", pnr);
response.sendRedirect("payment.jsp");
}
else
{
out.print("<script>alert('Something Went Wrong Please Try
Again');window.location.href='../index.jsp';</script>");
}
%>

IRCTC_CLONE/web/user/header.jsp
Lines: 6 | Size: 0.5 KB

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"

integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/
5mcr" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"

integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck
+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="../css/style.css">

IRCTC_CLONE/web/user/logout.jsp
Lines: 5 | Size: 0.1 KB

<%
session.removeAttribute("userId");
session.invalidate();
response.sendRedirect("../login.jsp");
%>

IRCTC_CLONE/web/user/navbaar.jsp
Lines: 31 | Size: 1.2 KB

<div class="row">
<div class="col-sm-12">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-
expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="userHome.jsp">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="profile.jsp">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bookinghi.jsp">Booking Hi</a>
</li>
<li class="nav-item">
<a class="nav-link" href="changePassword.jsp">Change Password</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.jsp">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>

IRCTC_CLONE/web/user/payment.jsp
Lines: 32 | Size: 0.8 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<a href="paymentScript.jsp?status=Success" class="btn btn-success">Payment
Success</a>
<a href="paymentScript.jsp?status=Failed" class="btn btn-danger">Payment
Failed</a>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/web/user/paymentScript.jsp
Lines: 25 | Size: 0.7 KB

<%@page import="dbpack.DbManager"%>
<%
String status=request.getParameter("status");
String pnr=session.getAttribute("pnr").toString();
out.print(pnr);
out.print(status);
String query="update bookingrecord set payment='"+status+"' where pnr='"+pnr+"'";
DbManager dm=new DbManager();
if(dm.insertUpdateDelete(query))
{
session.removeAttribute("pnr");
if(status.equals("Success"))
{
out.print("<script>alert('Booking Success');window.location.href='../index.jsp';</script>");
}
else
{
out.print("<script>alert('Booking Failed');window.location.href='../index.jsp';</script>");
}
}
else
{
out.print("<script>alert('Something Went Wrong Please Try
Again');window.location.href='../index.jsp';</script>");
}
%>

IRCTC_CLONE/web/user/profile.jsp
Lines: 83 | Size: 2.5 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbpack.DbManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
<!--profile show-->
<div class="row mt-5">
<div class="col-sm-12">
<h1 style="text-align: center;background-color: brown;color: white;">Profile</h1>
<table class="table table-bordered">
<tr>
<th>
Name
</th>
<th>
Mobile number
</th>
<th>
Mail
</th>
<th>
Dob
</th>
<th>
Date
</th>
</tr>
<%
String userId=session.getAttribute("userId").toString();
DbManager dm=new DbManager();
ResultSet rs=dm.select("select * from registration where mobile='"+userId+"'");
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString("FullName")%>
</td>
<td>
<%=rs.getString("mobile")%>
</td>
<td>
<%=rs.getString("mail")%>
</td>
<td>
<%=rs.getString("DateOfBirth")%>
</td>
<td>
<%=rs.getString("date")%>
</td>
</tr>
<%
}
%>
</table>
</div>
</div>
</div>
</body>
</html>
<% } %>

IRCTC_CLONE/web/user/userHome.jsp
Lines: 30 | Size: 0.6 KB

<%--
Document : userHome
Created on : Jul 23, 2025, 10:14:19 AM
Author : yuvra
--%>
<%
if(session.getAttribute("userId")==null || session.getAttribute("userId")=="")
{
response.sendRedirect("../login.jsp");
}
else
{
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Home</title>
<jsp:include page="header.jsp"/>
</head>
<body>
<div class="container-fluid p-0">
<!--navbaar-->
<jsp:include page="navbaar.jsp"/>
</div>
</body>
</html>
<% } %>

DataBase Code –
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 19, 2025 at 04:08 PM
-- Server version: 8.0.31
-- PHP Version: 8.0.26

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


START TRANSACTION;
SET time_zone = "+00:00";

/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE
NT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE
SULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECT
ION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `irctc`
--

-- --------------------------------------------------------
CREATE Database IF NOT EXISTS `irctc`;
use `irctc`;
--
-- Table structure for table `bookingrecord`
--

DROP TABLE IF EXISTS `bookingrecord`;


CREATE TABLE IF NOT EXISTS `bookingrecord` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`age` varchar(100) NOT NULL,
`doj` varchar(100) NOT NULL,
`trainid` varchar(100) NOT NULL,
`pnr` varchar(100) NOT NULL,
`userid` varchar(100) NOT NULL,
`payment` varchar(100) DEFAULT NULL,
`date` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT
CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `bookingrecord`
--

INSERT INTO `bookingrecord` (`id`, `name`, `age`, `doj`,


`trainid`, `pnr`, `userid`, `payment`, `date`) VALUES
(1, 'Arpita', '21', '2025-07-28', '', '', '09648022011', NULL,
'2025-07-28 16:25:40'),
(2, 'Arpita', '21', '2025-07-28', '', '', '09648022011', NULL,
'2025-07-28 16:28:35'),
(3, 'Arpita', '21', '2025-07-28', '1', '', '09648022011', NULL,
'2025-07-28 16:56:11'),
(4, 'Arpita', '21', '2025-07-28', '1', '10964802201121945',
'09648022011', NULL, '2025-07-28 17:28:18'),
(5, 'payal', '21', '2025-07-28', '2', '20964802201121681',
'09648022011', NULL, '2025-07-28 17:33:26'),
(6, 'Ananya', '60', '2025-07-28', '2', '20964802201160835',
'09648022011', NULL, '2025-07-28 17:34:34'),
(7, 'Arpita', '21', '2025-07-28', '1', '109648022011210',
'09648022011', NULL, '2025-07-28 17:36:36'),
(8, 'Arpita', '21', '2025-07-28', '1', '10964802201121947',
'09648022011', NULL, '2025-07-28 17:38:08'),
(9, 'Arpita', '21', '2025-07-28', '1', '10964802201121471',
'09648022011', 'Success', '2025-07-28 17:43:00');

-- --------------------------------------------------------

--
-- Table structure for table `registration`
--

DROP TABLE IF EXISTS `registration`;


CREATE TABLE IF NOT EXISTS `registration` (
`id` int NOT NULL AUTO_INCREMENT,
`FullName` varchar(50) NOT NULL,
`mobile` varchar(50) NOT NULL,
`mail` varchar(50) NOT NULL,
`DateOfBirth` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`date` varchar(50) NOT NULL,
`status` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT
CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `registration`
--
INSERT INTO `registration` (`id`, `FullName`, `mobile`,
`mail`, `DateOfBirth`, `password`, `date`, `status`) VALUES
(1, 'Yuvraj Singh', '09648022011',
'[email protected]', '2025-07-22',
'87654321', '2025-07-22 18:16:10', 'user'),
(3, '', '5555555555', '', '', '55555555', '', 'admin');

-- --------------------------------------------------------

--
-- Table structure for table `train_details`
--

DROP TABLE IF EXISTS `train_details`;


CREATE TABLE IF NOT EXISTS `train_details` (
`id` int NOT NULL AUTO_INCREMENT,
`trainName` varchar(100) NOT NULL,
`trainNo` varchar(100) NOT NULL,
`startingStation` varchar(100) NOT NULL,
`endingStation` varchar(100) NOT NULL,
`startingTime` varchar(100) NOT NULL,
`endingTime` varchar(100) NOT NULL,
`price` varchar(100) NOT NULL,
`date` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT
CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `train_details`
--
INSERT INTO `train_details` (`id`, `trainName`, `trainNo`,
`startingStation`, `endingStation`, `startingTime`,
`endingTime`, `price`, `date`) VALUES
(1, 'Mahanagari', '12581', 'Varanasi', 'Delhi', '11:10 PM', '8:00
AM', '420', '2025-07-28 14:08:55'),
(2, 'bsb super fast express', '52451', 'Varanasi', 'Delhi',
'11:00 PM', '7:00 AM', '440', '2025-07-28 15:15:05'),
(3, 'Laxmi Mata', '14005', 'Shita Madi', 'Anvt', '1:00 AM', '8:08
PM', '500', '2025-07-28 15:19:09');

COMMIT;

/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
*/;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULT
S */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION
*/;
- Snapshot Of Project (OutPut)

You might also like