Re: [Simpleweb-Support] Service and Template serving
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2005-06-27 13:45:36
|
Hi, If you have a look at the simple-demo-1.0 package in the download page (http://simpleweb.sf.net/download) you can see a demo server implementation which serves velocity templates. What you can do is take a look at the services implemented here. Looking at the mapper.properties file you'll see path references paired with service class names. This is how Simple serves a resource using a Service. In here you can place the name of your BasicService implementation. Simple makes no distinction between types of services it loads. For example: package test; public class MyService extends BasicService { public MyService(Context context) { super(context); } // etc ... } And in mapper.properties you would add the following entry: /path/*=test.MyService This should work! Regards Niall --- Maratib Ali Khan <ma...@ga...> wrote: > hi there > > how can i make the simple web server to server > velocity pages as well as normal services extended > from BasicService > > > regards > > Maratib > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |