comparison src/main/java/de/mpiwg/web/jsp/CreateFilePage.java @ 0:3e62083dbcbf

First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 23 Apr 2015 15:46:01 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3e62083dbcbf
1 package de.mpiwg.web.jsp;
2
3 import java.sql.SQLException;
4
5 import javax.servlet.http.HttpServletRequest;
6 import javax.servlet.http.HttpServletResponse;
7
8 import org.apache.log4j.Logger;
9
10 import de.mpiwg.gazetteer.db.DBSection;
11 import de.mpiwg.gazetteer.utils.DBService;
12
13 public class CreateFilePage extends AbstractJSPPage{
14
15 private static Logger logger = Logger.getLogger(CreateFilePage.class);
16
17 public static String bean = "createFileBean";
18 public static String page = "pages/createFile.jsp";
19
20 private Long sectionId;
21 private DBSection section;
22
23 public void loadParameters(HttpServletRequest request, HttpServletResponse response){
24 this.request = request;
25 this.response = response;
26
27 this.sectionId = getLongParameter("sectionId");
28 }
29
30 public void loadSection(){
31 System.out.println("$$$$$ loadSection= " + sectionId);
32 try {
33
34 this.section = DBService.getSectionWithContent(sectionId);
35 } catch (SQLException e) {
36 e.printStackTrace();
37 }
38 }
39
40 public void reset(){
41 this.section = null;
42 this.sectionId = null;
43 }
44
45 public Long getSectionId() {
46 return sectionId;
47 }
48
49 public void setSectionId(Long sectionId) {
50 this.sectionId = sectionId;
51 }
52
53 public DBSection getSection() {
54 return section;
55 }
56
57 public void setSection(DBSection section) {
58 this.section = section;
59 }
60
61
62
63 }