Package org.vfny.geoserver.form

Examples of org.vfny.geoserver.form.LoginForm


* @task TODO: add a page to change the username and password from the ui.
*/
public class LoginAction extends GeoServerAction {
    public ActionForward execute(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) {
        LoginForm loginForm = (LoginForm) form;
        String username = loginForm.getUsername();
        String password = loginForm.getPassword();

        //GlobalConfig global = (GlobalConfig) getServlet().getServletContext()
        //                                       .getAttribute(GlobalConfig.CONFIG_KEY);
        GeoServer geoserver = getWFS(request).getGeoServer();

View Full Code Here


public class LoginEditAction extends ConfigAction {
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            UserContainer user, HttpServletRequest request,
            HttpServletResponse response) {
       
        LoginForm loginForm = (LoginForm) form;
        String username = loginForm.getUsername();
        String password = loginForm.getPassword();
        String confirm = loginForm.getConfirm();

        GlobalConfig global = (GlobalConfig) getServlet().getServletContext()
                                                 .getAttribute(GlobalConfig.CONFIG_KEY);
        //Failed experiment, this stuff should really go in a validate method,
        //I think this is showing the weakness of both edit and non using Login
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.form.LoginForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.