How to render a JSP on click of a hyperlink?
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"
Kirupanand Venkatapathi replied
If you want to render the new jsp in the same window the give the link as
<a href="http://servername:porthttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/projectname.jspname_without_.jsp_extension">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