6.9 FAVCONNECT EXAMPLE MODIFIED

The example of FavConnect is shown in Figure 6.47 while discussing Servlets. The output was rather raw. Now let us consider a formatted output using JSP. The LoggedIn.JSP program can be modified to show the connections in a more palatable format as shown below. The code is just for showing the connections.

It is to be observed that the JSP code shown in Figure 6.3 can be included by the statement as shown below.

 

LoggedIn.jsp

 

Fig. 6.3 LoggedIn.jsp

 

  <jsp:include page=“dispItems.jsp” />

This appears in line 28 of Figure 6.3. The output produced by the included code will be put in place at the location of the include directive. ...

Get Web Technology: Theory and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.