It's not a secret anymore!*
The moose likes Struts and the fly likes Struts IE render problem 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 "Struts IE render problem" Watch "Struts IE render problem" New topic
Author

Struts IE render problem

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
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?


http://www.goodercode.com
SCJP 1.4
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
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

Joined: Oct 29, 2003
Posts: 254
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

Joined: Oct 29, 2003
Posts: 254
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

Joined: Oct 29, 2003
Posts: 254
Stupid script tag, forgot it has to have an end tag
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts IE render problem
 
Similar Threads
Problem with configuring Struta application
automatic form reset and resubmit
Problem with 404.
xsl framework for web development
Using XML style JSP tags