Home » Archive

Articles in the ATG & Java Category

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 »

[14 Sep 2010 | 2 Comments | Posted By:LG]

          Aim of the article is to explain how to parse a Microsoft Excel file. The utility used for this purpose is POI utility, an open source utility by apache. In apache mission statement they say-
” The Apache POI Project’s mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2). In short,you can read and write MS Excel files using Java.”
HSSF is used in here for the excel reading and writing, …

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 »

ATG & Java »

[30 Jul 2010 | No Comment | Posted By:LG]

A decompiler does the reverse of a compiler, a lowel byte code into a high level language.Java decompiler will help you decompile a byte code file so that you can see the java code.
Steps in installing JADClipse(An eclipse plugin for decompiling)
1. Create a folder parallel to the eclipse installation named “JAD”, place the “jad.exe” file inside the folder.
2. Run the “jad.exe”.
3. Copy the jar file to the plugins folder in eclipse.(“jadclipse_3.2.2.jar”)
4. Restart your eclipse.
5.Go to window –>preferences–>Java–>jadeclipse. (Check the Picture below)

6.Set the “Path to Decompiler” as your “jad.exe” location.
7.Set the …

Read the full Post »