Default Request parameters in actionRequest
In Liferay, Apart from the request parameter values it gives 2 more additional parameters.
1.formDate - Date
2.javax.portlet.action - Method you have called.
We can retrieve the parameters from the actionRequest as
ParamUtil.getString(actionRequest, "title");
I have seen the parameters from the below code as follows
Map<String, String[]> requestMap = actionRequest.getParameterMap();
Set<Entry<String, String[]>> set = requestMap.entrySet();
Iterator<Entry<String, String[]>> it = set.iterator();
while (it.hasNext()) {
Map.Entry<String, String[]> entry = (Entry<String, String[]>) it.next();
System.out.println("entry ===="+entry.getKey());
String[] paramValues = entry.getValue();
for (int i = 0; i < paramValues.length; i++) {
System.out.println("values ===="+paramValues[i]);
}
}
Comments
Post a Comment