JavaSide.com ASP components

[ JavaSide.com | rblSimple | rblMail | rblMap | acxImage | acxChart | ASPSide.com ]

Tutorial
  • With Java (1.02 or 1.1) is very simple to build an ASP component. A simple public Java class can be use (this class is console class, no user interface).
     package RBLAsp; 
    
     public class rblSimple
     { // Variables
       private  String sText =  null ;
        
       // set message texte
       public void setText(String s)  {
          if (s != null)        
                sText = new String (s) ;
          return ;   
       }
    
       // get message texte (changed)
       public String getText(int k) {
          String s = "" ;
          if (sText != null) {
              s = "<UL>" ;
              for (int i = 0; i < k; i++)
                   s = s + "<LI>num " + i + " : " + sText + "\n" ;
              s = s + "</UL>" ;
          }
          else
              s = "Empty String" ;
          return s ;   
       }
     }
  • You must use Javareg.exe to add this class in registry database.
    Simple reg.bat file to do registration
    ; Javareg rblSimple in package RBLAsp
       javareg /register /class:RBLAsp.rblSimple /progid:RBLAsp.rblSimple
    ; build RBLAsp directory
       mkdir c:\Windows\Java\TrustLib\RBLAsp
    ; copy rblSimple.class to RBLAsp directory
       copy *.class c:\Windows\Java\TrustLib\RBLAsp
  • Sample use
    <% ' Create rblSimple object
        Set h = Server.CreateObject("RBLAsp.rblSimple") 
       ' use setText function
        h.setText("Test rblSimple...") 
    %> 
    <BR>
    Call getText method with "3" in argument :
       display list with 3 lines "Test rblSimple" 
    <BR>
    Resultat : <% =h.getText(3)%>
    	
ASP components
  • With Sources...
    • rblSimple very simple ASP component... (with sources)
    • rblMail Mail ASP component... (with sources)

  • Sources with a registration...
    • acxImage ASP component to build a dynamic image in gif or png format.
    • rblMap generate a siteMap for all URL (use tListe ASP or Applet to display data).
    • acxChart ASP component version for tChart applet.


Copyright © 1996..1999, R. BERTHOU. Tous droits réservés.
Dernière modification le : Samedi 13 Fevrier 1999 19H22