• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Struts IE render problem

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure if this is a struts problem or not...

IE is not rendering the html from my struts app. It works fine in Firefox, an d you can view the source in IE, it is just not being displayed. All of the posts I have seen related to this have to do with using execute method in pre-1.1 struts. But, this is not the case with me.

Anyone have any ideas?
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I understand you correctly, you can view the source in IE and there is source code there, however that source code is not being rendered. Firefox however does render the HTML.

Most likely there is some sort of problem with your HTML. It could be that something is improperly nested, or that you are missing a closing tag, or something along those lines. Different browsers vary in how tolerant they are of improperly formatted HTML. Some will render bad HTML as best they can, some will not. IE seems to be generally less tolerant.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could find no problem...

<html>
<head>
<title>Management - Login</title>
<script language="javascript" src="/wings/scripts/admin.js"/>
<link rel="stylesheet" href="/wings/styles/admin.css"/>
</head>
<body marginwidth="0" marginheight="0">
<table cellpadding="0" cellspacing="1" border="0" width="100%" height="100%" bgcolor="black">
<tr>
<td colspan="2"><div id="header" style="background-image: url('/wings/images/admin_header.gif');"> </div></td>
</tr>
<tr bgcolor="#999999">
<td width="99%">
<div id="menu"></div>
</td>
<td align="right">
<div id="menu"><nobr><a href="/wings/manage/logout.do" class="menu">Exit</a></nobr>
</div>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="title" colspan="2">
<div id="path">
<a href="/wings/manage/home.do">Management</a> > Login
</div>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="100%" valign="top" colspan="2">
<div id="messages">
<ul class="messages"></ul>
</div>
<div id="view">
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td align="center" valign="middle" height="280">
<div id="login_form">
<form name="loginForm" method="post" action="/wings/manage/login.do">
<table cellpadding="5" cellspacing="1" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td class="label">Email Address:</td>
</tr>
<tr>
<td><input type="text" name="emailAddress" maxlength="30" size="25" value=""></td>
</tr>
<tr>
<td class="label">Password:</td>
</tr>
<tr>
<td><input type="password" name="password" maxlength="30" size="25" value=""></td>
</tr>
<tr>
<td><input type="submit" value="Login"></td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2">
<div id="footer">You are not logged in.</div>
</td>
</tr>
</table>
</body>
</html>
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have also added two elements:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

and

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

However, I just can't help but feel like IE is not reading the content type header correctly or it is not being send. I have never had this problem before.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stupid script tag, forgot it has to have an end tag
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic