You are on page 1of 48

MEERUT INSTITUTE OF ENGINEERING &TECHNOLOGY

Department of Computer Science & Engineering

SUMMER TRAINING REPORT


on

NEWSPORTAL

(Session: 2013-14)

Submitted to:

Submitted by :

Miss Neha Agarwal

Umang Agarwal

Lecturer

1006810089

CSE Deptt

CSE

DECLARATION
I hereby declare that this submission is our own work and that, to the best of our knowledge and
belief, it contains no matter previously published or written by another person nor material which
to a sustainable extent has been accepted for the award of any other degree or diploma of the
university of other institute of higher learning except where due acknowledgement has been
made in the text.

CERTIFICATE
I hereby certify that the work which is being presented by Umang
Agarwal(1006810089) in the B.Tech CSE 6th semester Project Report entitled
News Portal, in partial fulfillment of the requirements for the award of
Bachelor of Technology in Computer Science & Engineering from MIET Meerut,
is an authentic record of her work carried out during a period from June-2013
to July-2013 under my guidance.

NEHA AGARWAL
Lectuter
CSE Deptt
MIET ,Meerut

ACKNOWLEDGEMENT
I feel pleasure to submit this project report on News Portal and in for coming statement I wish
to express my deep sense of gratitude to my project coordinator Miss Dimpy, under the
guidance of whom the project would be completed. I express my gratitude to all my friends and
classmates for their support and help in this project. Last, but not the least I wish to express my
gratitude to God almighty for his abundant blessings without which this seminar would not have
been successful.
Umang Agarwal
1006810089
CSE

ABSTRACT
The News are classified in different sections for the ease of access. All information provided
is correct to my knowledge. Portals are often the first page the web browser loads when user
gets connected to the web or that users tend to visit as an anchor site. They offer users a
surplus value of service based on the features of classic search engines. Various techniques
are used for presentation such as: Slide Shows, Advertisement of reputed brands, Link to
famous websites, Image Slider for the choosing the section .

TABLE OF CONTENTS
1. Organization overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
2. Profile of the problem. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
3. Existing system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
3.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.2 Existing Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4. Proposed plan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5. Scope of project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..6
6. Problem analysis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..7
6.1 Product definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.2 Feasibility study. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6.3 Project plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
7. Software requirement analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
7.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10

7.2 General description. . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . ..10


7.3 Specific Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
8. Diagrams. . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
8.1 Data flow diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
8.2 Use Case. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
9. Coding. . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
10. Testing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
11. Implementaion(snapshots) . . . ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
12. Future recommendation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
References

1. ORGANIZATION OVERVIEW

HCL is a leading global Technology and IT Enterprise. HCL has always had the uncanny ability
to read ahead, of any market inflexion point and adapt itself to derive maximum advantage. The
result is today's HCL Enterprise - one of the pioneers in technology, transforming organizations
across the world.
This renowned organization also have Career Development Centres (CDC). I worked as an intern
in the Meerut branch of this HCL CDC. The full address is given by:
Address:

2nd FLOOR, SANTOSH


PLAZA, ABULANE,
MEERUT -250001
LANE,MEERUT250001.

City:

Meerut

State:
Uttar Pradesh
Contact Person: Mr. Anil Yadav
Phone:
Mobile:
09997911118,0989779922
Email Id:
meerut@hclcdc.in

2. PROFILE OF THE PROBLEM

Now-a-days in the modern era, people are preferring most of the work online. They
choose to do E-shopping, internet banking, Online billing, Job portals and many things
like this. The list is endless. Therefore people would like to access online ways to provide
news more than the offline ways. Also the User-friendly platform have to be created.
Moreover it is required to avoid unnecessary load on server as only the legitimate user
will register.

3. EXISTING SYSTEM

3.1 INTRODUCTION
Today the world totally relay upon the electronic media to its every day adventure. People have
no time to be updated through newspaper or watching or listening the news in the television or
radios. People today need to be updated on daily basis in this competitive world. Most of the
people get the information about the world around through the internet which is fast, accessible,
and reliable.
The WWW (World Wide Web) is huge, widely distributed, global information service
centre for Information services: news, advertisements, consumer information, financial
management, education, government, e-commerce etc, hyper-link information, access and usage
information. To be able to get everything well managed and updated every second under one roof
is areal challenge.
A real expert system is needed with much simpler and less sophisticatedmanner.24
Hours News Portal is a service introduced to meet the above requirement and to make the
people updated about the news ,views ,reviews, breaking news and latest headlines in different
fields also the new inventions around the world. This news portal is targeted towards the growing
news agencies and the other organizations which are related to the field of media.

