Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PortletData and portletData.store() activity

 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am writing code to doEdit() mode in portlet and found that if a user turn on edit mode and set some value in the edit mode it will remain available to him when s/he will re-login to the portlet. This mean the value is persistant. Now I want to know in which file PortletData object write and store the info.
/*************My Sample Code***************/
if (request.getParameter("SUBMIT") != null) {
PortletData portletData = request.getData();
portletData.setAttribute("data" , request.getParameter("TEXT2"));
try {
portletData.store();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
/**********End Code***********/

Plz atleast share your idea.
Thank You

Syed Saifuddin
WebSphereGuru
www.websphereguru.net
847-452-9538
 
Stefan Zoerner
Author
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Syed,

If your portal is WebSphere (the API calls and your former postings suggest that) I assume that data ist stored in the WPS database (depends on your installation, whether DB2, Cloudscape, Oracle ...). I don't recommend to manipulate it directly, use the API for that.

Btw. for WebSphere specific questions the IBM formums are an alternative to this one, which concentrates on the JSR 168 programming model.

Greetings,
Stefan
[ January 20, 2006: Message edited by: Stefan Zoerner ]
 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stefan

May be what you are saying is exactly correct but when I restart the server value is set to be null. Its mean nothing is store in harddisk in any db.

Syed Saifuddin
WebSphereGuru
www.websphereguru.net
847-452-9538
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic