Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2008, 11:27 PM
Member
 
Join Date: Jun 2008
Posts: 2
Aerinai is on a distinguished road
Imports broken in JSP; HTTP Status 500-
I believe my import functions are not working properly in JSP. What is happening is I have a Tomcat servlet running under IIS and am having an issue with my imports I believe. Here is the code:
Code:
<%@page import="com.avaya.phones.*,java.net.*,java.util.HashMap, java.util.StringTokenizer,java.util.ArrayList,java.io.File;" %> <%@page errorPage="error.jsp" %> <HTML> <HEAD> <TITLE>A BLANK WEBSITE</TITLE> </HEAD> <BODY BGCOLOR = #FFCCAA> <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %> <%! String message="",alert="",mode="",xml="",title=""; String wml="",selected="",audio="",trans_status=""; HashMap<String, String> keyValuePair = new HashMap<String, String>(); int j =0,timeout=0; String tempStatus=""; %>
It breaks at the line about the HashMap, which is supposedly included and does not go any further than that. I am completely green at JSP and even Java. I use Eclipse and have these as the Environmental variables:
Code:
CATALINA_HOME = C:\Program Files\Apache Software Foundation\Tomcat 5.5 CLASSPATH = .;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar; C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar; C:\PROGRA~1\JMF21~1.1E\lib;C:\WINDOWS\java\classes;. JAVA_HOME = C:\Program Files\Java\jdk1.6.0_06
The error I receiver is
Code:
HTTP Status 500 - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 14 in the jsp file: /examples/index.jsp Generated servlet error: Syntax error on token "<", delete this token
Can someone help me fix this problem with my imports?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP Status 404 - Servlet action is not available---Error sireesha Web Frameworks 0 04-18-2008 08:25 PM
How to use Static Imports Java Tip java.lang 0 04-17-2008 08:37 PM
Broken korean characters Urgent help needed! priyap3 JavaServer Pages (JSP) and JSTL 0 01-14-2008 10:40 AM
Static imports (Java 5 and above) Java Tip Java Tips 0 12-17-2007 11:02 AM
HTTP Status 404 - Servlet action is not available onceuponatime Java Servlet 1 12-11-2007 05:29 PM


All times are GMT +3. The time now is 01:11 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org