3.2 EXSISTING SOFTWARE


Existing software refers to the system that is being followed till now. Presently all the
news aggregators provide the timely updates for all the categories such as politics,
business, sports etc. Thus a user will have to spent more time in browsing to obtain
the updates for a desired category. This may lead to wastage of time if the page
containing the required data is unknown to the user. The main disadvantage is that
their will be lot of difficulties for the user to find the specified news updates for
his/her choice of category.
Draw backs of existing software: It is difficult for user to find required news
updates.And also it is Time consuming.

4. PROPOSED PLAN

The aim of proposed system is to develop a system of improved facilities. The proposed system
can overcome all the limitations of the existing system. The system reduces time wastage. The
existing system has several disadvantages and many difficulties to work efficiently. The
proposed system tries to eliminate or reduce these difficulties up to some extent. The proposed
system will help the user to consume less time to obtain the required information. The system
requires very low system resources and the system will work only in internet connection.

Advantages of Proposed System

NEW AGGREGATOR allows the key elements of websites, such as headlines, to be


transmitted in unembellished form.

It helps to share content between websites.

It enables information from scores of websites to be viewed simultaneously., all on


one page, consequently, numerous sites can be scrutinized in seconds rather than
having to be tediously downloaded independently.

It has the ability to keep track of changes on the web.

5.

SCOPE

The present project has been developed to meet the aspirations indicated in the modern age. An
attempt has been made through this project to do all work ease & fast. It provide current add,
Update, Move Next, Move Previous, Move Last, Find & Delete all facilities to accomplish the
desired objectives. The facility Include in this project and the suggested activities have been
organized to impart knowledge & develop skill & attitude in the College official works.

6.

PROBLEM ANALYSIS:.

6.1 PRODUCT DEFINATION:


A News portal is most often one specially-designed Web page at a website which brings
information together from diverse sources in a uniform way. Usually, each information
source gets its dedicated area on the page for displaying information (a portlet); often, the
user can configure which ones to display. Variants of portals include Mashup (web
application hybrid) and intranet "dashboards" for executives and managers. The extent to
which content is displayed in a "uniform way" may be more or less depending on the
intended user and the intended purpose as well as the diversity of the content. Very often
design emphasis is on a certain "metaphor" for configuring and customizing the
presentation of the content and the chosen implementation framework and/or code
libraries. In addition, the role of the user in an organization may determine which content
can be added to the portal or deleted from the portal configuration.

6.2 FEASIBILITY STUDY


Feasibility study is the first phase in the life cycle of a project. Feasibility study is done in order
to determine whether the project under consideration is feasible or not that is technically,
economically and operationally. If the result of the Feasibility study is satisfactory, only then the
7

project is approved otherwise not. If the feasibility study is to serve as decision document, it
answer three key question:
1. Is there a new and a better way to do the job that it will benefits the user?
2. What is the costs ?
Feasibility study is broadly divided into three parts: It basically defines the extent to which
project will be successfully completed.

TECHNICAL FEASIBILITY

Can the work for the project be done with current equipment, existing software, technology and
available personnel? If new technology is required, what is the likelihood that it can be
developed?

ECONOMIC FEASIBILITY
o

Economic feasibility is a measure of cost effectiveness of project. An economically


feasible solution has sufficient benefits in creating the system and makes the cost
acceptable.

BEHAVIORAL FEASIBILITY
o

It is a measure of how well the users will work with the product we are developing. Most
of the users are using windows operating system and .net framework today and our
product is simple so our users will fell right at home and our product can be operated
easily. Thus our product is surely going to be operationally feasible.

6.3 PROJECT PLAN

A role based system and can be managed like a real news paper.

To maintain a standard and structured website.

To make a website that is updated 24 hours.

To enhance the quality of news to the users.

To give information about the different firm and companies of the country which are
registered using our directory.

To make a search engine for the directory and articles.

To allow users to make comments about the news topics.

To make a voting poll on the present issues.

9
7.

SOFTWARE REQUIREMENT ANALYSIS:

7.1 INTRODUCTION: System design is a solution, a HOWTO approach to


the creation of a new system. It translates system requirements into ways by
which they can be made operational. It is a translational from a user
oriented document to a document oriented programmers. For that, it
provides the understanding and procedural details neces s ary for the
impl ement ation . The system thus made should be reliable, durable and
above all should have least possible maintenance costs. It should overcome
all the drawbacks of the Old existing system and most important of all meet
the user requirements.

7.2 GENERAL DISCRIPTION


Operating System used is WINDOWS 2000/2003/XP/WINDOWS 7/WINDOWS 8
Tools used are Front end: Java Servlets and JSP
Back end: Oracle10G
IDE: NetBeans 6.0.1

