@Autowired
private xxx abc;
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
doPost(request, response);
}
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
System.out.println("Inside the do Servlet!!!");
String pageId = request.getParameter("pageId");
abc.resetSessionVariables();
FatwireContent content=new FatwireContent();
abc.setFatwireContent(content);
System.out.println(abc.retrieveFatWireContent(
"xxxx", "xxxx"));
abc.getFatwireContent().setImportantinformation(
abc.retrieveFatWireContent(
"xxxx", "xxxx"));
abc.getFatwireContent().setMainlegalfootnote(
abc.retrieveFatWireContent(
"xxxx", "xxxx"));
abc.getFatwireContent().setMethodology(
abc.retrieveFatWireContent(
"RetirementAdvisorTool", "Methodology"));
abc.getFatwireContent().setThingstoImproveOutcome(abc.retrieveFatWireContent(
"xxxx", "xxxx"));
if (pageId != null && "Step1".equals(pageId))
response.sendRedirect("xxxx.faces");
else
response.sendRedirect("xxxx.faces");
}
上面的代码仅在发布后第一次填充 fatwire 内容。在所有其他时间,我都可以看到 fatwire 内容被打印出来,但页面中没有任何内容。fatwire 内容正在检索纯 html。与jsp编译生命周期有关吗?