Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2XB3FinalProject
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Schankula
2XB3FinalProject
Commits
5f95c2d4
Commit
5f95c2d4
authored
6 years ago
by
Christopher Schankula
Browse files
Options
Downloads
Patches
Plain Diff
proper search for map.jsp
parent
3d0208a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomcat/webapps/Trawl/map.jsp
+7
-5
7 additions, 5 deletions
tomcat/webapps/Trawl/map.jsp
with
7 additions
and
5 deletions
tomcat/webapps/Trawl/map.jsp
+
7
−
5
View file @
5f95c2d4
...
...
@@ -6,11 +6,14 @@
<%
// Sample result data containing an iterable of records
TrawlExpert
te
=
(
TrawlExpert
)
request
.
getServletContext
().
getAttribute
(
"trawl"
);
BasicSearchResult
result
=
te
.
rangeSearch
(
2
,
1960
,
2016
);
JSONParser
parser
=
new
JSONParser
();
JSONObject
req
=
(
JSONObject
)
parser
.
parse
(
request
.
getReader
().
readLine
());
Integer
taxonId
=
(
int
)
(
long
)
req
.
get
(
"taxId"
);
Integer
yearLo
=
(
int
)
(
long
)
req
.
get
(
"yearF"
);
Integer
yearHi
=
(
int
)
(
long
)
req
.
get
(
"yearT"
);
BasicSearchResult
result
=
te
.
rangeSearch
(
taxonId
,
yearLo
,
yearHi
);
// Initialize JSON Object and Arrays
JSONObject
js
=
new
JSONObject
();
...
...
@@ -30,7 +33,6 @@
dateobj
.
put
(
"year"
,
r
.
getDate
().
getYear
());
dateobj
.
put
(
"month"
,
r
.
getDate
().
getMonth
());
dateobj
.
put
(
"day"
,
r
.
getDate
().
getDay
());
date
.
add
(
r
.
getDate
());
count
.
add
(
r
.
getCount
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment