File--> New Project--> Under Choose Project--> Select Java with ANT-> Select Java Web-> WebApplication-> Click on Next
Enter Project Name--> Click Next
Choosing and Adding the Server to Jsp Project
:
Choosing Server
Glass Fish Server Not Found----> Click on Add---> choose the Glass Fish Server From Menu
Choose your server installation location--> select the licence agreement--> click on download now button to choose your Glass fish Server Version 4.1----> Click next---> Under Domain Location--> click Next -> Glass Fish Server will be added to the menu
After adding the server ----> choose the server -----> Choose Java EE Latest Version -----> click next---> donot choose any framework--> click on Finish Button--> Jsp Project Ready.
Verifying the Configuration
:
Expand the Project - >Choose WEB-INF file
Open WEB-INF Folder->Check if Glass Fish Server is Visible.
Check if index.html file is visible under WEB-INF
Under Libaries folder---->Check if Glass Fish Server is attached.--->If visible project ready with the configurations--->Verified the Configurations.
Executing the Project
:
Building the Project
:
Menu----> Run---> Build Project
Output of Build Project
:
Selecting the Default Browser for Server
:
Click on Globe Icon---->List of Browsers Opened--->Choose Chrome Browser
Executing the Project
:
Click on the Run Button
Creating a new JSP File
:
Right Click on WebPages--->Select New
Under New--->Choose JSP
Under JsP file window----->Choose a File Name---->Click On Next
JSP Projects with Source Code
:
Database Code for JSP
sp_adduserdata
ALTER procedure [dbo].[sp_adduserdata]
(
@name varchar(100),
@uname varchar(100),
@pwd varchar(100)
)
as begin
--- database validation
insert into tbl_user(name, uname,pwd)
values(@name,@uname,@pwd)
end
sp_getuserdata
ALTER procedure [dbo].[sp_getuserdata]
as begin
select * from tbl_user
end
sp_loginuser
ALTER procedure [dbo].[sp_loginuser]
(
@uname varchar(100),
@pwd varchar(100)
)
as begin
select name from tbl_user
where uname = @uname and pwd=@pwd
end
sp_searchuserdata
ALTER procedure [dbo].[sp_searchuserdata]
(
@searchdata varchar(100)
)
as begin
select * from tbl_user where uname like '%'+@searchdata+'%'
end
jsp projects with source codejava servlet projects with source codefree java projectsservlet and jsplatest jsp projectjsp mini and major projectsjsp servletjsp projects with source codejsp servlet project source codejsp projects for final yearjsp projects for beginnersjsp project downloadjsp project with mysql database