fixed several bugs related to SIG creation/deletion and a nasty brown paper

bag bug in Nuke Post!
This commit is contained in:
Eric J. Bowersox
2001-04-12 05:53:26 +00:00
parent 7e226040d4
commit 89429a4b40
6 changed files with 39 additions and 20 deletions

View File

@@ -193,6 +193,8 @@ public class SIGOperations extends VeniceServlet
// present the "Create New SIG" dialog
CreateSIGDialog dlg = makeCreateSIGDialog();
dlg.setupDialog(engine);
dlg.setFieldValue("language","en-US");
dlg.setFieldValue("country","US");
changeMenuTop(request);
return dlg;

View File

@@ -108,7 +108,7 @@ public class NewSIGWelcome implements JSPRender
public String getDisplayURL(RenderData rdat)
{
return rdat.getFullServletPath(entry_url);
return rdat.getCompleteServletPath(entry_url);
} // end getEntryURL

View File

@@ -149,6 +149,17 @@ public class RenderData
} // end getFullServletPath
public String getCompleteServletPath(String name)
{
StringBuffer buf = new StringBuffer("http://");
buf.append(request.getServerName());
if (request.getServerPort()!=80)
buf.append(':').append(request.getServerPort());
buf.append(request.getContextPath()).append('/').append(name);
return buf.toString();
} // end getCompleteServletPath
public String getEncodedServletPath(String name)
{
return response.encodeURL(this.getFullServletPath(name));