{"id":4070,"date":"2012-09-19T12:36:56","date_gmt":"2012-09-19T15:36:56","guid":{"rendered":"http:\/\/www.viamais.net\/blog\/?p=4070"},"modified":"2012-09-19T12:48:18","modified_gmt":"2012-09-19T15:48:18","slug":"um_pouco_mais_jstl","status":"publish","type":"post","link":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/","title":{"rendered":"Um pouco mais de JSTL"},"content":{"rendered":"<p>[ad#texto]<\/p>\n<p>Continuando nossas descobertas sobre <strong>JSTL<\/strong> em <strong>Java<\/strong> vamos conhecer um pouco mais dos recursos que comp\u00f5em a <strong>JSTL<\/strong> e como eles podem ser uteis no desenvolvimento de p\u00e1ginas <strong>JSP<\/strong>.<\/p>\n<p>Para come\u00e7ar veja as bibliotecas padr\u00e3o do <strong>JSTL<\/strong>:<\/p>\n<ul>\n<li>\n<div><strong>Core<\/strong> (prefixo C <span style=\"font-family: Wingdings;\">\u00e0<\/span> http:\/\/java.sun.com\/jstl\/core): usado em:<\/div>\n<ul>\n<li>Acessar e modificar dados em mem\u00f3ria<\/li>\n<li>Comandos condicionais<\/li>\n<li>Loop<\/li>\n<\/ul>\n<\/li>\n<li>\n<div><strong>XML<\/strong> (prefixo X <span style=\"font-family: Wingdings;\">\u00e0<\/span> http:\/\/java.sun.com\/jstl\/xml): usado em:<\/div>\n<ul>\n<li>Parsing (leitura) de documentos<\/li>\n<li>Impress\u00e3o de partes de documentos XML<\/li>\n<li>Tomada de decis\u00e3o baseado no conte\u00fado de um documento XML<\/li>\n<\/ul>\n<\/li>\n<li>\n<div><strong>Internacionaliza\u00e7\u00e3o e formata\u00e7\u00e3o<\/strong> (prefixo fmt <span style=\"font-family: Wingdings;\">\u00e0<\/span> http:\/\/java.sun.com\/jstl\/fmt): usado em:<\/div>\n<ul>\n<li>Leitura e impress\u00e3o de n\u00fameros<\/li>\n<li>Leitura e impress\u00e3o de datas<\/li>\n<li>Ajuda a sua aplica\u00e7\u00e3o funcionar em mais de uma l\u00edngua<\/li>\n<\/ul>\n<\/li>\n<li>\n<div>Acesso a banco de dados via SQL (prefixo SQL <span style=\"font-family: Wingdings;\">\u00e0<\/span> http:\/\/java.sun.com\/jstl\/sql): usado em:<\/div>\n<ul>\n<li>Leitura e escrita em banco de dados<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Expression Language (EL)<br \/>\n<\/strong><\/p>\n<p>\u00c9 uma linguagem de script que permite acessar componentes <strong>Java<\/strong> (<strong>JavaBeans<\/strong>) dentro de um <strong>JSP<\/strong> sem utilizar c\u00f3digo <strong>Java<\/strong> embutido, foi projetada para auxiliar designers a trabalhar com <strong>JSP<\/strong> sem a necessidade de aprendizado de programa\u00e7\u00e3o <strong>Java<\/strong> possibilitando integra\u00e7\u00e3o avan\u00e7ada com o core <strong>Java<\/strong> central da aplica\u00e7\u00e3o (classes e servlets).<\/p>\n<p>As principais caracter\u00edsticas da <strong>EL<\/strong> s\u00e3o:<\/p>\n<ul>\n<li>\u00c9 sint\u00e1tica e semanticamente, semelhante a express\u00f5es <strong>JavaScript<\/strong>;<\/li>\n<li>N\u00e3o h\u00e1 <em>typecasting<\/em>;<\/li>\n<li>Convers\u00f5es de tipo s\u00e3o geralmente feito implicitamente;<\/li>\n<li>Aspas duplas e simples s\u00e3o equivalentes;<\/li>\n<li><em>Object.property<\/em> tem o mesmo significado como <em>objeto [&#8216;propriedade&#8217;]<\/em>.<\/li>\n<\/ul>\n<p>O valor de qualquer express\u00e3o pode ser acessado da seguinte forma: <em>${express\u00e3o}<\/em>.<\/p>\n<p>Veja uma tabela comparativa de exemplo:<\/p>\n<div>\n<table style=\"border-collapse: collapse;\" border=\"0\">\n<colgroup>\n<col style=\"width: 91px;\" \/>\n<col style=\"width: 184px;\" \/>\n<col style=\"width: 214px;\" \/>\n<col style=\"width: 115px;\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: solid #4f81bd 1.0pt; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\"><strong>Operador<\/strong><\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: solid #4f81bd 1.0pt; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\"><strong>Descri\u00e7\u00e3o<\/strong><\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: solid #4f81bd 1.0pt; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\"><strong>Exemplo<\/strong><\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top: solid #4f81bd 1.0pt; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\"><strong>Resultado<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"background: #d3dfee;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">== ou eq<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">Igualdade<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">${5 == 5}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">true<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">!= ou ne<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">Desigualdade<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">${5 != 5}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">false<\/span><\/td>\n<\/tr>\n<tr style=\"background: #d3dfee;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">&lt; ou lt<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">Menor que<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">${5 &lt; 7}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">true<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">&gt; ou gt<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">Maior que<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">${5 &gt; 7}\u00a0\u00a0\u00a0\u00a0<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">false<\/span><\/td>\n<\/tr>\n<tr style=\"background: #d3dfee;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">&lt;= ou le<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">Menor ou igual que<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">${5 le 5}\u00a0\u00a0\u00a0\u00a0<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">true<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">&gt;= ou ge<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">Maior ou igual que<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">${5 ge 6}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">false<\/span><\/td>\n<\/tr>\n<tr style=\"background: #d3dfee;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">empty<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">Checa se um par\u00e2metro est\u00e1 vazio<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">${user.lastname}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">depende<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">and ou &amp;&amp;<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">E<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">${param.month == 5 and param.day == 25}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">depende<\/span><\/td>\n<\/tr>\n<tr style=\"background: #d3dfee;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">or ou ||<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">OU<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">${param.month == 5 or param.month == 6}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-right: none;\"><span style=\"color: #365f91;\">depende<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">+<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">soma<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">${4 + 5}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px;\"><span style=\"color: #365f91;\">9<\/span><\/td>\n<\/tr>\n<tr style=\"background: #d3dfee;\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\">! ou not<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\">Nega\u00e7\u00e3o<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\">${not true}<\/span><\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left: none; border-bottom: solid #4f81bd 1.0pt; border-right: none;\"><span style=\"color: #365f91;\">false<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>[ad#texto] Continuando nossas descobertas sobre JSTL em Java vamos conhecer um pouco mais dos recursos<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[67],"class_list":["post-4070","post","type-post","status-publish","format-standard","hentry","category-java","tag-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Um pouco mais de JSTL -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Um pouco mais de JSTL -\" \/>\n<meta property=\"og:description\" content=\"[ad#texto] Continuando nossas descobertas sobre JSTL em Java vamos conhecer um pouco mais dos recursos\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/\" \/>\n<meta property=\"og:site_name\" content=\"ViamaisBLOG\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/viamais.viablog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/viamais.viablog\" \/>\n<meta property=\"article:published_time\" content=\"2012-09-19T15:36:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-09-19T15:48:18+00:00\" \/>\n<meta name=\"author\" content=\"Petter Rafael\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@petterrafael\" \/>\n<meta name=\"twitter:site\" content=\"@petterrafael\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Petter Rafael\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/\"},\"author\":{\"name\":\"Petter Rafael\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#\\\/schema\\\/person\\\/a13697c83eb9e9fe998636b42c020ec2\"},\"headline\":\"Um pouco mais de JSTL\",\"datePublished\":\"2012-09-19T15:36:56+00:00\",\"dateModified\":\"2012-09-19T15:48:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/\"},\"wordCount\":375,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#organization\"},\"keywords\":[\"Java\"],\"articleSection\":[\"Java\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/\",\"url\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/\",\"name\":\"Um pouco mais de JSTL -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#website\"},\"datePublished\":\"2012-09-19T15:36:56+00:00\",\"dateModified\":\"2012-09-19T15:48:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/um_pouco_mais_jstl\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/category\\\/java\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Um pouco mais de JSTL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/\",\"name\":\"ViamaisBLOG\",\"description\":\"Blog de tecnologia com dicas para melhorar sua internet e as novidades de gadgets e aplicativos.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#organization\",\"name\":\"Viablog\",\"url\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.viamais.net\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/logo_viamais.png?fit=150%2C150&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.viamais.net\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/logo_viamais.png?fit=150%2C150&ssl=1\",\"width\":150,\"height\":150,\"caption\":\"Viablog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/viamais.viablog\",\"https:\\\/\\\/x.com\\\/petterrafael\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/#\\\/schema\\\/person\\\/a13697c83eb9e9fe998636b42c020ec2\",\"name\":\"Petter Rafael\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ec1d50795aefe5170d97a2816386714d30fce28bcb746631048cc673d70f8443?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ec1d50795aefe5170d97a2816386714d30fce28bcb746631048cc673d70f8443?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ec1d50795aefe5170d97a2816386714d30fce28bcb746631048cc673d70f8443?s=96&d=identicon&r=g\",\"caption\":\"Petter Rafael\"},\"description\":\"Desenvolvedor Web atua com as tecnologias Java e PHP apoiadas pelos bancos de dados Oracle e MySQL. Al\u00e9m dos ambientes de desenvolvimento acima possuiu amplo conhecimento em servidores Apache\\\/Tomcat, Photoshop, Arte &amp; Foto, Flash e mais uma dezena de ferramentas e tecnologias emergentes. Atualmente colabora com o Viablog escrevendo sobre programa\u00e7\u00e3o e tecnologia.\",\"sameAs\":[\"http:\\\/\\\/www.viamais.net\\\/blog\",\"https:\\\/\\\/www.facebook.com\\\/viamais.viablog\"],\"url\":\"https:\\\/\\\/www.viamais.net\\\/blog\\\/author\\\/petterrafael\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Um pouco mais de JSTL -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/","og_locale":"pt_BR","og_type":"article","og_title":"Um pouco mais de JSTL -","og_description":"[ad#texto] Continuando nossas descobertas sobre JSTL em Java vamos conhecer um pouco mais dos recursos","og_url":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/","og_site_name":"ViamaisBLOG","article_publisher":"https:\/\/www.facebook.com\/viamais.viablog","article_author":"https:\/\/www.facebook.com\/viamais.viablog","article_published_time":"2012-09-19T15:36:56+00:00","article_modified_time":"2012-09-19T15:48:18+00:00","author":"Petter Rafael","twitter_card":"summary_large_image","twitter_creator":"@petterrafael","twitter_site":"@petterrafael","twitter_misc":{"Escrito por":"Petter Rafael","Est. tempo de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/#article","isPartOf":{"@id":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/"},"author":{"name":"Petter Rafael","@id":"https:\/\/www.viamais.net\/blog\/#\/schema\/person\/a13697c83eb9e9fe998636b42c020ec2"},"headline":"Um pouco mais de JSTL","datePublished":"2012-09-19T15:36:56+00:00","dateModified":"2012-09-19T15:48:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/"},"wordCount":375,"commentCount":0,"publisher":{"@id":"https:\/\/www.viamais.net\/blog\/#organization"},"keywords":["Java"],"articleSection":["Java"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/","url":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/","name":"Um pouco mais de JSTL -","isPartOf":{"@id":"https:\/\/www.viamais.net\/blog\/#website"},"datePublished":"2012-09-19T15:36:56+00:00","dateModified":"2012-09-19T15:48:18+00:00","breadcrumb":{"@id":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.viamais.net\/blog\/um_pouco_mais_jstl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.viamais.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.viamais.net\/blog\/category\/java\/"},{"@type":"ListItem","position":3,"name":"Um pouco mais de JSTL"}]},{"@type":"WebSite","@id":"https:\/\/www.viamais.net\/blog\/#website","url":"https:\/\/www.viamais.net\/blog\/","name":"ViamaisBLOG","description":"Blog de tecnologia com dicas para melhorar sua internet e as novidades de gadgets e aplicativos.","publisher":{"@id":"https:\/\/www.viamais.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.viamais.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.viamais.net\/blog\/#organization","name":"Viablog","url":"https:\/\/www.viamais.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.viamais.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.viamais.net\/blog\/wp-content\/uploads\/2014\/10\/logo_viamais.png?fit=150%2C150&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.viamais.net\/blog\/wp-content\/uploads\/2014\/10\/logo_viamais.png?fit=150%2C150&ssl=1","width":150,"height":150,"caption":"Viablog"},"image":{"@id":"https:\/\/www.viamais.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/viamais.viablog","https:\/\/x.com\/petterrafael"]},{"@type":"Person","@id":"https:\/\/www.viamais.net\/blog\/#\/schema\/person\/a13697c83eb9e9fe998636b42c020ec2","name":"Petter Rafael","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/ec1d50795aefe5170d97a2816386714d30fce28bcb746631048cc673d70f8443?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ec1d50795aefe5170d97a2816386714d30fce28bcb746631048cc673d70f8443?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ec1d50795aefe5170d97a2816386714d30fce28bcb746631048cc673d70f8443?s=96&d=identicon&r=g","caption":"Petter Rafael"},"description":"Desenvolvedor Web atua com as tecnologias Java e PHP apoiadas pelos bancos de dados Oracle e MySQL. Al\u00e9m dos ambientes de desenvolvimento acima possuiu amplo conhecimento em servidores Apache\/Tomcat, Photoshop, Arte &amp; Foto, Flash e mais uma dezena de ferramentas e tecnologias emergentes. Atualmente colabora com o Viablog escrevendo sobre programa\u00e7\u00e3o e tecnologia.","sameAs":["http:\/\/www.viamais.net\/blog","https:\/\/www.facebook.com\/viamais.viablog"],"url":"https:\/\/www.viamais.net\/blog\/author\/petterrafael\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5Ih4c-13E","jetpack-related-posts":[{"id":5546,"url":"https:\/\/www.viamais.net\/blog\/manipulando-xml-com-java-de-maneira-otimizada\/","url_meta":{"origin":4070,"position":0},"title":"Manipulando XML com Java de maneira otimizada","author":"Petter Rafael","date":"24\/08\/2013","format":false,"excerpt":"[ad#texto] Trabalhar com XML pode ser um tanto complicado, n\u00e3o falando da t\u00e9cnica em si, mas do que podemos encontrar no decorrer de um projeto, supondo que pela necessidade voc\u00ea precise utilizar DOM e n\u00e3o SAX, em um arquivo XML superior a 50 MB, pode ter certeza que ter\u00e1 problemas\u2026","rel":"","context":"Em &quot;Dicas&quot;","block_context":{"text":"Dicas","link":"https:\/\/www.viamais.net\/blog\/category\/dicas\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5573,"url":"https:\/\/www.viamais.net\/blog\/manipulando-arquivos-xml-grandes\/","url_meta":{"origin":4070,"position":1},"title":"Manipulando arquivos XML grandes","author":"Petter Rafael","date":"05\/09\/2013","format":false,"excerpt":"[ad#texto] Realizar intercambio de dados com XML \u00e9 algo bem funcional, se deixarmos de utilizar DOM e adotarmos o VTD, ainda mais se estamos falando de arquivos XML grandes, com tamanhos que facilmente ultrapassam os GB\u00b4s. Utilizando VTD temos suporte para processar arquivos XML de at\u00e9 256 GB, desde que\u2026","rel":"","context":"Em &quot;Dicas&quot;","block_context":{"text":"Dicas","link":"https:\/\/www.viamais.net\/blog\/category\/dicas\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4894,"url":"https:\/\/www.viamais.net\/blog\/parser-sax-no-oracle-com-java\/","url_meta":{"origin":4070,"position":2},"title":"Parser SAX no Oracle com Java","author":"Petter Rafael","date":"22\/03\/2013","format":false,"excerpt":"[ad#texto] Quem j\u00e1 trabalhou com XML no Oracle j\u00e1 deve ter utilizado o XMLType, este cara implementa DOM para fazer o parser e por uma s\u00e9rie de motivos n\u00e3o existe uma implementa\u00e7\u00e3o para parser SAX no PL\/SQL, da\u00ed esbarramos que em alguns casos ao efetuar o parser o DOM se\u2026","rel":"","context":"Em &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.viamais.net\/blog\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4567,"url":"https:\/\/www.viamais.net\/blog\/gerando-relatorios-com-java\/","url_meta":{"origin":4070,"position":3},"title":"Gerando relat\u00f3rios com Java","author":"Petter Rafael","date":"22\/01\/2013","format":false,"excerpt":"[ad#texto] Uma grande d\u00favida, e que muitas vezes atrasa os projetos, \u00e9 como gerar de forma eficiente e din\u00e2mica relat\u00f3rios em aplica\u00e7\u00f5es Java, levando em conta que a capacidade de gerar relat\u00f3rios tem que ser escalar, ou seja, tem que acompanhar a crescente demanda de necessidades por parte do cliente.\u2026","rel":"","context":"Em &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.viamais.net\/blog\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4259,"url":"https:\/\/www.viamais.net\/blog\/lendo-uma-url-com-java-2\/","url_meta":{"origin":4070,"position":4},"title":"Lendo uma URL com Java","author":"Petter Rafael","date":"08\/11\/2012","format":false,"excerpt":"[ad#texto] V\u00e1rios desenvolvedores Java tem dificuldade em conseguir ler uma URL qualquer e conseguir obter o seu retorno para ent\u00e3o trabalha-lo dentro do seu c\u00f3digo, seja o retorno um XML, texto ou HTML. Neste artigo iremos acionar uma URL utilizando Java e iremos exibir o retorno via console, sem realizar\u2026","rel":"","context":"Em &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.viamais.net\/blog\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4773,"url":"https:\/\/www.viamais.net\/blog\/gerar-arquivo-texto-com-jasperreports\/","url_meta":{"origin":4070,"position":5},"title":"Gerar arquivo texto com JasperReports","author":"Petter Rafael","date":"04\/03\/2013","format":false,"excerpt":"[ad#texto] Uma coisa bem pouco explorada e que geralmente levanta d\u00favidas nos desenvolvedores Java \u00e9 como gerar um arquivo texto (TXT) via JasperReport formatado (geralmente ao tentar formar o arquivo o mesmo fica com v\u00e1rias linhas em branco), na verdade o processo \u00e9 simples e bem similar ao de gerar\u2026","rel":"","context":"Em &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.viamais.net\/blog\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/posts\/4070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/comments?post=4070"}],"version-history":[{"count":0,"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/posts\/4070\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/media?parent=4070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/categories?post=4070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.viamais.net\/blog\/wp-json\/wp\/v2\/tags?post=4070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}