Home » Archive

Articles tagged with: ATG

ATG & Java »

[17 Nov 2011 | No Comment | Posted By:Sam]

Some very basic stuffs in ATG, go ahead and read if you are looking for simple things, veteran ATG developers please stay away as you wont find it resourceful. Here in this article you will not find any codes but some basic interview questions.

Read the full Post »

ATG & Java »

[24 Feb 2011 | No Comment | Posted By:Sam]

Dynamically generating HTML from a java object is a very common requirement for most applications. The droplet tag will help us in this by embedding the ATG servlet beans. The output of the ATG servlet beans is included in the HTML page. In this article our prime focus will be on a simple  ATG Out of the  Box servlet bean.
DSP:DROPLET tag: helps you invoke a servlet bean from a JSP page. The programming logic will be encapsulated in a java class(bean) which is used in the jsp.
ForEach Droplet: (“atg.droplet.ForEach” is …

Read the full Post »

ATG & Java, Tech Corner »

[18 Feb 2011 | One Comment | Posted By:Sam]

The previous article on DSP tags was on June 2010, almost an year back and since then i had very less chances using dsps.Now again i am back into the jsp and dsp. So here in this article i will try to explain few more tags and there usage. Come back to me for any doubts i can help you.
DSP PARAM tag: for input parameter.
This tag holds an input parameter with name and value, which are made available to the parent servlet bean(Eg: for servlet beans atg.droplet.ForEach,atg.droplet.Switch,atg.droplet.Format,atg.droplet.IsEmpty). Two attributes, name …

Read the full Post »

ATG & Java »

[29 Oct 2010 | No Comment | Posted By:Sam]

Here are a few interview questions i came across recently.Though Very basic questions this might help the reader in someway. Don’t think you will come across such simple questions if you are aiming a big ATG based project. But surely these questions will throw some light into your understanding in ATG Framework. All the answers are two liners which is just the first line of thought to the question.
1.  What is atg Nucleus??
Nucleus is a ATG container for components. It creates and initializes component instances on request. It manages …

Read the full Post »

ATG & Java »

[8 Aug 2010 | No Comment | Posted By:Sam]

The code below explains how to get the value of a particular node from an XML. Dont forget to take a look into the imports in the class as the XMLToDOMParser and ApacheXMLToolsFactory are two very important packages you can’t forget for this code to work. “xPath” gives the node we have to find. The string variable “xPath” is defined in a particular way. The path in the eg: file(testParsingXML.java) will lead you to the node named “category“. Here is another example to know how to write the xPath:=  /root/son[@name=\"firstchild\"]/grandson[@name=\"gs1\"]
This …

Read the full Post »