If I understand the question, you can create separate "Tiles" (JSP
fragments) for each of the forms, and then plug those into a shared
layout, which is another JSP.

There are two approach, one uses tags that refers to the layout. The
other uses an XML configuration file. I believe most people use the
XML configuration file.

For more about Tiles, you can visit

Introduction to struts and tiles with a working example
* http://www.laliluna.de/first-steps-struts-tiles-tutorial.html

Reuse Tiles and Simplify UI
* http://www.oracle.com/technology/oramag/oracle/04-may/o34dev_struts.html

Programming Jakarta Struts: Using Tiles
* http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index1.html

Struts in Action: Developing Applications with Tiles
* http://www.developer.com/java/ent/article.php/2192411

-- HTH, Ted.

On 3/29/06, Rolando Martinez <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm working in a Project  using Struts and tiles. Right now I have a
> problem and I don't know what the best way to solve it is.
>
> The problem is : there is only one layout and many JSP pages that can
> build the page
>
> The question is:
> Where Can I define the form that encapsulates defined fields in forms?
>
> Is it better to define it in a JSP page that contains the layout or to
> define a form for each JSP page that instances the layout?
>
>
> Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to