I have created a servlet that renders a table. Every row of this table has on its right side a button. This button has a onclick event defined:
onclick=window.location='../../../jira/secure/PersonUpdateAction.jspa?action=update&id=$id'>
The PersonUpdateAction is a webwork item that exends the JiraWebActionSupport. The doExecute method is invoked:
@Override
public String doExecute() {
try {
HttpServletRequest request = this.getHttpRequest();
IInsertUpdateHelper insertUpdateHelper = InsertUpdateHelperFactory.getInstance(i18nHelper, userManager);
Map<String, Object> context = insertUpdateHelper.doAction(request);
this.personBean = (PersonBean)context.get("personBean");
} catch (DataAccessException e) {
LOGGER.debug("catastrophe2: ", e);
}
return SUCCESS;
}
My problem is that after the doExecute in my velocity for testing:
<html>
<head>
<meta name="decorator" content="atl.admin">
</head>
<body>context: ${requestContext.baseUrl}</body>
</html>
nothing is shown. The requestContext.baseUrl is empty, the decorator does not show anything. I can not access anything that Jira normally provides.