IT Community - Software Programming, Web Development and Technical Support

how can i set content type in jsp page.?

This is a discussion on how can i set content type in jsp page.? within the Java Server Pages (JSP) forums, part of the Web Development category; how can i set content type in a jsp page.?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Java Server Pages (JSP)

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 03-19-2008, 08:55 PM
saravanan saravanan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 180
saravanan is on a distinguished road
Default how can i set content type in jsp page.?

how can i set content type in a jsp page.?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-14-2008, 06:03 AM
jegan jegan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 157
jegan is on a distinguished road
Default Re: how can i set content type in jsp page.?

u can use setContentType() method of response object. its has a string parameter to pass the content type.
for example
response.setContentType("mime/type");
__________________
Thanks & Regards,
Jegan CBK
"We will either find a way, or make one!”
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-21-2008, 08:25 AM
newtech2009 newtech2009 is offline
D-Web Trainee
 
Join Date: Sep 2008
Posts: 2
newtech2009 is on a distinguished road
Default Re: how can i set content type in jsp page.?

its has a string parameter to pass the content type.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Page' ia an unambiguous reference between 'System.Web.UI.Page' and 'Project1.Page' poornima ASP and ASP.NET Programming 1 03-05-2008 02:12 AM
detect hour of the day and selects a link, they go to either a day page or night page itbarota HTML, CSS and Javascript Coding Techniques 1 01-11-2008 01:09 AM
What is Value type and reference type in .Net? anbuchezhians VB.NET Programming 2 08-21-2007 09:42 PM
Identifiying the type of elements in a web page seesamjagan HTML, CSS and Javascript Coding Techniques 3 08-15-2007 11:51 PM
problem when I use this.DataBind() in content page..? Archer C# Programming 1 07-22-2007 10:30 PM


All times are GMT -7. The time now is 07:35 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0