Friday, 27 March 2015

OAF: How to list all the Parameter names and values in OA Page

How to list all the Parameter  Names and Values passed to a page in Oracle Applications Framework (OAF).

Write the below code in the page Controller .


 import java.util.Enumeration;  
 Enumeration enums = pageContext.getParameterNames();  
 while(enums.hasMoreElements()){  
   String paramName = enums.nextElement().toString();  
   System.out.println("Param name:-->" +paramName+ ";Value:-->"+pageContext.getParameter(paramName));  
 }  

Feel free to point out if anything is missing/wrong in this blog.

1 comment: