<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to navigate jsp  other jsp from JavaScript method</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112955508" />
  <subtitle>How to navigate jsp  other jsp from JavaScript method</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112955508</id>
  <updated>2026-04-03T20:00:36Z</updated>
  <dc:date>2026-04-03T20:00:36Z</dc:date>
  <entry>
    <title>RE: How to navigate jsp  other jsp from JavaScript method</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112958708" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112958708</id>
    <updated>2019-04-02T12:56:10Z</updated>
    <published>2019-04-02T12:56:10Z</published>
    <summary type="html">Dear &lt;span style="color: inherit"&gt;&lt;span style="font-family: inherit"&gt;&lt;span style="font-size: 14px;"&gt;Gnaniyar,&lt;br /&gt;&lt;br /&gt;thank you so-mach ,&lt;br /&gt;&lt;br /&gt;it is working fine now.&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;Ram&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-04-02T12:56:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to navigate jsp  other jsp from JavaScript method</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112957363" />
    <author>
      <name>Gnaniyar Zubair</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112957363</id>
    <updated>2019-04-02T12:16:18Z</updated>
    <published>2019-04-02T12:16:18Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;HI,&lt;br&gt;&lt;br&gt;Remove &lt;strong&gt;onClick &lt;/strong&gt;and call &lt;strong&gt;javascript &lt;/strong&gt;method where you can redirect to another jsp:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt; 
&amp;lt;portlet:renderurl var="redirectURL" /&amp;gt;

&amp;lt;script&amp;gt;
function redirect() {

window.location.href = '${redirectURL}';
}
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;OR&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;​​​​​​​document.frm.action = "&amp;amp;lt;%=redirectURL.toString() %&amp;amp;gt;"; 
document.frm.submit();&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;HTH&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Gnaniyar Zubair</dc:creator>
    <dc:date>2019-04-02T12:16:18Z</dc:date>
  </entry>
  <entry>
    <title>How to navigate jsp  other jsp from JavaScript method</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112955507" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112955507</id>
    <updated>2019-04-02T10:59:58Z</updated>
    <published>2019-04-02T10:59:58Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;We are currently using the following code to navigate to another jsp on click of button:&lt;br&gt;&lt;pre&gt;&lt;code&gt;  &amp;lt;aui:button onclick="&amp;lt;%= addEntryURL.toString() %&amp;gt;" value="Create Expense"&amp;gt;&amp;lt;/aui:button&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;We need to call a javascript method inside jsp on click of button which will then navigate to different jsp .&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you&lt;br&gt;​​​​​​​Ram&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-04-02T10:59:58Z</dc:date>
  </entry>
</feed>
