the reload command only tells maverick to reload maverick.xml. basically to
refresh its mappings. you use the feature so that if you change maverick.xml
you don't need to restart the webapp. it should also reload all stylesheets
referenced in maverick.xml (this was working the last time I tried it).

for working on stylesheets, though, i generally found it more useful to set
template-caching to disabled on the XSLTransformFactory:

 <transform-factory type="xslt"
provider="org.infohazard.maverick.transform.XSLTransformFactory">
   <default-output-type value="text/html"/>
   <template-caching value="disabled"/>
   <uri-resolver value=""/>
 </transform-factory>

This will cause maverick to not cache stylesheets at all so as soon as you
edit them you will see the changes--note this will destroy performance, so
its great on a dev server, horrible on a live server.

--jim


----- Original Message ----- 
From: "Thompson, Kris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 12:19 PM
Subject: RE: [Mav-user] Reload command in web.xml


Sorry I don't have an answer for this but I would like to ask why would one
want to use this feature anyway?  What is the true benefit?

Kris

> -----Original Message-----
> From: Marcel Kung [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 7:22 PM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] Reload command in web.xml
>
>
> In previous mav-user list archives there is mention of using the
> reloadCommand to cause Maverick to reload all the maverick.xml and XSL
> changes automatically. In particular email
> http://sourceforge.net/mailarchive/message.php?msg_id=110721
> references the
> following settings in web.xml:
>
> <servlet>
>   <servlet-name>dispatcher</servlet-name>
>   <display-name>Maverick Dispatcher</display-name>
>
>   <servlet-class>org.infohazard.maverick.Dispatcher</servlet-class>
>   <init-param>
>     <param-name>reloadCommand</param-name>
>     <param-value>reload</param-value>
>  </init-param>
>  <load-on-startup>2</load-on-startup>
> </servlet>
>
> This appears in the Friendbooks examples and I have tried the
> examples under
> both Tomcat and Resin and in neither does this reload appear
> to work. You
> can change the xsl stylesheets and maverick.xml and refresh
> the browser but
> until you restart the server nothing changes. How is this
> reload supposed to
> work?
>
> Cheers,
> Marcel
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06
1203_01/01
[INVALID FOOTER]


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
[INVALID FOOTER]



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
[INVALID FOOTER]

Reply via email to