Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 30127 invoked from network); 16 Dec 2002 16:45:53 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 16 Dec 2002 16:45:53 -0000 Received: (qmail 19716 invoked by uid 97); 16 Dec 2002 16:46:48 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 19699 invoked by uid 97); 16 Dec 2002 16:46:47 -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 19687 invoked by uid 98); 16 Dec 2002 16:46:46 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) content-class: urn:content-classes:message Subject: RE: Forward to a servlet Date: Mon, 16 Dec 2002 08:44:15 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6334.0 Thread-Topic: Forward to a servlet Thread-Index: AcKk1zxv47PjKBDJEdeorgAIx78tMgASy3AQ From: "Karr, David" To: "Struts Users Mailing List" X-OriginalArrivalTime: 16 Dec 2002 16:44:14.0873 (UTC) FILETIME=[5E433890:01C2A522] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N That appears to be the correct structure. Make sure you get the names = correct. Also note that Tomcat's jspc generates the "web.xml" excerpt, = you shouldn't have to write this by hand. > -----Original Message----- > From: Billy Ng [mailto:kwokng@earthlink.net] >=20 > So, should I do this? >=20 > web.xml > =3D=3D=3D=3D=3D > > > AccountHTML_jsp > > > com.mydomain.AccountHTML_jsp > > > > > AccountHTML_jsp > > > /AccountHTML.jsp > > >=20 > struts-config.xml > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > type=3D"com.mydomain.AccountsAction" > name=3D"accountsForm" > validate=3D"false" > input=3D"/WEB-INF/jsp/AccountsHTML.jsp"> > > >=20 > Billy Ng >=20 > ----- Original Message ----- > From: "David M. Karr" >=20 > > >>>>> "Billy" =3D=3D Billy Ng writes: > > > > Billy> Hi folks, > > Billy> In my Struts app, I am using the Action to call=20 > the jsp file. > In the struts-config.xml, the action tag looks like this, > > > > Billy> > Billy> type=3D"com.mydomain.AccountsAction" > > Billy> name=3D"accountsForm" > > Billy> validate=3D"false" > > Billy> input=3D"/WEB-INF/jsp/AccountsHTML.jsp"> > > Billy> path=3D"/WEB-INF/jsp/AccountsHTML.jsp"/> > > Billy> > > Billy> Because of some deployment issue, I need to=20 > pre-compile the jsp > files. I successfully use the ANT's jspc tag to compile the=20 > all the jsp > files to java files, then compile them to java files. =20 > However, I cannot > make it use the servlet in the forward tag. I tried to do this > (AccountsHTML_jsp is class file of the compiled version of > AccountsHTML.jsp), but I get 404 page. > > Billy> > Billy> type=3D"com.mydomain.AccountsAction" > > Billy> name=3D"accountsForm" > > Billy> validate=3D"false" > > Billy> input=3D"/WEB-INF/jsp/AccountsHTML.jsp"> > > Billy> path=3D"/WEB-INF/ui/AccountsHTML_jsp"/> > > Billy> > > > > Billy> Would anybody knows how can I make this work? > > > > You don't change your "struts-config.xml" at all to use=20 > precompiled JSP > pages. > > You do have to change your "web.xml" file, however, to=20 > include the servlet > > mappings for the generated servlets. You also have to include the > generated > > and compiled servlet class files in your WAR file. > > > > -- > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > David M. Karr ; Java/J2EE/XML/Unix/C++ > > dmkarr@earthlink.net ; SCJP > > > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > >=20 >=20 > -- > To unsubscribe, e-mail: =20 For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: