|
|
|
scripting-invalid в web.xml
|
|||
|---|---|---|---|
|
#18+
Неясно с автор# QUESTION 13: Given the web application deployment descriptor: 1 <jsp-config> 2 <jsp-property-group> 3 <url-pattern>*.jsp</url-pattern> 4 <scripting-invalid>false</scripting-invalid> 5 </jsp-property-group> 6 </jsp-config> andexample.jsp: 10 x 5 = ${10 * 5}<br> 2 * 3 = <%= 2 * 3 %><br> What is the result? A. An error occurs during page translation. B. Translation is successful, but nothing is included in the response. C. Both "10 x 5 = 50" and "2 * 3 = 6" are included in the JSP response. D. The text "10 x 5 = 50" is included in the JSP response, but "2 * 3 = 6" is NOT. E. The text "2 * 3 = 6" is included in the JSP response, but "10 x 5 = 50" is NOT. ответ авторC. Both "10 x 5 = 50" and "2 * 3 = 6" are included in the JSP response и сам попробовал и получил. Но ведь мы отключаем авторTag name: scripting-invalid Description : Can be used to easily disable scripting in a group of JSP pages. By default, scripting is enabled. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.12.2012, 19:27:43 |
|
||
|
scripting-invalid в web.xml
|
|||
|---|---|---|---|
|
#18+
ccoder, а в заголовке страницы что? Может там переопределен? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.12.2012, 19:30:32 |
|
||
|
scripting-invalid в web.xml
|
|||
|---|---|---|---|
|
#18+
scripting-invalid контролирует валидацию чтобы не использовался код вида. <%= 2 * 3 %> scripting-invalid=false значит валидация отключена. EL и scripting можно. scripting-invalid=true значит валидация включена. EL можно. scripting - нельзя. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.12.2012, 19:41:22 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=38070408&tid=2130405]: |
0ms |
get settings: |
19ms |
get forum list: |
18ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
42ms |
get topic data: |
14ms |
get forum data: |
4ms |
get page messages: |
52ms |
get tp. blocked users: |
2ms |
| others: | 311ms |
| total: | 470ms |

| 0 / 0 |
