I need to use some connectors which are actually servlets. How can I do this in Grails and what about the web.xml? How do I configure the url of the servlet?
I actually have a Spring application here and I am trying to convert it into a partial Grails app. I have a connector servlet in the spring-app, which I wish to use here but the mapping is a must to call the servlet in the gsp file. How can I do this? I basically need to know where the xml file is in case of Grails.
To get the
web.xmlfile, you can run:Then, the file can be found in:
Edit this as usual to add
<servlet>and<servlet-mapping>sections, then put your servlet code in:and you should be good to go