Avec Google.fr Rechercher sur ce site :

Votez pour mon site sur Infoliens.net
Tous les Partenaires

Servlet d'une action personnalisée avec corps 

La classe servlet générée par le Serveur d’application Tomcat, après changement des noms de variables pour une meilleure lecture.

TagOperator instOperator = new tagOperator();
       
instOperator.setPageContext(pageContext);
instOperator.setParent(null);

instOperator.setOperand_1(1234);
instOperator.setOperand_2(4321);
       
try 
{
   int retDoStartTag = instOperator.doStartTag();
   if ( retDoStartTag != javax.servlet.jsp.tagext.Tag.SKIP_BODY) 
   {
      try 
      {
         if (retDoStartTag != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) 
         {
            out = pageContext.pushBody();
            instOperator.setBodyContent((javax.servlet.jsp.tagext.BodyContent));
         }
         instOperator.doInitBody();

         do 
         {
            out.write(" \r\n    +\r\n    ");
         } 
         while (instOperator.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
      } 
      finally 
      {
         if (retDoStartTag != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
         out = pageContext.popBody();
      }
   }
        
   if (instOperator.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return;

finally 
{
   instOperator.release();
}
Created by BS XMLSolution v1.6
Contact | Favoris © 2003-2012 Brahim SANTAROSSA Tous droits réservés.