Skip to content

'JavaWebPractice' task completed#644

Open
itzRoma wants to merge 2 commits into
mate-academy:masterfrom
itzRoma:java-web-practice_solution
Open

'JavaWebPractice' task completed#644
itzRoma wants to merge 2 commits into
mate-academy:masterfrom
itzRoma:java-web-practice_solution

Conversation

@itzRoma
Copy link
Copy Markdown

@itzRoma itzRoma commented Jul 4, 2023

No description provided.

itzRoma added 2 commits July 3, 2023 23:57
- improved addition of a driver to a car
- html input tags validation
- small style fixes
Copy link
Copy Markdown

@Rommelua Rommelua left a comment

Choose a reason for hiding this comment

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

Good work

Comment on lines +17 to +18
@WebServlet(urlPatterns = "/cars/new")
public class CreateCarController extends HttpServlet {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
@WebServlet(urlPatterns = "/cars/new")
public class CreateCarController extends HttpServlet {
@WebServlet(urlPatterns = "/cars/create")
public class CreateCarController extends HttpServlet {

/cars/create is more consistent with CreateCarController servlet name

import mate.model.Driver;
import mate.service.DriverService;

@WebServlet(urlPatterns = "/drivers/new")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same

import mate.model.Manufacturer;
import mate.service.ManufacturerService;

@WebServlet(urlPatterns = "/manufacturers/new")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same

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