Jsp:包含抛出非特定错误

发布于 2025-01-01 21:34:38 字数 2384 浏览 0 评论 0原文

我试图将布尔变量传递到包含页面,但我收到的错误没有帮助。我对 JSP 也很陌生,所以我正在适应阅读基于 Java 的错误日志。

<%
boolean publications = false;
%>

<jsp:include page="scopusfeed.jsp">
    <jsp:param name="publications" value="<%= publications %>" />
</jsp:include>

我收到的错误是:

    Error Message:

    org.apache.sling.api.scripting.ScriptEvaluationException: 
    Processing Info:

    Page    =   /content/tju/population_health/faculty/abatemarco   
    Resource Path   =   /content/tju/population_health/faculty/abatemarco/jcr:content/facultymember 
    Cell    =   facultymember   
    Cell Search Path    =   facultymemberpage|popuppage|standardpage|page/facultymember|parbase 
    Component Path  =   /apps/tju/components/content/faculty/facultymember  
    Sling Request Progress:

          0 (2012-02-01 12:33:03) TIMER_START{Request Processing}
          0 (2012-02-01 12:33:03) COMMENT timer_end format is {,} 
          0 (2012-02-01 12:33:03) LOG Method=GET, PathInfo=/content/tju/population_health/faculty/abatemarco.html/publications
          0 (2012-02-01 12:33:03) TIMER_START{ResourceResolution}
          0 (2012-02-01 12:33:03) TIMER_END{0,ResourceResolution} URI=/content/tju/population_health/faculty/abatemarco.html/publications resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/tju/population_health/faculty/abatemarco
          0 (2012-02-01 12:33:03) LOG Resource Path Info: SlingRequestPathInfo: path='/content/tju/population_health/faculty/abatemarco', selectorString='null', extension='html', suffix='/publications'
          0 (2012-02-01 12:33:03) TIMER_START{ServletResolution}
          0 (2012-02-01 12:33:03) TIMER_START{resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/tju/population_health/faculty/abatemarco)}
          0 (2012-02-01 12:33:03) TIMER_END{0,resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/tju/population_health/faculty/abatemarco)} Using servlet /libs/foundation/components/primary/cq/Page/Page.jsp
          0 (2012-02-01 12:33:03) TIMER_END{0,ServletResolution} URI=/content/tju/population_health/faculty/abatemarco.html/publications handled by Servlet=/libs/foundation/components/primary/cq/Page/Page.jsp
          0 (2012-02-01 12:33:03) LOG Applying Requestfilters
.......... more of the same

I am trying to pass a Boolean variable to an include page, but the error I'm receiving is not helpful. I'm also very new to JSP so I'm adapting to reading Java-based error logs.

<%
boolean publications = false;
%>

<jsp:include page="scopusfeed.jsp">
    <jsp:param name="publications" value="<%= publications %>" />
</jsp:include>

The error I am receiving is:

    Error Message:

    org.apache.sling.api.scripting.ScriptEvaluationException: 
    Processing Info:

    Page    =   /content/tju/population_health/faculty/abatemarco   
    Resource Path   =   /content/tju/population_health/faculty/abatemarco/jcr:content/facultymember 
    Cell    =   facultymember   
    Cell Search Path    =   facultymemberpage|popuppage|standardpage|page/facultymember|parbase 
    Component Path  =   /apps/tju/components/content/faculty/facultymember  
    Sling Request Progress:

          0 (2012-02-01 12:33:03) TIMER_START{Request Processing}
          0 (2012-02-01 12:33:03) COMMENT timer_end format is {,} 
          0 (2012-02-01 12:33:03) LOG Method=GET, PathInfo=/content/tju/population_health/faculty/abatemarco.html/publications
          0 (2012-02-01 12:33:03) TIMER_START{ResourceResolution}
          0 (2012-02-01 12:33:03) TIMER_END{0,ResourceResolution} URI=/content/tju/population_health/faculty/abatemarco.html/publications resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/tju/population_health/faculty/abatemarco
          0 (2012-02-01 12:33:03) LOG Resource Path Info: SlingRequestPathInfo: path='/content/tju/population_health/faculty/abatemarco', selectorString='null', extension='html', suffix='/publications'
          0 (2012-02-01 12:33:03) TIMER_START{ServletResolution}
          0 (2012-02-01 12:33:03) TIMER_START{resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/tju/population_health/faculty/abatemarco)}
          0 (2012-02-01 12:33:03) TIMER_END{0,resolveServlet(JcrNodeResource, type=cq:Page, superType=null, path=/content/tju/population_health/faculty/abatemarco)} Using servlet /libs/foundation/components/primary/cq/Page/Page.jsp
          0 (2012-02-01 12:33:03) TIMER_END{0,ServletResolution} URI=/content/tju/population_health/faculty/abatemarco.html/publications handled by Servlet=/libs/foundation/components/primary/cq/Page/Page.jsp
          0 (2012-02-01 12:33:03) LOG Applying Requestfilters
.......... more of the same

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羅雙樹 2025-01-08 21:34:38

尝试使用参数单独运行包含的 jsp scopusfeed.jsp

你的代码没有问题。我相信包含的jsp本身存在一些错误。调用 scopusfeed.jsp?publications=false 然后查看错误。

这可以澄清实际的错误。

Try to run the included jsp scopusfeed.jsp separately with the parameter.

There is no issue with your code. I believe there is some error in the included jsp itself. call scopusfeed.jsp?publications=false and then have a look at the errors.

That could clarify the actual error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文