title: How to update the portlet view with a web page?
body: <p>In my application, I need to access the remote applications (The application which is running on other tomcat instance) dynamically in my portlet. So I have created the portlet in view and edit mode so that I am able see the "preferences" option in portlet setting options. my preference page has three input fields with submit button. Now based on the input fields I need to render my portlet content. On click of submit button I am able to get the URL in <code>configuraionActionImpl</code> class. Now I can I set the portlet view as that URL web page content? Let's say in preferences If user enters "<a href="http://localhost:8080/Myapp/events" rel="nofollow">http://localhost:8080/Myapp/events</a>" and on click of submit button in preference configation page then the portlet view should be changed to events page of Myapp application, If user wants to modify the URL from "<a href="http://localhost:8080/Myapp/events" rel="nofollow">http://localhost:8080/Myapp/events</a>" to "<a href="http://localhost:8080/Myapp/tasks" rel="nofollow">http://localhost:8080/Myapp/tasks</a>" and on click of submit button in preference page of the config page, Then the portlet view should render the Tasks page.</p>
  
  <p><strong>portlet.xml</strong></p>
  
  <pre><code> &lt;portlet-name&gt;FRunner&lt;/portlet-name&gt;
              &lt;display-name&gt;FRunner&lt;/display-name&gt;
              &lt;portlet-class&gt;com.liferay.util.bridges.mvc.MVCPortlet&lt;/portlet-class&gt;
              &lt;init-param&gt;
                      &lt;name&gt;view-template&lt;/name&gt;
                      &lt;value&gt;/view.jsp&lt;/value&gt;
              &lt;/init-param&gt;
              &lt;init-param&gt;
                      &lt;name&gt;config-template&lt;/name&gt;
                      &lt;value&gt;/preferences.jsp&lt;/value&gt;
              &lt;/init-param&gt;
              &lt;expiration-cache&gt;0&lt;/expiration-cache&gt;
              &lt;supports&gt;
                      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
                      &lt;portlet-mode&gt;view&lt;/portlet-mode&gt;
                  &lt;portlet-mode&gt;edit&lt;/portlet-mode&gt;
              &lt;/supports&gt;
  </code></pre>
  
  <p><strong>liferay-portlet.xml</strong></p>
  
  <pre><code>&lt;liferay-portlet-app&gt;
          &lt;portlet&gt;
                  &lt;portlet-name&gt;FRunner&lt;/portlet-name&gt;
                  &lt;icon&gt;/icon.png&lt;/icon&gt;
                  &lt;configuration-action-class&gt;com.demo.formrunner.ConfigurationActionImpl&lt;/configuration-action-class&gt;
                  &lt;header-portlet-css&gt;/css/main.css&lt;/header-portlet-css&gt;
                  &lt;footer-portlet-javascript&gt;/js/main.js&lt;/footer-portlet-javascript&gt;
                  &lt;css-class-wrapper&gt;FRunner-portlet&lt;/css-class-wrapper&gt;
          &lt;/portlet&gt;
  &lt;/liferay-portlet-app&gt;
  </code></pre>
  
  <p><strong>preferences.jsp</strong></p>
  
  <pre><code>&lt;portletefineObjects /&gt;
  &lt;liferay-portlet:actionURL portletConfiguration="true" var="configurationURL" /&gt;
  &lt;aui:form action="&lt;%= configurationURL %&gt;" method="post"&gt;
    &lt;aui:fieldset label="Form Runner Portlet Settings"&gt;
      &lt;aui:layout&gt;
         &lt;aui:column&gt;
            &lt;aui:input type="text" name="url" label="URL:" inlineLabel="true"/&gt;
         &lt;/aui:column&gt;
         &lt;aui:button-row&gt;
            &lt;aui:button type="submit" value="Submit"/&gt;
           &lt;aui:button type="button" value="Cancel" last="true"/&gt;
        &lt;/aui:button-row&gt;
     &lt;/aui:layout&gt;
   &lt;/aui:fieldset&gt;
  &lt;/aui:form&gt;
  </code></pre>
  
  <p><strong>ConfigurationActionImpl.java</strong></p>
  
  <pre><code>package com.demo.formrunner;
  public class ConfigurationActionImpl extends DefaultConfigurationAction {
  
      @Override
      public void processAction(PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
  
          super.processAction(portletConfig, actionRequest, actionResponse);
          PortletPreferences prefs = actionRequest.getPreferences();
          String urlVal= prefs.getValue("url", "");
          System.out.println("URL Value is" + urlVal); // able to get the url value here. Now How to update the portlet view with this URL
      }
  } 
  </code></pre>
  
  <p>1) How do I need to render my portlet view based on the input URL? the URL should be like http request (<a href="http://localhost:8080/Demo/myPage" rel="nofollow">http://localhost:8080/Demo/myPage</a>) </p>
  
  <p>Please suggest me the guidelines to archive the same.</p>