Re: Accessing templates in jars

Keats Kirsch <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
I just tried a little test and it works fine for me with Tomcat 4.1.

See if you can modify the HelloWorld Servlet to load the template from a 
JAR.

Keats

Tim Pizey wrote:

>Hi Keats, 
> 
>  
>
>>From: [email protected] 
>>
>>This is odd.  It could be a Jetty issue.  
>>    
>>
>
>Also getting the same from Resin and tomcat5
>
>  
>
>>I took a quick look 
>>at the Jetty source
>>(http://cvs.sourceforge.net/viewcvs.py/jetty/Jetty/src/org/mor
>>tbay/jetty/servlet/ServletHandler.java?rev=1.121&view=markup)
>>and it looks like it requires the URI string to start with a 
>>slash.  Are you doing this?
>>    
>>
>
>No, just the normal template string 'org/melati/admin/Main.wm'
>
>
>  
>
>>More diagnostics would be helpful as well.
>>    
>>
>
>I am a bit stuck as to what more to do.
>We know that we are initialising the WM in the correct way, 
>we know it has the default properties file. 
>
>I will try to poke it a bit more. 
>
>thanks
>Tim
>
>
>  
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.