Bookmark Topic Watch Topic
  • New Topic

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

 
Ranch Hand
Posts: 209
Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Ranch Hand
Posts: 31
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sagar

below is the code generated once the jsp becomes servlet.





Thanks
Varun Dosapati
 
Author and ninkuma
Marshal
Posts: 66730
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a lot like, and related to, your other similar question. Please continue any discussion there.
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!