원자 피드를 제공하고 싶습니다. 메시지가 위의 문자열 인 직접 response.getOutputStream().write(message.getBytes());
와원자 피드 기본 정보
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><author><name>Autor des Weblogs</name></author><title>Titel des Weblogs</title><id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id><updated>2003-12-14T10:20:09Z</updated><entry><title>Titel des Weblog-Eintrags</title><link href="http://example.org/2003/12/13/atom-beispiel"/><id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id><updated>2003-12-13T18:30:02Z</updated><summary>Zusammenfassung des Weblog-Eintrags</summary><content>Volltext des Weblog-Eintrags</content></entry></feed>
내가이 물건을 쓰고 있어요 : 내 HttpServlet을은 (위키 백과에서 복사) 다음과 같은 물건을 씁니다.
인터넷 익스플로러에서 특별한 피드 리더 페이지가 열리지 만 파이어 폭스에서는 원시 XML이 표시됩니다.
이것은 파이어 폭스 문제입니까, 아니면 일부 브라우저에서 원자가오고 있음을 확인하는 인코딩, 헤더, 마임 유형 또는 기타 정보를 전달하지 못했습니다.
nice 1. 광고 한대로 작동합니다. –