Take the 2-minute tour ×

I have a module written in servlets and needs to be recently moved to velocity framework So in the process I am rewriting the web.xml to create velocity servlet object whcih calls our original servlet .

Now if this has to be moved to


How can we acheive this and what are all changes need to use the existing servlet as it is. My Existing servlet looks like


This is loaded using the url http://localhost:8080/databridge/databridgeservlet

So in the newer case how velocity servlet calls this servlet

share|improve this question
You need to expand a bit. What is the existing servlet? What are the servlet mappings? What do you mean by "use the existing servlet as it is"? –  Kees de Kooter Jun 16 '09 at 12:21
yeah i had modified a little can you chek now please –  GustyWind Jun 16 '09 at 12:39

2 Answers 2

up vote 1 down vote accepted

You should take a look at: jpublish.org (I am the maintainer, therefore biased :) and replace your Servlet with a simple Action; scripting (BSH, JS) or Java, as you feel fit. My 0.2CAD

share|improve this answer

Have you looked at the VelocityViewServlet in the Velocity Tools project? This is a useful way of quickly getting Velocity pages on the web.


You can subclass this for more customizability if desired. And if nothing else, you can look at the source and use this as inspiration to make your own servlet.

share|improve this answer

Your Answer


