<s:iterator value="myListFunction" status="status">
<s:div id="divId%{#status.count}/>
</s:iterator>
Wednesday, 4 December 2013
Struts dynamic HTML ID
New Struts 2.3 jar files and filter
The jar files
1. commons-logging-1.1.3.jar
2. freemarker-2.3.19.jar
3. ognl-3.0.6.jar
4. struts2-core-2.3.15.1.jar
5. xwork-core-2.3.15.1.jar
New filter in deployment descriptor:
1. commons-logging-1.1.3.jar
2. freemarker-2.3.19.jar
3. ognl-3.0.6.jar
4. struts2-core-2.3.15.1.jar
5. xwork-core-2.3.15.1.jar
New filter in deployment descriptor:
<filter>
<filter-name>struts2</filter-name>
<filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
Sunday, 17 March 2013
Thursday, 14 March 2013
Chat Server Project .Net
Description : Chat Messenger
Arch : Client Server App
Tech : vb.Net
Download : http://www.mediafire.com/?rolasp1l2iscf1c
Any suggestions/feedback is welcome
Arch : Client Server App
Tech : vb.Net
Download : http://www.mediafire.com/?rolasp1l2iscf1c
Any suggestions/feedback is welcome
Wednesday, 13 March 2013
foundations of IBM cloud computing architecture 000-281 Dumps
http://en.wikipedia.org/wiki/Cloud_computing
Components:
IBM Cloud Burst
IBM Smart Cloud Enterprise
IBM Service Delivery Manager
Cloud Computing
The practice of using networks of remote servers on Internet
for storage is cloud computing.
How can cloud computing save energy?
Because they use virtualization techniques to
separate the software from the characteristics of physical servers, certain
costly energy features such as multiple power supplies are dropped.
Dumps
http://allitcert.blogspot.in/2012/09/latest-ibm-000-281-dumps.html
http://www.test4pass.com/000-032-exam.html
http://www.mediafire.com/?af2nrmgr42n12rb Added 17 Mar'13
Fundamental Models/Service Models
http://www.test4pass.com/000-032-exam.html
Fundamental Models/Service Models
Paas
Platform as a service: Cloud providers provide with a
computing platform which contains OS, Programming development tools and
environment, database and webserver. Application developers can develop and
maintain software solutions on this without cost and complexity of buying and
maintaing hardware and software. Resources in cloud scale automaticaly to match
application demand. Examples: Cloud
Foundry,
IBM SmartCloud Application Services
SaaS
Software as a Service: Cloud providers install software and
applications in the cloud and cloud users access the same through cloud
clients. Cloud users need not to manage cloud infrastructure and platform. It is
managed by Cloud providers.
Features: Scalability, Task cloning on different virtual
machines, load balancers, multi tenant.
Applications: desktop aas, communication aas, business
process aas, test environment aas.
Typically flat monthly/annual fee.
Demerit –
User’s data on cloud provider’s server. Can be unauthorized access.
Exampes:
Google Apps,
Microsoft Office 365
GT Nexus,
Trade Card
Enables
collaboration and communication among leaders across city operations
|
|
Desktop
virtualization delivered on a subscription basis
|
|
Cloud-based
collaboration tools designed in compliance with federal security standards
|
|
NaaS
Cloud service provided in which cloud users can use
network/transport connectivity service and/or inter-cloud network connectivity
services. NaaS invlolves optimization of allocated resources as it treats
resources on the Network as a unified whole.
IaaS
Infrastructure
as a service
Cloud
providers provide with virtual machines. (sometimes physical machines)
Provide
additional resources like file storage, image library, local area network, IP
address, firewalls, load balancers.
To deploy
applications, users install OS patches and softwares on cloud infrastructure.
Cloud
providers bill users on utility computing basis for IaaS services.
Examples
are :
Amazon CloudFormation,
, HP Cloud
IBM SmartCloud Enterprise
Certifications
Components:
IBM Cloud Burst
IBM Smart Cloud Enterprise
IBM Service Delivery Manager
Tuesday, 26 February 2013
Format cell style in Excel document? Java Export Excel
package
org.xxx.example.poi;
import
org.apache.poi.hssf.usermodel.*;
import
org.apache.poi.hssf.util.HSSFColor;
import
java.io.FileOutputStream;
import java.io.File;
import java.io.IOException;
public class ExcelCellFormat
{
public static void main(String[]
args) {
//
// Create an instance of workbook and
sheet
//
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet();
//
// Create an instance of HSSFCellStyle
which will be use to format the
// cell. Here we define the cell top
and bottom border and we also
// define the background color.
//
HSSFCellStyle style =
workbook.createCellStyle();
style.setBorderTop((short) 6); // double
lines border
style.setBorderBottom((short) 1); // single line
border
style.setFillBackgroundColor(HSSFColor.GREY_25_PERCENT.index);
//
// We also define the font that we are
going to use for displaying the
// data of the cell. We set the font
to ARIAL with 20pt in size and
// make it BOLD and give blue as the
color.
//
HSSFFont font = workbook.createFont();
font.setFontName(HSSFFont.FONT_ARIAL);
font.setFontHeightInPoints((short) 20);
font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
font.setColor(HSSFColor.BLUE.index);
style.setFont(font);
//
// We create a simple cell, set its
value and apply the cell style.
//
HSSFRow row = sheet.createRow(1);
HSSFCell cell = row.createCell(1);
cell.setCellValue(new
HSSFRichTextString("Hi there... It's me again!"));
cell.setCellStyle(style);
sheet.autoSizeColumn((short) 1);
//
// Finally we write out the workbook
into an excel file.
//
FileOutputStream fos = null;
try {
fos = new
FileOutputStream(new File("ExcelDemo.xls"));
workbook.write(fos);
} catch (IOException e)
{
e.printStackTrace();
} finally {
if (fos != null) {
try {
fos.flush();
fos.close();
} catch (IOException e)
{
e.printStackTrace();
}
}
}
}
}
Labels:
cell,
cellStyle,
Excel format,
export to excel,
Java,
POI
Export Excel from JAVA using POI
use POI jar for the same
package xx;
import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.HSSFColor;
public class ExportToExcel {
public
HSSFWorkbook createExcelFile() {
return new
HSSFWorkbook();
}
public HSSFSheet
creatExcelSheet(String sheetName, HSSFWorkbook wb) {
return
wb.createSheet(sheetName);
}
public
HSSFWorkbook createExcelForImport(String header[], List data, String sheetname)
{
HSSFWorkbook
wb = createExcelFile();
HSSFSheet
hSSFSheet = creatExcelSheet(sheetname, wb);
//set header
HSSFRow row =
hSSFSheet.createRow((short) 0);
for (int i =
0; i < header.length; i++) {
String
headerTitle = header[i];
HSSFCell
cell = row.createCell((short) i);
HSSFCellStyle style = wb.createCellStyle();
style.setFillBackgroundColor(HSSFColor.DARK_YELLOW.index);
HSSFFont
font = wb.createFont();
//
font.setFontHeightInPoints((short) 20);
font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
style.setFont(font);
cell.setCellStyle(style);
cell.setCellValue(headerTitle);
}
//setData
int counter =
0;
int
sheetCounter = 1;
for (int i =
0; i < data.size(); i++) {
counter++;
if
(counter == 32766) {
hSSFSheet = creatExcelSheet(sheetname + sheetCounter++, wb);
counter = 0;
}
row =
hSSFSheet.createRow((short) counter);
hSSFSheet.autoSizeColumn((short) 1);
Object[]
importData = (Object[]) data.get(i);
for (int j
= 0; j < importData.length; j++) {
Object
object = importData[j];
HSSFCell cell = row.createCell((short) j);
cell.setCellValue(object != null ? object.toString() : "");
}
}
return wb;
}
}
Subscribe to:
Posts (Atom)