Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: jsp problem

  1. #1

    Default jsp problem

    hi everyone..

    do u guys know how to retrieve the database to the jsp file?
    as i code this jsp, some errors occurs.....
    This is my part of my jsp coding...

    parameters = new SimpleParameterProvider();

    // set the value displayed on the dial
    parameters.setParameter("value", "<![CDATA[select expenses from testing ]]">

    parameters.setParameter( "title", "Actual Sales by Month" );

    // set the width and the height
    parameters.setParameter( "image-width", "105"); parameters.setParameter( "image-height", "105");

    content = new StringBuffer();
    messages = new ArrayList();

    // call the chart helper to generate the pie chart image and to get the HTML content
    // use the chart definition in //'samples/dashboard/mydial.widget.xml'

    ChartHelper.doDial( "samples", "dashboard", "mydial.widget.xml", parameters, content, userSession, messages, null );

    %>

    can any1 help me to solve this problem?
    pls help

    regards,
    mysterious_man

  2. #2
    Join Date
    Oct 2006
    Posts
    817

    Default

    Can you please provide the error message or stack trace? If this is the exact Java code in your JSP, then it will fail to compile.

  3. #3

    Default jsp problem

    hi mlowery...thx for the reply.
    here is the error i obtained:

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: Unable to compile class for JSP

    Generated servlet error:
    Syntax error on token "*", delete this token

    An error occurred at line: 211 in the jsp file: /jsp/ThisIsMySampleDashboard.jsp
    Generated servlet error:
    Syntax error on token ">", Expression expected after this token


    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.pentaho.core.system.SystemStatusFilter.doFilter(SystemStatusFilter.java:53)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    root cause

    org.apache.jasper.JasperException: Unable to compile class for JSP

    Generated servlet error:
    Syntax error on token "*", delete this token

    An error occurred at line: 211 in the jsp file: /jsp/ThisIsMySampleDashboard.jsp
    Generated servlet error:
    Syntax error on token ">", Expression expected after this token


    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.pentaho.core.system.SystemStatusFilter.doFilter(SystemStatusFilter.java:53)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

    b4 tat i forgot to close the ")" bracket on this line:
    "parameters.setParameter("value", "<![CDATA[select expenses from testing ]]">);"

    but as i correct this error, then appear these errors as shown above...

    do u know wat errors that i had done?
    thx...

    regards,
    mysterious_man

  4. #4
    Join Date
    Oct 2006
    Posts
    817

    Default

    This line:

    Code:
    parameters.setParameter("value", "<![CDATA[select expenses from testing ]]">);
    should be:

    Code:
    parameters.setParameter("value", "<![CDATA[select expenses from testing ]]>");
    (The final double-quote should be after the > character.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.