• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSR168 Portlet User-Attributes

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Thanks,

Damian.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Damian,

If they are defined in as Initial Parameters, then you can get them using the getInitParameter() method.

example:
static String LIST_PAGE = "ListPage";
String page = getInitParameter(LIST_PAGE);

portlet.xml excerpt
----
< !-- 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 /> -->

<init-param>
<name>ViewPage</name>
<value>/WEB-INF/jsp/view.jsp</value>
</init-param>
<init-param>
<name>ListPage</name>
<value>/WEB-INF/jsp/list.jsp</value>
</init-param>

----

Cheers,
Mike
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic