Send Multiple Cookies As Part Of Response In Jersey Rest API

Jersey Jersey RESTful Web Services framework is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation. Sending Multiple Cookies While using REST API sometimes there is requirement to to maintain the cookies or session…

Read More

Creating Dynamic Success URL In FormHandler In ATG

Success URL In FormHandler in ATG Success URL in ATG is the URL used in formhandlers when we want to redirect the user after successful submission of form whether it is creating, updating or deleting a row. e.g

The above code will redirect the user to “succesurl.jsp” after successful submission of form i.e row…

Read More

ArrayList Class In Java

ArrayList Class In Java:- ArrayList uses array to store the elements. It extends AbstractList and implements List, RandomAccess(Marker Interface), Cloneable, Serializable. Three Constructors are available in ArrayList:- ArrayList() – Constructs an empty list with an initial capacity of 10. ArrayList(Collection<? extends E> c) – Constructs a list containing the elements of the specified collection, in the order they are returned…

Read More

ATG Interview Questions

ATG Interview Questions For 1-2 Years Experience Explain Architecture of ATG. What is Nucleus ? What is Repository in ATG ? Which Formhandlers you have used in ATG ? How Droplet Work ? How will you define one to many relationship in repository. How you use MAP in one to many relation. Difference between item-type…

Read More

GenericFormHandler And RepositoryFormHandler in ATG

GenericFormHandler And RepositoryFormHandler Classes In ATG Both of these classes in ATG are used to create a custom form handler to deal with user input and repositories. But these two classes have different purposes in terms of creating new form handler. The difference is GenericFormHandler Custom form handlers should typically extend GenericFormHandler, which: Is a…

Read More

Oracle Import Export From Remote System Using IMPDP & EXPDP

Oracle IMPDP and EXPDP Oracle provides two very good tool for importing and exporting data dump very efficiently and in very simple manner using new data pump feature. There are two ways to import data using data pump. Using IMPDP directly without dump file. Using IMPDP with dump file. Things To Consider – Utility command…

Read More

Process Steps When We Deploy Any Web Application On Server

When we are creating and deploying any web application on server, the following tasks happened on server side. Step 1:- web.xml parsed by using SAX Parser and stores in to memory. Step 2:- ServletContext object will be created and initialized by sevletContext parameter specified in web.xml. <context-param>………</context-param> Step 3:- Thread Pool will be created. Step 4:- Servlet…

Read More

Difference between init() & init(ServletConfig)

Question-What’s the difference between init() & init(ServletConfig) and Which is better ? Answer- Before start we have to understand the servlet flow. For example you have servlet LoginServlet which extends HttpServlet

And your HttpServlet internally extends GenericServlet.

Now servlet container flow Step 1. Loads the servlet class and create instance of the servlet…

Read More