Hello,

When processing inside processAction(...), I invoke 

ActionRequest.getParameterNames();

expecting to recieve a java.util.Enumeration of parameter names.
I noticed that it seems like this Enumeration never has any parameter names in 
it.  So I added the following logging statements to my processAction(...) 
method:


  |     public final void processAction(ActionRequest request, ActionResponse 
response)
  |         throws PortletException, IOException {
  |         log.info("processAction() called...");
  |         log.info("ActionRequest.getParameterMap() 
:"+request.getParameterMap());
  |         log.info("ActionRequest.getParameterNames() 
:"+request.getParameterNames());
  | 

and here is what the JBoss console log is showing:


  | 14:34:24,156 INFO  [ProductionStatusPortlet] processAction() called...
  | 14:34:24,187 INFO  [ProductionStatusPortlet] 
ActionRequest.getParameterMap() :{action=[Ljava.lang.String;@51207c, 
statusTypeId=[Ljava.lang.String;@2bd615, statusMessage.msessage=[L
  | java.lang.String;@1f43d69}
  | 14:34:24,187 INFO  [ProductionStatusPortlet] 
ActionRequest.getParameterNames() :[EMAIL PROTECTED]
  | 

So it looks to me like the parameters of the request are available if I invoke 
getParameterMap().  But getParameterNames() is returning an instance of 
java.util.Collections...

This seems like a bug but maybe I am missing something.  Has anyone been able 
to invoke ActionRequest.getParameterNames() in processAction(...) (in a portlet 
of course (GenericPortlet or Portlet)) and get the Enumeration of request 
parameter names for the portlet?

Thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882416


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to