You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tomcat7-simple-jsp.md
+16
Original file line number
Diff line number
Diff line change
@@ -70,3 +70,19 @@ Then we print out the version we set above in the jspInit method. We also get th
70
70
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'.
71
71
72
72
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