Hello, Good day!
I'm used to working with MVC architecture based projects, however, i'm trying to remove completely the view from one of my projects, so that the person that will deploy the project would have to provide a custom (
jsp) view by themself. I'm working with
java 11 and apache
tomcat 8 (dynamic webModule 3.1).
So, i know that usually one would call a
servlet trough a form in a jsp, using one of its servlet mappings, like this:
<form action="LogIn" method="post">
<input id="inputEmail" name="inputEmail" type="text" placeholder="Email" required="required">
<br>
<input id="inputPassword" name="inputPassword" type="password" placeholder="Password" required="required">
<br>
<button type="submit">Log In!</button>
</form>
How could i do the same but having my servlet inside a .jar?
for more context, my project looks something like this:
Project/
├── README.md
├── src
│ ├── data
│ ├── entities
│ ├── logic
│ └── servlets
|
└── WebContent -------------> folder (the "view" layer) to not be packaged into the .jar. Rest of the project is inside a .jar
├── META-INF
├── index.jsp
├── LogInForm.jsp
└── WEB-INF
Thanks in advance for the replies!