Java programming Help: unique and effective tutoring at Tutorsonnet.com

Java lays the foundation for not only the programmers but also the testers when the write their scripting for automated testing.  Learning java will help to achieve ones targets easily because of the inbuilt libraries it has, the security it provides, especially the platform independence Java is designed to be simple and very easy to learn. It contains so many useful features. So for that reason it is not so popular today. Clearly a decision was made to hide some problems rather than to give people the means to solve them. Although Java is classed as an object-orientated programming language and one of the easier programming languages to start learning, Java’s primitive types are not objects and so consequently it is not a pure object-orientated language.

Continue reading “Java programming Help: unique and effective tutoring at Tutorsonnet.com”

Learn Java by Association with C Cobol Fortran Pascal Visual Basic

Product Description
This book is for anyone who knows C, Fortran, Cobol, Pascal or Visual Basic and wants to quickly learn Java. When trying to learn a new programming language like Java you will often say to yourself “Gee, I know how to do that in Pascal”, or whatever language you are currently fluent in, “but I wish I knew how to do that in Java”. This book is an answer to that wish. If you know how to accomplish a task in knows C, Fortran, Cobol, Pascal or Visual Basic you … More >>

Learn Java by Association with C Cobol Fortran Pascal Visual Basic

Learn Java – Online Java Tutorials and Tips

You are new to Java that helps improve the web page design and you need to learn in order to better your skills. Java experts post there analysis in the form of Java tutorials and a lot of documentation has been done that could be referred back. It is vital for beginners to get all essential knowledge that is required to make perfect functional Java programs and equally important for advanced learners to get tips for a more enhanced approach towards Java programming.

Online Java tutorials are far more effective learning options today for learners wanting to have knowledge on Java Platform which is a hardware or software environment in which a program runs. In the online java tutorials we have already mentioned some of the most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS. Most platforms can be described as a combination of the operating system and underlying hardware. More information on this is available online, thus saving your time in looking for books containing more of a limited resource.

Continue reading “Learn Java – Online Java Tutorials and Tips”

Oracle executives cite modularity in Java’s future

OracleOracle executives cite modularity in Java’s future
InfoWorld – As Oracle has been prone to do for the past nine months, company officials Tuesday pledged a strong commitment to Java technology. They even offered glimpses of a modular future for the platform.

Read more on Computerworld

Internet & World Wide Web: How to Program

Product Description
Internet and World Wide Web How to Program, 4e  by market leading authors, Harvey M. Deitel and Paul J. Deitel  introduces readers with little or no programming experience to the exciting world of Web-Based applications.    This book has been substantially revised to reflect today’s Web 2.0 rich Internet application-development methodologies.  A comprehensive book that covers the fundamentals needed to program on the Internet, this book pro… More >>

Internet & World Wide Web: How to Program

Top 10 Java Content Management Software

By Partho, Gaea News Network (original source: Simple Thoughts Blog)

content management systemsBefore heading towards Java content management systems(CMS), let’s know what CMS is all about. To put it in simple words, CMS is a system that assists in managing the contents of a website. CMS comprises of two components – content management application (CMA) and the content delivery application (CDA). With the help of tools provided by CMA an content manager or author with knowledge of HTML( for some applications it’s not required) can create, edit, manage, or remove content from the website without any help from IT experts. Using the CDA tools are used to complile the information and publishes it on the website.

Typically, a CMS includes web-based publishing, format management, revision control, and indexing, search, and retrieval. In the recent years, there has been a horde for enterprises content management systems that assists businesses in managing their news articles, operators’ manuals, technical manuals, sales guides, and marketing brochures on websites. Having said that, I must add that there are sophisticated CMS high on prices, but for those on budget should obviously look for free content management software. This brought me across the lists free open-source Java based CMS to be installed and managed on your supplied web server. There are several software to choose from, so to makes things easier for you I picked the Top 10 Java based Content Management Software.

Continue reading “Top 10 Java Content Management Software”

What is the best book to learn java programming?

What is the best book to learn java programming?

I want a beginners book in java programming, I know very little as I did a short course in school.

I know visual basic programming and a few other programming languages already, and now want to learn java programming.

If you know any good books that learn java easily please post them here, thanks

Learn Java Easily With an IDE

An IDE (Integrated Development Environment) is used in software industry in order to help programmers to reduce the time it takes to write code. There are many Java IDE’s available that are used professionally and is a great tool for Java programmers. But IDE’s are not there to help only professionals. You can decrease the time it takes to learn Java by using an IDE while you’re learning the Java programming language. Read on to see how using an IDE can help you to succeed in learning Java!

1. IDE’s help to organize your Java code. IDE’s can highlight your code in different colors, so you can tell what parts of the code are keywords and which are not. It’s easier to learn Java when your variables, methods, and keywords are different colors from the rest of the code. Another cool feature of IDE’s is that they will automatically add the closing brackets to your loops, methods, and classes. Finding bracket problems is not required to learn Java, so why meddle with such a task when your IDE can take care of that for you?

