File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Other Java Products and Servers
JSR168 Portlet User-Attributes
Joined: Aug 02, 2001
Jul 19, 2004 17:34:00
I'm not sure if this is the right forum for this. If not could someone point me elsewhere.
I have an issue with a JSR168 Portlet that has 3 attributes defined in the <user-attribute> section of the Portlet.xml. I can't find any information on how to set these values.
Can anyone help me out with this?
Joined: Sep 25, 2001
Nov 18, 2004 17:10:00
If they are defined in as Initial Parameters, then you can get them using the getInitParameter() method.
LIST_PAGE = "ListPage";
String page = getInitParameter(LIST_PAGE);
< !-- example of an init parameter<br /> init parameters should be used if there is configuration<br /> used by ALL instances of the portlet on your server <br /> it should not be used for instance-level parameters<br /> -->
I agree. Here's the link:
subject: JSR168 Portlet User-Attributes
Getting Logged in User from JSR 168 Portlet API
How to retrieve portlet id within a portlet code?
Welcome to the Portal / Portlets Forum
Calender Portlet using jsr168
Get Login User
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014