package roberto;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.BodyContent;
import javax.servlet.jsp.tagext.BodyTag;
import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.tagext.IterationTag;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.tagext.TagSupport;
/**
* Generated tag class.
*/
public class <b>RepetirTag</b> extends BodyTagSupport {
/** property declaration for tag attribute: numeroveces.
*
*/
private int numeroveces;
public <b>RepetirTag</b>() {
super();
}
////////////////////////////////////////////////////////////////
/// ///
/// User methods. ///
/// ///
/// Modify these methods to customize your tag handler. ///
/// ///
////////////////////////////////////////////////////////////////
//
// methods called from doStartTag()
//
/**
*
* Fill in this method to perform other operations from doStartTag().
*
*/
public void <b><font color="#FF0000">otherDoStartTagOperations</font></b>() {
//
// TODO: code that performs other operations in doStartTag
// should be placed here.
// It will be called after initializing variables,
// finding the parent, setting IDREFs, etc, and
// before calling theBodyShouldBeEvaluated().
//
// For example, to print something out to the JSP, use the following:
//
// try {
// JspWriter out = pageContext.getOut();
// out.println("something");
// } catch (java.io.IOException ex) {
// // do something
// }
//
//
}
/**
*
* Fill in this method to determine if the tag body should be evaluated
* Called from doStartTag().
*
*/
public boolean <font color="#FF0000"><b>theBodyShouldBeEvaluated</b></font>() {
//
// TODO: code that determines whether the body should be
// evaluated should be placed here.
// Called from the doStartTag() method.
//
return true;
}
//
// methods called from doEndTag()
//
/**
*
* Fill in this method to perform other operations from doEndTag().
*
*/
public void <b><font color="#FF0000">otherDoEndTagOperations</font></b>() {
//
// TODO: code that performs other operations in doEndTag
// should be placed here.
// It will be called after initializing variables,
// finding the parent, setting IDREFs, etc, and
// before calling shouldEvaluateRestOfPageAfterEndTag().
//
}
/**
*
* Fill in this method to determine if the rest of the JSP page
* should be generated after this tag is finished.
* Called from doEndTag().
*
*/
public boolean <font color="#FF0000"><b>shouldEvaluateRestOfPageAfterEndTag</b></font>() {
//
// TODO: code that determines whether the rest of the page
// should be evaluated after the tag is processed
// should be placed here.
// Called from the doEndTag() method.
//
return true;
}
<font color="#FF0000"><b> ////////////////////////////////////////////////////////////////
/// ///
/// Tag Handler interface methods.///
/// ///
/// Do not modify these methods; instead, modify the ///
/// methods that they call. ///
/// ///
////////////////////////////////////////////////////////////////
</b></font>
/** .
*
* This method is called when the JSP engine encounters the start tag,
* after the attributes are processed.
* Scripting variables (if any) have their values set here.
* @return EVAL_BODY_INCLUDE if the JSP engine should evaluate the tag body, otherwise return SKIP_BODY.
* This method is automatically generated. Do not modify this method.
* Instead, modify the methods that this method calls.
*
*
*/
public int <b>doStartTag</b>() throws JspException, JspException {
<b><font color="#FF0000"> </font><font color="#0000FF">otherDoStartTagOperations</font><font color="#FF0000">();</font></b>
if (theBodyShouldBeEvaluated()) {
return EVAL_BODY_BUFFERED;
} else {
return SKIP_BODY;
}
}
/** .
*
*
* This method is called after the JSP engine finished processing the tag.
* @return EVAL_PAGE if the JSP engine should continue evaluating the JSP page, otherwise return SKIP_PAGE.
* This method is automatically generated. Do not modify this method.
* Instead, modify the methods that this method calls.
*
*
*/
public int <b>doEndTag</b>() throws JspException, JspException {
<b><font color="#FF0000"> </font><font color="#0000FF">otherDoEndTagOperations</font><font color="#FF0000">();</font></b>
if (shouldEvaluateRestOfPageAfterEndTag()) {
return EVAL_PAGE;
} else {
return SKIP_PAGE;
}
}
public int <b>getNumeroveces</b>() {
return numeroveces;
}
public void <b>setNumeroveces</b>(int value) {
numeroveces = value;
}
/** .
* Fill in this method to process the body content of the tag.
* You only need to do this if the tag's BodyContent property
* is set to "JSP" or "tagdependent."
* If the tag's bodyContent is set to "empty," then this method
* will not be called.
*
*
*/
public void <b>writeTagBodyContent</b>(JspWriter out, BodyContent bodyContent) throws IOException {
//
// TODO: insert code to write html before writing the body content.
// e.g. out.println("<b>" + </b>getAttribute1()<b> + "</b>");