This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Trying to tile.  html does not display on screen but when viewing source it is there. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Trying to tile.  html does not display on screen but when viewing source it is there." Watch "Trying to tile.  html does not display on screen but when viewing source it is there." New topic
Author

Trying to tile. html does not display on screen but when viewing source it is there.

howard franklin
Greenhorn

Joined: Sep 09, 2012
Posts: 20
I am trying to learn how to tile. The following displays in html

me testing
Some new stuff

When I view source I see the following. I do not understand what I am doing wrong?


I have supplied the following:

mainTemplate.jsp
login.jsp
header.jsp
loginBody.jsp
footer.jsp
struts-config.xml
tileDefinitions.xml



Howard
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Howard,
If above lines from 1-78 is from view source then, problem is almost known. If you observe the body part of it - fmt:message, html:text tags are as is and are not properly compiled [which no normal HTML browser can understand]. May be necessary tag-libs are not included in the body jsp or so. Please verify that, it should be the root cause. And i also do not understand why you need to do tile insert in login.jsp when your template does that for you. Anyways that should not be an issue.

And congratulations!! seems like your tiles setup is working fine [header and footer are already displayed]. So no tiles problem



Have Fun with Java
little,little.. little by little makes a lot..
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

i think problem is at 1st line it self shouldn't this be just because </html> this closing tag at line 78 does not have starting tag


Learning some thing New Every Day
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to tile. html does not display on screen but when viewing source it is there.
 
Similar Threads
struts 1.3 tiles not working
web container displaying jsp intead of html
Page is displayed blank for Login Application
Not sure why I am not able to insert my data
Struts Validatons are not working