background preloader


Facebook Twitter

Testing tool

How to export data from database to excel sheet by using java in standalone project. SuneelKumar Machha How to export data from database to excel sheet by using java in standalone project8 Answer(s) 3 years and 3 months ago Posted in : Java Beginners How to export data from database to excel sheet by using java in standalone project View Answers January 5, 2011 at 11:04 AM Hi Friend, Try the following code: For the above code, you need apache poi library.

How to export data from database to excel sheet by using java in standalone project

Thanks July 9, 2013 at 7:15 PM Thanks a lot for this helpful example. Thanks a lot for this helpful article September 8, 2012 at 11:02 AM September 8, 2012 at 11:04 AM but the above code working but the data is not inserted in excel sheet..... can you give me the reason for this? March 31, 2013 at 3:25 PM an error in the code,to make it work correctly replace '/' by '\\' in the filename string. March 27, 2013 at 8:05 AM Hi friends May i know which version of jar should be used .I am unable to create excel file..Pleasehelp me. January 24, 2014 at 2:59 PM i changed the it '/'to '\' but data is not inserted to excel please help me on this.

Inovative Items. JSF 2 - evaluation and test. Introduction JSF is a standard to implement Java based web framework.

JSF 2 - evaluation and test

There is a reference implementation of the standard, Mojarra JSF, which provides the request processing and a set of basic components. JSF is component oriented and as such it brings the concepts of desktop application development to web application. JSF 2 introduces a number of new features. It provides a standardized mechanism to support Ajax, input validation using annotations (JSR 303), facelets as default rendering engine and a couple of more features required by modern web application.

We have tested a snapshot of 2.0.0 of the reference implementation (Mojarra) which is released under the Common Development and Distribution License (CDDL) + GPLv2 and JSF is open source. The test took place from July to November 2009. Website < Tools I used Visual Paradigm to create the sequence diagrams. Hello world The hello world application intends to show how complex it is to setup a simple application. Requirements: A look at Java 7's new features. There are a number of features in Java 7 that will please developers.

A look at Java 7's new features

Things such as strings in switch statements, multi-catch exception handling, try-with-resource statements, the new File System API, extensions of the JVM, support for dynamically-typed languages, the fork and join framework for task parallelism, and a few others will certainly be embraced by the community. Below I outline the features and provide examples where appropriate. A zip file containing code snippets used in this post can be downloaded here. Language enhancements Java 7 includes a few new language features via Project Coin. Diamond Operator You may have noted on many occasions your IDE complaining of types when working with Generics. Map<String, List<Trade>> trades = new TreeMap<String, List<Trade>> (); The not-so-nice thing about this declaration is that we must declare the types on both the sides, although the right-hand side seems a bit redundant. Map<String, List<Trade>> trades = new TreeMap <> (); 1. 2. 3.

JSF Tags. These tables are from the book Core JavaServer Faces by David Geary and Cay Horstmann, Sun Microsystems Press 2004.

JSF Tags

Table 4–1 JSF Core Tags Table 4–3 JSF HTML Tags Table 4–4 Basic Attributes A = all, I = input, O = output, C = commands, (n) = number of tags with attribute Table 4–5 HTML 4.0 Pass-through Attributes (n) = number of tags with attribute Table 4–6 DHTML Event Attributes (n) = number of tags with attribute. JSF Central - Articles & Books. JSH(jsf+spring+hibernate)


Online IDE & Debugging Tool >> C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters. Jsf thread batch processing how to. Whenever I need to perform a long-running function in Enterprise Java, I use what I call a "null servlet".

jsf thread batch processing how to

A null servlet is a servlet that has no action processors (doGet, doPost). Instead, it simply has an init() method that spawns a thread or threads to run the long-running processes in. Most commonly, this thread (or a dispatcher, if there are multiple threads) will pull requests from a work queue, and the UI part of the webapp will place the requests into the work queue. I may include a request monitoring component as well. Since there are multi-threading concerns here, the work queue is a synchronized data structure.

UI requests may not spawn threads themselves, and it's usually not safe for monitoring components such as session listeners to do so either. One final caveat. Use or example.

Web sites

Notes. Faces. Google.