aspose file tools
The moose likes JSP and the fly likes Probelms in using SimpleTagSupport Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Probelms in using SimpleTagSupport" Watch "Probelms in using SimpleTagSupport" New topic
Author

Probelms in using SimpleTagSupport

Tina Jain
Greenhorn

Joined: Mar 17, 2006
Posts: 23
Is there any way I can use the SimpleTagSupport class. For Custom Tags

In IBM WASD Version 5.1.2.

Because Customs tags are functionality of JSP 2.0. and WSAD does not supprt JSP 2.0

By adding some jar files or using some updates.

Any hint will be greatly appreciated

i am using the program below

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




public class AdvisorTagHandler extends SimpleTagSupport{
private String user;

public void doTag()throws JspException, IOException{
getJspContext().getOut().write("hello :"+user);
getJspContext().getOut().write("your advice is :"+getAdvice());
}

public void setUser(String user){
this.user=user;
}

String getAdvice(){
String[] advice = {"you","are","jerk","it","is","good","hard working"};
}

}


it is giving me these errors.

The import javax.servlet.jsp.tagext.SimpleTagSupport cannot be resolved
SimpleTagSupport cannot be resolved or is not a valid superclass
The method getJspContext() is undefined for the type AdvisorTagHandler
The method getJspContext() is undefined for the type AdvisorTagHandler


Have a Nice Day,
Best Regards,
Tina

[ September 30, 2006: Message edited by: Tina Jain ]
[ September 30, 2006: Message edited by: Bear Bibeault ]

If You Cannot Give Anything, At least Give A Smile.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

Originally posted by Tina Jain:

Because Customs tags are functionality of JSP 2.0. and WSAD does not supprt JSP 2.0


No. You cannot use JSP 2.0 features in a non-JSP 2.0 environment.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Tina Jain
Greenhorn

Joined: Mar 17, 2006
Posts: 23
I am new to the WSAD. Thanks for your reply.

That answers my problem.



Have a nice Day and Week
Best Regards,
Tina
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Probelms in using SimpleTagSupport
 
Similar Threads
Custome Tag Problem
Error compiling SimpleTagSupport class
org.apache.jasper.JasperException: Unable to compile class for JSP:
custom "advice" tag example
JSTL + help needed