gpt4 book ai didi

java - Fatwire 内容在发布后才第一次获得

转载 作者:太空宇宙 更新时间:2023-11-04 07:35:31 26 4
gpt4 key购买 nike

@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编译生命周期有关系吗?

最佳答案

Logging the invoked managed bean action in a PhaseListener

在 Phase Listener 中添加了该方法,现在工作正常。

关于java - Fatwire 内容在发布后才第一次获得,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16940288/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com