I have this portlet code:
public void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException
{
try
{
System.out.println("showText doView()...");
response.setContentType("text/html");
Writer writer = response.getWriter();
PortletPreferences prefs = request.getPreferences();
String text = prefs.getValue("text", null);
if(text == null)
text = "no text";
writer.write(text);
System.out.println("showText end doView()...");
}
catch(Exception e)
{
System.out.println("Error in doView process: " + e.getMessage());
}
}
how can I do to request.getPreferences() read another portlet-preferences.xml file changing the path?