jsp : taglibs -> FormTag

5 views
Skip to first unread message

moh....@googlemail.com

unread,
Nov 5, 2015, 8:06:09 AM11/5/15
to Jodders


If i want to use the FormTag and IfTag - classes in one jsp page, i have to use two different taglibs-uris.
FormTag -> <%@ taglib prefix="jodd-lagarto" uri="/jodd-lagarto" %>
IfTag -> <%@ taglib prefix="jodd" uri="/jodd" %>

I am surprised - in doc under [1] and [2] there is written only from "
  <%@ taglib prefix="j" uri="/jodd" %>
"

I am using jodd 3.6.6.

Is FormTag class placed in correct maven modul?
Or shoud be documentation for FormTag updated?


Greetz
Sascha


[1] = http://jodd.org/doc/taglibrary.html
[2] = http://jodd.org/doc/formtag.html

Jodders

unread,
Nov 5, 2015, 8:16:15 AM11/5/15
to Jodders
Hey hi Sascha!

As you could expect - documentation is not updated :)) You see, the `If` tag is a simple tag with no extra logic. However, `Form` tag requires to parse the HTML form it surrounds. Previously, it was in the same package as we were parsing it manually. Then we made a change and moved `Form` tag to Lagarto module - that is our nice and small HTML parser, that parses by the real HTML5 rules. Hence, it make sense to use the real html engine to parse the forms; so thats why the form is moved to 'lagarto-web' module.

Hope this make sense!

I will update the docs!



On Thursday, November 5, 2015 at 2:06:09 PM UTC+1,

moh....@googlemail.com

unread,
Nov 5, 2015, 8:23:45 AM11/5/15
to Jodders
Thank you for fast answer.

I thought that the documentation only needs to be updated :-)
Reply all
Reply to author
Forward
0 new messages