public String[] getNames() 
  |    {
  |             Enumeration names = session.getAttributeNames();
  |             ArrayList<String> results = new ArrayList<String>();
  |       String prefix = ScopeType.CONVERSATION.getPrefix();
  |       while ( names.hasMoreElements() ) {
  |          String name = (String) names.nextElement();
  |          if ( !name.startsWith(prefix) )
  |          {
  |             results.add(name);
  |             //results.add( name.substring(prefix.length()) );
  |          }
  |       }
  |             return results.toArray(new String[]{});
  |     }
  |    

  if ( !name.startsWith(prefix) ) is sometimes misguided because the name can 
start with "javax.portlet" but still have the prefix somewhere else (see the 
very long string in previous post).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978048#3978048

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978048
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to