• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet to http  RSS feed

 
Sharaj Anand
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am facing a problem in accessing servlet data.

Servlets return the data in XML format. Then How, cn we publish it on http page or u can say between html tag using "c#" not JSP

Thanks,.
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean your servlets return data in XML format? Because servlets return data in any format you want. Now, if you do have a problem with rendering XML as nice HTML, just apply XSLT to the returned document. If that is not enough, you may have to change your servlets to actually return exactly what you want.
 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the HttpResponse object and RequestDespatcher to forward your HTML converted from XML using XSL.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!