• Post Reply Bookmark Topic Watch Topic
  • New Topic

<%@ include - not including everything

 
Krem Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have the strangest error and can't understand how it is possible.

Most of my JSPs have the below tag at the top of them

<%@ include file="standardTop.jsp" %>

Which has some standard HTML including



Which works perfect for all JSPs appart from one that includes




Note the lack of the center tag? How is this possible???






Kremsoft - Software Development
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not getting your question.please explain in details
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I note a lack of center tag in both of them.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently your post doesn't contain everything you think it should. Please be sure to click the "disable HTML" checkbox when posting HTML, and to use code tags when posting code.

And, as an aside, included JSP fragments are conventionally named with the .jspf file type.
 
Krem Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry that was a cut an paste error with the HTML.
I'll try to explain again.

I have a JSP fragment (that is named badly ) that contains the standard header for all of my JSPs (as seen below - I removed irrelevant html)



All of my JSPs then have the following lines at the top





This works perfect for all pages as you would imagine. But one is not rendering properly and looking at the HTML that is produced it is missing align="center"

How is this even possible?


Does that make sense now?

Cheers


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, because your post is once again incomplete. Did you proof-read it? did you disable HTMl as instructed?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The align = center attribute is missing ? Some browsers will choose to ignore attributes that do not apply to certain elements. They will not be displayed (even in the source). Please edit your post and post the unformatted HTML
 
Krem Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak - I don't understand how that can be an issue. I'm just testing it in one browser. All the JSPs have the same header but it has compiled different in one JSP with out the align="center" part of the table tag.

I'll recompile the WAR and throw it up and see what happens
 
Krem Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't change a thing - just re-deployed the WAR and it worked fine.

Must have had a glitch whilst it was compiling that JSP. Strange!

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!