10

7.3 SPECIFIC REQUIREMENTS:


CPU

PENTIUM IV

SPEED

2 GHz

COPROCESSOR

BUILT IN

TOTAL RAM

128 MB

HARD DISK
KEYBOARD

40 GB
:

105 KEYS

11
8.

DIAGRAMS

8.1 DATA FLOW DIAGRAMS


Data flow oriented techniques advocate that the major data items handled by a system must be first
identified and then the processing required on these data items to produce the desired outputs should be
determined. The DFD (also called as bubble chart) is a simple graphical formalism that can be used to
represent a system in terms of input data to the system, various processing carried out on these data, and
the output generated by the system.:

Symbols used in DFD

A circle represents a process.

A rectangle represents external entity

A square defines a source or destination of the system data.


12

An arrow identifies dataflow.

Double line with one end closed indicates data store

DFD for Login Module

User

News
Feeds

Admin Login Details

Admin

News
Feeds

13
DFD- User

Category
Details

category

Registration Details
News
Feeds

Verify
Login Details

User

Logi
n

account

14

DFD- Admin

Administrator

admin

Login Details

Logi
n

Reg: Details

account

Verify

Add
categories

News
Feeds

category

15
passwor
d

userna
me

Admin

Ad
d

Vie
w

selcat

Account

email

passwo
rd

userid
do
b

userna
me

Regis
ter

Categor
y

catna
me
catlin
kena
me
catid

lastna
me
firstnam
e

vie
w
Chec
k

catid
NewsCat

Registration
userid

16

8.2 USE CASE DIAGRAM

17
9.

CODING

Registration page
<!--

Document : reg
Created on : 16 Jul, 2013, 3:57:22 PM
Author

: welcome

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Registration page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
function validate()
{
if(document.f1.t1.value=="")
{
alert("please enter username");
document.f1.t1.focus();
return false;
}

18
if(document.f1.t2.value=="")
{
alert("please enter passsword");
document.f1.t2.focus();
return false;
}
if(document.f1.t3.value=="")
{
alert("please enter contact no.");
document.f1.t3.focus();
return false;
}
if(document.f1.t4.value=="")
{
alert("please enter answer of security question");
document.f1.t4.focus();
return false;
}
if(document.f1.t5.value!="C100T")
{
alert("Incorrect Captcha code");
document.f1.t5.focus();

19
return false;
}
return true;
}

</script>
</head>
<body bgcolor="#90EE90">
<h1><marquee>Registration page</marquee></h1>

<table border="2" width="500" align="center"


bgcolor="#FFF8DC">
<td>

<form name="f1" method="post" action="RegServlet">

<center><h2><b><u><font face="arial" color="#4B0082">Signup</font></u><b></h2></center>


<center>Username: <input type="text" name="t1"> <br><br>
Password: <input type="password" name="t2"> <br><br>
Contact No: <input type="text" name="t3"> <br><br>
Security Question:

20
<select>
<option> What is the name of your first school?</option>
<option> What is your birth place?</option>
<option> What is the name of your pet?</option>
<option> What is the name of your Native town?</option>
<option> What is brand of your first cellphone?</option>
<option> What is your top-most hobby?</option>
<option> What is the name of your best friend?</option>
<option> What is your favourite color?</option>
</select>
<br><br>
Answer:<input type="text" name="t4"> <br><br>
Captcha Code:
<br>
<img src="captcha.jpg" height="40" width="70">
<br>
Write the code here:<input type="text" name="t5">
<br><br>
<input type="checkbox" name="c1"> <a href="terms.html"> I agree with the terms
and conditions </a>
<br>
<br>

21
<input type="submit" value="Submit" onclick="return validate();">
<input type="reset" value="Reset">
</center>

</form>
</td>
</table>
</body>
</html>

Front page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style >

22
body,td,th {
font-family: Verdana, Geneva, sans-serif;
color: #F60;
}
body {

background:url(bg.jpg);
background-size:1400px 850px;
background-repeat:no-repeat;
background-color: #FC0;
margin-left: 20px;
margin-top: 30px;
margin-right: 60px;
margin-bottom: 60px;
color: #30F;
font-weight: bold;
text-align: left;
}
.glow
{
color:#FFFFFF ;

23
text-shadow:0 0 20px yellow ;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
function validate()
{
if(document.f1.t1.value=="")
{
alert("please enter username");
document.f1.t1.focus();
return false;
}
if(document.f1.t2.value=="")
{
alert("please enter passsword");
document.f1.t2.focus();
return false;
}
return true;
}

<!-- Begin

24
NewImg = new Array (
"lifestyle-1.jpg",
"lifestyle-2.jpg",
"lifestyle-3.jpg",
"bollywood-1.jpg",
"bollywood-2.jpg",
"bollywood-3.jpg",
"sports-1.jpg",
"sports-3.jpg",
"technology-1.jpg",
"technology-2.jpg",
"politics-2.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;
//Time delay between Slides in milliseconds
var delay = 1000;
var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;

25
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
}
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
}
}
// End -->

