Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: equal symbol expected - where had I gone wrong?

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default equal symbol expected - where had I gone wrong?

    Hi,

    at my jsp page, I put in the following in order to use the jstl tag library but I'm not sure where I had gone wrong except Netbeans IDE kept saying equal symbol expected at the errror line.

    The line is :-

    <%@ taglib prefix="sql uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>

    and then I'm supposed to add in another line which is as below but not working as well.

    <%@ page import="java.io.*,java.util.*,java.sql.*"%>

    Hope someone can advise where I have gone wrong.
    Tks.


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: equal symbol expected - where had I gone wrong?

    Does it tell you whereabouts in the line the equals sign is expected? It's always best to copy and paste the full error text output if you want someone else to help you. I can see in the first line you've posted a problem with opening and closing speech marks ("). That's usually enough to stop XML working.

  3. #3
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: equal symbol expected - where had I gone wrong?

    Quote Originally Posted by Sean4u View Post
    Does it tell you whereabouts in the line the equals sign is expected? It's always best to copy and paste the full error text output if you want someone else to help you. I can see in the first line you've posted a problem with opening and closing speech marks ("). That's usually enough to stop XML working.
    Now, I tried to run the same declaration on another computer and it works.

    But, I am getting the following errors:-

    java.lang.NoClassDefFoundError: org/netbeans/modules/web/project/ant/JspCSingle
    Caused by: java.lang.ClassNotFoundException: org.netbeans.modules.web.project.ant.JspCSingle
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
    Could not find the main class: org.netbeans.modules.web.project.ant.JspCSingle. Program will exit.

    I don't understand what's going on. Can somebody please help?

Similar Threads

  1. string.equals(anotherString) Anything like this for doesn't equal?
    By Andyandhisboard in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 11th, 2011, 06:50 PM
  2. Replies: 3
    Last Post: February 22nd, 2011, 08:43 PM
  3. While JOptionPane equal Yes????
    By maximus20895 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 20th, 2010, 08:57 PM
  4. Nested Looping to find if Strings equal
    By aussiemcgr in forum Loops & Control Statements
    Replies: 4
    Last Post: July 9th, 2010, 03:08 PM
  5. Replies: 2
    Last Post: February 25th, 2010, 04:17 PM