aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes setting content types,header,cookies after commit not throwing any exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply locked New topic
Author

setting content types,header,cookies after commit not throwing any exception

Sagar Shroff
Ranch Hand

Joined: Jun 07, 2011
Posts: 182

Hello ranchers once again very confusing doubt.
It has been mentioned in HFS that once committed too late rule applies also to setting headers,cookies,status codes,content type and so on.

But when i tried this code in my jsp which i directly called from my browser


I tried all of them at one go and none of them is throwing an error.
Instead its printing :
This is my jsp end

So if a question comes on this in exam what should i select ??

Regards Sagar.


OCJP-90%,OCPWCD-95%
varun Dosapati
Greenhorn

Joined: Nov 18, 2010
Posts: 22

Sagar

below is the code generated once the jsp becomes servlet.





Thanks
Varun Dosapati
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

This is a lot like, and related to, your other similar question. Please continue any discussion there.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: setting content types,header,cookies after commit not throwing any exception
 
Similar Threads
cookie problem
Cookies not persistent ... how can it be?
Cookie Problem
unable to retrieve cookies & logout properly
Cookie Problem