I'm creating a new custom Action menu option where I call to a Servlet and I want to get all the files checked in the Content Center frame to be sent to that servlet. Check the following image:
The problem I found is that I don't get any attribute nor parameter in the request variable of the servlet with the reference to these files. I have researched in this forum and found something similar to what I want to do in this post:
/t5/TeamSite/Target-for-a-custom-menu-item/m-p/168361/highlight/true#M109033
And it explains that setting the target="fs_list" in the customization XML of the menu will do the job, but it seems I'm still missing something because I don't get any attribute or parameter with the reference to these files. When I log what I get as parameter, I get the following::
//Piece of code
Enumeration<String> paramsEnum = request.getAttributeNames();
while(paramsEnum.hasMoreElements()){
String param = paramsEnum.nextElement();
ServletRequestAttributes attribute = (ServletRequestAttributes)request.getAttribute(param);
LOGGER.debug("param: " + param);
LOGGER.debug("attribute: " + attribute.getClass().getName());
}
//Result:
2014-12-09 09:48:33,513 [http-0.0.0.0-8080-1] DEBUG com.herbalife.servlet.G11NLocale () - param: org.springframework.web.context.request.RequestContextListener.REQUEST_ATTRIBUTES
2014-12-09 09:48:33,514 [http-0.0.0.0-8080-1] DEBUG com.herbalife.servlet.G11NLocale () - attribute: org.apache.catalina.connector.RequestFacade@4a25ab
Does anybody know what can I do get the files in the request? Thank you very much!!
Platform: TeamSite 7.4.1
System: Windows Server 2008 R2 Enterprise 64 Bit