Prev | Current Page 148 | Next

Frank Zammetti

"Practical DWR 2 Projects"

servlet.DwrServlet


dwr-invoker
/dwr/*

While you have the freedom to map the servlet to any path you??™d like, or use extensionbased
mapping even, I very much suggest using this standard mapping since it??™s logical and
will be one less difference you have to mentally parse when you??™re looking for help on the Web.
Beyond this basic setup, there are a number of init parameters you can specify. They are
summarized in Table 2-1.
Table 2-1. The DWRServlet Init Parameters
Parameter Description
allowGetForSafariButMakeForgeryEasier In Safari 1.x, there is a browser bug that causes the
body contents of POST requests to be dropped. This
is, to put it mildly, a bit of a problem in most cases.
Setting this to true will make DWR work in that
browser regardless. This defaults to false.
crossDomainSessionSecurity Setting this to false will enable requests from other
domains other than the one that app is hosted on.
This can be a rather significant security risk, so you
should change this with caution and be sure you
understand all the consequences. The default value
is true.


Pages:
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160