Servlets are useful while handling requests coming from web browsers and setting responses according to the requests and after process them. In WSO2 carbon environment,OSGI UI bundles are exposed to web and sometimes there might be cases where we need to use a servlet and process on it according to web browser requests.Following steps will help you in such cases when you need to add a servlet for an UI bundle. Pre-requesties- Any product server from WSO2 Carbon products [1] IntelliJ IDEA 10.0 Maven 2.1.0 or higher JDK 1.6 or higher 1.First create a servlet class by extending HttpServlet abstract class inside an OSGI bundle.You can create a new UI-bundle by creating a new maven project and add this servlet class inside it..You can refer the WSO2 dashboard UI bundle code structure fro m here[2].Else For a new bundle you need to import 'javax.servlet' package from bundle pom.xml as we did for wso2 dashboard UI bundle pom.xml[3]. 2.Then you need to add...