Tuesday, October 14, 2014

ATG: Nucleus tips

Get current request URI

1
2
3
import atg.servlet.ServletUtil;
//...
ServletUtil.getCurrentRequest().getRequestURI();

Define a collection of components

Java:
1
2
3
4
5
6
7
8
9
protected Component [] componentes;
 
public void setComponents(Component [] components) {
   this.components = components;
}
     
public Component [] getComponents() {
   return components;
}

Properties:
components=\
 /path/to/some/Component,\
        /path/to/another/Component


No comments:

Post a Comment