• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML and JSP (Weird!!)

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a mail.jsp file which accesses a e-mail inbox, gets back info.
(from, date, subject) of the new/unread e-mails received by the user.
I then dynamically generate a XML file using the data mail.jsp
program gets me.
It works the way it should, except for the XML part.Even tho
the XML is being generated the way I want but when I run the
mail.jsp program I am prompted to save the XML file that is
generated (BTW the name of the XML file assigned by the system is also mail.jsp !!) instead of being displayed as output in the same
browser window from where I run the mail.jsp
Once in a while it does display output in browser
with all the XML tags.
BTW I am using Tomcat.
I hope I am making some sense.
Any inputs are greatly appreciated.

TIA
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried using a servlet instead of a JSP file to generate the XML.
I find that you have much more control over the manipulation of the attributes on the response from a servlet. I really only use JSPs to generate HTML pages.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic