Are there any tags inside the jstl tag that are considered bad? So for example, I know that the following will work, but is bad form considered script tags inside my jstl tags in my jsp?
<c:choose> <c:when test="${!empty bean.value}"> <p>Its not empty</p> </c:when> <c:otherwise> **<script> callJSSomeFunction(); </script>** </c:otherwise> </c:choose>
I don’t know about the bad form (a little tough), but you might think that someone, viewing your page without JS, yours <c:otherwise>will effectively output nothing, and this is not very graceful.
<c:otherwise>
, , , , , DOM , , ( ), ).
, DOM (jQuery $(document).ready(), ,), .
- - JSTL, , script, .
JDSL-terds punchbowl, , UI dev .
SGM- , SGM- , , , . , . , vars HTML , , .
, , , , , PITA UI , , . , , Java , , .
, . , , Java , . ? , . , , JavaScript- Java ( - ), , . , , .
, . JSON, -, , JS . , , UI , - bean, , HTTP, , - . . , " " .
"" . , , , .
Source: https://habr.com/ru/post/1712156/More articles:A SortedList that just accepts IComparable - sortingGuice SPI: find wildcard bindings - genericshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1712153/ignore-touches-to-background-super-view&usg=ALkJrhj4cB4zN6V8X8XZq-Jjy5uqFmvyYgRegex replace part of string with spaces - javaWPF: Inheritance from HeaderedContentControl - wpfReading cookie from WCF web service RESTful - restКаковы преимущества и недостатки JQuery и Glow JavaScript Libraries? - javascriptWhere does the compiler spend most of its time during parsing? - compiler-constructionIs it possible to overestimate the method using the lambda function - c #Help improve Python code with List Comprehensions - pythonAll Articles