Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a186862d
authored
Dec 12, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prelento-commit
1 parent
63b4790a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
code/moya-web/src/main/java/fi/codecrew/moya/servlet/PlaceMapServlet.java
code/moya-web/src/main/java/fi/codecrew/moya/servlet/PlaceMapServlet.java
View file @
a186862
...
@@ -79,6 +79,8 @@ public class PlaceMapServlet extends HttpServlet {
...
@@ -79,6 +79,8 @@ public class PlaceMapServlet extends HttpServlet {
private
static
final
String
PARAMETER_EVENT_MAP_ID
=
"mapid"
;
private
static
final
String
PARAMETER_EVENT_MAP_ID
=
"mapid"
;
private
static
final
String
PARAMETER_USER_ID
=
"userid"
;
private
static
final
String
PARAMETER_USER_ID
=
"userid"
;
private
static
final
String
PARAMETER_TOKEN
=
"token"
;
/**
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
...
@@ -107,8 +109,8 @@ public class PlaceMapServlet extends HttpServlet {
...
@@ -107,8 +109,8 @@ public class PlaceMapServlet extends HttpServlet {
Integer
mapId
=
getIntegerParameter
(
request
,
PARAMETER_EVENT_MAP_ID
);
Integer
mapId
=
getIntegerParameter
(
request
,
PARAMETER_EVENT_MAP_ID
);
Integer
userId
=
getIntegerParameter
(
request
,
PARAMETER_USER_ID
);
Integer
userId
=
getIntegerParameter
(
request
,
PARAMETER_USER_ID
);
// Integer userId = getIntegerParameter(request,
// PARAMETER_CURRENT_USER_ID); Tämä saadaan beaneilta.
String
userToken
=
request
.
getParameter
(
PARAMETER_TOKEN
);
EventMap
map
=
placeBean
.
findMap
(
mapId
);
EventMap
map
=
placeBean
.
findMap
(
mapId
);
logger
.
debug
(
"Mapid: {}"
,
mapId
);
logger
.
debug
(
"Mapid: {}"
,
mapId
);
...
@@ -229,6 +231,7 @@ public class PlaceMapServlet extends HttpServlet {
...
@@ -229,6 +231,7 @@ public class PlaceMapServlet extends HttpServlet {
return
null
;
return
null
;
}
}
// <editor-fold defaultstate="collapsed"
// <editor-fold defaultstate="collapsed"
// desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
// desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment