New Scripts | Java | Tutorials & Tips
Servlets Advanced
posted byRyanJames27inDevelopment
After describing some basic programming of servlets, we will describe some advanced topics of servlets in this tutorial, viz., Session Tracking, Servlet Filters, Servlet Life Cycle Events, Including, forwarding and redirecting, Servlet Chaining and Applet Servlet Communication.
Reviews0
PriceFree
Views1193
JSP Basics
posted byRyanJames27inFrequently Asked Questions
Java Server Pages (JSP) is a Java API in J2EE which allows dynamic creation of web pages using Java. It has the same purpose as other existing technologies like CGI or PHP. In this tutorial you will learn about Lifecycle of JSP pages, Dynamic content generation, Invoking Java code using JSP scripting elements, JavaBeans for JSP and Error Handling.
Reviews0
PriceFree
Views1262
Capitalization of English Names
posted byhinotoriinMiscellaneous
There are names in the English language like Sam O'Neil, Jenny McCarthy, Beverly d'Angelo, Leonardo di Caprio, Don Alejandro de la Vega, Wernher von Braun, etc. that give us trouble when we try to properly capitalize them in software applications. I provide a customizable and extendable solution to this problem. I had looked through many documents on the net concerning capitalization in English and also spoke to some people that are supposed to know things like this. Then I've written some code that puts all this theory into Java.
Reviews0
PriceFree
Views892
Comparing two JVM cacert files
This can come in very handy, if you need to compare 2 different projects or envs.
For example Development server against prod, to ensure they both have same certs stored in cacerts (sampled by java among others).
Code to generate list of certs, along with there alias, entry, owner and valid dates is supplied at the URL.
Reviews0
PriceFree
Views2843
Java Online Course
posted byathanasinIntroduction to Java
Easy to follow, visual presentation of many of the concepts you need to start programming in java such as fundamentals, syntax, basic packages, GUI with AWT/Swing/2Dapi, threads and networking. Includes example source code, quizzes and exercises.
Reviews0
PriceFree
Views1689
Handling Unhandled Exceptions
posted byinfoinJSP & Servlets
Java Server Pages (JSP) could handle any erros that might be arised in scriptlets, expressions, or other JSP elements. You could use try/cacth blocks to handle any known erros. In this technic we could use to display a custom error on our file where unhandled exception is thrown.
Reviews0
PriceFree
Views1271
Writing Form Data to Text Files
posted byinfoinIntroduction to Java
This sample of JSP file, first handles all posted data from a web form and write to a text file. We have used Tomcat Server to run our sample code. You could easily edit the source code to use in your application.
Reviews0
PriceFree
Views4678
How to set cookies in JSP
posted byinfoinJSP & Servlets
You can put client's browser a cookie in JSP easily. Following example displays how to create cookie and set target browser.
Reviews0
PriceFree
Views2782
Sending Emails in JSP
posted byinfoinJSP & Servlets
Before to start to examine this sample code, you need a SMTP server. If you know your mail server name you could easily use this sample code in a real website. We will use JavaMAIL API. You must put j2ee.jar under WEB-INF/lib folder in your web work folder. Our testing system is Red Hat Linux with Tomcat 5.
Reviews0
PriceFree
Views1920
Starting to work with JSP Sessions
posted byinfoinJSP & Servlets
Session are very helpful to associate some data with each visitor. You may pass and retrieve values in diffrent page using sessions. All sessions are an object associated with each web client. In this sample code we will create a session named `username` and later put a value inside our new Session object. On next step we will get our session value. .
Reviews0
PriceFree
Views1811
Step-by-Step JAVA games (Part 2)
posted byskyhawk133inIntroduction to Java
Creating a basic Java game using JPanel.
Reviews0
PriceFree
Views2504
Step-by-Step JAVA games (Part 1)
posted byskyhawk133inIntroduction to Java
Creating a basic game in JPanel.
Reviews0
PriceFree
Views2951
Reviews0
PriceFree
Views2919
Java Threads
posted byskyhawk133inIntroduction to Java
A thread, by definition is a light weight process. They are used to increase functionality and performance by performing multiple tasks at the same time, i.e. concurrently...
Reviews0
PriceFree
Views2645
Incredibly Easy Way to play Sounds
posted byskyhawk133inIntroduction to Java
Do you want to add sound to your JAVA application? It's so incredibly easy!
Reviews0
PriceFree
Views2619
Demonstration of Linked List in java
posted bymsaqibinMiscellaneous
It is a simple demonstration of Linked list in java programming language. Very simple and well commented java source code for the beginners. Linked list of points are used to create a Polyline and display it.
Reviews1
PriceFree
Views13241
Console Based Java Calculator
posted bymsaqibinIntroduction to Java
This is a small Console Based Java Calculator that can add, subtract , divide and multiply two numbers. Find the square root of a number, cube of a number, nth Power of a number. It is very for the begnners of Java....
Reviews0
PriceFree
Views4325
Demonstration of the try-catch-finally
posted bymsaqibinMiscellaneous
Demonstration of the try catch finally exception handling mechanism in java programming language.
Reviews0
PriceFree
Views2517
Drawing Pad in Java
posted bymsaqibinIntroduction to Java
A simple Drawing Pad on which the user can draw some lines and shapes by using the mouse.
Reviews0
PriceFree
Views5107
Applets and Native Methods.
posted byradithainApplet Building
A guide to calling native methods from with in java applets. Explains how to overcome the sandbox restrictions and how to load native libraries when the applet starts. Also includes a brief introduction to the JNI.
Reviews0
PriceFree
Views1400