aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Include file doubt? 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Include file doubt?" Watch "Include file doubt?" New topic
Author

Include file doubt?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

The HFSJ errata says,

{407} whole page;
As the .jspf convention is not supported by default in Tomcat, the following mapping
needs to be added to the application's web.xml for the example to work correctly:

<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jspf</url-pattern>
</servlet-mapping>

What it really means?? Anyone please explain??

Thanks in advance!


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
I don't have HFSJ so can't say anything about that example. Whereas this code is for servlet mapping, it is mapping a servlet defined by the name of "jsp" with any url with ".jspf" extension, means that it will be acessible to any url that ends with .jspf for your web app.

Like if your Web App is "MyWebApp" then

http://localhost:8080/MyWebApp/abc.jspf
http://localhost:8080/MyWebApp/somefol/abc.jspf
http://localhost:8080/MyWebApp/app/admin/abc.jspf

All of these will map to servlet "jsp".
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Thanks for the explanation!
 
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: Include file doubt?
 
Similar Threads
Scriptlets and expressions not executing in JSP page
.jspf file not behaving as .jsp file: example in HFSJ
.jspf question
HFSJ-->page 407 Errata...
jspf not working with <jsp:include> and <jsp:param>