Bonjour,
j'aimerai bien connaitre le sens de la variable flush dans les inclusions dynamiqes des pages jsp
Bonne journée,Citation:
<jsp:include
flush="false" page="catalog.jsp" />
Cordialement
Version imprimable
Bonjour,
j'aimerai bien connaitre le sens de la variable flush dans les inclusions dynamiqes des pages jsp
Bonne journée,Citation:
<jsp:include
flush="false" page="catalog.jsp" />
Cordialement
tu poses beaucoup de questions sans donner l'impression de chercher.
éventuellement chercher une explication et poser des questions dessus.
http://java.sun.com/products/jsp/syn...axref1214.html
pour ta question sur le bufferCitation:
Description
The <jsp:include> element allows you to include either a static or dynamic resource in a JSP page. The results of including static and dynamic resources are quite different. If the resource is static, its content is included in the calling JSP page. If the resource is dynamic, it acts on a request and sends back a result that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP page.
You cannot always determine from a pathname if a resource is static or dynamic. For example, http://server:8080/index.html might map to a servlet through a server alias. The <jsp:include> element handles both types of resources, so it is convenient to use when you don't know whether the resource is static or dynamic.
If the included resource is dynamic, you can use a <jsp:param> clause to pass the name and value of a parameter to the resource. As an example, you could pass the string username and a user's name to a login form that is coded in a JSP page.
Attributes
page="{ relativeURL | <%= expression %> }"
The relative URL that locates the resource to be included, or an expression that evaluates to a String equivalent to the relative URL.
The relative URL looks like a pathname--it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP page. If it is absolute (beginning with a /), the pathname is resolved by your web or application server.
flush="true | false"
If the page output is buffered and the flush attribute is given a true value, the buffer is flushed prior to the inclusion, otherwise the buffer is not flushed. The default value for the flush attribute is false.
<jsp:param name="parameterName"
value="{parameterValue | <%= expression %>}" />+
The <jsp:param> clause allows you to pass one or more name/value pairs as parameters to an included resource. The included resource should be dynamic, that is, a JSP page, servlet, or other resource that can process the parameter.
http://java.sun.com/products/jsp/tag...ref11.fm7.html
Citation:
buffer="none | 8kb | sizekb"
The buffer size in kilobytes used by the out object to handle output sent from the compiled JSP page to the client Web browser. The default value is 8kb. If you specify a buffer size, the output is buffered with at least the size you specified.
bonjour,
merci pour votre réponse,
si j'ai bien compris la deuxième partie de votre question, si une page jsp compilé envoie des donnés d'une grandeur > 8Kb et qu'on spécifie pas une size pour buffer, alors il y aura un probleme?!!
Je ne pense pas mais je n'ai jamais étudié le problème si problème il y a
Il n'y a pas de problème, si la page fait plus de 8ko, le buffer (plein) est envoyé (flush) et vidé pour continuer... le traitement se faisant par blocs de 8ko au plus
super OButterlin:ccool:
merci bien, c bien clair maintenant