public class MyLoginPostAction extends Action {
@Override
public void run(HttpServletRequest request, HttpServletResponse response)
throws ActionException {
//print attributes
Enumeration<String > reqAttr = request.getAttributeNames();
while(reqAttr.hasMoreElements()){
String attrName = reqAttr.nextElement();
System.out.println("Request attribute:" + attrName +" \t\tvalue:" + request.getAttribute(attrName));
}
}
}
output:
Request attribute:com.liferay.portal.servlet.filters.strip.StripFilterSKIP_FILTER value:true
Request attribute:COMPANY_ID value:10132
Request attribute:CTX value:org.apache.catalina.core.ApplicationContextFacade@264442
Request attribute:com.liferay.portal.servlet.filters.gzip.GZipFilterSKIP_FILTER value:true
Request attribute:VIRTUAL_HOST_LAYOUT_SET value:{layoutSetId=10159, groupId=10157, companyId=10132, privateLayout=false, logo=false, logoId=0, themeId=classic, colorSchemeId=01, wapThemeId=mobile, wapColorSchemeId=01, css=, pageCount=1, virtualHost=, settings=, layoutSetPrototypeId=0}
Request attribute:CURRENT_COMPLETE_URL value:http://localhost:8080/c
Request attribute:USER_ID value:10169
Request attribute:CURRENT_URL value:/c
No comments:
Post a Comment