I want to know how to implement the create version action via my servlet java code which in the side kick "versioning" tab,do you have some example code to use for reference, thanks!
I personally never did it but I'd give a try to javax.jcr.version.VersionManager
From pagemanager create a revision. Ex:-
Page page = pageManager.getPage(path);
Revision revision = pageManager.createRevision(page, label,comment));
Retrieving data ...