This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 6661
    
    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: 60810
    
  65

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
 
jQuery in Action, 2nd edition
 
subject: JSP container?
 
Similar Threads
passing a vector and value to custom tag
JSTL if statement does not work
JSP and Servlet Container
problem with radio buttons in nested forEach loop
Jsp Doesnot work on Windows 2000