GeeCON Prague 2014*
The moose likes JSP and the fly likes Probelms in using SimpleTagSupport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
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: 61310
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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
 
GeeCON Prague 2014
 
subject: Probelms in using SimpleTagSupport