• 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

tagdir question

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to do an example in HFSJ. I am not able to make the following work. It is not accepting attribute tagdir

%@ taglib prefix="myTags" tagdir="/WEB-INF/tags" %>

My webxml is using http://java.sun.com/dtd/web-app_2_3.dtd. I think my JSP is 1.2 and the book examples are JSP 2.0

What should I do make book examples to work in WSAD?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If there is a more recent version of WSAD that supports JSP 2.0, you'll need to upgrade. If WSAD does not support JSP 2.0 in any version, then you need to switch to a container that does.

It's a possibility that it might fool the IDE -- I quess it depends upon how tightly integrated the IDE is with the engine.
[ December 22, 2005: Message edited by: Bear Bibeault ]
 
Prasad Yarehalli
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have WSAD 5.1.2. I need to work on JSP 2.0 and Servlet 2.4 for the exam. What needs to be done? Can I download some Jar files and put them in proper locations to make it work? Please help me. I am not even seeing SimpletagSupport class in Type Hierarchy.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Prasad Yarehalli:
I have WSAD 5.1.2. I need to work on JSP 2.0 and Servlet 2.4 for the exam.



If you need JSP 2.0, then you need a servlet/JSP container that supports JSP 2.0. Plain and simple.


What needs to be done? Can I download some Jar files and put them in proper locations to make it work?



No. There is no way to turn a JSP 1.2 engine into a JSP 2.0 engine by downloading a jar file (unless that's the way IBM does its upgrades -- but I'd doubt it).

I am not even seeing SimpletagSupport class in Type Hierarchy.



Of course not. That class is only available with JSP 2.0.

I'd recommend using Tomcat 5.
[ December 22, 2005: Message edited by: Bear Bibeault ]
 
Prasad Yarehalli
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tomcat 5. My question is where do I get API for SimpleTagSupport class? I don't know If I am asking the right question. I am trying to develop tag files using WSAD 5.1.2 IDE. I will use TOMCAT 5 for testing.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't develop in a JSP 1.2 IDE and expect it to know anything about JSP 2.0. If your version of WSAD is not JSP 2.0 compliant, you're just going to have to do without it.

Check out the IDEs forum for other suggestions. I use IntelliJ IDEA and love it.
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Surely its just a matter of importing the correct library into your project.
Under tomcat they would be in the /common/lib directory. servlet-api.jar and jsp-api.jar
Add these to your project instead of your other servlet/j2ee classes, and see if it will compile.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Stefan Evans:
Surely its just a matter of importing the correct library into your project.



I'd highly doubt that just substituting the Tomcat Servlet 2.4 and JSP 2.0 jar files with the Websphere 2.3 and 1.2 jar files is going to turn Websphere into a JSP 2.0 engine.

I guess there's a possibility that it might be sufficient to fool the IDE -- I imagine that depends upon how tightly the IDE is integrated with the engine.
[ December 22, 2005: Message edited by: Bear Bibeault ]
 
Stefan Evans
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>I'd highly doubt that just substituting the Tomcat Servlet 2.4 and JSP 2.0
>jar files with the Websphere 2.3 and 1.2 jar files is going to turn
>Websphere into a JSP 2.0 engine.
I would share your analysis of that situation.

Sorry for not making myself clear, I was actually trying to target this question:
>I have tomcat 5. My question is where do I get API for SimpleTagSupport class?
>I am trying to develop tag files using WSAD 5.1.2 IDE. I will use TOMCAT 5 for testing.

I was presuming the requirement was to write java files in the IDE that implemented SimpleTagSupport, and as such needed the base class to extend.
Putting the appropriate libraries in the build path for your project should let you do this.
No it won't make your container a JSP2.0 engine, but it should let your IDE produce code for one. WSAD is based on eclipse isn't it?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At this point it is clear that this has become a WSAD setup topic, so off to the Websphere forum we go...
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just download the new version here.
reply
    Bookmark Topic Watch Topic
  • New Topic