How to pass portlet param name from a Javascript to the action phase of a portlet ?

Solution Unverified - Updated -

Issue

  • How to get form name in action phase when portlet param is passed through a JavaScript.

  • There is a page which creates a URL in javascript.

formObj.action = "<portlet:actionURL><portlet:param name='MyForm' value='submit'/></portlet:actionURL>";

The form is submitted but in the processAction() value is returned null

 ActionRequest.getParameter("MyForm").

Environment

  • Red Hat JBoss Portal (JPP)
    • 6.0 GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.