Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

dont want a JSP page appear as XML  RSS feed

Joe Marchi
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
hello, im trying to run a simple example using JSP document using xml syntax but cannot display the content output as jsp. the page loads in xml tree format in the browser.

how do i display the content as jsp/html?

here is my html

it goes to a jsp file with the following code

which forwards to this jsp page

<jsp:root xmlns:jsp="" version="2.0">
< session="false"/>
< contentType="text/html; charset=ISO-8859-1"/>
<jsp:useBean id="searchBean" scope="request" class="com.learnweblogic.ch4.UserSearchBean"/>
<head> <title>Using Search Bean: no items found</title> </head>
<h1>No items found</h1>
<form action="search">
<p style="color: red">
<jsp:text>Your search for "</jsp:text>
<jsp:getProperty name="searchBean" property="keywords"/>
<jsp:text> " returned no items. Try another search to find a match. </jsp:text>
<jsp:text>Search keywords: </jsp:text>
<jsp:text> <![CDATA[<input type="text" size="30" name="keywords" value="]]> </jsp:text>
<jsp:getProperty name="searchBean" property="keywords"/>
<input type=submit value="Submit"/>

now when i enter the first html form it takes me to a page with xml tree for the above jsp instead of displaying it in jsp or html format. I have added the contentType="text/html; charset=ISO-8859-1" but it still doesnt display the page as a jsp..

please help

Devaka Cooray
Posts: 5511
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please CarefullyChooseOneForum.
Let's continue the discussion in your other topic.
Closing this one.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!