Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8014145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:50:36+00:00 2026-06-04T19:50:36+00:00

I have a jsp proyect as a presentation layer to show the result (a

  • 0

I have a jsp proyect as a presentation layer to show the result (a simple string) from a function from a java class. This class is in the src directory.

When I try to run I get this errors:

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

and then:

parser cannot be resolved to a type

My jsp code is:

<%
        String input="ebnf a{non terminal A;}";
        Symbol tree=null;
        parser p=null;
        InputStream entrada=null;
        analex analizador;
        try{
            entrada=new ByteArrayInputStream(input.getBytes("UTF-8"));
            analizador=new analex(entrada);
            p=new parser(analizador);
            tree=p.parse();
        }catch(Exception e){
            out.println("ERROR");
        }
        finally{}
        out.println("CORRECTO");
        ConDiaCClass cdc=Singleton.getInstance();
        out.println(cdc);
%>

Actually I get the same problem with ConDiaCClass and analex classes too.

I have not created these class with Eclipse. They are from another project but they both are placed in the src directory (where the java classes are suposed to be). It seems that the jsp cannot recognize them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:50:39+00:00Added an answer on June 4, 2026 at 7:50 pm

    Finally it was just that the classes hadn’t got the visibility atribute. I had not the public attribute for them so they could not be resolved as a type although the jsp knew where they are.

    That was a JFlex/CUP problem: JFlex & CUP creates classes (analex & parser) without a visibility attribute.

    Thank you for you answers. Next time I’ll try to be more specific with my questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have jsp page and html form with button on this. How execute java
I have checked out a java servlet project from subversion that has a strange
I have a two simple IceFaces buttons created this way. (I don't use xhtml
I have created a JSP test framework but running into this issue if I
I have a project which will be made up mostly of Java Servlets, JSP/Html
I have a Java/Spring MVC/JSP/JSTL webapp. We have a designer that gave us some
I am implementing a shopping website through JSP. I have a Java object called
I have read this jsp page encoding problem and this Save Chinese characters with
I'm developing a simple project.In this project i'm using n no of jsp pages
(I've removed client name because of NDA) Java/JSP newbie here. I have a JSP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.