Java 发布后仅第一次获取Fatwire内容
以上代码仅在发布后第一次填充fatwire内容。所有其他时间,我都能看到fatwire内容被打印出来,但页面中没有任何内容。fatwire内容正在检索纯HTML。是否与jsp遵从生命周期有关?? 在Phase Listener中添加了该方法,现在工作正常。 在Phase Listener中添加了该方法,现在工作正常Java 发布后仅第一次获取Fatwire内容,java,spring,spring-mvc,fatwire,Java,Spring,Spring Mvc,Fatwire,以上代码仅在发布后第一次填充fatwire内容。所有其他时间,我都能看到fatwire内容被打印出来,但页面中没有任何内容。fatwire内容正在检索纯HTML。是否与jsp遵从生命周期有关?? 在Phase Listener中添加了该方法,现在工作正常。 在Phase Listener中添加了该方法,现在工作正常 @Autowired private xxx abc; protected void doGet(HttpServletRequest request, HttpS
@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");
}