Skip to content

add new branch - Prepering - #1

Open
8Invader8 wants to merge 3 commits into
mainfrom
Prepering
Open

add new branch - Prepering#1
8Invader8 wants to merge 3 commits into
mainfrom
Prepering

Conversation

@8Invader8

Copy link
Copy Markdown
Owner

No description provided.

Add:
-Main page;
-First choice page;
-Second choice page;
-lose page;
-Servlets(Redirect,MainController and other).
Add:
-Main page;
-First choice page;
-Second choice page;
-lose page;
-Servlets(Redirect,MainController and other).
Comment thread pom.xml

<dependencies>

<!-- <dependency>-->

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't push commented dependencies and code

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/FirstPage")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not informative url name

@WebServlet("/FirstPage")
public class FirstPage extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why empty?

import java.io.IOException;


@WebServlet(name = "MainController" , value = "/Main")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name paramter is optional, use url name from lower case first letter

}

@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why empty? is not needed just delete it

@@ -0,0 +1,18 @@
package web;

public class AcceptService {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not informative class name

public String call(String answer){

String redirectURL;
if("FirstPage".equals(answer)){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create and use constants for content

@Volodymyr95

Copy link
Copy Markdown

missed unit tests and logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants