2

I'm trying to assign values to the parameters of <portlet:resourceURL/>

<portlet:resourceURL id="<%=Constants.Color%>" var="<%=Constants.Color%>"/>

This code does not work.

public class Constants {
    public static final String Color = "Red";
}
abg
  • 2,002
  • 7
  • 39
  • 63

1 Answers1

5

In order to pass param using resourceURL from your jsp you will do something like...

      <portlet:resourceURL var="varname" escapeXml="false">
        <portlet:param name="paramName" value="paramVal" />
      </portlet:resourceURL>

In your portlet

      request.getParameter("paramName");    
mod
  • 383
  • 5
  • 22