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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -