File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Coding in the doService()  JSP page. 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 » Java » JSP
Reply Bookmark "Coding in the doService()  JSP page." Watch "Coding in the doService()  JSP page." New topic
Author

Coding in the doService() JSP page.

Mathew Chen
Greenhorn

Joined: Aug 01, 2005
Posts: 18
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

Joined: Jan 10, 2002
Posts: 56204
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Mathew Chen
Greenhorn

Joined: Aug 01, 2005
Posts: 18
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
 
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: Coding in the doService() JSP page.
 
Similar Threads
doPost() vs doService()
Need solution for Question
how to invoke both doGet() and doPost()
Not able to access hidden fields in servlet
Why doPost and doGet and not everything in doService