26
</script>

</head>

<body >

<font color="#003366" size="+4" face="Verdana, Geneva, sans-serif"><marquee>

</marquee></font><font size="+4" face="Verdana, Geneva, sansserif"><marquee></marquee></font><font face="Verdana, Geneva, sansserif"><marquee></marquee></font><marquee>


<div class="glow"><font color="#003366" size="+4" face="Verdana, Geneva, sansserif"><em><strong><img src=image.gif /><div class="glow"> NEWSPORTAL</div></strong></em></font></div>

</marquee>
<center><img src="politics-2.jpg" name="slideshow">
<table>
<tr>
<td align="right"><a href="javascript:chgImg(-1)">Previous</a></td>

27
<td align="center"><a href="javascript:auto()">Auto/Stop</a></td>
<td align="left"><a href="javascript:chgImg(1)">Next</a></td>
</tr>
</table>
</center>

<table >

<tr>
<td><b>CONNECT WITH -</b>
<a href=""><img src="face-icon.gif"></a>
<a href=""><img src="group-icon.gif"></a>
<a href=""><img src="rss-icon.gif"></a>
<a href=""><img src="mobile-icon.gif"></a>
</td></tr></table>

<table align="right">
<tr>

<td align="center">

28
<form id="cse-search-box" action="http://google.com/">
<input type="hidden" name="cx" value="YOUR SEARCH ENGINE ID goes here" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</form>
<img src="http://www.google.com/cse/images/google_custom_search_smwide.gif">
</td></tr></table>

<p>&nbsp;</p>

<center><h1><font size="+3" face="Verdana" color="BLACK"><div class="glow"> LOGIN


HERE</div> </font><h1></center>
<table border="1" width="745" align="center"
bgcolor="ADD8E6">
<td>
<form name="f1" method="post" action="MyServlet">
<div>
<font face="arial" >
<center><b>USERNAME :</font>
<input type="text" name="t1"><br>
<font face="arial" >PASSWORD :

29
<input type="password" name="t2"><br>
</font>

<font face="arial" >


<input type="submit" value="Log in" onclick="return validate();">
<input type="reset" value="cancel"></b></center>
</font>
</div>
<p>&nbsp;</p>
<center><a href="reg.html">You a new member? Click here for Sign
Up.</a></center>

</form>
</td></table>

</body>
</html>

30

10. TESTING

Tes t i n g i s t h e m a j o r c o n t r o l m e a s u r e u s e d d u r i n g s o f t w a r e d e v e l o p m e n t .
I t s b a s i c function is to detect errors in the software. During requirement analysis
and design, the output is a document that is usually textual and no executable.
After the coding phase computer programs are available that can be executed for
testing ,purpose. This implies that testing not only, has to uncover errors
introduced during coding, but also errors introduced during previous years So after
testing the outputs of my project are as follows:

31
11.

IMPLEMENTATIONS(SNAPSHOTS)

Figure 1: Login Page

32

Figure 2: Registration Page

33

Figure 3: Home page

34

Figure 4: Bollywood Sub module

35

Figure 5: Technology Sub module

36

Figure 6: Sports Sub module

37

Figure 7: Politics Sub module

38

Figure 8: Lifestyle Sub module

39

12.

FUTURE RECOMMENDATIONS:

News Feeds is a useful website for all kind of peoples, for finding updated news for their
specified and desired topics. It will bring new dimensions on news searching. It will be very
useful for studios pupils as well as new readers. It allows the key elements of websites, such as
headlines, to be transmitted in unembellished form and helps to share content between websites.
It enables information from scores of websites to be viewed simultaneously., all on one page,
consequently, numerous sites can be scrutinized in seconds rather than having to be tediously
downloaded independently. It has the ability to keep track of changes on the web.

40

REFERENCES

These are the reference:


[1] TATA McGraw HILL
[2] Karl Moss
[3] A Practitioner's Approach
[4] McGraw-Hill Publication
[5] Evan Byross
[6] http://java.sun.com/j2ee/overview.html
[7] http://developer.netscape.com/docs/manuals/communicator/jsref/contents.htm
[8] http://java.sun.com/j2ee/
[9] http://developer.java.sun.com/developer/