Posts

Showing posts from February, 2015

Send SMS Through JAVA/JSP/ SERVLETS

Hi, Friends with this post i will show to how to send an sms through JAVA/JSP/SERVLETS For sending sms I am using mvayoo . First what is mVaayoo, It  is a cost effective End-to-End Enterprise Mobile Messaging Service with high service level availability, that is unmatched in the industry. mVaayoo provides both 1-Way & 2-Way SMS communication including SMS Push, short code and long code services, SMS gateway with APIs, SMS Excel plugin, SMS contest, voting & polling and Voice SMS services. URL : http://www.mvayoo.com You first register in this website and continue your tutorial ...   ------------------------------------------------------------------------------------------------------------ Note  : We can send only 20 sms with the free account... If you want more choose the premium plan or register with another account. ------------------------------------------------------------------------------------------------------------ coming to the program...; import java...

Retrieval Image From DataBase and Display on WebPage by Using Servlets.

Hi Frnds, This Session I will Explain you to " How Retrive Image from DataBase Using Servlets and Display it on WebPage " The below code is useful for  Retrive Image from DataBase Using Servlets and Display it on WebPage. import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.http.HttpServlet; import javax.servlet.annotation.WebServlet; @WebServlet("/ImageDis") public class ImageDis extends HttpServlet { public void service(HttpServletRequest request,HttpServletResponse response)  throws IOException,ServletException {  response.setContentType("image/jpeg"); Blob image = null; Connection con = null; byte[ ] imgData = null ; Statement stmt = null; ResultSet rs = null; try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/DbName","UserName","Password"); stmt = con.createStatement...

75 inspirational quotes that will change your life

1 of 75 Oprah Winfrey Quote : "You become what you believe." 2 of 75 Margaret Thatcher Quote : "You may have to fight a battle more than once to win it. 3 of 75 Steve Jobs Quote : "The only way to do great work is to love what you do." 4 of 75 Audrey Hepburn Quote : "Nothing is impossible, the word itself says, 'I'm possible!'" 5 of 75 Dalai Lama Quote : "Happiness is not something readymade. It comes from your own actions." 6 of 75 Amelia Earhart Quote : "The most difficult thing is the decision to act, the rest is merely tenacity." 7 of 75 Dolly Parton Quote : "If you see someone without a smile give them yours." 8 of 75 Jane Fonda Quote : "It's never to late- never to late to change your life,never to late to be happy." 9 of 75 Cate Blanchett Quote : "If you know you are going to fail, then fail gloriously." 10 of 75 Drew Barrymore Quote : "Life is very interesting... in t...

Displaying Text directly beside an image

Image
Hi, Today i wanna show you how to Displaying Text With An Image Within HTML Code...; If you're trying to place text directly beside an image within your web page HTML code, you may have discovered it's not as easy as it appears. When you place your image HTML code and text within your HTML code, instead of the text and image displaying side by side like a newspaper, it will display like this: To enable your image and text to display properly together, you will need to add an ALIGN attribute to your image HTML code. Following is an example image displaying on the left with the text wrapping around the image to the right. To align your image to left and your text to the right, add ALIGN="left" to your image HTML code like this: <img border="0" align="left" src="image.jpg"> Hai Frnds,How are You Following is an example image displaying on the right with the text wrapping around the image to the left. To align your image to right and ...

JavaScript to Start and Stop the Time

Hi Frnds, I waana Show you how to Start and Stop the Time Using JavaScript ...; The Below Code is used to Start and Stop the Time Using JavaScript <!DOCTYPE html> <html> <body> <p>A script on this page Starts and Stops clock:</p> <p id="demo"></p> <div> <form><input type = "submit" value = "Start Time" style = "float:left"></form> <input type = "submit" value = "Stop Time" style = "margin-left:10px" onclick="myStopFunction()" ></div> <script> var myVar = setInterval(function(){ myTimer() }, 1000); function myTimer() { var d = new Date(); var t = d.toLocaleTimeString(); document.getElementById("demo").innerHTML = t; } function myStopFunction() { clearInterval(myVar); } </script> </body> </html> Observe carefully this code <p id = “ demo ”></p> var myVar = setInterval...