How do I instantiate an object in FLEX or AIR?

Hi,
There must be something that I don't know that makes instantiation of an object different when doing it from <mx:WindowedApplication></mx:WindowedApplication> class and in the normal XXXX.as class.
For example I couldn't connect to SQLite. I put all the connection code into the function. Then I put this function into the both mentioned places. When putting the same function into the Application class it worked but putting it to the XXXX.as class it didn't work.
What is it, that I don't know about that prevents executing this function correctly. Code of the function works correctly. Maybe there are some hidden variables, paths etc.
Yesterday, a similar problem appeared with 3rd party code that I've added to my application. And the same happened, it works in the Application class but doesn't work in XXXX.as class.
Please help,
Christoferek

Hi Christoferek,
you probably know this already, but the basic rule for instantiation is something like
import mx.controls.List;
protected function my_function():void
  var my_list: List
  my_list = new List();
  my_list.id = "my_list";
Setting the id is prtty much essential if you are going to refer to the new object somewhere later (if it's just some static text, you may not want to bother).
the above should work whether you're in an MXML file or AS - you just need to get the import right each time you use it.
But maybe what you are meaning is not the instantiation part, but that the new object does not function as expected?
Richard

Similar Messages

  • How do i 'gray' picture/object in flex 4

    Hi All,
    Is there a way to make a picture 'gray' in Flash Builder? For example i have a png color picture and i want to 'take out the colors' and show it grayed.
    Any ideas?

    animated code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
    <fx:Declarations>
    <s:Animate target="{gs_filter}" id="loop" repeatCount="1" duration="3000">
    <s:SimpleMotionPath property="scale" valueFrom="0.00" valueTo="1.00"/>
    </s:Animate>
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    import spark.filters.ShaderFilter;
    [Embed(source="GreyScale.pbj")] private var GrayScaleClass:Class;
    private var gs_filter:ShaderFilter = new ShaderFilter(new GrayScaleClass());
    private function changeColor():void
    gs_filter.scale=0.01;
    img.filters = [gs_filter];
    loop.play();
    protected function hs_changeHandler(event:Event):void
    gs_filter.scale=[hs.value/100];
    ]]>
    </fx:Script>
    <mx:Image id="img" x="85" y="83" width="305" height="229" source="flower.jpg"/>
    <s:Button x="85" y="27" label="Add Filter" click="changeColor()"/>
    <s:HSlider id="hs" x="86" y="339" width="303" minimum="1" maximum="100" liveDragging="true" change="hs_changeHandler(event)"/>
    </s:Application>

  • How to dynamically add an object into flex and animate it.

    im planning to implement a dynamic animation which can be used to show some trend of a variable
    this is my case..
    suppose i have data in a table
    Y      |      X
    12       |     3
    32       |     5
    34       |      10
    what i want to do is i want to insert a circle to (3,12) i.e. the first point.. then animate it with the time to next points
    (3,12) --> (5,32) --> (10,34)
    this process hv to be totally dynamic.. becos im planning to fetch data from a table.. so the no of rows also can be any amount.
    is thr a method to do those stuff in flex. ?
    thanks in advance

    Anyone got any suggestions?

  • How can I instantiate and load a new CachedRowSet object from a non-JDBC so

    How can I instantiate and load a new CachedRowSet object from a non-JDBC source?
    cheers

    webrowset reads whole data;
    I would rather need to get data line by line

  • How to instantiate an object in a JSP page???

    I want from a JSP page instantiate an object from a client class, for example, and call its methods; one of these methods return me a RecordSet.
    But I don't having success on it. What am I doing wrong??? What would I do??? Have anybody a code sample????
    Regards.

    Hi,
    There's the code that I'm using, they are divided in 3 parts, and I really don't know what is causing this error.
    ********** CLASS conn ******************
    * IT'S THE CLASS THAT DO THE CONNECTION
    * AND EXECUTE THE SQL QUERIES
    import java.sql.*;
    import java.io.*;
    public class conn {
      public static Connection conn;
      public static Statement stmt;
      public static void openConn() throws SQLException {
        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
        conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.24.8)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = ora_aula)))", "grupo6", "grupo6");
        stmt = conn.createStatement();
      public boolean getConectionState() throws SQLException {
        if (conn.isClosed())
          return false;  
        else
          return true;
      public static void closeConn() throws SQLException {
        stmt.close();
        conn.close();
      public static void postSql(String command) throws SQLException {
        stmt.executeQuery(command);
        stmt.executeQuery("COMMIT");
      public ResultSet returnSql(String command) throws SQLException {
        return stmt.executeQuery(command);
    ********** CLASS materia ***************
    * IT'S THE CLASS THAT INSTANTIATE THE
    * conn CLASS AND PASS TO IT THE SQL
    * THAT WILL BE EXECUTED AND RETURN THE
    * RECORDSET
    import java.sql.*;
    public class materia{
       public Integer materia_code;
       public String  materia_description;
       private conn myConn = new conn();
       private ResultSet materia_data;  
       ResultSet showData(comandosql){
         try {
           myConn.openConn();
           ResultSet data = myConn.retornaSql(sql);
           myConn.closeConn();
           return data;
         catch (SQLException sqlexc) {
           System.out.print(sqlexc);
           return null;
    ********** jsp PAGE******************
    * IT'S THE PAGE THAT INSTANTIATE THE
    * materia CLASS AND EXECUTE THE
    * STATEMENT, AND WHERE THE ERROR
    * IS OCURRING
    <%@ page import="java.sql.*" %>
    <%@ page import="materia" %>
    <HTML>
    <TITLE> Products</TITLE>
    <%
        out.println("<B> TEST </B>");
        ResultSet rs;
        materia mat = new materia();
       rs = mat.showData("SELECT * FROM PRODUCTS");
    // THE ERROR OCURR IN THE STATEMENT ABOVE
    // WHAT AM I DOING OF WRONG????
    // ... REST OF CODE
    %> 
    </HTML>Thanks for your help.
    Regards.
    Clayton

  • How do I create an object from a filename?

    I'm traversing directories and storing a list of files in a File array. Then I traverse the array looking at the extension of the file. If it is .java then I would like to instantiate it as a class so that I may pass the new object to another function which will examine its methods. I've tried Class.forName(file.getCanonicalPath()) and it throws a ClassNotFound exception. How can I create an object from a valid filename, please?

    Rick_Avlonitis wrote:
    If it is .java then I would like to </snip>.java files contain source code, they can't be "instantiated". Class.forName() takes a classname as parameter, i.e. "mypackage.MyClass". A class name is not a file name, and it doesn't have an extension. As stated in the other reply, you'll need to have the class on your class path.

  • Mapping Objects in Flex Data Services

    Hi My Dear Friends
    This is yogans, i am working in flex for the last 15 days
    and i learned the basic things like syntax, tags, scripts. and i am
    doing
    some data services work now. especially with the help of
    Java Remote objects. I dont know http services and
    webservices(WSDL).
    My doubt here is, I created a user defined object in java
    and i want to send this object through Remote call from flex. how
    can i
    type cast the java object to flex. And i want to add these
    objects to the dataprovider of a datagrid. Please help me in
    acheiving
    this. i will be very thank ful to you in my life. I know
    that i have to create same kind of object in flex. But i dont have
    concrete idea
    please explain me with very simple example step by step . I
    am awaiting in hope that God will send some one to help me.
    Thanks and Regards
    Yogans.s

    Hi,
    If you want to map your actionscript class to your server's
    Java class. You can run a util function
    registerClassAlias("dev.echoservice.Book",Book);
    where "dev.echoservice.Book" is the fully qualify name of
    your java class. Book is your actionscript class.
    Calling this util before you make your remoteobject call. You
    can put this in your actionscript class constructor, it makes this
    call whenever you create your class. However, it seems to be better
    to call it when the class is loaded. To do so you can declare it as
    static
    public static var a:* =
    registerClassAlias("dev.echoservice.Book",Book);
    OR
    You can also declare it as metaData in your class as:
    [RemoteClass(alias="dev.echoservice.Book")]
    However, I found someone saying that it didn't work in sdk
    compilation, but webtier compilation. It might be some
    configuration issue. I haven't tried it yet.
    To display the properties in the dataGrid, you just have to
    either use Array or ArrayCollection. If databinding is involved,
    the datagrid need to know the Collection.Change event. It is better
    to use ArrayCollection, therefore, adding new item to
    arrayCollection the datagrid get repopulate.
    hope it helps!
    William Chan

  • JAVA&SOAP:how to return a complex object( the object has an object within)

    Lets say my Complex object is :
    public class PersonWithAddress {
    private String name;
    private int ssn ;
    private Address add;
    PersonWithAddress() {
    name="Gagan Tandon" ;
    ssn =1111;
    add = new Address("1113","WestPlum Street");
    public String getName() {
    return name;
    public int getSSN() {
    return ssn;
    public Address getAddress() {
    return add;
    This complex object has Address object embedded in it.
    public class Address {
    private String house;
    private String street;
    public Address (String myHouse,String myStreet) {
    house = myHouse;
    street = myStreet;
    public String getHouse() {
    return house;
    public String getStreet() {
    return street;
    My deployment Descriptor is as following: check the mappings part.
    <isd:service xmlns:isd=
    "http://xml.apache.org/xml-soap/deployment"
    id="urn:xml-soap-person-demo">
    <isd:provider type="java"
    scope="Application"
    methods="getPersonWithAddress">
    <isd:java class="PersonServer"/>
    </isd:provider>
    <isd:faultListener>
    org.apache.soap.server.DOMFaultListener
    </isd:faultListener>
    <isd:mappings>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="urn:xml-soap-person-demo" qname="x:PersonWithAddress"
    javaType="PersonWithAddress"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="urn:xml-soap-person-demo" qname="x:Address"
    javaType="Address"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    </isd:mappings>
    </isd:service>
    And in my SOAPRPC code at client end calls the following: check the mappingregistry code...
    String serverHost = "http://localhost:8082/soap/servlet/rpcrouter";
    SOAPMappingRegistry smr = new SOAPMappingRegistry();
    Parameter p= null;
    try {
    System.out.println("here 0");
    Response r=null;
    Call c=new Call();
    Vector parameters = new Vector();
    System.out.println("here 1");
    c.setTargetObjectURI ("urn:xml-soap-person-demo");
    c.setMethodName ("getPersonWithAddress");
    System.out.println("here 3");
    c.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    // parameters.addElement (new Parameter("name", String.class, "Web Services Client", null));
    // c.setParams (parameters);
    c.setSOAPMappingRegistry(smr);
    BeanSerializer beanSer = new BeanSerializer();
    smr.mapTypes(Constants.NS_URI_SOAP_ENC,new QName("urn:xml-soap-person-demo","Address"),Address.class,beanSer,beanSer);
    smr.mapTypes(Constants.NS_URI_SOAP_ENC,new QName("urn:xml-soap-person-demo","PersonWithAddress"),PersonWithAddress.class,beanSer,beanSer);
    try
    System.out.println("here 4");
    r = c.invoke ( new URL(serverHost), "" );
    // org.apache.soap.SOAPException can be thrown
    catch ( Exception e )
    e.printStackTrace();
    // Check the response.
    if (r.generatedFault ()) {
    Fault f = r.getFault();
    System.out.println ("Error Occurred: ");
    System.out.println (" Fault Code = " + f.getFaultCode());
    System.out.println (" Fault String = " + f.getFaultString());
    // return f.getFaultString();
    // return new String("gagan");
    return null;
    else {
    System.out.println("here 5");
    p = r.getReturnValue();
    System.out.println("here 6");
    // System.out.println( (String)greeting.getValue() );
    System.out.println("SSN: " + ((PersonWithAddress)p.getValue()).getSSN());
    return (PersonWithAddress) p.getValue();
    catch( Exception e ){
    e.printStackTrace();
    // finally {
    // return null;// String("not OK");
    if (p==null)
    return null;
    else
    return (PersonWithAddress) p.getValue();
    When running this code..
    The following error is thrown.
    System.out.println("here 4") is printed.
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to instantiate 'PersonWithAddress': Class org.apache.soap.encoding.soapenc.BeanSerializer can not access a member of class PersonWithAddress with modifiers ""; targetException=java.lang.IllegalArgumentException: Unable to instantiate 'PersonWithAddress': Class org.apache.soap.encoding.soapenc.BeanSerializer can not access a member of class PersonWithAddress with modifiers ""]
    at org.apache.soap.rpc.Call.invoke(Call.java:294)
    at PersonClient.getPersonWithAddress(PersonClient.java:92)
    at PersonClient.<init>(PersonClient.java:11)
    at PersonClient.main(PersonClient.java:20)
    java.lang.NullPointerException
    at PersonClient.getPersonWithAddress(PersonClient.java:96)
    at PersonClient.<init>(PersonClient.java:11)
    at PersonClient.main(PersonClient.java:20)
    I am here 1
    Exception in thread "main" java.lang.NullPointerException
    at PersonClient.<init>(PersonClient.java:13)
    at PersonClient.main(PersonClient.java:20)
    What could be the problem..? Is there any info on net how could i pass complex objects of this type in Java through SOAP RPC.
    GAGAN

    Have you managed to sole the problem ? I have got similar one...
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to instantiate 'auction.common.Property': auction/common/Property]
         at proxy.soap.AuctionHistoryProxy.addAuctionProperty(AuctionHistoryProxy.java:515)
         at java.lang.reflect.Method.invoke(Native Method)
    (...)

  • Servlet instantiate an object

    Hi all,
    I wanted to know how a servlet will instantiate an object.Specifically,I want a servlet to instantiate a class/object with some JDBC code in it.
    Kindly give an overview of this,any code samples would be really very beneficial.
    Hoping to hear from you ASAP.
    Thanks
    AS

    Like any other Java object. What follows is
    semi-sorta-pseudo code:
    public void doPost(signature next)
    // Or whatever your JDBC class name is
    DatabaseManager manager = null;
    try
    // Pass it whatever it needs to create the
    eate the database connection
    manager = new DatabaseManager();
    // Now call whatever manager methods you
    thods you want,
    // passing whatever they need.
    catch (Exception e)
    // Might want to log, too
    e.printStackTrace();
    finally
    // Close it out
    manager.close();
    }MODContinuing on the same thing.In my init method I have the following code
    public void init() {
    try{
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        System.out.println("Driver loaded successfully");
       }//close try
    catch (ClassNotFoundException e) {
    System.out.println(e.toString());
    }//close catch
    }//close init() method Do I have to change the Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); and put it into a new class file or leave it as it is and proceed with the doPost method.
    Hoping to hear from you.
    Thanks in advance
    AS

  • How does one upload a file from flex to a cfc

    How does one upload a file from flex to a cfc?   Can you do the file upload via remote object? I usually do uploads cia cfm but prefer the asnc capabilities of remote object calls.

    Hi,
    The issue here is myFile. For flex we need to pass this name as paramenter becuase it's not html form item like:
    <cfcomponent>
        <cffunction name="uploadFile" access="remote" output="false" returntype="void">
        <cfargument name="file" required="Yes" type="any">
            <cffile action="upload" filefield="#arguments.file#" destination="C:\temp\" nameconflict="makeunique">
        </cffunction>
    </cfcomponent>
    From flex I'm getting the file using fileReference like:
    private function browseAndUpload():void
                    fileReference = new FileReference();
                    fileReference.addEventListener(Event.SELECT,fileReference_Select);
                    fileReference.addEventListener(Event.CANCEL,fileReference_Cancel);
                    fileReference.browse();
                private function fileReference_Select(event:Event):void
                    fileReference.addEventListener(ProgressEvent.PROGRESS,fileReference_Progress);
                    fileReference.addEventListener(Event.COMPLETE,fileReference_Complete);
                    fileReference.addEventListener(IOErrorEvent.IO_ERROR,onLoadError);
                    //fileReference.upload(request);
                    fileName = fileReference.name;
                    myFile.htmlText = fileReference.name;
                    SM_RO.importNSA();
    filerReference have an upload method to upload the file but I can't use that becuase I need to process my upload with my cfc.
    I'm getting an error:
    Failed to import the file. The cffile action="upload" requires forms to use enctype="multipart/form-data". Please also make sure the file is not open.
    I can't find the way to setup the enctype becuase again i can have html form items in flex, or I can?
    Thanks
    Johnny

  • How to render a pdf file within flex

    Hi,
    could any one suggest, how to open a pdf file within flex.
    we have an application built on flex3.
    please suggest.
    regards,
    John

    Hi,
    Is it a Flash or AIR app?
    If it's an AIR app, then use the HTML/web, where you then can navigate to the URL of your PDF.
    If it's an Flash app, then set the wmode to transparent: http://kb2.adobe.com/cps/127/tn_12701.html#main_Using_Window_Mode__wmode__values_
    And then create an iframe in your HTML page, where you load you PDF, set the iframe z-index, so it gets shown on top of the Flash object. Then you kan use the javascript bridge to interact with the iframe.
    Best regards
    Martin

  • How to load a tif image in flex

    Hi All,
    Is it possible to load a tif image in flex. If it's possible
    anyone guide me or send me some code snippets regarding how to
    display a tif image in flex.
    Regards,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:ga2d96$p8h$[email protected]..
    >
    Hi All,
    > Is it possible to load a tif image in flex. If it's
    possible anyone guide
    > me or send me some code snippets regarding how to
    display a tif image in
    > flex.
    Convert it to the much more web-friendly png format.

  • How to update ADF VO object to refresh the data in ADF Pivot table

    I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
    here are the steps I performed to create ADF pivot table application using VO at design time.
    1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
    2) Dragged this collection to the page in which wanted to create the pivot table
    3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
    Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
    I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
    but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
    here is the code
    Our slider component will look like
    <af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
    autoSubmit="true" />
    The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
    public void setDataValue(boolean value) {
    DataValue = value;
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
    Object result = operationBinding.execute();
    The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
    public void filterVO(boolean value) {
    if (value != null) {
    ViewObjectImpl ibVO = getVO1();
    ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
    ibVO.executeQuery();
    }

    Did you define a filterVO action in your pagedef.xml file?
    You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5

  • How to get an ArrayList Object in servlet from JSP?

    How to get an ArrayList Object in servlet from JSP?
    hi all
    please give the solution for this without using session and application...
    In test1.jsp file
    i am setting values for my setter methods using <jsp:usebean> <jsp:setproperty> tags as shown below.
    After that i am adding the usebean object to array list, then using request.setAttribute("arraylist object")
    ---------Code----------
    <jsp:useBean id="payment" class="com.common.PaymentHandler" scope="request" />
    <jsp:setProperty name="payment" property="strCreditCardNo" param="creditCardNumber" />
    <%-- <jsp:setProperty name="payment" property="iCsc" param="securityCode" /> --%>
    <jsp:setProperty name="payment" property="strDate" param="expirationDate" />
    <jsp:setProperty name="payment" property="strCardType" param="creditCardType" />
    <%--<jsp:setProperty name="payment" property="cDeactivate" param="deactivateBox" />
    <jsp:setProperty name="payment" property="fAmount" param="depositAmt" />
    <jsp:setProperty name="payment" property="fAmount" param="totalAmtDue" /> --%>
    <jsp:useBean id="lis" class="java.util.ArrayList" scope="request">
    <%
    lis.add(payment);
    %>
    </jsp:useBean>
    <%
    request.setAttribute("lis1",lis);
    %>
    -----------Code in JSP-----------------
    In testServlet.java
    i tried to get the arraylist object in servlet using request.getAttribute
    But I unable to get that arrayObject in servlet.....
    So if any one help me out in this, it will be very helpfull to me..
    Thanks in Advance
    Edward

    Hi,
    Im also facing the similar problen
    pls anybody help..
    thax in advance....
    Litty

  • How to get the UserTransaction object in  stateless session bean

    Hi, I am using jboss server and jdk5 version and using EJB.
    My Application flow :
    JSP à Action(Struts) à Service Locator à Session bean à Entity Bean(cmp) à DB.
    I tried to get the UserTransaction object in my Action. Its my code.
    InitialContext ctx = new InitialContext();
    UserTransaction uTrans = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
    After used uTrans.begin(),uTrans.commit() and uTrans. rollback () also.
    Its working fine .
    But, I used the the same code inside in my session bean its not working.
    Stateless Session Manager Bean code :
    public class SampleManagerBean implements SessionBean {
    public void ejbCreate() throws CreateException {  }
    public void ejbRemove() {  }
    public void ejbActivate() {   }
    public void ejbPassivate() {   }
    public void setSessionContext(SessionContext sessionContext) {
    this.sessionContext = sessionContext;
         public void createSample() throws EJBException
         try{
                   InitialContext ctx = new InitialContext();
                   UserTransaction ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
              }catch(Exception e) {
              System.out.println(“ Exception === > “+e)
    Its throws the error ie: javax.naming.NameNotFoundException: UserTransaction not bound
    How to get the UserTransaction object in my session bean. Kindly give solution the above errors.
    - Thendral

    first of all, you could just use sessionContext.getUserTransaction(). however, that would only work if your bean is using bean-managed transactions. the default is container-managed transaction, in which case you cannot get a UserTransaction object. if you want to manage transactions, you need to add the TransactionManagementType.BEAN annotation to your ejb.

Maybe you are looking for

  • How to set proxy from CLI

    I just finished my first Arch installation. I'm as green as they come, so your help and patience is appreciated! Situation: I want to connect using my workplace's ethernet to the internet, so I can download a GUI. I've figured out how to assign a sta

  • Hot sync using a new name?

    I bought a used z22 after mine was stolen and the HotSnyc comes up in the other persons name. How do I change it. I tried adding my name but when I sync it it didn't take the new name. Post relates to: Palm Z22

  • Call function in a constructor

    Hello It is OK if I want to call a function inside a contructor For example: class A public A{ function a(); function a() Thank you sho

  • Padding with zero according to field size!

    Dear All, I want to add leading zeros, as per numeric column width while selecting data through sql query. Kindly let me know how to do this. For example if in a table there is field empID number(3) Now if the data is 1 23 999 45 7 The result i shoul

  • Package for generating charts on the fly

    Hi, I'm looking for a java API that enable its clients to create/design chart image files. The package should be run on server that has no GUI abilities, thus the image processing should be done in a batch manner (package that create chart and places