fixed HTML code generation in the main frame and in some of the JSP
tag classes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user