hye all,
i have a problem on creating numbering indentation

exp:
1. [add sub]
1.1 [add sub]
1.2 [add sub]
2. [add sub]
2.1 [add sub]
2.1.1 [add sub]
2.1.2 [add sub]
2.2 [add sub]
3. [add sub]
3.1 [add sub]

and with every number, the user can have these link
add sub - if click on 1, it will make 1.1, if click on 1.1, it will create 1.1.1

id anyone have any idea on how to make these work ??
i'm using java/spring