Problem on sending sms in jsp page

hi to all,
i am using smslib for sending sms from pc to mobile.it work fine in all java file but when i implement in jsp file it gane me error of serial port that"port does not exist".how can i solve this problem...
Edited by: kinjal on May 30, 2008 9:36 AM

hi,
this was sort of an urgent requirement, i was using J2SE, no way to compile servlets,
when i compile sample code in SE, it gave me 6 errors
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\star\WEB-INF\clas
ses\com\stardeveloper\servlets>javac -cp %CATALINA_HOME%\lib\servlet-api.jar Tes
tServlet.java
TestServlet.java:7: package javax.servlet does not exist
import javax.servlet.*;
+^+
TestServlet.java:8: package javax.servlet.http does not exist
import javax.servlet.http.*;
+^+
TestServlet.java:10: cannot find symbol
symbol: class HttpServlet
+public class TestServlet extends HttpServlet {+
+^+
TestServlet.java:12: cannot find symbol
symbol  : class HttpServletRequest
location: class com.stardeveloper.servlets.TestServlet
public void doGet(HttpServletRequest req, HttpServletResponse res)
+^+
TestServlet.java:12: cannot find symbol
symbol  : class HttpServletResponse
location: class com.stardeveloper.servlets.TestServlet
public void doGet(HttpServletRequest req, HttpServletResponse res)
+^+
TestServlet.java:13: cannot find symbol
symbol  : class ServletException
location: class com.stardeveloper.servlets.TestServlet
+throws IOException, ServletException {+
+^+
+6 errors+
at the sametime sun site was offline, so i decided to do it in JSP,
upto upadating DB im done,
but get stuckd at sms part,
now ive installed the J2EE, but stil when i compile, it gives the same old errors.
im completely new to this area of web applications, dont hav know how of the operation.
what i want is sending SMS using SMPP on button click in web page.
pls pls help me get rid of this, either using servlets or JSP
thanking u.....

Similar Messages

  • Problem in sending SMS?????????

    hi all,
    i have problem in sending sms using wma.its arises exception about "port format", whats the problem is???? anybody help me??

    firstway
    Please be clear on this. I have not accused you or anyone else of being dishonest. I have merely stated a point of fact, that sending a mail to an unknown recipient is not good policy.
    Forums are anyhow meant for open discussion, not as a gateway to private communication.
    No offence, but my daily schedule is just busy enough to make me not want to engage in Yahoo! or any other chat.
    All the best, Darryl
    ** Did you notice the starting date of this thread?

  • Problem with sending sms - nokia x3

    Hello,
    I've got a problem with sending sms in my nokia x3 - actually with recently used number. I sent messages, but the list is the same. There is only one number although I used many more. I removed this number from the list, but is still here. I also tried to turn off the phone and pull out the battery, restart factory setting but there's no change.
    Could somebody help me, please?
    p.s. Sorry, but my english isn't well. I hope the post is understood

    Check if there is any relation with the LOG... When you clear the log.. (selecting ALL).. is it removing details from the RECENTLY USED too...
    To confirm this select Clear Log.. and check if that one no. you are talking about still remains or not.. If its no more there means you must have cleared the log just before using the last no. that is appearing..
    --------------------------------------------------​--------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Java problem -- sending email via JSP page

    Below is a copy of my feedback page
    Basically, I am doing my work in a JSP page.
    For now, my plan is that when I click on the ''submit'' button, everything written on the text boxes will be sent to my email (my hotmail address)
    However, I do not know what are the codings needed (honestly speaking, I went up to Google to search but then, the codings are complicated and I don't know what is written) and neither do I know whether should I place all codings on one JSP page or place the codings for submission to my email on another JSP page.
    Please help. Thank you.
    http://i468.photobucket.com/albums/rr43/mrclubbie/feedback_page.jpg (sorry you have to copy the link and paste on your browser)
    Edited by: mrclubbie on Jun 27, 2010 3:05 AM

    You do not have a problem, so stop trying to pretend you have one. Lack of knowledge is not a problem, because it has a very easy fix: study more. Invest some time. Seriously, you are going to find blocks at every corner until you fully understand the tools you are using, and you are not going to find the answers by posting in forums hoping for someone to bail you out.
    I find that Javaworld usually has clear and precise articles, so I would use this one as the basis for your research:
    [http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html|http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html]
    Good luck!

  • How to send SMS from JSP application.

    Hi,
    I have created a web application using JSP for our Office internal use. I want to include the folowing option in our app.
    1) How to send SMS from the application to mobile.
    2) I don't want to use third party service (ex: SimpleWire). as the app is for internal purpose only.
    It will be helpful, if I get the complete procedure to implement it, as this is my first application.
    Thanks & Regards
    suresh.

    I am having problem with smslib. smslib is an enhanced version of jsmengine, I have compiled the program, there is no error but when I run it , the following error is found. Can you help? my email is [email protected]
    Exception in thread "main" java.lang.NoClassDefFoundError: CIncomingMessage (wrong name: org/smslib/CIn
    comingMessage)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

  • Send message from JSP page to Java message driven bean

    Hi all
    I'm using Jdev903.
    I need to send a message from JSP page (Web Application) to Java Message Driven Bean.
    * I created Message Driven Bean that named: MyMessageDrivenEJBBean
    * I have configed jms.xml:
    <topic-connection-factory name="ChatTopicConnectionFactory" location="jms/theTopicConnectionFactory"/>
    <topic name="ChatTopic" location="jms/theTopic"/>
    * In JSP page, my code is:
    final Context ctx = new InitialContext();
    // 1: Lookup ConnectionFactory via JNDI
    TopicConnectionFactory factory =(TopicConnectionFactory)ctx.lookup("jms/theTopicConnectionFactory");
    But trouble occurs is:
    javax.naming.NameNotFoundException: jms/theTopicConnectionFactory not found
    please help me!
    thank a lot.

    Welcome to the Sun forums.
    1. Please post your code using code tags, this formats it so that it is easier for people to read and understand it. Click on 'CODE' above the text area when posting.
    2. As far as possible, please post an SSCCE
    What have learnt about JSPs and servlets till now? Because reading the values submitted in a form is pretty much the base of all operations. I suggest you Google for [servlet tutorials|http://www.google.com/search?q=servlet+tutorial] and [JSP tutorials|http://www.google.com/search?q=jsp+tutorial] and go through them thoroughly. After you understand what is to be done and what options are available to you, if you still face problems, please feel free to post your queries here. But this isn't exactly a site for tutorials, especially since there are so many good ones already out there, that explain all this stuff in detail. There's no point in re-inventing the wheel.
    Hints: [ServletRequest#getParameter()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)] and [RequestDispatcher#forward|http://java.sun.com/javaee/5/docs/api/javax/servlet/RequestDispatcher.html]

  • Problem in displaying image on jsp page

    I want to display an image on jsp page.I copied the image the image in WebContent folder.
    I am able to see the image on the design pane when using the following code:-
    <img src="/image.gif" height="50" width="50"> but when i run it in the browser nothing gets diplsyed.
    also when i use the image container and select the source option that image is not displayed in the WebContents file..plz help.

    Hi,
    Seems that the Problem is there with the way how you specifuied the Image relative Path:
    You have specified the below: The opath of image starts with (/) forward slash:
    *<img src="/image.gif" height="50" width="50">*
    It means to access this Image WebLogic Container will form a Path like this:
    http://localhost:7001/image.gif
    BUT may be the image is available inside your Context root: So Change the <Img> tag like following in your JSP:
    *<img src="image.gif" height="50" width="50">*
    (*NOTE:* Never Start your src path with a Preceesing /)
    Now WLE will consider the path like below ..if your Applications Context root is "TestApp"
    http://localhost:7001/TestApp/image.gif
    I am Assuming that Inside the TestApp Application "image.gif" And "your.jsp" jSP pages are Co-Located (Means available in the Same Directory).
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Magical Stuff)

  • Problems with sending SMS from adress book

    Hi all,
    I have a new Kotorola MOTOKRZR K1 here.
    The Bluetooth connection with iMac is ok. I can send data to phone and I can receive data from phone, but I can't send SMS from adress book v4.0.5 (487) to the phone.
    The bluetooth button in adress book is disabled. I can click on this button, but address book open in this case always a dialog: "Pair with bluetooth device".
    When I click on the "pair" button, then I can enter my access code vor the phone.
    It is the access code from Bluetooth Assistant program for the phone.
    my question is, Is here a user, who can send a SMS with MOTOKRZR K1 from adress book?
    With my old Siemens S55 is this no problem.
    Sorry for my very bad english.
    Greetings, Bermd

    did this ever get resolved?

  • Problem to send sms

    We have made a test application in j2me which sends sms.
    The mobile server is "nokia 6681".
    Following is the result when we send sms to various other mobile
    Nokia 1100 message come but content says 'message can't be displayed'.
    Nokia 3310 sms reaches properly.
    Nokia 3120 sms never reaches and no other customize message come.
    will any body guide us what possiblily is the problem my id:[email protected]

    Hello ,
    I have the same problem, but on the nokia N70 and N90 ;
    the error message displayed is " ... security problem etc.... " but I have disabled all security setting on the phone and my App is compiled with a sign ; I don't understand why the App is run on some phone but doesn't it on nokia N90 e 9300 Communicator.
    Help me please!?

  • Problem connecting oracle database to jsp pages using Apache Tomcat server 8.0

    Well...I tried too many things..googled so many times..but still could not find solution to my problem.
    I use windows 8 Enterprise Edition(if this has to do something with the problem)
    Oracle 11.2.0
    Apache Tomcat server 8.0
    JDK 1.7
    My oracle is installed in the D: drive and tomcat in c:. i copied the ojdbc6.jar file from oracle to lib directory of tomcat server.
    Then i set  CLASSPATH in environment variables as "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" in system variables
    My path variable is set as "C:\Program Files\Java\jdk1.7.0_02\bin".
    My program is as follows in notepad:
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection conn;
    Statement st;
    ResultSet rs;
    try{
    new oracle.jdbc.driver.OracleDriver();
    String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
    String userId="system";
    String pwd="moon";
    conn=DriverManager.getConnection(dbURL,userId,pwd);
    st=conn.createStatement();
    rs= st.executeQuery("SELECT * FROM login");
    while(rs.next())
    System.out.println(rs.getString(1)+""+rs.getString(2));
    catch(Exception e){}
    %>
    </body>
    </html>
    I get too many errors then
    eroors
    org.apache.jasper.JasperException: An exception occurred processing JSP page /page2.jsp at line 14
    11: String userId="system";
    12: String pwd="moon";
    13:
    14: conn=DriverManager.getConnection(dbURL,userId,pwd);
    15: st=conn.createStatement();
    16:
    17: rs= st.executeQuery("SELECT * FROM login");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
         org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    Nothing solved this problem.

    >> Nothing solved this problem.
    Can't fix a problem 'till an actual problem is identified.
    >> ODBC Driver Manager ... Data source name not found
    That appears to be ODBC drivers looking for a DSN (Data Set Name). If it wants a DSN, the DSN has to be specified in the code, and the DSN has to be configured in the windows host ODBC applet. So that is at least two squirrels to get in the right tree before moving forward. A ...host:...[port:]SID|service name are some of the bits needed in a jdbc connect string, and that is in no way related to DSNs. A Whole Different Animal. If it wants a DSN that might be what needs to go in the URL bit.
    And ODBC setups can be confusing, especially if an x64 OS is in the mix- if that is the case there are two different ODBC configuration applets, one for x64 the other for x86, and if one gets as far as talking to an actual database it might toss an architecture error. Only way to fix that "problem" is *delete* the ODBC DSN and then run the correct (maybe the x86) ODBC config utility, and set up the DSN. Again.

  • How to send info from JSP page as email-body

    Hi,
    i have a JSP page that generates dynamically as a result of some query. I have a Button - "Send Email".
    I want to send the information to the receipient thru email automatically on a button click,
    All information is in the memory. How can we pick the info from memory and send it as a message thru email?
    Pls help.
    thanx & regards,
    Shalini

    create a servlet to send mail (use the JavaMail api) then Post the message to the servlet when you click on the button.
    OR, put the message and any other data (like the email address) into the session, and then just call the servlet on click of the button, and have the servlet retrieve the information from the session.

  • Send mail from JSP page

    Hello,
    can some one help me to send emails from a jsp page.
    and if possible the source code of jsp or java...
    Thanks !

    read this:
    http://www.jspinsider.com/tutorials/jsp/javamail/jspjavamail_1.view

  • Problem in sending mail using Jsp(Jdeveloper9i)

    My Code is working when i m sending mail through commandpromt
    c:/Jdeveloper/Jdk/bin
    But when I m trying it thjrough jsp page than it gives compilation error that not found
    Javax.mail.* and Javax.mail.internet.*
    I have tried to add mail.jar and activation.jar in c:/Jdeveloper/jdev/jre/lib/ext
    If it is wrong place to add these files than plz suggest what i have to do.
    Thanks in Advance

    This is just a relay error. This means that the outbound SMTP server you are using doesn't allow relaying.
    Relaying is where the sender is not part of the domain the SMTP server manages. The no-relay concept is pretty common now as spammers often use SMTP servers which allow relaying to send their spam.
    The solution is to allow relaying on the SMTP server for your IP address. Another solution which some SMTP servers will implement is to allow relaying for clients who successfully authenticate regardless of their IP address. This is sometimes a better solution because it means you don't have to change anything if your client code moves to a different server.
    In your error message:
    class javax.mail.SendFailedException: 551 User not local. We don't relay
    You can see the SMTP Error Code (551). Look at the SMTP specification (rfc 821 I think) to see what all the error codes mean in case you get another one

  • How to send sms from jsp

    how to send sms from jsp

    First of all, you need to have the gsm modem or access to any Telco sms gateway.
    If you don have any access to the Telco sms gateway, try to download the SMSLib-Java-v2.1.2 java library from the http://sourceforge.net/project/showfiles.php?group_id=164313.
    Edit the example in the download file and include the example in your JSP file to send the sms using GSM modem.

  • Sending mail from JSP page

    HI Everyone,
    Please help me out in this. It is very urgent so not able search the same in this forum.
    I have a J2EE application. The view is in JSP. If i click a button from a JSP page, any mail client (Microsoft Outlook) has to open and current page need to be attached as html. THen user wish to send the mail to somebody...
    So my aim is to open a outlook and attache the current JSP page as html. PLease help me out !

    Instead of outlook, you can do it easily using SMTP

Maybe you are looking for