package gov.nih.nci.system.web.struts.action;

import gov.nih.nci.system.web.ajax.tree.Category;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;

public class Criteria extends BaseActionSupport {

	private static final long serialVersionUID = 1234567890L;

	private static Logger log = Logger.getLogger(Criteria.class.getName());

	private long nodeId;
	private Category currentCategory;

	public void setNodeId(long nodeId) {
		this.nodeId = nodeId;
	}

	public long getNodeId() {
		return nodeId;
	}

	public String execute() throws Exception {
		
		currentCategory = Category.getById(nodeId);
		log.debug(currentCategory);

		HttpServletRequest request = ServletActionContext.getRequest();

		// A Workaround for Criteria.jsp, which requires embedded JSP logic 
		request.setAttribute("klassName", getSelectedDomain());

		return SUCCESS;
	}

	public String getFullyQualClassName() {
		return getPackage() + "." + getNodeName();
	}

	public String getNodeName() {
		return currentCategory.getName();
	}

	public String getPackage() {
		return currentCategory.getPackageName();
	}

	public String getSelectedDomain() {
		return getPackage() + "." + getNodeName();
	}
	
}

package gov.nih.nci.system.web.struts.action;

import gov.nih.nci.system.web.ajax.tree.Category;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;

public class Criteria extends BaseActionSupport {

	private static final long serialVersionUID = 1234567890L;

	private static Logger log = Logger.getLogger(Criteria.class.getName());

	private long nodeId;
	private Category currentCategory;

	public void setNodeId(long nodeId) {
		this.nodeId = nodeId;
	}

	public long getNodeId() {
		return nodeId;
	}

	public String execute() throws Exception {
		
		currentCategory = Category.getById(nodeId);
		log.debug(currentCategory);

		HttpServletRequest request = ServletActionContext.getRequest();

		// A Workaround for Criteria.jsp, which requires embedded JSP logic 
		request.setAttribute("klassName", getSelectedDomain());

		return SUCCESS;
	}
	
	public String getJavaDocsClassName() {
		return (getFullyQualClassName().replace('.','/')+".html");
	}

	public String getFullyQualClassName() {
		return getPackage() + "." + getNodeName();
	}

	public String getNodeName() {
		return currentCategory.getName();
	}

	public String getPackage() {
		return currentCategory.getPackageName();
	}

	public String getSelectedDomain() {
		return getPackage() + "." + getNodeName();
	}
	
}

Fix for [#16845] Provide link in Domain Model Browser to Javadocs