This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

PortletData and portletData.store() activity

 
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
 
Author
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
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic