• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HFSJ page 504: SimpleTagSupport

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm currently studying for the SCWCD 1.4 Exam

I'm using J-Builder-8 as my IDE and TOMCAT 5.0 as my container.

I'm trying to do the exercise on page 504 of HFSJ which involves using SimpleTagSupport and doTag(). My IDE (J-Builder-8) is complaining that I do not have the SimpleTagSupport class (which is in J2EE SDK 1.4) and hence I cannot compile the POJ class.

And I double-checked: I do in fact have J2EE SDK 1.4.

My imports are as follows:

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;

Do you have to do something special to get SimpleTagSupport ? Is this a J-Builder-8 problem ?

Any ideas ? Please let me know. Thanks. Take care.
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello MainFrames,
We have to specify the classpath correctly
Had you defined the classpath correctly
pointing to servlet-api.jar and jsp-api.jar in the Tomcat directory, we wont get error in compiling the Tag Handler class
 
Al Diovanni
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Karthik (and JAVARANCHers) ,

Thanks for your help and I've been following your suggestions.

However, after several hours (I was up all night and I have been working on it tonight as well) of trying different things in J-Builder8 (Enterprise Trial) and Explorer; and after destroying/re-installing J-Builder, I'm a little closer but I still have same the same problem: I cannot compile in J-Builder because SimpleTagSupport class cannot be found in javax.servlet.jsp.tagext

My current try was as follows and contains a bizarre mystery: I un-zipped the servlet-api and the jsp-api jars and put their class contents into J-Builder8's class structure; then I was able to compile ONE TIME ONLY BECAUSE THEN J-BUILDER8 DELETED the SimpleTagSupport.class !?!: I did this several times and I received the same results.

In summary, I know that my Tomcat 5.0 is installed corrected; and I believe that the problem area is that J-Builder8 is stuck in Tomcat 4.1 (cannot point J-Builder8 to Tomcat 5.0 and expect the new javax classes to appear); and I believe that J-Builder8 cannot be taught to "CLASSPATH" over to Tomcat 5.0 in terms of the new JSP and Servlet specifications.

Is it possible that you or someone can please give me exact instructions as to how I should key in the CLASSPATH in J-Builder8 so that I can point to the new JSP 2.0 (jsp-api.jar) and Servlet 1.4 (servlet-api.jar) spec, please ?

Thanks. Take care.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic