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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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: 60991
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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://aspose.com/file-tools
 
subject: Coding in the doService() JSP page.