|
JSF Application |
|
FacesServlet processing must be directed to this
servlet. So if we want to invoke this servlet
with every request we have to do mapping in <servlet-mapping> element. This is done to map
a particular URL pattern with the Faces servlet.
URL of every request must contain <file name>.jsf pattern because we have mentioned
this pattern in <url-pattern> tag.
If we look in “index.jsp” file, we will find that
there is .jsf file suffix not .jsp in the path for
the forward.
<jsp:forward page=”/pages/inputname.jsf” / >
This is because we have used *.jsf in the URL
pattern in the web.xml file for the application.
This is used to signal that the forwarded page
should be handled by the FacesServlet servlet
within Tomcat.
Running the application:
This application is now complete. To run this application start Tomcat server and type “http://localhost:8080/JSFHelloApplication”
URL in the address bar of your browser and
hit enter.
|
|
|
|
Oct 2007 | Java Jazz Up |61 |
|
|
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70,
71,
72,
73,
74,
75,
76,
77,
78,
Download PDF |
|
|
|
|
|
|
|
|
|