Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String wish = req.getParameter("wish");
- String state = req.getParameter("state");
- if(wish != null) {
- RequestDispatcher disp = req.getRequestDispatcher("result.jsp");
- String output[] = Bundesland.decide(wish, state);
- req.setAttribute("result", output);
- disp.forward(req, resp);
- } else {
- RequestDispatcher disp = req.getRequestDispatcher("index.jsp");
- req.setAttribute("states", Bundesland.getAllStates());
- disp.forward(req, resp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement