Can we create a single project in Intellij (Ultimate edition) with below requirements ?
- With JSP, Javascript and Webservlets and
- With few classes that has endpoints (APIs) annotated with @Path using javax.ws.rs
So that, single project should handle below scenarios:
- http://example.com/login.jsp - Should hit JSP -> JS -> Webservlet
- http://example.com/poc/createUser - Should make API call to the class annotated with @Path.
How should we configure pom.xml and web.xml (to route the requests) ? Any suggestions is appreciated.