forked from kishanrajput23/Java-Projects-Collections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddNewParticipation.jsp
38 lines (34 loc) · 1.33 KB
/
AddNewParticipation.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@page import="org.pk.resume.builder.beans.Participation"%>
<%@page import="org.pk.resume.builder.session.ParticipationSessionConstant"%>
<%@page import="org.pk.resume.builder.constants.GlobalConstants"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String str = request.getParameter("next");
if(str.equals("Add"))
{
Participation part = new Participation();
part.setId(1);
part.setParticipation(Participation.getParticipation(request
.getParameter(ParticipationSessionConstant.PARTICIPATION)));
part.setStartDate(request
.getParameter(ParticipationSessionConstant.START_DATE));
part.setEndDate(request
.getParameter(ParticipationSessionConstant.END_DATE));
part.setSponsores(request
.getParameter(ParticipationSessionConstant.SPONSOR));
part.setNote(request
.getParameter(ParticipationSessionConstant.NOTE));
part.setTopic(request
.getParameter(ParticipationSessionConstant.TOPIC));
part.setPlace(request
.getParameter(ParticipationSessionConstant.PLACE));
GlobalConstants.participations.add(part);
response.sendRedirect("ParticipationDetails.jsp");
}
else
{
response.sendRedirect("Other_Achievement.jsp");
}
%>