Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 93656 invoked by uid 500); 14 Mar 2001 18:32:09 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 93606 invoked from network); 14 Mar 2001 18:32:06 -0000 Received: from ns.enron.net (HELO ninja.enron.net) (209.51.83.242) by h31.sny.collab.net with SMTP; 14 Mar 2001 18:32:06 -0000 Received: from ecmta1.enron.net (ecmta1.enron.net [209.51.83.136]) by ninja.enron.net (8.10.2/8.10.2) with SMTP id f2EIVZX02562 for ; Wed, 14 Mar 2001 10:31:35 -0800 (PST) Received: by ecmta1.enron.net(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 88256A0F.0065C4A8 ; Wed, 14 Mar 2001 10:31:34 -0800 X-Lotus-FromDomain: ENRON COMMUNICATIONS From: Andre_Beskrowni@enron.net To: struts-user@jakarta.apache.org Message-ID: <88256A0F.0065C45A.00@ecmta1.enron.net> Date: Wed, 14 Mar 2001 12:28:52 -0600 Subject: RE: dynamically constructing non-jsp pages Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N right-o. it turns out that tomcat has something similar in the web.xml file: jsp *.jsp and jsp org.apache.jasper.runtime.JspServlet thanks, for pointing this out. ab > From: spronk@columbusgroup.com > Date: 03/14/2001 11:13 AM > >I assume one way should be by configuring your servlet/JSP >engine. For example in Resin, jsp files are processed by the >JspServlet servlet because of the mapping: > >servlet-name='com.caucho.jsp.JspServlet'/> > >I don't see why this wouldn't work for *.js. > >Martijn. > >-----Original Message----- >From: Andre_Beskrowni@enron.net [mailto:Andre_Beskrowni@enron.net] >Sent: March 14, 2001 8:51 AM >To: struts-user@jakarta.apache.org >Subject: dynamically constructing non-jsp pages > > > > >first, let me say that this is not necessarily struts-specific, but since >i'm >pretty much using struts exclusively these days, and this list generates so >much >more useful info than the sun jsp and servlet list, i decided to try here >first. > >here's my situation, i would like query a database and load the results for >some >reference tables into .js files, where they can then be quickly accessed for >client side validation. (not an ideal solution, i know, but it would take >me >along time to explain why we came to this decision.) i realize i can do >this >the hard way by directly printing out the response in the servlet, but i'd >like >to avoid that if possible. is there a way to dynamically load a page and >not >have it end with the .jsp suffix? > >thanks, > >ab > > >