First question, What is Swagger? According to Wiki, Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services. Why we need Swagger With Swagger, you can maintain your REST services effectively. It is good for both business users and UI developers…
Generate Multiple Pages PDF Using JSPDF Plugin – Multipage JSPDF Example
Below is the running example for Multiple Pages PDF using JSPDF Plugin. This example includes usage of multiple components of JSPDF plugin like drawing a rectangle for heading, word wrap so that words doesn’t flow over, adding a page on run time, setting font size etc. JS Need to Include (Click To Download) JSPDF Plugin…
Simple Pagination Using JavaScript – Simple Pagination JS Example Code
Simple pagination is a java-script library with which we can achieve pagination to be handled on front end itself. No need to send the request again and again on the server. No need to maintain form fields to send filter data again to the server. Its quite simple as its name is. Plugin is –…
Cache Adapter In ATG
Cache adapter in ATG works in a similar way like EHCache does. We just have to call get(id) method of cache component. Here the passing parameter in get method will work as a key. For implementing cache adapter in ATG we need following components. XXXCache $class=atg.service.cache.Cache cacheAdapter=/com/xxx/cache/XXXCacheAdapter XXXCacheAdapter $class=com.xxx.cache.XXXCacheAdapter XXXCacheAdapter.java (Just provide implementation of getCacheElement. Override others…
How Volume Pricing Works In ATG – Example of Bulk Price Using PriceList
ATG OOTB supports volume pricing. We don’t have to make any changes to get bulk pricing works. Below are the simple steps for bulk pricing Create a new price list “Bulk Price List” in bcc with simple configuration Go to Catalog – Select Sku – Price List Tab Select newly price list “Bulk Price List”…
Catching Multiple Exceptions In One Catch Block In Java
Java 7 New Feature Writing same logic in every catch block is very tedious job and it also not good for readability of the Java program. In Java SE 7 and later, a single catch block can handle more than one type of exception. This feature can reduce code duplication and lessen the temptation to…
Bean Filtering In ATG REST MVC
Bean Filtering In ATG REST MVC is use to filter the response using beanFilteringConfiguration.xml of /atg/dynamo/service/filter/bean/BeanFilterService component. Filter the Response – What does it mean? Here filtering is used in context of sending only required properties in REST MVC response whether JSON or XML response. How Bean Filtering Works? ATG provides beanFilteringConfiguration.xml for manipulating the…
ATG Session Management – Sharing Parent WAR Session ID
In Java every web application has its own session information and this session information is applicable only with in that web application only. The application server like JBoss, Weblogic etc. are responsible for managing session for the web application. So What’s the big deal in ATG Session Management if session is managed by App Server??…
Default Shipping Group & Payment Group ATG
When an Order is first created, it has an empty ShippingGroup, which serves as the default Shipping Group for the Order and also an empty Payment Group which serves as the default Payment Group for the Order. The type of default groups that are created is determined by the defaultShippingGroupType & defaultPaymentGroupType property of the…
ATG Interview Questions and Answers For Exprienced
Read : ATG Interview Questions For 1-2 Years Experience What Is Servlet Pipeline In ATG ? How to write a Custom Servlet – Steps to write a new inject able servlet in pipeline. What is Commerce Pipeline – Steps to write a new processor. Payment Pipeline In ATG. Steps to add a new SM, SG,…