File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes tagdir question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "tagdir question" Watch "tagdir question" New topic
Author

tagdir question

Prasad Yarehalli
Greenhorn

Joined: Dec 08, 2005
Posts: 12
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

Joined: Jan 10, 2002
Posts: 60050
    
  65

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prasad Yarehalli
Greenhorn

Joined: Dec 08, 2005
Posts: 12
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

Joined: Jan 10, 2002
Posts: 60050
    
  65

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

Joined: Dec 08, 2005
Posts: 12
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

Joined: Jan 10, 2002
Posts: 60050
    
  65

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

Joined: Jul 06, 2005
Posts: 1016
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

Joined: Jan 10, 2002
Posts: 60050
    
  65

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

Joined: Jul 06, 2005
Posts: 1016
>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

Joined: Jan 10, 2002
Posts: 60050
    
  65

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

Joined: Feb 05, 2003
Posts: 4727

Just download the new version here.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tagdir question
 
Similar Threads
latest webapps dtd
EL is not enable by default in Tomcat 5.0
JSTL - abolute uri cannot be resolved
problem in EL
HttpSessionListener