struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: dynamically constructing non-jsp pages
Date Wed, 14 Mar 2001 18:28:52 GMT

right-o.  it turns out that tomcat has something similar in the web.xml file:




thanks, for pointing this out.


>  From:
> 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-mapping url-pattern='*.jsp'
>I don't see why this wouldn't work for *.js.
>-----Original Message-----
>From: []
>Sent: March 14, 2001 8:51 AM
>Subject: dynamically constructing non-jsp pages
>first, let me say that this is not necessarily struts-specific, but since
>pretty much using struts exclusively these days, and this list generates so
>more useful info than the sun jsp and servlet list, i decided to try here
>here's my situation, i would like query a database and load the results for
>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
>along time to explain why we came to this decision.)  i realize i can do
>the hard way by directly printing out the response in the servlet, but i'd
>to avoid that if possible.  is there a way to dynamically load a page and
>have it end with the .jsp suffix?

View raw message