Calling  Midlets from WML file

Hi all,
We are developing a J2ME application to download and Play ringtones from a server. We need to integrate this with a WAP browser application. Our client has a WAP site used to browse for different kind of tones. But, they don't have any option to download and preview the tone. We have a J2ME Midlet which can do that. So, How can we embed this Midlet in the wml file ( like embedding an applet in HTML file) . I understood that we can install the Midlet by giving links to the .jad file from wml file. Once it is installed how do I invoke that MIDlet for different events in the WML file.
Thanks
Ibrahim

Hi ,
No answers to this good question :-) . I got an answer which says it is NOT possible to invoke MIDlet application from a WML code . All we can do is download the .jad file using a WML page . JAM ( Java Application Manager) will install the app using the information in the downloaded .jad file .
If this is true , What does this following Paragraph, extracted from one of the papers of Mr.Bill day, (Technical Evangelist from SUN) mean
" In a sense, then, Java technology is very good at many of the things in which WAP is
lacking: Java techology and WAP are complementary technologies.
One option for using the two together is to have a WAP browser in the phone, and to
have a VM that implements the CLDC and MIDP specifications. This virtual machine
might be the KVM, or it might be another VM, so long as it is compliant with the J2ME
CLDC and MIDP specifications. The WAP browser and the J2ME environment could
then call each other via an API between the two. When the JAM wants to run a Java
application, it has the WAP browser do the download via its standard mechanisms,
and then the JAM manages the installation of the Java application and its execution
by the JVM. If the JVM wants to put some text up in the device screen, it tells the
browser that, "This is what I'd like you to display" via the standard callback
mechanism.
Hopefully, what we will see in the longer term are WAP and other micro browsers
written in the Java programming language themselves. (In fact, there are several
Java technology based WAP micro browsers available already; refer to the J2ME
Archive for examples.) In most of the non-Java technology browsers in phones now,
if you want a new version or a new feature you have to buy a new phone. A micro
browser based on Java technology could give you extra flexibility in that you could
update your WAP browser itself, on-the-fly, ieven over the air. You could keep the
same phone and download browser updates as they become available. This would
benefit consumers by keeping their handset costs down and benefit operators by
allowing them to add new features to their service more easily and quickly. ".
Can any one explain what he was trying to say, if calling Midlet application from WML is NOT possible.

