Paul Thorp

Greenhorn
+ Follow
since Sep 12, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paul Thorp

I am not sure what I have done, but the program is now compiling.

I want to extend my sincere thanks for all of your help and support.

Thanks
17 years ago
JSP
Thanks for the response Paul.

Yes it is the one that is commented out, but the shouldn't the import
import javax.servlet.*; just above that line complete the necessary import?
17 years ago
JSP
I made sure the two jar files servlet-api.jar and jsp-api.jar were in the classpath of the compile command. (see below and in the dos console log in the post above.

javac src\com\example\misc\TagHandlerClass1.java -d classes -classpath c:\aaaTomcat\common\lib\servlet-api.jar;c:\aaaTomcat\common\lib\jsp-api.jar;c:\TagSample\classes\com\example\misc;./classes
17 years ago
JSP
Sorry, Here is the tag handler class file I am trying to compile.

//*******************************************************************************
// Simple Tag Handler Class is
//*******************************************************************************
package com.example.misc;

import javax.servlet.*;
//import javax.servlet.jsp.JspException;
//import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;



public class TagHandlerClass1 extends SimpleTagSupport {

public void doTag ()
throws JspException, IOException {

//*** The context object contains the response writer
getJspContext().getOut().print("Outpit from Simple Tag Handler");
}
}
17 years ago
JSP
Thanks. Here is some more info.

*********************************************************************************
*********** Here is a copy of the MS-DOS console displaying the compile errors.

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\WINNT\system32>cd c:\

C:\>cd !Java Apps\TagSample

C:\!Java Apps\TagSample>javac src\com\example\misc\TagHandlerClass1.java -d cla
sses -classpath c:\aaaTomcat\common\lib\servlet-api.jar;c:\aaaTomcat\common\lib
\jsp-api.jar;c:\TagSample\classes\com\example\misc;./classes
src\com\example\misc\TagHandlerClass1.java:13: cannot find symbol
symbol: class SimpleTagSupport
public class TagHandlerClass1 extends SimpleTagSupport {
^
src\com\example\misc\TagHandlerClass1.java:16: cannot find symbol
symbol : class JspException
location: class com.example.misc.TagHandlerClass1
throws JspException, IOException {
^
src\com\example\misc\TagHandlerClass1.java:20: cannot find symbol
symbol : method getJspContext()
location: class com.example.misc.TagHandlerClass1
getJspContext().getOut().print("Outpit from Simple Tag Handler")
;
^
3 errors

C:\!Java Apps\TagSample>


****************************************************************************************
************* Here are my system level variables

Path - C:\bat;C:\Program Files\IBM\WebSphere MQ\Java\lib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\SQLLIB\help\;C:\Program Files\SQLLIB\bin\;C:\CMVC\exe\;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\Java\bin;C:\Program Files\IBM\WebSphere MQ\WEMPS\bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\bin;c:\program files\mbna\tux\8.0x8\bin;%HummPATH%;C:\jdk150\bin

Java_Home - C:\jdk150

CLASSPATH - C:\Program Files\HostExplorer.nt\hcljrcsv.jar;C:\Program Files\HostExplorer.nt\;C:\jdk150\bin
*** Also Note: the classpath info in the compile command lind above
17 years ago
JSP
I am trying to create some tag habdler examples to cement my learning process. I am getting compile errors indicating that the SimpleTagSupport class cannot be found.

It is also indicating that the package javax.servlet.jsp is not found. I obviously have something wrong with either the version or the installation of java.

Any ideas???
17 years ago
JSP