设为首页
收藏本站
开启辅助访问
切换到窄版
登录
立即注册
中问网首页
我的收藏
站长博客
搜索
搜索
本版
帖子
用户
第一问答网
»
论坛
›
中问网
›
问答
›
使用PortletData 在 portal中存储数据的方法 ...
返回列表
发新帖
使用PortletData 在 portal中存储数据的方法
[复制链接]
11
|
1
|
2006-12-27 18:43:27
|
显示全部楼层
|
阅读模式
PortletRequest request = event.getRequest();
PortletData portData = request.getData();
// Save value into portlet data
portData.setAttribute("value", value);
// 存数据,actionPerformed用的方法
portData.store();
PortletRequest request = event.getRequest();
PortletDataportData = request.getData();
// Extract value in portlet data into variable
String value = (String) portData.getAttribute("value");//取数据,doview用的方法
// Store the extracted value in the request
request.setAttribute("value", value);
portData.store();
回复
使用道具
举报
千问
|
2006-12-27 18:43:27
|
显示全部楼层
感谢楼主的分享。不过有个建议,开发Portlet最好用JSR 168 API来实现。存贮配置参数用PortletPreference。
回复
使用道具
举报
返回列表
发新帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
本版积分规则
发表回复
回帖后跳转到最后一页
千问
主题
0
回帖
4882万
积分
论坛元老
论坛元老, 积分 48824836, 距离下一级还需 -38824837 积分
论坛元老, 积分 48824836, 距离下一级还需 -38824837 积分
积分
48824836
加好友
发消息
回复楼主
返回列表
问答
热门排行