<%@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"%> <% 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"); } %>