File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes JSP files inside WEB-INF are not recognizing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "JSP files inside WEB-INF are not recognizing" Watch "JSP files inside WEB-INF are not recognizing" New topic

JSP files inside WEB-INF are not recognizing

Raghu Sha
Ranch Hand

Joined: Feb 02, 2013
Posts: 122
How to refer jsp files available in WEB-INF\jsp folder?
<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/jsp/" />
<property name="suffix" value=".jsp" />
It is not recognizing and viewreslover is got ingored. Tiles are not applied.

The below are the confograion in spring-servlet.xml

<bean id="viewResolver"
<property name="viewClass">



Ashwini Kashyap
Ranch Hand

Joined: Aug 30, 2012
Posts: 90
I think your xml file isn't been read.

Have you mentioned InternalResourceViewResolver bean tag in spring-servlet.xml itself?

I am asking since you haven't stated the same like you stated for UrlBasedViewResolver.

Ashwini Kashyap |
Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 167
I think you may need TilesConfigurer for proper functioning.

If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
You will be getting some exception about View not found. Please paste the trace.
I agree. Here's the link:
subject: JSP files inside WEB-INF are not recognizing
It's not a secret anymore!