N
N
Nikolay Baranenko2017-02-11 14:05:42
Java
Nikolay Baranenko, 2017-02-11 14:05:42

How to make a redirect to a file in the /WEB-INF/views/index.jsp project?

Hello.

earlier the files in the project folder were located like this

60a270c706194ac2875cf49017a4211a.jpg

then the files in the project were placed like this

347c62022fa64bf687dbf35c9d55a514.jpg

redirect in servlets stopped working correctly.

Tell me how and where it is necessary to make adjustments so that redirects work correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Baranenko, 2017-02-11
@drno-reg

RequestDispatcher dispatcher=getServletContext().getRequestDispatcher( "/WEB-INF/views/index.jsp" );
dispatcher.forward( request, response );
I had to return the classes folder several times from WEB-INF to the root and back,
https://coderanch.com/t/361829/java/JSP-HTML-files...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question