// Path: src/com/find1x/gpms/dao/NoticeDAO.java
// public class NoticeDAO {
// 	public static boolean addNotice(String context, String type) {
// 		try {
// 			Notice notice = new Notice();
// 			notice.setContext(context);
// 			notice.setType(type);
// 			MongoDBUtil.getDatastore().save(notice);
// 			return true;
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 			return false;
// 		}
// 	}
// 
// 	public static List<Notice> getNotice(String type) {
// 		List<Notice> list = MongoDBUtil.getDatastore().find(Notice.class)
// 				.filter("type", type).asList();
// 		return list;
// 	}
// }


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import com.find1x.gpms.dao.NoticeDAO;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

package com.find1x.gpms.action;




public class ReleaseNoticeAction extends ActionSupport {

	ActionContext context = ActionContext.getContext();
	HttpServletRequest request = (HttpServletRequest) context
			.get(ServletActionContext.HTTP_REQUEST);
	HttpServletResponse response = (HttpServletResponse) context
			.get(ServletActionContext.HTTP_RESPONSE);
	HttpSession session = request.getSession();

	private static final long serialVersionUID = 1L;
	private String admin;
	private String dhead;
	private String teacher;
	private String student;
	private String notice;
	
	public String getAdmin() {

// Path: src/com/find1x/gpms/dao/NoticeDAO.java
// public class NoticeDAO {
// 	public static boolean addNotice(String context, String type) {
// 		try {
// 			Notice notice = new Notice();
// 			notice.setContext(context);
// 			notice.setType(type);
// 			MongoDBUtil.getDatastore().save(notice);
// 			return true;
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 			return false;
// 		}
// 	}
// 
// 	public static List<Notice> getNotice(String type) {
// 		List<Notice> list = MongoDBUtil.getDatastore().find(Notice.class)
// 				.filter("type", type).asList();
// 		return list;
// 	}
// }


// Path: src/com/find1x/gpms/action/ReleaseNoticeAction.java
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import com.find1x.gpms.dao.NoticeDAO;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

package com.find1x.gpms.action;




public class ReleaseNoticeAction extends ActionSupport {

	ActionContext context = ActionContext.getContext();
	HttpServletRequest request = (HttpServletRequest) context
			.get(ServletActionContext.HTTP_REQUEST);
	HttpServletResponse response = (HttpServletResponse) context
			.get(ServletActionContext.HTTP_RESPONSE);
	HttpSession session = request.getSession();

	private static final long serialVersionUID = 1L;
	private String admin;
	private String dhead;
	private String teacher;
	private String student;
	private String notice;
	
	public String getAdmin() {

		return admin;
