Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 92997 invoked from network); 1 Mar 2004 17:59:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Mar 2004 17:59:02 -0000 Received: (qmail 52012 invoked by uid 500); 1 Mar 2004 17:58:32 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 51965 invoked by uid 500); 1 Mar 2004 17:58:32 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 51913 invoked from network); 1 Mar 2004 17:58:31 -0000 Received: from unknown (HELO pluto.ubs.com) (193.134.254.194) by daedalus.apache.org with SMTP; 1 Mar 2004 17:58:31 -0000 Received: from svpegasus1-outbound.flur.zuerich.ubs.ch (svpegasus1 [160.59.228.177]) by pluto.ubs.com (Postfix) with ESMTP id 0EC644DF9 for ; Mon, 1 Mar 2004 18:58:35 +0100 (MET) Received: from svpegasus1.flur.zuerich.ubs.ch (localhost [127.0.0.1]) by svpegasus1-outbound.flur.zuerich.ubs.ch (Postfix) with ESMTP id BD0AA69E for ; Mon, 1 Mar 2004 18:58:34 +0100 (MET) Received: from s01b1f4p.flur.zuerich.ubs.ch (s01b1f4p.flur.zuerich.ubs.ch [160.59.177.134]) by svpegasus1.flur.zuerich.ubs.ch (Postfix) with ESMTP id 9B6D1685 for ; Mon, 1 Mar 2004 18:58:34 +0100 (MET) Received: from s01b1f39.flur.zuerich.ubs.ch ([160.59.177.5]) by s01b1f4p.flur.zuerich.ubs.ch with Microsoft SMTPSVC(5.0.2195.5329); Mon, 1 Mar 2004 18:58:34 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6434.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: hiding jsp files under WEB-INF Date: Mon, 1 Mar 2004 18:58:34 +0100 Message-ID: <1822DDA260A0D243A4FF068CB9E4318E1399C9@s01b1f39.flur.zuerich.ubs.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: hiding jsp files under WEB-INF Thread-Index: AcP/tPTRjHeTfFzESk61WW4BFa7/tgAAbZUg From: To: X-OriginalArrivalTime: 01 Mar 2004 17:58:34.0341 (UTC) FILETIME=[D07BC950:01C3FFB6] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, The taglibs will work, whether or not the page is being handled by = struts controller,so long as they have the required objects(form bean , = other beans)in the=20 scopes mentioned in jsps. :-)) -----Original Message----- From: Mainguy, Mike [mailto:MMainguy@kmart.com] Sent: Monday, March 01, 2004 6:45 PM To: 'Struts Users Mailing List' Subject: RE: hiding jsp files under WEB-INF Whoops, didn't see that. Now I'm more inclined to think this will not = work as this page is not being handled by the struts controller. <> -----Original Message----- From: Dean A. Hoover [mailto:dhoover@rochester.rr.com]=20 Sent: Monday, March 01, 2004 12:35 PM To: Struts Users Mailing List Subject: Re: hiding jsp files under WEB-INF Mainguy, Mike wrote: >Also, are sure sure welcome is not supposed to be Welcome? (case=20 >sensitive?) > The way I understand it, "welcome" is globally forwarded to=20 "/Welcome.do", as per the struts-config.xml. > ><goal>> > >-----Original Message----- >From: Dean A. Hoover [mailto:dhoover@rochester.rr.com] >Sent: Monday, March 01, 2004 11:59 AM >To: struts-user@jakarta.apache.org >Subject: hiding jsp files under WEB-INF > > >I realized that the subject I filed this >under (getting started) may not get >attention. So I'm sending it out under >this subject. Did some google searching >but still don't see what the problem is. > >=3D=3D=3D=3D=3D >I am experimenting with some code >from "Struts in Action" but I am moving >source code around abit. Specifically, >I am moving all of the .jsp files into >the WEB-INF directory except >index.jsp. This is so that a user cannot >hit a given .jsp directly. Anyway, I >am getting an exception right from the >get go and don't know what I am doing >wrong. Here's the relevant pieces: > >=3D=3D index.jsp =3D=3D=3D ><%@ taglib uri=3D"/tags/struts-logic" prefix=3D"logic" %> = name=3D"welcome"/> > >=3D=3D Welcome.jsp =3D=3D=3D > >"DTD/xhtml1-trans >itional.dtd"> ><% taglib uri=3D"/tags/struts-bean" prefix=3D"bean" %> ><% taglib uri=3D"/tags/struts-html" prefix=3D"html" %> ><% taglib uri=3D"/tags/struts-logic" prefix=3D"logic" %> > > > Welcome World! > > > > >

Welcome !

>
> >

Welcome World!

>
> >
    >
  • Sign in
  • > >
  • Sign out
  • >
    >
> >
> >=3D=3D=3D struts-config.xml =3D=3D=3D > >Struts Configuration 1.0//EN"=20 >"http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> > > > > = > > > > > > path=3D"/Welcome" > type=3D"org.apache.struts.actions.ForwardAction" > parameter=3D"/WEB-INF/Welcome.jsp"/> > > type=3D"org.apache.struts.actions.ForwardAction" > parameter=3D"/WEB-INF/Logon.jsp"/> > > type=3D"app.LogonAction" > name=3D"logonForm" > scope=3D"request" > validate=3D"true" > input=3D"/WEB-INF/Logon.jsp"/> > > type=3D"app.LogoffAction"> > > > > type=3D"app.RegisterAction" > name=3D"registerForm" > input=3D"/WEB-INF/Register.jsp" > > > > > > > > > > >Here's the exception: > >*exception* > >javax.servlet.ServletException: Exception forwarding for name welcome: >javax.servlet.ServletException >=20 >org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon >textI >mpl.java:867) >=20 >org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte >xtImp >l.java:800) > org.apache.jsp.index_jsp._jspService(index_jsp.java:66) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) >=20 >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j >ava:3 >11) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > >*root cause* > >javax.servlet.jsp.JspException: Exception forwarding for name welcome: >javax.servlet.ServletException > = org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) > = org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) > org.apache.jsp.index_jsp._jspService(index_jsp.java:58) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) >=20 >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j >ava:3 >11) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > >What am I doing wrong? >Dean Hoover > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: struts-user-help@jakarta.apache.org > >----------------------------------------- >This message and its contents (to include attachments) are the property = >of Kmart Corporation (Kmart) and may contain confidential and=20 >proprietary information. You are hereby notified that any disclosure,=20 >copying, or distribution of this message, or the taking of any action=20 >based on information contained herein is strictly prohibited.=20 >Unauthorized use of information contained herein may subject you to=20 >civil and criminal prosecution and penalties. If you are not the=20 >intended recipient, you should delete this message immediately. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > =20 > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org ----------------------------------------- This message and its contents (to include attachments) are the property = of Kmart Corporation (Kmart) and may contain confidential and = proprietary information. You are hereby notified that any disclosure, = copying, or distribution of this message, or the taking of any action = based on information contained herein is strictly prohibited. = Unauthorized use of information contained herein may subject you to = civil and criminal prosecution and penalties. If you are not the = intended recipient, you should delete this message immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org