Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Wednesday, March 13, 2013

comment_icon 2 File Download Script For JSP

How2Labs
In this Tutorial  i'm going to explain how you can serve files to your users using JSP. Since we are not serving a HTML page so first we need to tell the browser that what kind of data we are going to serve for that we set Response Headers  response.setContentType("application/msword"); response.addHeader( "Content-Disposition","attachment; filename=your file name" ); Here application/msword is the mime type you can search internet for diff. mime type required for  diff. extensions few commonly used are image/jpeg text/plain application/pdf link format for filedownload <a href="download.jsp?filename=myresume.doc">Download...

Friday, August 17, 2012

comment_icon 1 Create Facebook Application with JSP

Today i was just seeing the  traffic sources of my blog and i found few search queries .which made me to write this post.  make a facebook application with jsp   facebook canvas app jsp tutorial For those who are looking for the same kind of tutorial there is a good news and a bad news for them. Bad news is that Facebook  doesn't have any SDK for Java but good news is that Facebook have an SDK for JavaScript so if you are going to build the Facebook application in jsp you can try the JavaScript SDK There is also an Api on Google Project , i haven't tried it but you can try that  http://code.google.com/p/javarunaround/ i...

Friday, April 6, 2012

comment_icon 0 working with Java Beans

In this tutorial i am going to talk about the java beans. i am going to cover the following  things what is  Java Bean ? how we use java beans in JSP scope of java Beans what is  Java Bean ?    If i say in general wordings java beans is the component that can be reused again and again .it just follow write once and use whenever required. for more details and basics follow the link java Beans how we use java beans in JSP JSP provides a usebean tag for using beans in java  Syntax :    <jsp:useBean  id="beanInstanceName" scope="page|request|session|application" ...

Sunday, February 26, 2012

comment_icon 5 Sending E-Mail via G-mail using Java

package mymail; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class Mymail { public Mymail(){ super(); } /*REMOVE THIS TO TEST AS JAVA APPLICATION public static void main(String args[]) throws AddressException, MessagingException{ Mymail m =new Mymail(); m.GmailSend("coolasr@gmail.com", "hello", "hello"); }*/ public boolean GmailSend (String to,String subject,String messageText) throws...

Sunday, February 5, 2012

comment_icon 0 Uploading a File in JSP

This Tutorial tell that how to upload a File using JSP . This tutorial is based on the tutorial i found on tutorialspoint . I updated the code according to RAD so you can easily work on it . few things to take care about it are 1. copy the class packages from src folder or you can find in links given bellow Following example depends on FileUpload, so make sure you have the latest version of commons-fileupload.x.x.jar file in your classpath. You can download it from http://commons.apache.org/fileupload/. FileUpload depends on Commons IO, so make sure you have the latest version of commons-io-x.x.jar file in your classpath. You can download...

Friday, December 9, 2011

comment_icon 2 Download RSA ( Rational Software Architect ) - A tool for software Modeling

Download via IBM site Download Via Torrent Torrent Includes : Files:13 Size: 5.35 GB (5741557433 Bytes) IBM® Rational® Software Architect is an integrated analysis, design, and development toolset that supports the comprehension, design, management, and evolution of enterprise solutions and services. It includes design, analysis, and development capabilities for software architects and model-driven developers creating service-oriented architecture (SOA), J2EE, and portal applications. This product offering includes: 1)Quick Start CD 2)Rational Software Architect 3)Rational Agent Controller 4)WebSphere® Portal test environments 5)Rational...

comment_icon 173 Sending sms via way2sms using Java

This Page has been no more upadted please visit thie link for updated information How to send sms in java : onl9class.com API NOT WORKING ANYMORE - INDYAROCKS MESSAGE NOT GETTING DELIVERED i have a paid API If you are willing to pay small amount such as 50-100RS for 100-300sms contact me at abhirathore2006@gmail.com The sole purpose of the Api is to be used in development by students.so i am not releasing the actual sour UPDATED CODE This Tutorial showz that how you can use the http://www.indyarocks.com/ for sending message using your java application Steps to Follow create a account on http://www.indyarocks.com/  after...

Sunday, December 4, 2011

comment_icon 0 Ajax From Scratch - a WORKING demo for Jquery-Ajax in jsp

This tutorial covers a working example of ajax in jsp note: example is just same as i used in my previous tutorial so to setup thing use that tutorial :creating-simple-db2-database-Application ...

Saturday, December 3, 2011

comment_icon 0 Learning Resources for DB2 pure XML with samples

XForms and DB2 pureXML Handle pureXML data in Java applications with pureQuery pureXML SamplesThe pureXML feature enables well-formed XML documents to be stored in their hierarchical format within columns of a table. XML columns are defined with the new XML data type. Because the pureXML feature is fully integrated into the DB2 database system, the stored XML data can be accessed and managed by leveraging DB2 functionality. This functionality includes administration support, application development support and efficient search and retrieval of XML via support for XQuery, SQL or a combination of SQL/XML functions.There are various samples...