开发者

How to output pure xml from a portlet?

We are trying to output pure xml from a 286 portlet running on Websphere Portal Server 6.1 using the Spring 3.0 mvc framework.

We had the following at the top of the jsp:

<开发者_StackOverflow中文版;%@ page isELIgnored="false" language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

If we just have xml elements in a jsp, the resultant page at the browser has the portal theme html around the xml. Does anyone have a recommendation (with example snippets if at all possible) please?


Portlets are page fragments; markup should match the surrounding theme. Serve your XML file as a resource.


We have an answer we found by packaging a servlet in the war as mentioned in the comments above. My original question didnt include an important piece of info... we were trying to output the xml after a call from a legacy system... so it cant use the portlet resource urls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