fixed HTML code generation in the main frame and in some of the JSP

tag classes
This commit is contained in:
Eric J. Bowersox 2004-07-15 03:46:00 +00:00
parent a0e50f4030
commit 6555709ca2
4 changed files with 67 additions and 64 deletions

View File

@ -9,9 +9,9 @@
*
* The Original Code is the Venice Web Communities System.
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
* Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
@ -61,14 +61,17 @@ public class FrameBannerAdTag extends VeniceTagSupport
{ // compose the HTML fragment
tmp = advert.getLinkURL();
if (tmp!=null)
write_data.append("<A HREF=\"").append(tmp).append("\">");
write_data.append("<IMG SRC=\"").append(full_image_path).append("\" ALT=\"");
write_data.append("<a href=\"").append(tmp).append("\">");
write_data.append("<img src=\"").append(full_image_path).append("\" alt=\"");
String tmp2 = advert.getCaption();
if (tmp2!=null)
write_data.append(tmp2);
write_data.append("\" ALIGN=RIGHT WIDTH=468 HEIGHT=60 HSPACE=2 VSPACE=2 BORDER=0>");
write_data.append("\" title=\"");
if (tmp2!=null)
write_data.append(tmp2);
write_data.append("\" align=\"right\" width=\"468\" height=\"60\" hspace=\"2\" vspace=\"2\" border=\"0\" />");
if (tmp!=null)
write_data.append("</A>");
write_data.append("</a>");
} // end if
else // path not computable - just write some junk

View File

@ -9,9 +9,9 @@
*
* The Original Code is the Venice Web Communities System.
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
* Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
@ -44,7 +44,7 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
try
{ // write out what we came here to accomplish
JspWriter out = pageContext.getOut();
out.write("<BODY BGCOLOR=\"" + html.getColor(FRAME_BACKGROUND) + "\"");
out.write("<body bgcolor=\"" + html.getColor(FRAME_BACKGROUND) + "\"");
if (extra!=null)
out.write(" " + extra);
out.write(">");
@ -52,7 +52,7 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
} // end try
catch (IOException e)
{ // convert the I/O error into something the servlet engine can deal with
throw new JspTagException("error writing <BODY> tag - " + e.getMessage());
throw new JspTagException("error writing <body> tag - " + e.getMessage());
} // end catch
@ -65,12 +65,12 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
try
{ // write out what we came here to accomplish
JspWriter out = pageContext.getOut();
out.write("</BODY>");
out.write("</body>");
} // end try
catch (IOException e)
{ // convert the I/O error into something the servlet engine can deal with
throw new JspTagException("error writing </BODY> tag - " + e.getMessage());
throw new JspTagException("error writing </body> tag - " + e.getMessage());
} // end catch

View File

@ -9,9 +9,9 @@
*
* The Original Code is the Venice Web Communities System.
*
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
* Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
*
* Contributor(s):
*/
@ -39,7 +39,7 @@ public class FrameHeadTag extends VeniceTagSupport
} // end try
catch (IOException e)
{ // convert the I/O error into something the servlet engine can deal with
throw new JspTagException("error writing <HEAD> tag info - " + e.getMessage());
throw new JspTagException("error writing <head/> tag info - " + e.getMessage());
} // end catch

View File

