aspose file tools*
The moose likes Servlets and the fly likes JSP container? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP container?" Watch "JSP container?" New topic
Author

JSP container?

Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Hi,

What do you mean by an internal JSP container?And what is implicit mapping,how does it override url-pattern elements?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

A JSP container provides the working to support JSPs. Typically a JSP container is built using the existing Servlet container, that is it can be considered an extension of it.

Theoretically it is possible to support a JSP container without requiring Servlets 'as such', but would probably result in more rather than less work to implement.

IN tomcat, JSPs get configured in the conf/web.xml file. I could post the mappings but you might find the journey interesting yourself.

Dave
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185


I found this in conf/web.xml.. Does this mean all files of *.jsp will be processed by the JspServlet? Will this Servlet start the lifecycle of the JSP?

Regards,
Srikkanth.M
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Yes.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

I found this in conf/web.xml.. Does this mean all files of *.jsp will be processed by the JspServlet? Will this Servlet start the lifecycle of the JSP?


Yep. This means you could map other extensions as well to behave like they are JSPs.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Okay thanks guys,
I have a jsp-config element

Does this mean this will call the JspServlet? Is this called implicit mapping?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Originally posted by Srikkanth Mohanasundaram:
Does this mean this will call the JspServlet? Is this called implicit mapping?


No, that just sets up config information for JspServlet to use.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Thanks all,
I went through the spec SRV.11.2.1 now i'm clear
Regards
 
wood burning stoves
 
subject: JSP container?