Skip to content

Commit ff67d1b

Browse files
committed
Updated scriptlets.
1 parent 8b30ba8 commit ff67d1b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tomcat7-simple-jsp.md

+16
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,19 @@ Then we print out the version we set above in the jspInit method. We also get th
7070
Finally we use the implicit request object to get the current paramter for the value 'thing'. A requst of hello.boom?thing=hiya would make that value 'hiya'.
7171

7272
There's also a application implicit object that sets values thoughout all the application.
73+
74+
If you set a error page directives:
75+
76+
<%@ page errorPage="e.jsp" %>
77+
78+
Then as soon as you do something stupid, like below, you'll go the the e.jsp page.
79+
80+
<% String hello = null;
81+
hello.toString();
82+
%>
83+
84+
You can include a file though a simple declaration:
85+
86+
<%@ include file="/page.jsp" %>
87+
88+
And this will include a file called page.jsp belong the WEB-INF folder.

0 commit comments

Comments
 (0)