• Post Reply Bookmark Topic Watch Topic
  • New Topic

what will be the mime type for java application if I want to show both image and html content ?

 
satya pksh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In my java web application i need to show the image that exits in the database as well as a anchor tag for moving to another jsp page.

In my jsp page it is mentioned

So while running the jsp page is shows the image but do not show the html content below or anywhere.

What i want that my jsp page should show the image as well as html content at a single jsp page. So please tell what mime type should i use so that to get desire result.

Thank you,
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP will most likely be text/html and refer to the images which will be returned in a separate request and hence have their own content type.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In other words, you cannot return both the image and HTML content in the same response.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!