• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tagdir question

 
Prasad Yarehalli
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Stefan Evans
Bartender
Posts: 1782
10
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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: 1782
10
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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...
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just download the new version here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic