(HttpServletRequest) pageContext.getRequest();
StringBuffer url = new StringBuffer(request.getContextPath());
url.append(config.getPrefix());
url.append(page);
url.append(".do");
Product product = null;
try {
product = (Product) pageContext.findAttribute(name);
} catch (ClassCastException e) {
product = null;
}
if (product == null && !this.activity.equals("enter"))
throw new JspException
(messages.getMessage("error.generalMessage", name));
if (page.indexOf("?") < 0)
url.append("?");
else
url.append("&");
url.append("activity=");
url.append(this.activity);
if (!this.activity.equals("enter")) {
url.append("&productId=");
url.append(TagUtils.getInstance().filter(product.getId().toString()));
}
// Generate the hyperlink start element
HttpServletResponse response =
(HttpServletResponse) pageContext.getResponse();