Where to put JSP files?
Where should I put my jsp files? I usually put them above the /web-inf folder, but this would allow clients to see the directory listing. Should I use a redirect mapping to protect them from being viewed? In which file should I do it? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where to put JSP files?
To prevent users from seeing any directory add the entry welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list To your web.xml and in every directory, place a copy of index.jsp. It can just be a redirect to your home page. --- Peter Lee [EMAIL PROTECTED] wrote: Where should I put my jsp files? I usually put them above the /web-inf folder, but this would allow clients to see the directory listing. Should I use a redirect mapping to protect them from being viewed? In which file should I do it? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where to put JSP files?
-Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 6:59 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Where to put JSP files? You can put in: webapps |_your app - yoiu can put here (1) |_you can create a new folder, then put here (2) The option (2) is recursive meaning you can create as many subfolders as you wish :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where to put JSP files?
Thanks. I have always put the webpages under WEB-INF to avoid directory views. This is a realistic option. At 03:45 AM 12/6/2002 -0800, you wrote: To prevent users from seeing any directory add the entry welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list To your web.xml and in every directory, place a copy of index.jsp. It can just be a redirect to your home page. --- Peter Lee [EMAIL PROTECTED] wrote: Where should I put my jsp files? I usually put them above the /web-inf folder, but this would allow clients to see the directory listing. Should I use a redirect mapping to protect them from being viewed? In which file should I do it? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where to put JSP files?
You can check the struts list archives and look under jim mitchell's name. He has provided a sample application with all he JSP pages under WEB-INF. The key is just to put the JSP pages where you want them protected under WEB-INF and then to map your result pages to wherever you put them. It is straightforward. The idea some people have given you of using drilled pages in webapps, of course, does not answer your question. I like the idea of the welcome page solution offered though. That is nice! Micael At 03:42 AM 12/6/2002 -0800, you wrote: Where should I put my jsp files? I usually put them above the /web-inf folder, but this would allow clients to see the directory listing. Should I use a redirect mapping to protect them from being viewed? In which file should I do it? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]