tags:

views:

217

answers:

1

Working in the JBoss AS portlet we have been unable to open a jsp page in a new portlet. We are fairly new to JBoss, and unsure how to go about it. We want a link in a portlet that, when clicked, opens a new window and load into it a jsp. Are there web.xml/WEB-INF changes?

A: 

To open a new window add window.open(...) javascript function and add the jsp to the web.xml file as a servlet like this (from jboss docs):

<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>myjsppage.jsp</url-pattern>
</servlet-mapping>
Adam