Hi Jython Users,
I am trying to create a medium complexity servlet based web-app .
This webapp is a kind of diagnostic application that will query the status of various java services deployed in the particular server. There are quite a few services and I may plan to write one servlet for each service. I also want to organize the jython servlets in packages, just like we do with the java servlet code.
To me, it seems that the PyServlet example will only work if we directly invoke the .py in the URL . The URL will be something like
If that is the case , why does the example ask us to add the servlet mapping in Listing 13-2 (of the link given above)?
Is it possible to invoke the NewJythonServlet by hitting a url like :
The organization of the code in the final war is :
and web servlet mapping is :
There is a discussion about using PlyJy and some PlyJy servlets. But I don't want to go down that path.
So, is it possible to invoke the jython servlet by hitting a "non-py" URL, as asked above ? What do we need to do achieve that ?
I apologize if I overlooked something mentioned in the document or something that is very obvious to a servlet expert.