jsp-tags stationary output


i am deliberation formulating jsp-tags always give same output. example:



<foo:bar>baz</foo:bar>


will always output:



<div class="bar">baz</div>


is there any proceed jsp-tag act only stationary cost generated servlet?



for example:



out.write("<div class=\"bar\">");
...
out.write("</div>");


in stead of



x.y.z.foo.bartag _jspx_th_foo_bar_0 = new x.y.z.foo.bartag();
_jspx_th_foo_bar_0.setpagecontext(pagecontext);
_jspx_th_foo_bar_0.setparent(null);
_jspxtagobjects.push(_jspx_th_foo_bar_0);
int _jspx_eval_foo_bar_0 = _jspx_th_foo_bar_0.dostarttag();
etc...
etc...
etc...


background



i'm nervous performance. i haven't tested yet, nonetheless looks generated servlet does lot something unequivocally simple, opening unequivocally important.



but servlet behaves cost combined directly jsp, cost prolongation zero.



i few advantages doing this. i change stationary html even change something some-more dynamic, but modifying each portlet. the setup it's easy change tag, nonetheless unequivocally time-consuming change each jsp uses specific element.



this also means i force developers something like



<div class="bar" style="whatever">...</div>


there even some-more advantages, nonetheless costs opening prolongation servers, it's substantially value it.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?