2. IDE’s greatly improve your coding time. Spend more time learning Java by spending less time typing in trivial Java code. Practicing your coding skills is important, but there’s no point sitting in front of the screen trying to remember the names of methods and specific code. Most IDE’s can automatically complete specific parts of your Java code for you, and you will get a list of possible methods you can call from the Java objects you create. This is far better than having to remember trivial methods that are a part of Java.

3. IDE’s help you to find errors. Why waste precious time finding very trivial errors in your Java code? Most IDE’s now will help you to find these errors by finding the problems as you type. That’s right! You no longer have to compile your code before finding out that you’ve made some mistakes. Because the IDE checks for errors in real-time, you will know immediately when you have made a mistake because the line you are working on will mark itself as an error. Your IDE may even be able to correct whatever errors you’ve made, depending on how severe is the error.

Continue reading “Learn Java Easily With an IDE”

Example with Source Code: A simple database-driven Java web application (CRUD) implementing JSP and Servlets

You can study and implement the following examples to create a simple Java-based database-driven web application which makes use of JSP and Servlets applying a MVC (model-view-controller) principle.

Create the following files:

DatabaseConnection.java

package sample;
import java.sql.*;

public class DatabaseConnection {

    public static Connection getConnection() {
    Connection con = null;
    try {
        // change the following line to your jdbc driver
        Class.forName("com.borland.datastore.jdbc.DataStoreDriver");
        // change this to "your database url", "username", "password"
        con = DriverManager.getConnection("jdbc:borland:dslocal:C:\\a.jds","Sample","");
        System.out.println(con);
        }
        catch (Exception ex) {
        ex.printStackTrace();
        }
    return con;
    }
}

Continue reading “Example with Source Code: A simple database-driven Java web application (CRUD) implementing JSP and Servlets”

Absolute Java with Student Resource Disk

Product Description
With the second edition of Absolute Java, best-selling author Walt Savitch offers a comprehensive introduction of the java programming language.  This book gives programmers the tools to master the Java language.  He takes full advantage of the new Java 5.0 features and incorporates the new Scanner class. There is comprehensive coverage of generic types, including how to define classes with type parameters, collection classes done as generic classes, and link… More >>

Absolute Java with Student Resource Disk

Java Now: The Easiest Way to Learn Java in the Least Amount of Time

Product Description
Ideal for first-time programmers or programmers new to Java. Java Now! introduces the basics and covers concepts such as creating Java applets, combining music with animated graphics, and writing multi-threaded applications. Java Now! is unique from all other books in that it assumes the reader has no prior programming experience.Amazon.com Review
Java Now!, which teaches both Java fundamentals and general programming concepts, is a great book fo… More >>

Java Now: The Easiest Way to Learn Java in the Least Amount of Time

Selenium: Automated Integration Testing for Java Web Apps

Selenium: Automated Integration Testing for Java Web Apps
The value of unit tests is well established and all applications ideally complete a suite of unit tests. However, in the real world, not all applications possess these ideal qualities.

Read more on Developer.com

The Most Significant Features of Java Language

Java is an object-oriented programming language developed by Sun Microsystems in 1990s. Since then, Java has gained enormous popularity as a computer language. Java was chosen as the programming language for network computers. It is a universal front end for enterprise database. Sun Microsystems states that, “Java is a simple, object-oriented, distributed, secure, architecture, robust, multi threaded and dynamic language. The program can be written once, and run anywhere”. One of the most significant advantages of Java is that, it has the ability to move easily from one computer to another. It also has the ability to run the same program on many different operating systems. With such exemplary benefits, Java is a hot favorite among techies and software professionals.

Java has significant advantages compared to other languages. Java language is easy to use and therefore easy to write, compile, debug. Moreover, it is easier to learn when compared to other programming languages. Since Java is object-oriented, it allows you to create modular programs and reusable codes. Platform-independent, Java is a robust language. The language lays more importance on early checking for errors, since Java compilers can detect many problems during the time of execution of an application. Java is multithreaded, since it has the capability for a program to perform several tasks simultaneously within the same program. Java Development has gained a significant position in the industry with programmers and developers finding it easier and more effective than many other languages.

Continue reading “The Most Significant Features of Java Language”

Read Text File (.txt) Using JSP / Java

<%
BufferedReader input = new BufferedReader(new FileReader("text2read.txt"));
String line = "";
while ((line = input.readLine()) != null) {
out.println(line);
}
output.flush();
input.close();
%>

Source: http://experts.about.com/q/JSP-Java-Server…xt-file-JSP.htm
Additional example http://www.jguru.com/forums/view.jsp?EID=536740

JBoss in Action

This book is divided into four parts, containing 15 chapters and two appendices.

Chapter 1: The JBoss Application Server

If you are using JBoss than you can simply skip Chapter 1. This chapter gets you up and running with JBoss by describing the directories and files that are part of JBoss AS, how to start and stop the server, and finally show how to deploy and undeploy a simple web application.

Chapter 2(Managing the JBoss Application Server) starts with a description of how JBoss application server is architected;the JBoss Microcontainer and JMX. Next, you will learn how each of these components are configured using its own configuration file, and how you can change these as well. Next, we get a closer look at a few of the management tools provided by JBoss like the JMX Console and twiddle. And finally, a look at some MBeans that provide helpful information,the MBeans that give the list of names in the JNDI namespace or a list of system properties.

Chapter 3(Deploying applications) is especially useful if you are encountering tons of deployment errors. This chapter starts with explaining how to deploy applications as well as services. Next, the most important section which you shouldn’t miss reading at all; understanding class loading. In this section, the authors start with a description of the class loaders, then go into class scoping, which enables the application server to differentiate among classes. Next in this section, a look at loader repositories which enable several class loaders to share or isolate classes. The next few sections cover common deployment errors like class not found exception, class cast exception and so on. The last section in this chapter is about configuring data sources and Hibernate archives.

If you are concerned about the security of your applications than Chapter 4(Securing applications) shows you everything you need to know about securing your applications. The authors discuss in detail the fundamental concepts behind application security, including authentication, authorization, and encryption and how they are implemented in JBoss AS. They also show you how to configure by demonstrating how you can access security data from a database, LDAP, or other security datastores.

Part 2: Application Services

If you are deploying web applications to JBoss than you must read Chapter 5(Configuring JBoss Web Server). It covers configuring web applications, JBoss web server, the key configuration files. Next, is configuring specific things in web applications like the URL paths, then the authors discussed JBoss Web Server connectors and how they’re used to allow client requests to come in over different protocols. In the next section the authors give us an overview of why web applications have different class loading rules and show us how to configure different web-specific class loading parameters. Next comes valves, another feature of JBoss Web Server, and finally the last section is all about configuring JavaServer Faces.

In chapter 4, the authors discussed about the fundamentals of JBoss security and showed you how to configure security domains and login modules. Chapter 6(Securing web applications) explores the configuration files necessary to enable security, how to enable authentication and authorization for URLs relative to your application’s context path. And finally see how to enable secure communication for server authentication, mutual authentication, and client-certificate authentication.

If you are a huge fan of EJB’s just like I am, than Chapter 7(Configuring enterprise applications) shows you how to structure, deploy, and configure EJB applications. Then, you will learn how to configure the application server, and finally also secure EJB applications.

In Chapter 8(JBoss Messaging), you’ll learn about configuring messaging. The chapter begins by describing JMS and how JBoss Messaging is architected. You will see an example of a message-driven EJB and a message-driven POJO. The authors show you how to use a database for message storage, how to define destinations, and how to configure authentication and authorization for those destinations.

If you are quite familiar with web services than you skip the first few sections of Chapter 9(Configuring Web Services) which introduces you to web services, shows you how to develop a simple web service. However, don’t skip the next few sections which are quite interesting and cover topics such as JBossWS annotations, securing your web services using authorization and encryption.

Part 3: JBoss Portal

I did evaluate JBoss Portal sometime in 2006. So, I am not an expert in this specific area so I just skimmed over Chapters 10 and 11. These chapters provide a very basic introduction to JBoss Portal. So, I am just going to quote the topics covered in these two chapters:

• Creating a portlet using JSPs and JSTL
• Using the Admin portlet and the descriptor files to define portlet instances and portlet windows
• Using multiple instances within a portal
• Adding content to the CMS
• Configuring window appearance
• Setting up access control for portals, pages, and windows
• Creating a custom portal

Part 4: Going to Production

All the chapters in this section are important and very interesting. These chapters cover everything you will need to know when your application goes to production.

Chapters 12 and 13 are dedicated to clustering. Chapter 12(Understanding Clustering) begins with the fundamentals of clustering; It was interesting to set up a simple cluster as explained in this chapter and learn how to configure JGroups and JBoss Cache. Chapter 13 covers clustering as applied to Java EE specific application components and services like session EJB’s and entities, HTTP session replication, and JNDI.

If you need to access and improve the performance of your application, than you need to read Chapter 14(Tunning the JBoss Application Server). In this chapters you will see ways to tune the hardware, operating system, database, JVM, application server, and of course your deployed application. There are also a few tips on how to interpret thread dumps to pinpoint performance issues within your code.

Chapter 15(Going to production) is the last chapter in this book which covers topics such as selecting a platform, running JBoss AS as a service, running multiple JBoss AS instances on the same machine. You will also learn how to remove services which are not required, secure the management applications, change the default data source, database, configuring the EJB3 timer service and precompile JSPs.

Appendix A: JNDI namespaces

In this appendix, the authors explore how JBoss does JNDI binding and how to generically bind your applications in JNDI, making them more portable across application servers.

Appendix B: Change is inevitable

To quote the authors

This appendix contains changes that came after CR2 and before the book went to the printer. Any changes after that will appear on the book’s website