Include 한 jsp파일에서 JSP Problem 메세지 없애기.
| |||
Cause | |||
The RAD v7.0 Help does not document preference. | |||
Answer | |||
The JSP Fragment validation preference is new to RAD v7.0 in the context of Eclipse 3.2.x/Web Tools Platform (WTP) 1.5.x, which provides the underlying JSP Source editor and validation.
To set this preference :
The preference is enabled/checked by default. Un-check this preference if you do not want to see validation errors on a JSP Fragment (*.jspf) file. Errors on a jsp fragment may not be relevant if the jsp include file (a fragment) is dependent on settings in the parent JSP page. For example, a fragment that references a bean that is defined in the main JSP would encounter an error similar to: myBean cannot be resolved This preference will only validate a jsp fragment (= jsp segment as of JSP 2.0 , also referred to as jsp include files), if the file type is *.jspf. If a jsp file (file type = jsp) is being used as an include file (for example, as a jsp fragment), it is possible to set its Eclipse/WTP content type to "JSP Fragment" for validation purposes, The Eclipse base actually allows you to assign a content type to a specific file name in a workspace . To assign a content type to a file you can go to: Window > Preferences... > General > Content Types > Text > JSP > JSP Fragment Add... (button) and then type in a file name (no full path, just the exact file name). For example, if you have a jsp fragment named myinclude.jsp, you can enter that file name. Then, all files named myinclude.jsp in this workspace will automatically be considered jsp fragments. The resource/file RC > Properties now will show a JSP Fragment property. It will not be validated if you uncheck: [ ] Validate JSP Fragments, as shown previously. You can add as many such file names or file name patterns as needed. Warning: You can only enter file names, not file directories (an Eclipse base limitation). Use this carefully as you may not wish for every occurence of that filename in every project to be treated as a JSP Fragment. Note: Eclipse WTP enhancement request bug102882: [validation] way to exclude directories & files from vali... (see Related Information section), has been submitted to provide greater control over what files are validated. You may add your comments and votes for this bugzilla. A RAD v7.0 Help documentation APAR has been submitted requesting that the how-to information in this technote be provided and is being tracked as PK54665 for some future release. |
'IT-Consultant' 카테고리의 다른 글
jsp 에러 발생시... (0) | 2010.04.20 |
---|---|
WTP 설치 (0) | 2010.04.20 |
이건 뭐지... (0) | 2010.04.18 |
Corner Stone Case가 삭제되는 경우는 어떻게 처리하는가? (0) | 2010.04.17 |
Bash For Loop Examples (0) | 2010.04.17 |