⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutportlet.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
package org.gridsphere.portlets.core.about;import org.gridsphere.portlet.impl.SportletProperties;import org.gridsphere.provider.event.jsr.RenderFormEvent;import org.gridsphere.provider.portlet.jsr.ActionPortlet;import javax.portlet.PortletConfig;import javax.portlet.PortletException;public class AboutPortlet extends ActionPortlet {    private String deployedPath = "";    public void init(PortletConfig config) throws PortletException {        super.init(config);        DEFAULT_VIEW_PAGE = "doView";        deployedPath = config.getPortletContext().getRealPath("");    }    public void doView(RenderFormEvent event) throws PortletException {        String release = SportletProperties.getInstance().getProperty("gridsphere.release");        event.getRenderRequest().setAttribute("version", release);        event.getRenderRequest().setAttribute("path", deployedPath);        setNextState(event.getRenderRequest(), "about/view.jsp");    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -