• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deprecated ... really?

 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey,
here is the code of my tag handler class:
package tests;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.*;
public class MyTag3 extends BodyTagSupport
{
private int repeat;
public void setRepeat(String s)
{
try{
repeat=Integer.parseInt(s);
}
catch(NumberFormatException nfe){repeat=1;}
}
public int doAfterBody()
{
if(repeat-->0)
{
BodyContent body=getBodyContent();
try{
JspWriter out=body.getEnclosingWriter();
out.print(body.getString());
body.clearBody();
}
catch(IOException ioe){}
return (EVAL_BODY_TAG);
}
else
return (SKIP_BODY);
}
};
I get a message that the code uses a deprecated method (there is no mention of the method itself).
I checked the api but didn't find any deprecated methods.
What is deprecated in this code and what do i have to use instead?
thanks
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EVAL_BODY_TAG is deprecated.
You may use EVAL_BODY_AGAIN instead, assuming that you are using app server based on JSP.1.2 Spec.
regds.
- satya
[ April 10, 2002: Message edited by: Madhav Lakkapragada ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!