Which is it not getting displayed if I place it in WEB-INF/jsp
Main Topics
Browse All TopicsI am trying to do a simple web application. I am not able to redirect from an index.jsp outside WEB-INF to temp.jsp which is inside WEB_INF. Following are the details. Thanks in advance.
I have an index.jsp outside WEB-INF. I have an other jsp under jsp folder inside WEB-INF(WEB-INF/jsp/temp.j
<%@ include file="/WEB-INF/jsp/include
<%System.out.println("Insi
<c:redirect url="/WEB-INF/jsp/AddressH
include.jsp is inside WEB-INF/jsp(WEB-INF/jsp/in
<%@ page session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/j
My web.xml says
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<servlet>
<servlet-name>ControllerSe
<servlet-class>com.web.ser
</servlet>
<servlet-mapping>
<servlet-name>ControllerSe
<url-pattern>/addaddr</url
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</w
</welcome-file-list>
</web-app>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
My understanding is we place index.jsp outside WEB-INF is because anything inside WEB-INF is not visible from outside so access the jsp files located inside WEB-INF/jsp/AddressHome.js
<welcome-file-list>
<welcome-file>/WEB-INF/jsp/i
</welcome-file-list>.
It is not displaying the page.
I placed all the jsp's and web.xml outside WEB-INF in web content folder now it works. Is this a right approach? Why is it not working?
My other question is I tried this approach of removing from WEB-INF yesterday itself. It worked. Now I entered data into the html form page(AddressHome.jsp) and clicked on form submit . The data is not getting inserted into database. Address.java is a pojo. Servlet Container uses Addreass Manager and inserts data into the database.
Business Accounts
Answer for Membership
by: rmvprasadPosted on 2009-09-14 at 03:35:11ID: 25324119
If I place temp.jsp outside WEB-INF it is being displayed.