用request.setAttribute存入,发现debug中没有相应的值,但是用session有;以前类似的存储request.setAttribute能在debug中显示数据,但是这次却不能。为什么?急急!!!!!public class ContentAction extends ActionSupport{ private static final long serialVersionUID = 1L;

IContentService contentService = (IContentService) BeanFactory.getBean(BeanFactory.CONTENTSERVICE); public IContentService getContentService() {
return contentService;
} public void setContentService(IContentService contentService) {
this.contentService = contentService;
} //根据s2遍历内容
@SuppressWarnings({ "unchecked", "deprecation" })
public String findContentByS2(){
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
HttpSession session = request.getSession();
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = null;
Map<String, String> findContentByS21 = new TreeMap<String, String>();
Map<String, String> findContentByS22 = new TreeMap<String, String>();
try {
Enumeration e=session.getAttributeNames(); 
while(e.hasMoreElements()){ 
String sessionName=(String)e.nextElement(); 
System.out.println("存在的session 有:"+sessionName); 
System.out.println("session的值:"+session.getValue(sessionName));
session.removeAttribute(sessionName); 
System.out.println("移除成功:"+sessionName);
System.out.println("session的值:"+session.getValue(sessionName));
}
out = response.getWriter();
String s2_1 = request.getParameter("s2");
String s2 = new String(s2_1.getBytes("iso8859-1"), "UTF-8");
// System.out.println("s2 = " + s2);
List<WjContent> list = contentService.findList(s2);
Iterator<WjContent> it = list.iterator();
while(it.hasNext()){
WjContent wc = it.next();
if(s2 != null){
out.print("1");
out.flush();
out.close();
findContentByS21.put(wc.getTitle(), wc.getContent());
findContentByS22.put(wc.getTitle(), wc.getCode1());
System.out.println("map:="+wc.getTitle()+"+"+wc.getCode1());
}
else{
out.print("0");
out.flush();
out.close();
return "false";
}
}
request.setAttribute("findContentByS21", findContentByS21);
request.setAttribute("findContentByS22", findContentByS22);
session.setAttribute("findContentByS21", findContentByS21);
session.setAttribute("findContentByS22", findContentByS22);
} catch (ServiceException e) {
e.printStackTrace();
addActionError(e.getMessage());
} catch (IOException e) {
e.printStackTrace();
}
return "success";
}

}debug内容:
这是request {.freeer.RequestParameters=freeer.ext.servlet.HttpRequestParametersHashModel@1a4ffed, .freeer.Request=freeer.ext.servlet.HttpRequestHashModel@597f10, struts.valueStack=com.opensymphony.xwork2.util.OgnlValueStack@126ec25} 这是session 
{findContentByS22={你好=2010-08-13, 天门=2010-08-13}, findContentByS21={你好=同志们辛苦了 , 天门=xxxxxx}}