It's not a secret anymore!
The moose likes Struts and the fly likes Including JSPX in other JSPX Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 56229
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Including JSPX in other JSPX
 
Similar Threads
JSP 2.0 document
how check javabean giving to other component correct data
Using checkbox on Spring 2.5 MVC ?
ajax call in jquery
Facelets and JSF