Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Probelms in using SimpleTagSupport

 
Tina Jain
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tina Jain
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to the WSAD. Thanks for your reply.

That answers my problem.



Have a nice Day and Week
Best Regards,
Tina
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic