Originally posted by Tad Dicks:
so inside each separate tile(jsp fragment/document). I need to have the
tag? <html:form
I can't have
<html:form action="xxx">
.
.
.
<tile:insert definition="sharedFormElments"/>
.
.
.
</html:form>
in one document.
And then this in another(sharedFormElements)?
.
.
<html:text property="xy"/>
.
.
or should I use a jsp include tag? or?
-Tad
Using the JSP include tag will only help if you use a static resource, i.e. something doesn't have a ".JSP" extension. Resources that are dynamically included will be translated as a separate
servlet. It's just like making a call to a method in a different class. I'm not even sure if specifying the "name" attribute will help since the
struts documentation states that most of the html tags need to be nested in a html form tag.
A static include, on the other hand, is translated "in place" just as if you were copying and pasting the included code into your JSP. I usually use an ".inc" extension instead of ".jsp" for files I want to include statically.