• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Coding in the doService() JSP page.

 
Mathew Chen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are there situations where we need to write code in the doService() or any of the other methods in JSPs?I for one haven't had the need to.Just curious to know if there is ever a need?

Thanks
Mathew
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just about everything in the JSP: template text, scriplets and scriplet expressions end up as code in the service method.

I think you'll have to be more specific about what you are asking.
 
Mathew Chen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Bear.Do you mean the scriplets and the other code which you write in a JSP page?If you are talking about them then I agree that they are part of the doService() in the background.But is it possible to specifically write code in the doService() of the JSP.I guess not because the servlet results only after the jsp page is compiled.

Thanks
Mathew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic