perwendel/spark — comment on commit c4b5a13b74202d06c76edf70aacf1e4602cc7cdf
File: src/test/java/spark/servlet/MyApp.java line 0
By perwendel:

Hi,

To answer your question fast. In your web.xml you'll need to add:

SparkFilter
spark.servlet.SparkFilter

applicationClass
com.name.MyAppName

SparkFilter
/*

Your com.name.MyAppName class needs to implement
spark.servlet.SparkApplication.

In the init() method you can add routes as you would do in your main method
when running Spark standalone.

Best regards,
Per

2011/11/30 Hallison Batista <
reply@reply.github.com
>

> Per,
>
> You could write a web application example (using tomcat)? Thanks.
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/perwendel/spark/commit/c4b5a13b74202d06c76edf70aacf1e4602cc7cdf#commitcomment-756172
>