Posted
Filed under JSP, JAVA

[출처]-http://nimba.tistory.com/472

* java

String orderKind  = "wbsalecount";

Map<String, Object> condition = new HashMap<String, Object>();
condition.put("orderKind" , orderKind );

 

 

* mybatis

<select id="selDomainMap1"   parameterType="java.util.Map" resultMap="libroBestsellerResultMap">   

                    ...

                    <trim prefix="ORDER BY">
                        <if test="orderKind == 'wbrank'">  A.WB_RANK ASC </if>
                        <if test="orderKind == 'wbsalecount'">  A.WB_SALE_COUNT DESC </if>                       
                    </trim>

                     ...

</select>

2015/10/26 23:30 2015/10/26 23:30
Posted
Filed under Htm&Javascript

$(document).ready(function() {

$(".telnumber").keyup(function(){

$(this).val($(this).val().replace(/[^0-9]/g,""));

});

$(".name").keyup(function(){

$(this).val($(this).val().replace(/[^\!-z]/g,""));

});

});

2015/10/09 21:22 2015/10/09 21:22
Posted
Filed under JSP, JAVA

Package Explorer

Problems View

JQuery min Validation Error 없애기

Eclipse 의 Package Explorer 에서 JQuery min Validation Error 가 발생하는 프로젝트를 선택한 후 마우스 오른쪽 버튼을 클릭하여 Properties 메뉴를 선택합니다.

Properties 창이 나타나면, 좌측의 메뉴에서 Javascript > Include Path (1) 메뉴를 선택한 후 Source (2) Tab 을 선택합니다. 해당 프로젝트를 확장한 후 하위의 Excluded (3) 을 선택 한 후 Edit (4) 버튼을 클릭합니다.

Inclusion and Exclusion Patterns 창이 나타나면 Exclusion patterns 항목의 [Add] (1) 버튼을 클릭합니다.

Pattern 입력 항목에 **/jquery*.js (1) 과 같이 입력합니다. 현재 선택된 프로젝트의 모든 디렉토리에서 jquery*.js 파일명은 제외한다는 의미입니다.

Exclusion patterns 항목을 확인 한 후 [Finish] 버튼을 클릭합니다.

Source Tab 에서 Excluded 항목 설정을 확인한 후 [OK] 버튼을 클릭합니다

Package Explorer 또는 Problems View 에서 JQuery min 관련 Error 이 사라졌는지 확인합니다.

[출처]:http://blog.beany.co.kr/archives/1343

2015/10/08 18:11 2015/10/08 18:11
Posted
Filed under JSP, JAVA
java.lang.OutOfMemoryError: PermGen space

이클립스의 톱켓에 다음과 같은 옵션을 추가 한다.


-XX:PermSize=256m -XX:MaxPermSize=256m


이클립스에서

servers 탭의 해당하는 tomcat 선택 후 -> F3 -> Overview - General Information 하단의 Open launch configuration 클릭 후

Edit Configuration 창의 Arguments 탭을 선택 후 VM arguments: 입력란의 마지막 라인에

-XX:PermSize=256m -XX:MaxPermSize=256m


2015/10/08 16:31 2015/10/08 16:31
Posted
Filed under JSP, JAVA
workspace의 .settings디렉토리의 org.eclipse.wst.common.project.facet.core.xml

<?xml version="1.0" encoding="UTF-8"?>

<faceted-project>

  <runtime name="Apache Tomcat v7.0"/>

  <fixed facet="wst.jsdt.web"/>

  <installed facet="java" version="1.7"/>

  <installed facet="jst.web" version="3.0"/>

  <installed facet="wst.jsdt.web" version="1.0"/>

</faceted-project>
--확인 --

web.xml 파일 확인

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

version="2.5">


<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">


2015/10/07 10:19 2015/10/07 10:19