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
9cbe7af9
Commit
9cbe7af9
authored
7 years ago
by
Winnie
Browse files
Options
Downloads
Patches
Plain Diff
Update
Temporary changes
parent
7593fd52
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/web/Director.java
+29
-0
29 additions, 0 deletions
src/web/Director.java
with
29 additions
and
0 deletions
src/web/Director.java
+
29
−
0
View file @
9cbe7af9
...
...
@@ -34,6 +34,8 @@ public class Director extends HttpServlet {
TrawlExpert
te
=
(
TrawlExpert
)
request
.
getServletContext
().
getAttribute
(
"trawl"
);
//find all applicable things underneath the top most one, need API for this
//result = te.getPhylum(); // SOmething like this
//send lists of things to build the dropdowns
request
.
setAttribute
(
"phylum"
,
result
);
request
.
setAttribute
(
"bioClass"
,
result
);
...
...
@@ -51,4 +53,31 @@ public class Director extends HttpServlet {
String
[]
s
=
url
.
split
(
"/"
);
return
s
[
s
.
length
-
1
];
}
private
void
doChangedPhyum
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
ServletException
,
IOException
{
//get answers from form
String
phylum
=
request
.
getParameter
(
"phylum"
);
String
bioClass
=
request
.
getParameter
(
"class"
);
String
order
=
request
.
getParameter
(
"order"
);
String
family
=
request
.
getParameter
(
"family"
);
String
genus
=
request
.
getParameter
(
"genus"
);
String
species
=
request
.
getParameter
(
"species"
);
TrawlExpert
te
=
(
TrawlExpert
)
request
.
getServletContext
().
getAttribute
(
"trawl"
);
//find all applicable things underneath the top most one, need API for this
//result = te.getPhylum(); // SOmething like this
//send lists of things to build the dropdowns
request
.
setAttribute
(
"phylum"
,
result
);
request
.
setAttribute
(
"bioClass"
,
result
);
request
.
setAttribute
(
"order"
,
result
);
request
.
setAttribute
(
"family"
,
result
);
request
.
setAttribute
(
"genus"
,
result
);
request
.
setAttribute
(
"species"
,
result
);
//send back the index.jsp page
RequestDispatcher
view
=
request
.
getRequestDispatcher
(
"index.jsp"
);
view
.
forward
(
request
,
response
);
}
}
\ No newline at end of file
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