54 Developer Tools: Developing JSPs

This chapter contains information about developing WebCenter Sites JSPs with Developer Tools.

This chapter contains the following sections:

54.1 JSP Development with Developer Tools

The Developer Tools kit supports the development of WebCenter Sites JSPs using the native Eclipse JSP editor. The Eclipse JSP editor includes support for WebCenter Sites tag and Java API completion, syntax highlighting, and debugging. Figure 54-1 shows an example of a WebCenter Sites JSP in the Eclipse editor.

Figure 54-1 Eclipse JSP editor

Description of Figure 54-1 follows
Description of "Figure 54-1 Eclipse JSP editor"

WebCenter Sites JSPs can include page caching, resultset caching, and associated metadata such as Template assets, CSElement assets, or ElementCatalog entries. The metadata of a JSP enables WebCenter Sites to track and manage it. Developer Tools handles a JSP's underlying WebCenter Sites processes transparently, including tracking the JSP and its corresponding metadata. If your WebCenter Site instance is running, and you save a JSP in Eclipse, the Developer Tools kit automatically synchronizes those changes with the WebCenter Sites instance. Any metadata associated with the JSP is also synchronized with WebCenter Sites. This enables you to view the changes in WebCenter Sites as soon as you save the JSP in Eclipse.

54.2 Tag and Java API Completion

Eclipse provides tag and Java API completion features. Eclipse uses the tag libraries and jar files belonging to the current WebCenter Sites instance to provide the appropriate code completion for WebCenter Sites related tags and Java APIs. For local hosts, the WebCenter Sites tag libraries and jar files are automatically linked to your Eclipse project, and contained within the Eclipse project folder (located in the "Project Explorer" view). For remote hosts, the WebCenter Sites tag libraries and jar files must be manually copied from the remote host to your Eclipse project. For instructions, see Section 52.2, "Setting Up Developer Tools."

  • The tag libraries are contained in the futuretense_cs folder under the WEB-INF folder.

  • The jar files are contained under the main Eclipse project folder.

    Description of projexp.png follows
    Description of the illustration projexp.png

    Note:

    When you use the tag and Java API completion feature, keep in mind the following:

    • Make sure you follow strict JSP coding standards. This way your code can be deployed on any application server.

    • Eclipse code completion displays all public Java methods contained within the WebCenter Sites jars, only use the APIs that are in the WebCenter Sites documentation. Using undocumented functionality is risky and unsupported.

Associating the Oracle Fusion Middleware WebCenter Sites Java API Reference and Oracle Fusion Middleware WebCenter Sites Tag Reference with Eclipse enables the tag and Java API completion features to display information about each tag and piece of Java code you use when managing a WebCenter Sites JSP. For example, when you are working with a WebCenter Sites JSP and you begin to type the name of a tag, a window opens listing code completion suggestions. If you associated the Tag Reference and Javadoc with Eclipse, a second dialog box is displayed containing information about each suggestion (see Figure 54-2).

Figure 54-2 Tag and Java API completion feature

Description of Figure 54-2 follows
Description of "Figure 54-2 Tag and Java API completion feature"

In addition to adding functionality to the tag and Java code completion features, the Javadoc and Tag Reference are both made accessible in the "Sites Developer Reference" view. For more information, see Section 53.4.6, "Sites Developer Reference View."

54.3 Debugging

To debug Java and JSP code in Developer Tools, you must first attach the debugger to the JVM process that runs WebCenter Sites. It is recommended to do so with remote debugging. To attach the WebCenter Sites JVM, follow the instructions provided by Eclipse at the following URL:

http://www.ibm.com/developerworks/library/os-ecbug/

Once the JVM is attached to the debugger, you can set breakpoints in your JSP and Java code, view variables, and so on.

资讯网seo外包项目管理周公解梦被蛇苏州园区网站建设黄芩如何种植我想起个好什么名字好成都公司网站制作公司北京专业网站设计庭字起名男孩名字南京建设监理协会网站周易起名企业起名网站建设的基本流程算算自己的命运和财运周公解梦梦见河里有鱼曲姓女起名通都大邑姓侯的男孩起名字不可思议的朋友读后感网络营销策划推广的网络小说起名神器李斯简介及人生经历免费网上商城网站建设2020金鼠宝宝起名网站怎么做推广和优化做梦被蛇咬什么意思 周公解梦seo的成功实例免费起名起名网seo主要学习什么深圳宝安网站设计秋字艺术签名郝梦龄路少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

资讯网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化