2013의 게시물 표시

Windows Virtual PC HotKey

Press this key To do this CTRL+ALT+Left Arrow Release the mouse from the virtual machine’s (VM) window (required only when the integration features are not installed or are disabled). You can also use this shortcut to release the keyboard and move focus to the toolbar on the VM’s window. CTRL+ALT+END Send the CTRL+ALT+DEL command to a VM. This shortcut is also available while running virtual applications, when the focus is on such an application. Windows logo key +UP Arrow Switch from window mode to full-screen mode. CTRL+ALT+PAUSE BREAK Switch from full-screen mode to window mode. ALT+F4 Close a VM. CTRL+ALT +Plus key Capture a print screen of the VM display output. CTRL+ALT +Minus key Capture a print screen of the window in the VM that has focus. TAB + Right Arrow Move to the Help menu from other menus on the VM toolbar. Before you can use this shortcut, you would need to press CTRL+ALT+Left Arrow to bring the focus on to the VM’s window. TAB + Left arrow Move from ...

Spring PDF Example

  @RequestMapping (value="/pdf" )   public void pdfCreate(HttpServletResponse response, OutputStream outputStream){   Document document = new Document();        try {                   // 파일 출력 -      FileOutputStream file = new FileOutputStream(new File("C:/HelloWorld.pdf"));  // File Write                   PdfWriter.getInstance(document, file);                     // Stream Output           PdfWriter.getInstance(document, outputStream);                     document.open();           //           // Create our first paragraph for the pdf document to be           // created. We also set the alignment and the font ...

Spring Excel Example

@RequestMapping(value = "/excel", method = RequestMethod.GET) public void handleRequestInternal(HttpServletRequest request,                                  HttpServletResponse response,                                  OutputStream outputStream    ) throws Exception { response.setHeader("Content-Disposition", "attachment; filename=file.xls"); //ModelAndView model = new ModelAndView("excel"); // Creating an instance of HSSFWorkbook.         HSSFWorkbook workbook = new HSSFWorkbook();         // Create two sheets in the excel document and name it First Sheet and         // Second Sheet.         HSSFSheet firstSheet  = workbook.createSheet("FIRST SHEET");         HSSFSheet secondShe...

NoSuchMessageException Error Handle

처리방법 해당 리소스를 찾지 못해서 발생되는 메시지로 <beans:bean id="messageSource"                              class="org.springframework.context.support.ReloadableResourceBundleMessageSource">      <beans:property name="basename" value="/WEB-INF/messages/messages" />      <beans:property name="cacheSeconds" value="0" />       <beans:property name="useCodeAsDefaultMessage" value="true"></beans:property> </beans:bean> 붉은 부분을 추가 하여 해당 Message 가 없을때 Default Message 로 출력하도록 한다. message.properties         id.emptyMessage = id code required.    id.sizeError = id code less 4 then 20.          required  email.emptyMessage =  message  <<== 이부분의 메시지가 없을때 나오는 에러메시지로                      ...

Sencha EXTJS Panel Demo

<%@ page language="java" contentType="text/html; charset=UTF-8"                                                                             pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"                                                                   "http://www.w3.org/TR/html4/strict.dtd"> <html> <head>     <title></title>         <!-- ExtJS -->     <link rel="stylesheet" type="text/css" href="ext-4.1/resources/css/clifton-blue.css" />   ...