fixed HTML code generation in the main frame and in some of the JSP
tag classes
This commit is contained in:
parent
a0e50f4030
commit
6555709ca2
|
@ -9,9 +9,9 @@
|
||||||
*
|
*
|
||||||
* The Original Code is the Venice Web Communities System.
|
* 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
|
* 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):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
@ -61,14 +61,17 @@ public class FrameBannerAdTag extends VeniceTagSupport
|
||||||
{ // compose the HTML fragment
|
{ // compose the HTML fragment
|
||||||
tmp = advert.getLinkURL();
|
tmp = advert.getLinkURL();
|
||||||
if (tmp!=null)
|
if (tmp!=null)
|
||||||
write_data.append("<A HREF=\"").append(tmp).append("\">");
|
write_data.append("<a href=\"").append(tmp).append("\">");
|
||||||
write_data.append("<IMG SRC=\"").append(full_image_path).append("\" ALT=\"");
|
write_data.append("<img src=\"").append(full_image_path).append("\" alt=\"");
|
||||||
String tmp2 = advert.getCaption();
|
String tmp2 = advert.getCaption();
|
||||||
if (tmp2!=null)
|
if (tmp2!=null)
|
||||||
write_data.append(tmp2);
|
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)
|
if (tmp!=null)
|
||||||
write_data.append("</A>");
|
write_data.append("</a>");
|
||||||
|
|
||||||
} // end if
|
} // end if
|
||||||
else // path not computable - just write some junk
|
else // path not computable - just write some junk
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
*
|
*
|
||||||
* The Original Code is the Venice Web Communities System.
|
* 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
|
* 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):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
@ -44,7 +44,7 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
|
||||||
try
|
try
|
||||||
{ // write out what we came here to accomplish
|
{ // write out what we came here to accomplish
|
||||||
JspWriter out = pageContext.getOut();
|
JspWriter out = pageContext.getOut();
|
||||||
out.write("<BODY BGCOLOR=\"" + html.getColor(FRAME_BACKGROUND) + "\"");
|
out.write("<body bgcolor=\"" + html.getColor(FRAME_BACKGROUND) + "\"");
|
||||||
if (extra!=null)
|
if (extra!=null)
|
||||||
out.write(" " + extra);
|
out.write(" " + extra);
|
||||||
out.write(">");
|
out.write(">");
|
||||||
|
@ -52,7 +52,7 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
|
||||||
} // end try
|
} // end try
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{ // convert the I/O error into something the servlet engine can deal with
|
{ // 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
|
} // end catch
|
||||||
|
|
||||||
|
@ -65,12 +65,12 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
|
||||||
try
|
try
|
||||||
{ // write out what we came here to accomplish
|
{ // write out what we came here to accomplish
|
||||||
JspWriter out = pageContext.getOut();
|
JspWriter out = pageContext.getOut();
|
||||||
out.write("</BODY>");
|
out.write("</body>");
|
||||||
|
|
||||||
} // end try
|
} // end try
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{ // convert the I/O error into something the servlet engine can deal with
|
{ // 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
|
} // end catch
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
*
|
*
|
||||||
* The Original Code is the Venice Web Communities System.
|
* 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
|
* 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):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
@ -39,7 +39,7 @@ public class FrameHeadTag extends VeniceTagSupport
|
||||||
} // end try
|
} // end try
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{ // convert the I/O error into something the servlet engine can deal with
|
{ // 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
|
} // end catch
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
|
|
||||||
The Original Code is the Venice Web Communities System.
|
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
|
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):
|
Contributor(s):
|
||||||
--%>
|
--%>
|
||||||
|
@ -19,39 +19,39 @@
|
||||||
<%@ taglib uri="/tlds/user" prefix="user" %>
|
<%@ taglib uri="/tlds/user" prefix="user" %>
|
||||||
<%@ taglib uri="/tlds/util" prefix="util" %>
|
<%@ taglib uri="/tlds/util" prefix="util" %>
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<HTML>
|
<html>
|
||||||
<frame:head/>
|
<frame:head/>
|
||||||
|
|
||||||
<frame:body>
|
<frame:body>
|
||||||
<util:comment>BEGIN PAGE HEADER</util:comment>
|
<util:comment>BEGIN PAGE HEADER</util:comment>
|
||||||
<TABLE CLASS="tbar" BORDER=0 BGCOLOR="<util:color name="top.bg"/>" WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
|
<table class="tbar" border="0" bgcolor="<util:color name="top.bg"/>" width="100%" cellpadding="2" cellspacing="0">
|
||||||
<TR VALIGN=MIDDLE>
|
<tr valign="middle">
|
||||||
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2 CLASS="tbar">
|
<td align="left" width="20%" cellpadding="2" class="tbar">
|
||||||
<util:comment>Site logo</util:comment>
|
<util:comment>Site logo</util:comment>
|
||||||
<frame:sitelogo/>
|
<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:comment>Links to Front Page, Help, Find</util:comment>
|
||||||
<util:link aclass="tbar" href="top.js.vs"
|
<util:link aclass="tbar" href="top.js.vs"
|
||||||
type="servlet"><util:font color="top.link">Front Page</util:font></util:link>
|
type="servlet"><util:font color="top.link">Front Page</util:font>
|
||||||
<P>
|
</util:link><p />
|
||||||
<util:link aclass="tbar" href="/TODO"
|
<util:link aclass="tbar" href="/TODO"
|
||||||
type="absolute"><util:font color="top.link">Help</util:font></util:link>
|
type="absolute"><util:font color="top.link">Help</util:font></util:link>
|
||||||
|
|
|
|
||||||
<util:link aclass="tbar" href="find.js.vs"
|
<util:link aclass="tbar" href="find.js.vs"
|
||||||
type="servlet"><util:font color="top.link">Find</util:font></util:link>
|
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>
|
<util:comment>Banner Ad</util:comment>
|
||||||
<frame:banner_ad/>
|
<frame:banner_ad/>
|
||||||
</TD>
|
</td>
|
||||||
</TR>
|
</tr>
|
||||||
<util:comment>Login reminders</util:comment>
|
<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>
|
<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>
|
<frame:display_login>
|
||||||
-
|
-
|
||||||
<util:link aclass="tbar" href="logout.js.vs?tgt=${location}"
|
<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>
|
type="servlet"><util:font color="top.link">Create Account</util:font></util:link>
|
||||||
</frame:display_login>
|
</frame:display_login>
|
||||||
</user:is_not_logged_in>
|
</user:is_not_logged_in>
|
||||||
</util:font></TD></TR>
|
</util:font></td></tr>
|
||||||
</TABLE>
|
</table>
|
||||||
<util:comment>END PAGE HEADER</util:comment>
|
<util:comment>END PAGE HEADER</util:comment>
|
||||||
|
|
||||||
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
|
<table border="0" width="100%" cellpadding="2" cellspacing="0">
|
||||||
<TR VALIGN=TOP>
|
<tr valign="top">
|
||||||
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<util:color name="left.bg"/>">
|
<td align="left" width="120" class="lbar" bgcolor="<util:color name="left.bg"/>">
|
||||||
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
|
<table align="left" width="120" cellpadding="0" cellspacing="0">
|
||||||
<util:comment>BEGIN LEFT SIDEBAR</util:comment>
|
<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>
|
<util:comment>variable menu</util:comment>
|
||||||
<frame:currentmenu/>
|
<frame:currentmenu/>
|
||||||
</util:font></TD></TR>
|
</util:font></td></tr>
|
||||||
|
|
||||||
<TR VALIGN=TOP><TD VALIGN=LEFT> </TD></TR>
|
<tr valign="top"><td align="left"> </td></tr>
|
||||||
<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>fixed menu</util:comment>
|
<util:comment>fixed menu</util:comment>
|
||||||
<frame:leftmenu name="fixed"/>
|
<frame:leftmenu name="fixed"/>
|
||||||
</util:font></TD></TR>
|
</util:font></td></tr>
|
||||||
|
|
||||||
<util:comment>END LEFT SIDEBAR</util:comment>
|
<util:comment>END LEFT SIDEBAR</util:comment>
|
||||||
|
|
||||||
</TABLE>
|
</table>
|
||||||
</TD>
|
</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>
|
<util:comment>BEGIN PAGE CONTENT</util:comment>
|
||||||
<frame:content_here/>
|
<frame:content_here/>
|
||||||
<util:comment>END PAGE CONTENT</util:comment>
|
<util:comment>END PAGE CONTENT</util:comment>
|
||||||
</TD>
|
</td>
|
||||||
</TR>
|
</tr>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<tr valign="top">
|
||||||
<TD ALIGN=LEFT WIDTH=120 CLASS="lbar" BGCOLOR="<util:color name="left.bg"/>"> </TD>
|
<td align="left" width="120" class="lbar" bgcolor="<util:color name="left.bg"/>"> </td>
|
||||||
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<util:color name="content.bg"/>" CLASS="footer">
|
<td align="left" width="100%" bgcolor="<util:color name="content.bg"/>" class="footer">
|
||||||
<util:comment>PAGE FOOTER</util:comment>
|
<util:comment>PAGE FOOTER</util:comment>
|
||||||
<HR WIDTH="80%">
|
<hr width="80%" />
|
||||||
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
|
<table align="center" border="0" cellpadding="0" cellspacing="6">
|
||||||
<TR VALIGN=TOP>
|
<tr valign="top">
|
||||||
<TD ALIGN=RIGHT CLASS="footer">
|
<td align="right" class="footer">
|
||||||
<util:font color="content.fg" size="1"><util:stock_message key="footer-text"/></util:font>
|
<util:font color="content.fg" size="1"><util:stock_message key="footer-text"/></util:font>
|
||||||
</TD>
|
</td>
|
||||||
<TD <frame:if_QID>ROWSPAN=2</frame:if_QID> ALIGN=LEFT CLASS="footer"><frame:venice_logo/></TD>
|
<td <frame:if_QID>rowspan="2"</frame:if_QID> align="left" class="footer"><frame:venice_logo/></td>
|
||||||
</TR>
|
</tr>
|
||||||
<frame:if_QID>
|
<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>
|
<util:comment>HITCOUNTER FOR QID "<frame:QID/>"</util:comment>
|
||||||
<%-- Reserved for future use --%>
|
<%-- Reserved for future use --%>
|
||||||
</TD></TR>
|
</td></tr>
|
||||||
</frame:if_QID>
|
</frame:if_QID>
|
||||||
</TABLE>
|
</table>
|
||||||
</TD>
|
</td>
|
||||||
</TR>
|
</tr>
|
||||||
|
|
||||||
</TABLE>
|
</table>
|
||||||
</frame:body>
|
</frame:body>
|
||||||
</HTML>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user