How to remove <?xml version=

Dear All,

The moment I can see<?xml version="1.0"?> sentence in JSC produced pages going in the first line.

Does anybody know the easiest way to remove/disable this 'feature' from the generated pages.

The problem is comming usingIE6.0 as a browser. I use CSS styles with fixed-size centered colums. IE6.0 goes nuts while anything else coming beforeDOCTYPE definition and swithes toquirk mode.

Quirk mode makes my CSS looks agly and doesn't support centered layout.

I have to say it is very annoying :)

Alex

[590 byte] By [AKlimenko] at [2007-11-26 7:24:23]
# 1

Hi,

You don't want to remove that line but instead find another unit to use

for the width as Winston's blog suggests. I got IE6 to center

appropriately changing table layout Width to e.g. 30% rather than

2in .. then the horizontal align at center worked fine.

Reference: http://blogs.sun.com/roller/page/winston?entry=css_layout

/krys

CreatorTeam

3431603 at 2007-7-6 19:10:54 > top of Java-index,Development Tools,Java Tools...
# 2

Sorry, but I want remove this first line with <?xml version...

To check what gives a bug I did the following:

1.Run my page in design mode and it looks fine

2. Clear and build my project, run it under Sun App Serv 8.2

3. Can see centered CSS doesn't work

4. Save source HTML by using 'View Source' context menu and remove annoying <?xml version...

5. I got it - IT WORKS FINE.

6. Please look at http://www.adobe.com/devnet/dreamweaver/articles/css_concepts_03.html (paragraph just before picture of Quirk and Standard mode)

7. What is the reason of putting <xml into to the first line. XHTML is NOT xml anyway.

King regards,

Alex>

AKlimenko at 2007-7-6 19:10:54 > top of Java-index,Development Tools,Java Tools...
# 3
I have encountered this before with other software. Check to see if you have an option to turn off XML Declaration. In my case, I set XMLDeclaration=false.Hope this helps...
TripAdams at 2007-7-6 19:10:54 > top of Java-index,Development Tools,Java Tools...
# 4

thanks, but the only thing I've found is

<jsp-property-group>

<url-pattern>*.jspf</url-pattern>

<is-xml>true</is-xml>

</jsp-property-group>

Not sure it will help because I use one Page Fragment also and it won't correctly work without <is-xml>true</is-xml>.

Maybe I have to try to install ServletFilter and remove this annoying <xml from the whole response. But it seems pretty straightforward solution.

King regards,

Alex

Kind regards,>

AKlimenko at 2007-7-6 19:10:54 > top of Java-index,Development Tools,Java Tools...
# 5

Alex,

Were you able to resolve this?

I have the same problem. I am exporting my jsp to excel using "<jsp:directive.page contentType="application/vnd.ms-excel;charset=iso-8859-1" language="java" pageEncoding="UTF-8"/>".

This works fine in office 2002, but apparently excel xp does not like the xml declaration in the beginning and it opens the file as "xml" instead of "excel".

Please help.

Thanks, Lori

ldb417 at 2007-7-6 19:10:54 > top of Java-index,Development Tools,Java Tools...