Posts

What is java Filter ? With examples.

Image
What is java Filter ? With examples ... A filter is nothing but java class; A filter offers a useful way of performing filtered functionality in a java  web application. Typically, filters do not generate content themselves, although in this example, the filter will generate some minimal content to show how it is called. A filter implements the javax.servlet .Filter interface . The primary filter functionality is implemented by the doFilter() method of the filter. Method Summary  void destroy ()           Called by the web container to indicate to a filter that it is being taken out of service.  void doFilter ( ServletRequest  request,  ServletResponse  response,  FilterChain  chain)           The  doFilter  method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client...

JSP Tutorial My first JSP ...

JSP Tutorial   JSP simply puts Java inside HTML pages.  You can take any existing HTML page and change its extension to ".jsp" instead of ".html".  In fact, this is the perfect exercise for your first JSP.   Change its extension from ".html" to ".jsp".  Now load the new file, with the ".jsp" extension, in your browser. You will see the same output, but it will take longer!  But only the first time.  If you reload it again, it will load normally. What is happening behind the scenes is that your JSP is being turned into a Java file, compiled and loaded.  This compilation only happens once, so after the first load, the file doesn't take long to load anymore.  (But everytime you change the JSP file, it will be re-compiled again.) Of course, it is not very useful to just write HTML pages with a .jsp extension!  We now proceed to see what makes JSP so useful.   JSP date example JSP date example JSP Date Example Till now you lear...

REFERENCES & RESOURCES FOR JAVA LEARNING

Image
REFERENCES & RESOURCES FOR JAVA LEARNING   XML and Related Technologies Specifications @  www.w3c.org . W3Schools' XML Tutorial @  http://www.w3schools.com . Rose India's Programming Tutorial @  http://www.roseindia.net .

Java Programming Java & XML

Image
Java Programming Java & XML  XML (eXtensible Markup Language), like HTML, is a  markup language  for marking up the structure of a text document. It is a subset of Standard General Markup Language (SGML). XML is not a programming language like Java or C#. It is developed and maintained by World-Wide Web Consortium (W3C) @  www.w3c.org . (W3C also maintains specifications for HTTP, HTML, XHTML, CSS, among others.) XML is a family of technologies, which includes: XML: the markup language itself. DTD (Document Type Definition) and XML Schema: define the structure of an XML document, XSL (XML Style sheet Language), XSLT (XSL Transformation), XSL-FO (XSL Formatting Objects): for presentation. XPath, XLink, XPointer, XQuery: for locating, linking and query document. DOM (Document Object Model), SAX (Simple API for XML): XML parser. XQL (XML Query Language), XSQL: for querying databases. and more... I assume that you have some basic understanding of ...
Java Code To Play MP3 File in pc.. _______________________________________________________________________________ System  Requirement : > Install Java Media Framework.(JVM) For this you'll need to install  Java Media Framework (JMF)  in your PC. This is much easier than coding, it's just like you install other softwares. Clicking on Agree, Next, Finish will do the thing. You will also not have any head ache with the  classpath settings  because it is automatically done. If you know how to install software, then you probably will install the JMF. The download link is provided above, all you need to do is to accept the  license agreement  first and then if choose your Operating System and then click on the file. If you use windows, i recommend to download  Windows Performance Pack. Java code for Audio player... import javax.media.*; import java.net.*; import java.io.*; import java.util.*; class AudioPlay { public static void main...
Image
java magazine   Get Java Magazine! Java Magazine  is one of Oracle’s newest and most significant investments in the continuing health and growth of the Java technology ecosystem. This bimonthly, digital-only publication is an essential source of knowledge about Java technology, the Java programming language, and Java-based applications for people who rely on them in their professional careers, or who aspire to. Although there are other publications that bring you news from the world of Java, there are no other examples that combine the voice of the Java “steward” (Oracle) with the voices of the rest of the community (developers, ISVs, device manufacturers, users, and students) in an innovative, all-digital package.     Get Java Magazine!

Eclipse and Java for Total Beginners Tutorial.

Image
 Eclipse and Java for Total Beginners Tutorial Companion Document. Java is platform independent language and no of ID's are available for java development like Eclipse and Netbeans  for every beginners wants some basic idea's for code development . Following document helps to you for prepare basic idea's of code making and also you can learn here various java related  definition .just click and download this pdf file. Download pdf for java Beginners [Document]