[jboss-dev-forums] [Design of JBoss Portal] - JSR-286 - Include a JSP that in JAR file
ericmacau
do-not-reply at jboss.com
Mon Mar 2 22:03:39 EST 2009
Hello,
In Portlet-2.0, it can load resources from JAR, but is it possible to render a JSP that store in a JAR?
For example, in the
| public doView(RenderRequest request, RenderResponse response) throws Exception {
|
| response.setContentType("text/html");
|
|
| String MY_VIEW_PAGE_JSP_IN_JAR = .....................................................; // this file is in a JAR or class path
|
| PortletContext context = getPortletContext();
| PortletRequestDispatcher requestDispatcher = context.getRequestDispatcher(MY_VIEW_PAGE_JSP_IN_JAR);
| requestDispatcher.include(request, response);
|
|
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214341#4214341
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214341
More information about the jboss-dev-forums
mailing list