SMS project

hi. i have a situation that got me totally stumped and i have no clue how to proceed. i have a program where, for example, a teacher would want to see all the text messages he/she receives in a day during her lesson. so she chooses the location of her lesson, eg. LT30, and the time range, eg. 0900-1000.
and once a message is received and stored into the database (i'm using microsoft access), text messages under that LT that are received during 0900-1000 should be printed. how do i pull all the text messages between that time range, eg. message received at 9.32am? should i use if, else statement or just specify it in my query statement?
help is greatly appreciated.

Learn SQL and write SQL so that you get it all in one resultset.
This has completely nothing to do with JSP however. This question makes me think that you wrote raw Java code doing this stuff inside a JSP file instead a Java class. I would emphasize that this is a very bad practice!
With regard to SQL, there's a SQL tutorial at w3schools.com.

Similar Messages

  • Java comm api not working in j2sdk1.4

    am doing a sms project in java..
    my code is works fine in jdk1.3 ,but when i tried in j2sdk1.4 it failed
    1.classpath used
    c:\j2sdk1.4.2_08\lib\comm.jar;
    2.copied win32 dll to j2sdk1.4.2_08\ bin
    3.comm.jar and java.properties toj 2sdk1.4.2_08\lib
    also in policy tool,grant allpermissons set
    thkx
    arvind

    i cant run the program in j2sdk1.4
    port is not opening.
    iam using comm.jar,javax.comm.properties ,win32 dll

  • Java comm not working in j2sdk1.4

    pls help..
    am doing a sms project in java..
    my code is works fine in jdk1.3 ,but when i tried in j2sd1.4 it failed
    1.classpath used
    c:\j2sdk1.4.2_08\lib\comm.jar;
    2.copied win32 dll to j2sdk1.4.2_08\ bin
    3.comm.jar and java.properties toj 2sdk1.4.2_08\lib
    also in policy tool,grant allpermissons set
    thkx
    arvind

    i cant run the program in j2sdk1.4
    port is not opening.
    iam using comm.jar,javax.comm.properties ,win32 dll

  • HT6337 sms forward not working on macbook pro

    I am using an iPhone 5 running iOS 8.1and a macbook pro late 2011 model running OS X 10.10. I am able to call from my macbook pro but i am not able to send an sms. When i go to settings>messages>text message forwarding I can see my Macbook pro's name listed but when I enable it I don't receive any one-time code on my mac!

    yer i did the latest updates and have it configured right too. when i open up a new project it works but when i open a full track i made in logi 7 it does have any sound and makes clicking noise.
    i am wondering if its a UB update on one of my plug-in's? god its annonying aaaaaaarrr

  • What are the steps to remove SMS Provider traces from a server

    Hi,
    My client's environment is set up with a standalone primary site. They decided to install a second SMS Provider on a site system also running the Reprting Services Point to provide redundancy in the case the SMS Provider on the primary site
    would go down.
    They experienced a problem with the server running the second SMS Provider and it went down for about a day. The behavior for SCCM console users was to get an error message preventing them to connect to SCCM; they had to close the console and re-launch it
    so it would randomly connect to the SMS provider on the primary site successfully. When a SMS provider is down, it seems the console won't redirect itself automatcally to another provider when trying to connect.
    Since it was causing some frustration because console users had to launch it several times before they could connect, someone removed the second SMS Provider using the Site Maintenance wizard on the primary site. The thing is the wizard ran while the second
    SMS Provider was down, it removed traces of this SMS Provider from the site configuration, but couldn't remove the actual SMS Provider files and registry entries since the server was down.
    Now, only one SMS Provider is active on the primary site server, but we have orphaned SMS Provider files and registry keys on the site system server. Is there a way to remove them cleanly? The site system is still running the Reporting Services Point, so
    we cannot remove everything related to SCCM.
    Now we prefer to keep a single SMS Provider on the primary site server, since SCCM is not consider critical to the business anyway, and to avoid this issue in the future.
    My guess would be to reinstall the SMS Provider from the Site Maintenance wizard and remove it after, but I just want to have feedback from people who might have deal with it in the past.
    Tnx for help
    Patrick

    Hi,
    Could you install the SMS Provider from the Site Maintenance wizard while SMS Provider files and registry entries are still there? Please have a look on the thread below, although it is for sccm 2007.
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/bb307748-7638-404d-a6a4-982827a051c8/how-do-i-remove-sql-provider-that-was-previously-installed-on-a-remote-sql-server?forum=configmgrsetup
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • RMI call back - How to refer to the client project from the server project?

    Hi, I am working on an RMI assignment which basically needs me to use the RMI call back for the server to notify the clients.
    I have 2 projects , one for the client and another for the server.
    In the client project, I have a client interface and the main client class implements this interface.
    In the server project, I have a server interface and a class that implements this interface.
    I can use the server interface in the client project's code by adding the server project in the path of the client project. it lets me use the server interface in the code if I put "import.." statement.
    But the issue is I can not do the same to access the client interface from within the server project's code. Since that will be a circular reference, the compiler does not let me use the client interface from within the server's code. This is putting me in a great difficulty and I am stuck here. What should I do so that I can use the client interface and the compiler won't complain?
    Thanks for any help..
    Regards.. js

    Let me explain what I tried: I manually generated stub class of the client using the Eclipse IDE as mentioned in my previous message. The StockMSClient_Stub.class got created in my client project.
    The common project has the 2 interfaces - one from the client and one from the server.
    I have added reference to the common project from the client and server projects to use the interfaces.
    With the above mentioned in place, when I run the server project, the registry binding of the server objects is very fine. But I am getting error in the applet at the line where I am passing the client object to the method provided by the server interface. The following is the code snippet in the applet where I am getting the error.
    specifically the line: String response = objs.login(userId, password, smsClient);     ====================
    public void login() {
                Registry reg = null;
                String userId = "test";
                String password = "test";
                this.smsClient = new StockMSClient();
                try {
         reg = LocateRegistry.getRegistry(rmiHost,rmiPort);
                          UserInterface obj = (UserInterface) reg.lookup(rmiStrings
                                                                                                                        [1]);
         User u = obj.find(userId);
         if (u == null) {
              System.out.println("This user is not valid");
         } else {
                         UnicastRemoteObject.exportObject(smsClient);
         reg = LocateRegistry.getRegistry(rmiHost, rmiPort);
         LoginLogoutInterface objs = (LoginLogoutInterface) reg
                                   .lookup(rmiStrings[0]);
                        //getting error at the following line.
                        String response = objs.login(userId, password, smsClient);     
                         System.out.println("response :" + response);
               } catch (AccessException ae) {
                       System.out.println(ae);
               } catch (NotBoundException nbe) {
                      System.out.println(nbe);
               } catch (RemoteException re) {
                      System.out.println(re);
    } //end login()====================
    Error is:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: sms.rmi.graphics.StockMSClient_Stub (no security manager: RMI class loader disabled)================
    I don't know why this is happening..Please help.
    thanks & regards, js
    Message was edited by:
    jsitaraman

  • Help me in my project

    I've got a task from my teacher. We're working on an C#.NET application that makes it possible to send free SMS through a gateway. I found an information and Ozeki NG SMS gateway on that page ozekisms.com that seems to be working. Here a C#.NET SMS demo project is provided with full source code. Do you have any suggestions to my project? Any useful idea?
    Many Thanks
    Will

    Well, your question has nothing whatsoever to do with Oracle.
    (I had to look up "Capstone project" http://edglossary.org/capstone-project/)
    If you can't imagine what your project will be or a good title for it, maybe you should repeat your years of school

  • Problem in sending SMS via using java communication API

    I need to send SMS via my sony ericsson Z530i. It is connected to the com5 port of my system. I got the following code.
    import java.io.*;
    import java.util.BitSet;
    import javax.comm.*;
    import java.lang.*;
    public class SerialToGsm {
        InputStream in;
        OutputStream out;
        String lastIndexRead;
        String senderNum;
        String smsMsg;
        SerialToGsm(String porta) {
            try {
    //            CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier("com5");
                CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(porta);
                SerialPort sp = (SerialPort)portId.open("Sms_GSM", 0);
                sp.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                sp.setFlowControlMode(sp.FLOWCONTROL_NONE);
                in = sp.getInputStream();
                out = sp.getOutputStream();
                // modem reset
                sendAndRecv("+++AT", 30);       // delay for 20 sec/10
                sendAndRecv("AT&F", 30);
                sendAndRecv("ATE0", 30);        // echo off
                sendAndRecv("AT +CMEE=1", 30);  // verbose error messages
                sendAndRecv("AT+CMGF=0", 70);   // set pdu mode
    //            sendAndRecv("AT V1E0S0=0&D2&C1", 1000000);
            catch (Exception e) {
                System.out.println("Exception " + e);
             System.exit(1);
        private String sendAndRecv(String s, int timeout) {
            try {
                // clean serial port input buffer
                in.skip(in.available());
                System.out.println("=> " + s);
                s = s + "\r";         // add CR
                out.write(s.getBytes());
                out.flush();           
                String strIn = new String();
                for (int i = 0; i < timeout; i++){
                    int numChars = in.available();
                    if (numChars > 0) {
                        byte[] bb = new byte[numChars];
                        in.read(bb,0,numChars);
                        strIn += new String(bb);
                    // start exit conditions
                    if (strIn.indexOf(">\r\n") != -1) {
                        break;
                    if (strIn.indexOf("OK\r\n") != -1){
                        break;
                    if (strIn.indexOf("ERROR") != -1) { // if find 'error' wait for CR+LF
                        if (strIn.indexOf("\r\n",strIn.indexOf("ERROR") + 1) != -1) {
                            break;                                            
              Thread.sleep(100); // delay 1/10 sec
                System.out.println("<= " + strIn);
                if (strIn.length() == 0) {
                    return "ERROR: len 0";
                return strIn;
            catch (Exception e) {                 
                System.out.println("send e recv Exception " + e);
                return "ERROR: send e recv Exception";
        public String sendSms (String numToSend, String whatToSend) {
            ComputeSmsData sms = new ComputeSmsData();
            sms.setAsciiTxt(whatToSend);
            sms.setTelNum(numToSend);
    //        sms.setSMSCTelNum("+393359609600");  // SC fixed
            String s = new String();
            s = sendAndRecv("AT+CMGS=" + (sms.getCompletePduData().length() / 2) + "\r", 30);
    //        System.out.println("==> AT+CMGS=" + (sms.getCompletePduData().length() / 2));
    //        System.out.println("<== " + s);
            if (s.indexOf(">") != -1) {
    //            s = sendAndRecv(sms.getSMSCPduData() + sms.getCompletePduData() + "\u001A"); // usefull one day?
    //            System.out.println("Inviero questo >>>> " + sms.getCompletePduData());
                   // if this sintax won't work try remove 00 prefix
                s = sendAndRecv("00" + sms.getCompletePduData() + "\u001A", 150);
    //            System.out.println("<== " + s);
                return s;
            else {
                return "ERROR";
        // used to reset message data
        private void resetGsmObj() {
            lastIndexRead = null;
            senderNum = null;
            smsMsg = null;
        public String checkSms (){
            String str = new String();
            String strGsm = new String();                         
            strGsm = sendAndRecv("AT+CMGL=0", 30);  // list unread msg and sign them as read
            // if answer contain ERROR then ERROR
            if (strGsm.indexOf("ERROR") != -1) {
                resetGsmObj();
                return strGsm; // error
            strGsm = sendAndRecv("AT+CMGL=1", 30);  // list read msg
            // if answer contain ERROR then ERROR
            if (strGsm.indexOf("ERROR") != -1) {
                resetGsmObj();
                return strGsm; // error
            // evaluate message index
            if (strGsm.indexOf(':') <= 0) {
                resetGsmObj();
                return ("ERROR unexpected answer");
            str = strGsm.substring(strGsm.indexOf(':') + 1,strGsm.indexOf(','));
            str = str.trim(); // remove white spaces
    //        System.out.println("Index: " + str);
            lastIndexRead = str;
            // find message string
            // look for start point (search \r, then skip \n, add and one more for right char
            int startPoint = strGsm.indexOf("\r",(strGsm.indexOf(":") + 1)) + 2;
            int endPoint = strGsm.indexOf("\r",startPoint + 1);
            if (endPoint == -1) {
                // only one message
                endPoint = strGsm.length();
            // extract string
            str = strGsm.substring(startPoint, endPoint);
            System.out.println("String to be decoded :" + str);
            ComputeSmsData sms = new ComputeSmsData();
            sms.setRcvdPdu(str);
    //        SMSCNum = new String(sms.getRcvdPduSMSC());
            senderNum = new String(sms.getRcvdSenderNumber());
            smsMsg = new String(sms.getRcvdPduTxt());
            System.out.println("SMSC number:   " + sms.getRcvdPduSMSC());
            System.out.println("Sender number: " + sms.getRcvdSenderNumber());
            System.out.println("Message: " + sms.getRcvdPduTxt());
            return "OK";
        public String readSmsSender() {
            return senderNum;
        public String readSms() {
            return smsMsg;
        public String delSms() {  
            if (lastIndexRead != "") {               
                return sendAndRecv("AT+CMGD=" + lastIndexRead, 30);
            return ("ERROR");
    }When i compile, there is no error. But when i execute it, the following error comes:
    E:\java\JavaSmsApi>javac SerialToGsm.java
    E:\java\JavaSmsApi>java SerialToGsm
    Exception in thread "main" java.lang.NoSuchMethodError: main
    What might be the error? Somebody help me. Thanks in advance.

    You are probably trying to run this as a CLDC application instead of a MIDP application (aka a MIDLet). Since CLDC apps start with a main(....) your runtime looks for one but does not find it, hence the error. Please recheck the project configuration.

  • Need HELP (Project Issue) : Having 3 individual VIs, datalogger.vi, start vi, amksms.vi done. (How to run the VIs in sequence order - datalogger start amksms combine into 1 VIs? )

    Need HELP (Project Issue) : Having 3 individual VIs, datalogger.vi, start vi, amksms.vi done.
    (How to run the VIs in sequence order - datalogger > start > amksms combine into 1 VIs? )

    VIs in icon.
    how would it able to run in the sequence order:
    data first, follow by start and lastly amk sms.
    Attachments:
    dsa.jpg ‏10 KB

  • Java application to send an SMS via my DKU-5 serial cable.

    Hi,
    I'm not sure if this is the right forum but....
    I'm doing a project for college which involves Learning Content Managemnt System.
    I've developed a few features for this including chat, forums, etc.
    I want to develop an SMS system to use in conjunction with the chat application
    ie. If a user is not online then the chat message will be sent to their mobile in the form of an SMS.
    Looking for help in creating a Java application to send an SMS via my DKU-5 serial cable.
    Any ideas??
    Thanks
    Message was edited by:
    kiwicas

    hiii u can try.........javax.comm package.
    its best for serial communication.
    contect [email protected] if required
    jigar

  • How do I cancel the distance between the numbers? I'm having trouble copy phone numbers from the phone book and send it via SMS This problem I've found in the Arabic language, numbers appear in reverse Please help System 6.0.1

    How do I cancel the distance between the numbers?
    I'm having trouble copy phone numbers from the phone book and send it via SMS
    This problem I've found in the Arabic language, numbers appear in reverse
    Please help
    System 6.0.1

    MPEG-4 should not be used in FCP unless it is converted first or optimized in the application.
    Trash your preferences. Trash your project render files. Switch off background rendering. Do not re-render. Export your projects.
    Ignore the last frame and first frame indicators.

  • Sending/Receiving SMS on a J2EE Web Application

    hi friends
    i have developed an application for bank accounts. Its a web application and my server is Tomcat 5.0. my requirement is that user could sms (from their mobile) to my application. In the SMS they will provide their account no and in response my application will send a sms to their cell phone giving them their current balance.
    Now im very new to this mobile technology. im confused that whether i have to use J2ME or JMS or what. And what other things i require.
    The Mobile and application has to do nothin with each other(means they r not connected in any way). So i think i need services from a Service Provider. But from technology pt of view what i'll use??
    If any body knows which tech. to use and flow of such application pls help.
    thanx...

    Hi
    There is no need to develope mobile application for
    sending SMS from the PC.
    n general, there are two ways to send SMS messages
    from a computer / PC to a mobile phone:
    Connect a mobile phone or GSM/GPRS modem to a
    computer / PC. Then use the computer / PC and AT
    commands to instruct the mobile phone or GSM/GPRS
    modem to send SMS messages.
    Connect the computer / PC to the SMS center (SMSC) or
    SMS gateway of a wireless carrier or SMS service
    provider. Then send SMS messages using a protocol /
    interface supported by the SMSC or SMS gateway.I would like to know how do you set up the whole thing. What are AT commands and Where do i get thm and how do i use them. i am sorry for asking so many question but i am really interested in knowing this. I am doing my school project which requires me to send sms from my PC.
    Please help!!!!
    Thanks
    Kholi

  • Sending SMS throw portal

    Hi Experts,
                 How we implement SMS throw portal if we can implement explain the procedure.In our project we don't have R/3 in this phase.

    Hi,
    You can browse this link about alert management and sending alerts through mails,sms
    http://help.sap.com/saphelp_nw04s/helpdata/en/3f/567ddea69d3d4c93a6aedabd08899e/frameset.htm
    Regards
    Radhika Kuthiala
    Do award points for encouragement:)

  • SMS Agent Host Service requirement for Site Server or Site Systems

    Is the SCCM Client a requirement on the SCCM 2012 Site Server or Site Systems or is it possible to disable SMS Agent Host Service or uninstall the client without affecting any of the Site roles? I have actually done that and everything
    is working as expected but I wanted to make sure that none of the site roles are dependent on the client agent.   

    Hi,
    Only need to install client when you want to manage the servers by Configuration Manager client.
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Regarding SMS Channel Configuration

    Hi All,
             I need to configure SMS Channel in my SAP EP Portal.How do i go about it?.Which SMS Server i need to prefer?.Does SAP Provides any SMS Server?.Plz help me out regarding this,will reward with the Points.
    Thanks and Regards
    Santosh Saraf

    SAP is not providing SMS server as far as I know, but provides infrastructure for such servers (there are many of such servers in commercial world). If you are looking for cheep (free implementation of this infrastructure please consider my and few other people involved into this open source project -- http://comsuite.sourceforge.net
    Kind regards,
      Marcin Zduniak / http://zduniak.com

Maybe you are looking for