jetspeed开发实战

2016-01-29 12:40 14 1 收藏

jetspeed开发实战,jetspeed开发实战

【 tulaoshi.com - ASP.NET 】

这里假设monsys为web服务的名称,其路径在webapps/下面1,jetspeed的图片处理图片默认放在monsys/images下面,调用方法:$clink.setURI("images/test.jpg")2,javascript处理javascript黑认放在monsys/javascript下调用方法:$clink.setURI("javascript/test.css")3,portlets的位置位于monsys/WEB-INF/templates/vm/portlets/html下面4,页面总体布局控制看JetspeedResources.propertiesbottomnav.enable=truebottomnav.vm=bottom.vmleftnav.enable=trueleftnav.vm=left.vmleftnav.width=10%topnav.enable=truetopnav.vm=top.vmtopnav.logo.file=images/jetspeed-logo-1.5.giftopnav.logo.url=topnav.user_login.enable=truetopnav.user_creation.enable=truetopnav.my_pages.enable=true5,portlets源代码分析:portlet主要实现三个方法:,buildMaximizedContext最大化,buildConfigureContext显示信息,buildNormalContext正常情况,也就是所看到的正常显示时所要显示的信息,调用时,在添加模块时添加新参数action=portlets.GraphDailyActionpackage org.apache.jetspeed.modules.actions.portlets;import .............(N个,略)public class GraphDailyActionextends VelocityPortletAction {/*** Subclasses should override this method if they wish to* build specific content when maximized. Default behavior is* to do the same as normal content.*/protected void buildMaximizedContext(VelocityPortlet portlet,Context context,RunData rundata) {buildNormalContext(portlet, context, rundata);String text = (String) context.get("text");if (text == null) {text = "Top Record of baccarat game";}context.put("text", text + " (Maximized !)");}/*** Subclasses should override this method if they wish to* provide their own customization behavior.* Default is to use Portal base customizer action*/protected void buildConfigureContext(VelocityPortlet portlet,Context context,RunData rundata) {buildNormalContext(portlet, context, rundata);setTemplate(rundata, "hello-customize");}/*** 这是主要部份* Subclasses must override this method to provide default behavior* for the portlet action*/protected void buildNormalContext(VelocityPortlet portlet,Context context,RunData rundata) {String mode= portlet.getPortletConfig().getInitParameter("mode"); //读取添加模块时从配置文件传来的参数String searchdate = rundata.getParameters().getString("searchdate"); //取得从页面提交得到的参数context.put("mode",mode);context.put("searchdate",searchdate)//输出页面要显示的信息,支持输出数组,对像,及容器等形式的数据}}写好源代码,并编译,参考里的:  1,所建的参数action,其值为portlets.GraphDailyAction,则系统会去热行这个类

来源:https://www.tulaoshi.com/n/20160129/1487110.html

延伸阅读
1、前言 本文有两个目的:实现每晚构建平台和探讨一个软件从需求文档到设计文档的书写规范。 每晚构建是软件研发管理中极具价值的手段,对于加快发现和改正缺陷,降低集成风险,提高产品质量,加强成员沟通与协作,缩短产品上市时间,增加项目开发透明度,提高项目组成员信心和斗志有着非常重要的作用和意义。本文从软件工程过程...
本文是实战每晚构建系列的第三篇,利用第二篇文章中叙述的开源技术对第一篇中的分析模型进行设计和实现。 1、构建信息显示系统的设计 这是一个典型的web应用系统,不过非常简单。根据《面向对象的系统分析和设计》所描述的,设计主要对四个部分进行描述: 问题域的细化:考虑将来实现语言的特性和利用某些设计模式,对分析模型进行细化,并作某...
太极拳实战视频 论实战经验及特点 今天要给大家介绍的,是十条太极拳实战经验,希望大家认真总结实战中的问题以及经验,分享给自己的拳友,看完今天图老师小编的视频,希望对大家有帮助,希望大家打好太极拳。 十条太极拳实战经验: 1. 多走立体螺旋劲 太极拳是一种浑圆圈的运动,每一动作,...
一、JBuilder 对于 Struts 之支持 JBuilder 提供图形使用者接口以简化组件文件 struts-config.xml 之编辑与设定,此外,JBuilder 于 Object Gallery对话框内的 Web 页次,提供四种精灵以简化 Struts 开发流程。 Struts Converter Wizard: 可指定 HTML 或一般 JSP 档案自动产生使用 Struts Tag Libraries 之 JSP 档案。 Actio...

经验教程

879

收藏

48

精华推荐

日出实战拍摄技法

日出实战拍摄技法

sbrenjing

实战每晚构建08

实战每晚构建08

nbyyzcy

《真实战士》奖杯

《真实战士》奖杯

大小眼先生阿

微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部