Ignore:
Timestamp:
Sep 5, 2007, 5:48:53 PM (14 years ago)
Author:
Martin Svensson
Message:

References #364 Configuring the installation is allmost done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/plugindefinitions/index.jsp

    r3679 r3708  
    2828--%>
    2929<%@ page session="false"
     30  import="net.sf.basedb.core.Application"
    3031  import="net.sf.basedb.core.SessionControl"
    3132  import="net.sf.basedb.core.DbControl"
     
    129130    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    130131    cc.setId(0);
    131     redirect = editPage;
     132    if (Application.getNonCorePluginDirectory() == null)
     133    {
     134      redirect = editPage;
     135    }
     136    else
     137    {
     138      String pluginPath = Application.getNonCorePluginDirectory().getPath();
     139      redirect = "select_installation_type.jsp?ID="+ID+"&plugin_path="+pluginPath;
     140    }
     141  }
     142  else if("InstallationType".equals(cmd))
     143  {
     144    //Either manually or auto installation is selected
     145    if (request.getParameter("installationtypes").equals("autoinstall"))
     146    {
     147      String pluginPath = request.getParameter("plugin_path");
     148      redirect = "auto_install.jsp?ID="+ID+"&plugin_path="+pluginPath;
     149    }
     150    else if (request.getParameter("installationtypes").equals("manuellinstall"))
     151    {
     152      redirect = editPage;
     153    }
     154   
     155  }
     156  else if("LoadPlugins".equals(cmd))
     157  {
     158    //Loads plugins from jars that have been selected in auto_installer.jsp
     159    dc = sc.newDbControl();
    132160  }
    133161  else if ("UpdateItem".equals(cmd))
Note: See TracChangeset for help on using the changeset viewer.