Mohammad Ashfaq
Mohammad Ashfaq

Reputation: 1375

Incorporate servlet in worklight project

I have created one Worklight Project, which contains application that downloads the documents using one servlet. Is it possible to put this servlet within the same worklight project? If yes, then how to put it?

Currently I have separate "Dynamic Web Project" for this single servlet.

Upvotes: 0

Views: 74

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

To declare your servlet, you'll need to edit web.xml, which resides inside the .war file that is generated by Worklight Studio, which you then need to deploy to your application server.

However, whenever you run the project (Run As > Run on Worklight Development Server) the .war file gets re-generated, so you will find yourself losing your added servlet every time.

So while it is possible technically, it is not a very viable way to integrate your servlet.
I would say that your current approach is better.

Upvotes: 1

Related Questions