aspose file tools*
The moose likes Struts and the fly likes Including JSPX in other JSPX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Including JSPX in other JSPX" Watch "Including JSPX in other JSPX" New topic
Author

Including JSPX in other JSPX

Eduards Sizovs
Greenhorn

Joined: Apr 25, 2009
Posts: 7
Hi there!

I am writing JSP using XML syntax (JSP 2.0) and recently have been added Tiles 2 support. I am using .jspx file extensions, so they are handled by the proper parser.

The problem is that both pages (tiles template and a jsp snippet itself generate their own <html> and <body> tags).

For example, my template:



And the snippet that is inserted as a 'body' attribute:



How to avoid multiple <html> and <body> tag generation?

Regards,
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Please be sure to ask Tiles questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eduards Sizovs
Greenhorn

Joined: Apr 25, 2009
Posts: 7
I appreciate it,
Eduards Sizovs
Greenhorn

Joined: Apr 25, 2009
Posts: 7
Up!

Tile experts, please help!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Including JSPX in other JSPX