c:url JSTL - problem ze zrozumieniem.

0

Mam problem ze zrozumieniem potrzeby użycia <c:url>.
Czy mógłby mi ktoś przedstawić jakiś życiowy przykład kiedy i po co go używamy ?

1

http://www.tutorialspoint.com/jsp/jstl_core_url_tag.htm

The only real advantage the url tag provides is proper URL encoding, including any parameters specified by children param tag.

Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. For example, if the browser supports cookies, or session tracking is turned off, URL encoding is unnecessary.

życiowy przykład? używasz c:url zamiast samemu pisać powyższe funkcjonalności, zaoszczędzasz czas i pieniądze.

1 użytkowników online, w tym zalogowanych: 0, gości: 1