html - Struts tags substitution -


i wondering if replace struts tags html, when output data. projects in company still using struts tags seems it's not easy use compared html.

of course can, long duplicate:

  • whatever html emitted tag, and...
  • ...whatever java logic tag implements.

for example, custom form tags is:

  • emit form elements
  • (possibly embedded in other markup depending on s2 theme)
  • set form element value action property
  • display error messages relating form element (depending on s2 theme)

some tags don't emit html of own, example, <s:iterator> loops on collection, pushes each object onto value stack, , processes tag body other jsp custom tag.

should reproduce existing framework logic , write either:

  • a lot more html, or...
  • ...your own complete suite of custom tags?

i doubt it, there valid usecases doing so–i can't think of them.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -