true
to encode the servlet path first, false
to not do so.
* @return The fully-expanded servlet path.
*/
- final String expandServletPath(String spath)
+ final String expandServletPath(String spath, boolean encode)
{
StringBuffer buf = new StringBuffer("http://");
buf.append(request.getServerName());
if (request.getServerPort()!=80)
buf.append(':').append(request.getServerPort());
- buf.append(request.getContextPath()).append('/').append(spath);
+ if (encode)
+ buf.append(encodeServletPath(spath));
+ else
+ buf.append(request.getContextPath()).append('/').append(spath);
return buf.toString();
} // end expandServletPath
@@ -772,7 +840,7 @@ public class RequestImpl implements RequestInput
public String toString()
{
StringBuffer buf = new StringBuffer("{RequestImpl #");
- buf.append(serial).append("from [").append(request.getRemoteAddr()).append("] for ");
+ buf.append(m_serial).append("from [").append(request.getRemoteAddr()).append("] for ");
buf.append(request.getServletPath()).append("}");
return buf.toString();
@@ -2000,6 +2068,8 @@ class HTMLRenderingImpl implements HTMLRendering
return req.encodeServletPath(url);
else if (type==FRAME)
return req.encodeServletPath("frame/" + url);
+ else if (type==FULLSERVLET)
+ return req.expandServletPath(url,true);
else
throw new IndexOutOfBoundsException("invalid format type index for formatURL");
@@ -2102,13 +2172,13 @@ class HTMLRenderingImpl implements HTMLRendering
public String getUserPhotoTag(String url, Dimension size)
{
- StringBuffer buf = new StringBuffer("");
+ buf.append("\" alt=\"\" align=\"left\" border=\"0\" width=\"").append(size.width).append("\" height=\"");
+ buf.append(size.height).append("\" />");
return buf.toString();
} // end getUserPhotoTag
@@ -2160,21 +2230,21 @@ class HTMLRenderingImpl implements HTMLRendering
public String getCommunityLogoTag(String url)
{
- StringBuffer buf = new StringBuffer("");
+ buf.append("\" alt=\"\" border=\"0\" width=\"").append(sz.width).append("\" height=\"").append(sz.height);
+ buf.append("\" />");
return buf.toString();
} // end getCommunityLogoTag
public String expandServletPath(String spath)
{
- return req.expandServletPath(spath);
+ return req.expandServletPath(spath,false);
} // end expandServletPath
diff --git a/src/com/silverwrist/venice/ui/view/JSPView.java b/src/com/silverwrist/venice/ui/view/JSPView.java
index de1dfd3..e7e30d9 100644
--- a/src/com/silverwrist/venice/ui/view/JSPView.java
+++ b/src/com/silverwrist/venice/ui/view/JSPView.java
@@ -9,35 +9,36 @@
*
* The Original Code is the Venice Web Communities System.
*
- * The Initial Developer of the Original Code is Eric J. Bowersox \n");
+ out.write("
|