@ -9,9 +9,9 @@
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
@ -19,39 +19,39 @@
<%@ taglib uri="/tlds/user" prefix="user" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<html>
<frame:head/>
<frame:body>
<util:comment>BEGIN PAGE HEADER</util:comment>
<TABLE CLASS="tbar" BORDER=0 BGCOLOR="<util:color name="top.bg"/>" WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=MIDDLE>
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2 CLASS="tbar">
<table class="tbar" border="0" bgcolor="<util:color name="top.bg"/>" width="100%" cellpadding="2" cellspacing="0">
<tr valign="middle">
<td align="left" width="20%" cellpadding="2" class="tbar">
<util:comment>Site logo</util:comment>
<frame:sitelogo/>
</TD>
</td>
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2 CLASS="tbar"><util:font color="top.fg" size="top"><B>
<td align="center" width="30%" cellpadding="2" class="tbar"><util:font color="top.fg" size="top"><b>
<util:comment>Links to Front Page, Help, Find</util:comment>
<util:link aclass="tbar" href="top.js.vs"
type="servlet"><util:font color="top.link">Front Page</util:font></util:link>
<P>
type="servlet"><util:font color="top.link">Front Page</util:font>
</util:link><p />
<util:link aclass="tbar" href="/TODO"
type="absolute"><util:font color="top.link">Help</util:font></util:link>
&nbsp;|&nbsp;
<util:link aclass="tbar" href="find.js.vs"
type="servlet"><util:font color="top.link">Find</util:font></util:link>
</B></util:font></TD>
</b></util:font></td>
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2 CLASS="tbar">
<td align="right" width="50%" cellpadding="2" class="tbar">
<util:comment>Banner Ad</util:comment>
<frame:banner_ad/>
</TD>
</TR>
</td>
</tr>
<util:comment>Login reminders</util:comment>
<TR VALIGN=MIDDLE><TD ALIGN=CENTER COLSPAN=3 CLASS="tbar"><util:font color="top.fg" size="top">
<tr valign="middle"><td align="center" colspan="3" class="tbar"><util:font color="top.fg" size="top">
<user:is_logged_in>
You are logged in as <B><util:escape><user:name/></util:escape></B>
You are logged in as <b><util:escape><user:name/></util:escape></b>
<frame:display_login>
&nbsp;-&nbsp;
<util:link aclass="tbar" href="logout.js.vs?tgt=${location}"
@ -77,60 +77,60 @@
type="servlet"><util:font color="top.link">Create Account</util:font></util:link>
</frame:display_login>
</user:is_not_logged_in>
</util:font></TD></TR>
</TABLE>
</util:font></td></tr>
</table>
<util:comment>END PAGE HEADER</util:comment>
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<util:color name="left.bg"/>">
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr valign="top">
<td align="left" width="120" class="lbar" bgcolor="<util:color name="left.bg"/>">
<table align="left" width="120" cellpadding="0" cellspacing="0">
<util:comment>BEGIN LEFT SIDEBAR</util:comment>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><util:font color="left.fg" size="left">
<tr valign="top"><td align="left" class="lbar"><util:font color="left.fg" size="left">
<util:comment>variable menu</util:comment>
<frame:currentmenu/>
</util:font></TD></TR>
</util:font></td></tr>
<TR VALIGN=TOP><TD VALIGN=LEFT>&nbsp;</TD></TR>
<TR VALIGN=TOP><TD VALIGN=LEFT CLASS="lbar"><util:font color="left.fg" size="left">
<tr valign="top"><td align="left">&nbsp;</td></tr>
<tr valign="top"><td align="left" class="lbar"><util:font color="left.fg" size="left">
<util:comment>fixed menu</util:comment>
<frame:leftmenu name="fixed"/>
</util:font></TD></TR>
</util:font></td></tr>
<util:comment>END LEFT SIDEBAR</util:comment>
</TABLE>
</TD>
</table>
</td>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<util:color name="content.bg"/>" CLASS="content">
<td align="left" width="100%" bgcolor="<util:color name="content.bg"/>" class="content">
<util:comment>BEGIN PAGE CONTENT</util:comment>
<frame:content_here/>
<util:comment>END PAGE CONTENT</util:comment>
</TD>
</TR>
</td>
</tr>
<TR VALIGN=TOP>
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<util:color name="left.bg"/>">&nbsp;</TD>
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<util:color name="content.bg"/>" CLASS="footer">
<tr valign="top">
<td align="left" width="120" class="lbar" bgcolor="<util:color name="left.bg"/>">&nbsp;</td>
<td align="left" width="100%" bgcolor="<util:color name="content.bg"/>" class="footer">
<util:comment>PAGE FOOTER</util:comment>
<HR WIDTH="80%">
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT CLASS="footer">
<hr width="80%" />
<table align="center" border="0" cellpadding="0" cellspacing="6">
<tr valign="top">
<td align="right" class="footer">
<util:font color="content.fg" size="1"><util:stock_message key="footer-text"/></util:font>
</TD>
<TD <frame:if_QID>ROWSPAN=2</frame:if_QID> ALIGN=LEFT CLASS="footer"><frame:venice_logo/></TD>
</TR>
</td>
<td <frame:if_QID>rowspan="2"</frame:if_QID> align="left" class="footer"><frame:venice_logo/></td>
</tr>
<frame:if_QID>
<TR VALIGN=TOP><TD ALIGN=RIGHT CLASS="footer">
<tr valign="top"><td align="right" class="footer">
<util:comment>HITCOUNTER FOR QID "<frame:QID/>"</util:comment>
<%-- Reserved for future use --%>
</TD></TR>
</td></tr>
</frame:if_QID>
</TABLE>
</TD>
</TR>
</table>
</td>
</tr>
</TABLE>
</table>
</frame:body>
</HTML>
</html>