Jsp template instead of html or thymeleaf template

What is the correct way of returning from PortalController to some JSP file. I am able to return to index.html but, what is the correct configuration to make index.jsp file to be Compiled ?

@RequestMapping(value = "/", method = RequestMethod.GET)
public String index(Model model,
                    @RequestParam(value = "link") UUID applicationId) {
    LoadContext<Application> applicationLoadContext = new LoadContext<>(Application.class).setView("application-view");
    applicationLoadContext.setQueryString("select s from sales$Application s where s.id = :id").setParameter("id", applicationId);
    Application application = dataService.load(applicationLoadContext);
    model.addAttribute("anketa", application);
    return "index";
}

Any example is welcome, But with steps please

Hi,

you can easily enable it in your portal-dispatcher-spring.xml:

<!-- Custom JSP view resolver -->

<bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
    <property name="prefix" value="/WEB-INF/templates/"/>
    <property name="suffix" value=".jsp"/>
    <property name="order" value="3"/>
</bean>

Then just remove index.html and create web/WEB-INF/templates/index.jsp file:

<html>
<head></head>
<body>
<h1>This is the body of the sample view</h1>
</body>
</html>

Now, you can use JSP in your portal as usual.

I have tried implementing the same on platform version 7.1 . And whenever i tried to access “localhost:8080/app/dispatch/index.jsp” it keeps redirecting me to login page :frowning: .
I have followed Marios implementation but got no success, Same result as mentioned.