File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP container?

 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 240
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 240
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 240
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 240
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all,
I went through the spec SRV.11.2.1 now i'm clear
Regards
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic