Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to render a JSP on click of a hyperlink?

Hi all,

My requirement is to render a JSP page on click of a hyperlink on the current display page.

Both the pages are put directly under the Portal-INF directory.

when I try to directly include the file in the <a> tag -

<a href="<%@ include file="/myFile.jsp" %>">Contact us</a>


It gives me an error.

Can anyone please suggest as to how I can invoke "myFile.jsp" on click of the Hyperlink "Contact Us"



Former Member
Former Member replied


If you want to render the new jsp in the same window the give the link as

<a href="http://servername:port">Contact us</a>

If you want a popup then you should go for a button, because the HTMLB Link does not have a tag lib for onClientClick. so you cannot use Jscript to render the page in a new window, then you have to go for the classlib approach to do this.

Message was edited by: Kirupanand Venkatapathi

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question