There is no direct method offered by servlet API to delete a cookie on server side. This is how you can go about doing it. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 Asynchronous Servlets in Servlets 3 Loop through the cookies in the request object to locate the one …
Advantages and Disadvantages – JSF
JSF is becoming more popular framework for user interface layer development, many architects and companies assuming that Struts is becoming outdated and JSF is catching up the market. I am not sure whether it is true at this point of time. However I would like to express my critic on the advantages and disadvantages of …
Custom DateTimeConverter in JSF
By default JSF using GMT timezone to convert the date into display format. Here is a simple solution where you can provide your custom date time converter. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF 1) Write a new custom converter by extending existing DateTimeConverter class. Bind your new …
Benefits of using Web Services
Benefits of using Web Services Exposing the function on to network: A Web service is a unit of managed code that can be remotely invoked using HTTP, that is, it can be activated using HTTP requests. So, Web Services allows you to expose the functionality of your existing code over the network. Once it is …
What is Adobe Flex?
Flex is a programming language developed on adobe technology to enhance the users capability in building rich internet applications. This latest adobe technology possesses all flash features. Flex is embedded with two languages MXML and Action Script respectively. Among all known scripting languages Action Script is one of them that comes along with Flex. Adobe …
Mixing Generics And Non-Generics Code
If we are work on code that uses generics that is fine and what will happen if we want to mix both generic and non generic code. Consider below Animal class also read: New Features in Java 5.0 Generics in Java 5.0 Annotations in Java 5.0 if we create the list like below will it …
How to use ? extends in Generics?
In generics as we know we can not assign subclass generic type to super class generic type, for example will not compile even though Dog IS-AN Animal. the reason for this is already explained in generics basics section. How can we solve this particular problem????? we can solve this problem by using wildcard in generics, …
Request Lifecycle in Struts 2.0 applications
1User Sends request: User sends a request to the server for some resource. FilterDispatcher determines the appropriate action: The FilterDispatcher looks at the request and then determines the appropriate Action. Interceptors are applied: Interceptors configured for applying the common functionalities such as workflow, validation, file upload etc. are automatically applied to the request. Execution of …