Similar Messages

  • Calling method from jsp file

    Hi
    is it possible to call any method with in the class except handle method from jsp file?

    You can call , but it would not be a good design approach.A droplet can do the same task for you.
    otherwise :
    eg :
    <%@ page import="com.mypackage.MyClass"%>
    for Static access :
    <%
    String test= MyClass.myMethod();
    %>
    for normal classes :
    <%
    MyClass object = new MyClass();
    String test= object .myMethod();
    %>
    http://stackoverflow.com/questions/10918526/call-java-method-in-jsp-file
    http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html?page=2
    ```
    Praveer
    Edited by: Praveer Rai on Mar 26, 2013 5:08 PM

  • Call Midlets from a Wap Link

    Hi,
    I am trying to find out if it's possible to launch a midlet from a WAP page? If yes , can someone please tell me how this oculd be done.
    Thanks!

    Thanks for replying. I read somewhere that this might be possible through the Push Registry api . Has anyone used that API? There wasnt much information on how this could be done though.
    Please let me know if so. This is urgent.
    Help needed! Thanks.

  • What is the syntax for calling function from class file by jsp

    does anyone here knows what is the syntax of how to call a function from java class file by javascript code or any way to call it?
    and where should i put the calling function code? because the function is called depend on the user click.
    for example
    <%=pc.functionName(a,b)%>
    for the variable a and b, how can i get the value from html textbox and put it in a and b...
    urgent needed...
    thx

    Jsp's are executed before the Html forms are created and loaded. Dont try to use a java code function calling on a javascript click. You'll have to explicitly redirect it into a servlet where in you can call the function you want.
    Well! another way could be using AJAX. That seems to be powerfull enough and it might also serve your purpose.
    Hope this helps

  • Call Midlet from another Mitlet suite

    I know that this topic has been discussed previously, but all threads I have seen are just discussing to call a Midlet in the same Midlet suit. My question is:
    Can I find out what Midlets are installed and can I call a Midlet in another Midlet suite using MIDP 2.0? And if possible, how can I do this?
    Thanks in advance.
    Stephan

    Explain in more detail, please. When I cause from one MIDlet another MIDlet I receive:
    java.lang.SecurityException: Application not authorized to access the restricted API
    at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
    at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
    at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
    ...

  • Simple Question Calling methods from Java files through JSP without JVM

    Hi.
    I've got a simple question (forigve my newbieness)...
    If I'm running Tomcat can I exectue a method in a compiled Java file from a JSP page without having the JVM installed on the server?
    Any thoughts or additional comments would be appreciated.
    Many thanks.

    No... but that's because you can't run Tomcat without
    a JVM installed on the server.
    If you are running Tomcat, you are running a JVM for
    the JSP pages to run in, in which case, yes, the JSP
    pages can call the other Java code... as long as it's
    in the classpath.Thanks a lot for the replies.
    So just to check, if I sign up with a hosting company that offers Tomcat then the JVM will be installed on the server and I can call other Java code as long as it's in the classpath?
    I just want to make sure before I sign up with a hosting company =D
    Thanks again!

  • Calling method from SWF file wtih javascript, when swf file is not loaded in any browser

    Hi There,
    I have a question regarding flex and javascript integration:
    1. We have created certain components and bundle them in swf. these swf file uses webservice to connect to backend code written in java.
    2. We have deployed swf file and backend on the same tomcat server.
    3. Backend server send some datapoint to UI and plot graph and displyaed to user.
    4. Now if user generate graph from datapoint and want to export it, we are tranferring image of that graph from UI to backend. No issues in this process.
    5. Now the question is. let say user has not open any swf file in browser and backend scheduling job want to generate the graph. How we will connect to swf file.
    6. Is ther any way we can connect or call method of swf from java/jsp/html/javascript code in this scenario without loading swf file in browser??
    Please help me!!!
    Thanks
    Sonu Kumar

    Both test sites work just fine for me.
    The "Update plugin" message is exactly what would be displayed if no .swfobject file at all was found... so it may not be the "version11" thing but rather, perhaps something else is messed up with the .swfobject file.
    File can be found in both folders:
    http://www.pureimaginationcakes.com/test/Scripts/swfobject_modified.js
    http://www.pureimaginationcakes.com/Scripts/swfobject_modified.js
    and file does download when downloading the html page (just check the cache).... but for some reason it doesn't seem to be working.... Hummmmm????
    Adninjastrator

  • Call Stylesheet from RTF file

    Hi
    I’m working using EBS.
    We have an Oracle template to print the RFQs using stylesheet (xsl file)
    One of the requirements is to add five pages before the RFQ is printed.
    My problem is: How can I from a RTF print my first pages, go to stylesheet and print the RFQ?
    What I did:
    I have created a template “supp” in the Stylesheet; in this template I call the root in the stylesheet
    I created a RTF to create my 5 pages and import the Stylesheet
    I’m able to call the new template supp in the Stylesheet
    After that the RTF didn’t print anything and it generates and exception.
    I appreciate any help.
    Many thanks,
    Alex

    http://www.apps2fusion.com/forums/viewtopic.php?f=60&t=533
    http://winrichman.blogspot.com/
    http://winrichman.blogspot.com/2008/09/using-xsl-template-eliminate-carrigae.html
    http://winrichman.blogspot.com/search/label/BIP%20Call%20templates

  • Call procedure from batch-file

    Hello,
    I want to write a batch-file which call a stored procedure and deletes a file in a directory.
    I wrote in my batch-file this. But it doesn't work.
    SQLPLUS scott/tiger@ proc
    del c:\test.txt

    You put the space on the wrong place.
    Try this:
    SQLPLUS scott/tiger @proc
    del c:\test.txt

  • How to call methods from .mxml file from actionscript file

    I have a Example.as and a Test.mxml.
    In this Test.mxml, I have a function which is something like:
    public function doTest():void
         Alert.show("testing!");
    How do I from example.as call this function doTest() from Test.mxml?
    I tried declaring public var test:Test inside my Example.as but I'm still unable to call that function out.
    Any idea how?

    Hi Bryant,
    You need to create an instance of the component and then attach it to the display list then only you can access the Controls with in your component other wise the controls and components are not created or initialized that's why you are thrown the null object reference error.
    So you need to do somethink like below:
    var myTestObj:Test = new Test();
    this.addChild(myTestObj); //Adds the component to DisplayList(You need to add this line of code in order to avoid the error)
    myTestObj.doTest();
    If you add your component in mxml then the component will be automatically added to the display list and you dont need to add explicitly to the display list.
    <comp:Test id="myTestObj" />
    And now if in your actionscript you call myTestObj.doTest(); no error occurs and you can see the Alert message.
    Thanks,
    Bhasker

  • Error in calling servelt from html file

    Hi All,
    In my application
    Servlet class looks like this:
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SelectBeer extends HttpServlet {
         public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
         response.setContentType("text/html");
         PrintWriter out =response.getWriter();
         out.println("Beer Selection Advice<br>");
         String c= request.getParameter("color");
         out.println("<br>Got beer color"+ c);
         BeerExpert be = new BeerExpert();
         List list=be.getBrands("amber");
         Iterator it = list.iterator();
         while(it.hasNext()){
              out.print("<br>try:"+it.next());
    }The XML file as follow:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>HelloWorld</servlet-class>
      </servlet>
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>SelectBeer</servlet-name>
        <servlet-class>Test/SelectBeer</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/servlet/HelloWorld</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SelectBeer</servlet-name>
        <url-pattern>SelectBeer</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>The html file as follow:
    <html><body>
    <h1 align="center">Beer Selection Page</h1>
    <form method="POST"action="Test/SelectBeer">
         Select beer characteristics<p>
         Color:
         <select name="color" size="1">
              <option>light
              <option>amber
              <option>brown
              <option>dark
         <select>
         <br><br>
         <center>
              <input type="SUBMIT">
         <center>
         </form></body></html>but after running the form.html i am geeting Selelctbeer is unavailable?
    Could you please explaing if i am missing anything?
    Regards,
    Divya

    hi,
    make sure that the class is in the package TEST.
    manik;

  • Inputting an object of class Student into a program from a file

    Hi,
    I need to read in objects of a class called "Student" from a file.
    The Student class looks like this:
    import java.io.Serializable;
    public class Student implements Serializable
    private int id;
    private String lastName;
    private String firstName;
    private double gpa;
    public Student(int a, String b, String c, double d)
    id = a;
    lastName = b;
    firstName = c;
    gpa = d;
    public int getId()
    return id;
    public String getlastName()
    return lastName;
    public String getfirstName()
    return firstName;
    public double getgpa()
    return gpa;
    public String toString()
    return "ID: " + id + " FIRST NAME: " + firstName + " LAST NAME: " + lastName + " GPA: " + gpa;
    I know how to read text from a file, however I do not know how to read an object from a file. I know that the class has to be serializable in order to read in the objects, however I am having trouble reading and saving the objects read into a variable.
    Can someone explain or give a same algorithm to do this?
    Thanks,
    Jackson

    Hi,
    You will have to use java.io.FileInputStream class to create a file stream where you will be storing the object state and and java.io.ObjectInputStream to actually dump the object state into it.
    Further, you have to use java.io.FileOutputStream and java.io.ObjectInputStream to open the file and read back the object state into the Student objects. However, you have to explicitly cast them into Student objects since the return type for the readObject() method is java.lang.Object.
    Here is the code where I serialized 2 Student objects and un-serialized them back into the program. (You can do this within different programs, or even different JVM instances).
    class serializeDemo
         public static void main(String args[])
              Student s1 = new Student(11, "Hanks", "Tom", 8.55); //creating a student
              Student s2 = new Student(22,"Pitt", "Brad", 7.87); //another student
              try
                   // SERIALIZE STUDENT DATA
                   FileOutputStream fo = new FileOutputStream("studentSer.ser");
                   ObjectOutputStream os = new ObjectOutputStream(fo);
                   os.writeObject(s1);
                   os.writeObject(s2);
                   System.out.println("The student objects have been serialized");
                   os.close();
                   //UN-SERIALIZE THE SERIALIZED DATA
                   FileInputStream fi = new FileInputStream("studentSer.ser");
                   ObjectInputStream oi = new ObjectInputStream(fi);
                   Student s1_recovered = (Student)oi.readObject();
                   System.out.println("Object S1 recovered : " + s1_recovered.getfirstName() + " " + s1_recovered.getlastName());
                   Student s2_recovered = (Student)oi.readObject();
                   System.out.println("Object S2 recovered : " + s2_recovered.getfirstName() + " " + s2_recovered.getlastName());
                   oi.close();
              catch(Exception e)
                   e.printStackTrace();
    }You can actually try printing the contents of the studentSer.ser file and you will find the object members and their values separated by some non-printable text.
    Regards,
    Nagendra U M
    Edited by: Nagendra_U_M on Mar 30, 2010 11:18 PM

  • Sequence from Control file

    Can I call sequence from Control file( Sql Loader)
    Plz help.

    As an option to what Warren suggested, you can also specify an actual sequence name in the control file itself.
      LOAD DATA
      INFILE datafile.dat
      APPEND
      INTO TABLE <table_name>
      FIELDS TERMINATED BY '|'
      TRAILING NULLCOLS
        (<column_name> CHAR,
         <column_name> CHAR,
         <column_name> "seq_name.nextval")

  • Calling a method from another file

    This is pretty basic stuff but i can't seem to get it right. I am calling a method from another file. The other file IS located in the same folder BUT when i compile i get errors
    "cannot find symbol" <===referring to limit and sieve i believe.
    The method name is "sieve" the file name is "PrimeSieve2008" and "limit" is the variable in brackets in the real method.
         public static void main (String [] args) {
    final int [] PRIMES;
    int sieve = PrimeSieve2008.sieve(limit);
         PRIMES = sieve(getValidInt());
              for (int j = 0; j<PRIMES.length; j++) {
                   System.out.println("Prime[" + j + "] = " + PRIMES[j]);
    Is "int sieve = PrimeSieve2008.sieve(limit)" the wrong way to call a file?
    Thanks a million,
    Alex
    Edited by: Simplistic2099 on Apr 3, 2008 7:47 PM
    Edited by: Simplistic2099 on Apr 3, 2008 7:49 PM

    Simplistic2099 wrote:
    the other method runs fine:
    "public static int[] sieve(final int limit){
    int candidate; // possible prime
    int count; // no. of primes found
    boolean[] mayBePrime = new boolean[limit+1];
    // remaining possibilities
    final int[] PRIMES; // array to return
    // initialize mayBePrime
    for ( int j = 0 ; j <= limit ; j++ ) {
    mayBePrime[j] = true;
    mayBePrime[0] = mayBePrime[1] = false;
    // apply sieve, and count primes
    candidate = 2;
    count = 0;
    while ( candidate <= limit ) {
    if ( mayBePrime[candidate] ) {
    count++;
    for ( int j = 2 * candidate ; j <= limit ; j += candidate ) {
    mayBePrime[j] = false;
    } // end for
    } // end if
    candidate++;
    } // end while
    // fill up new array with the primes found
    PRIMES = new int[count];
    count = 0;
    for (int j = 2 ; j <= limit ; j++ ) {
    if ( mayBePrime[j] ) {
    PRIMES[count] = j;
    count++;
    } // end if
    } // for
    return PRIMES;
    } // sieve
    I really am clueless here.in this one you are passing in limit.
    in the other one you are getting limit from somewhere outside of main.

  • [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messa

    Error
    [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There
    may be error message
    I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
    My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
    But the error still occurs .
    I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
    Mudassar

    Thats my connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
    Excel 2010 installed and its 32 bit edition
    Are you referring to install this component -AccessDatabaseEngine_x64.exe?
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Mudassar
    You can try an OLEDB provider in that case
    see
    http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    you might need to download and install ms access redistributable
    http://www.microsoft.com/en-in/download/details.aspx?id=13255
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for