Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I stop Struts reformatting my HTML?

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
0
0
GB
I have an action forward that returns a page called ac05.jsp

The HTML gets reformatted before it reaches the browser.

If I request the page directly it's fine, but when Struts returns it, it gets reformatted.

How do I prevent Struts screwing around with my HTML?

FYI.
It isn't formatting it to XHTML standards - it doesn't use quotes on the tag attributes.

E.g. The following html:-

<h1>Hello </h1><span class="myClass">There</span>

Comes back as:-

<H1>Hello </H1><SPAN CLASS=myClass>There</SPAN>

There are other examples that are really screwed up and so I need to stop it reformatting it.
 
Forget it. It's not Struts doing it, it must be something to do with the tag libraries I'm using.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top