Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to create a servlet and write its details in DD in PAR Application

Hi Experts,

I want to create a servlet in PAR application. This servlet should be capable of accessing the functions of other java files included in PAR Application. Servlet should be capable of accessing the functions say doContent(req, resp) of any class of PAR application.

Is it possible to create Servlet in PAR application?

I created one servlet but unable to declare its information in Deployment Descriptor.

Because the deployment which is provide ie portalapp.xml doesnt allow us to write tags like <servlet-name>, <servlet-mapping>, <url-pattern> etc. These are necessary for declaration of servlet.

So how can i write a complete working Servlet under PAR application?

Please help and replies will be appreciated.

Not what you were looking for? View more on this topic or Ask a question