# getting fullpath of a Subtreefolder inside reactOnSelect()

**URL:** <https://techcommunity.softwareag.com/t/getting-fullpath-of-a-subtreefolder-inside-reactonselect/57545>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [December 22, 2006, 8:21pm UTC](https://techcommunity.softwareag.com/t/getting-fullpath-of-a-subtreefolder-inside-reactonselect/57545 "2006-12-22T20:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulbrother](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@soulbrother](https://techcommunity.softwareag.com/u/soulbrother)\
**Post date:** [December 22, 2006, 8:21pm UTC](https://techcommunity.softwareag.com/t/getting-fullpath-of-a-subtreefolder-inside-reactonselect/57545/1 "2006-12-22T20:21:44Z")

</div>

Hi Guys

I use a Client tree to mirror a directory, everything works fine but i need the fullpath of the folder the User selected.

Code is here:  
public void reactOnSelect(){  
System.out.println(Params.getApplicationDirectoryName(“AjaxLayout”));  
}  
This gives me the Fullpath to the Project what i need is the full path to the selected Folder.

I need something like Params.getSelectedFolderPath(this.getText());

Thankx for Help

Soulbrother

---

<div class="post-metadata">

**Author:** ![Ingo\_Oellers](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@Ingo\_Oellers](https://techcommunity.softwareag.com/u/Ingo_Oellers)\
**Post date:** [January 2, 2007, 5:23pm UTC](https://techcommunity.softwareag.com/t/getting-fullpath-of-a-subtreefolder-inside-reactonselect/57545/2 "2007-01-02T17:23:51Z")

</div>

Hello,  
the easiest way is to store the full path in each node object.

Instantiate your TreeItems :. For example

public class TreeItem extends NODEInfo  
{  
String m\_path;

```
public TreeItem(String path )
{   

	m_path = path;
}

public void reactOnSelect()
{

```

// Identify your selected node here and do something with m\_path…  
}

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/getting-fullpath-of-a-subtreefolder-inside-reactonselect/57545/3 "2021-04-02T14:38:42Z")

</div>


