struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre_Beskro...@enron.net
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:

<servlet-mapping>
  <servlet-name>
    jsp
  </servlet-name>
  <url-pattern>
    *.jsp
  </url-pattern>
</servlet-mapping>

and

<servlet-name>
  jsp
</servlet-name>
<servlet-class>
  org.apache.jasper.runtime.JspServlet
</servlet-class>

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-mapping url-pattern='*.jsp'
>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
>
>
>



Mime
View raw message