// Path: modules/pm_struts/src/org/jpos/ee/pm/struts/converter/DefaultStrutsConverter.java
// public class DefaultStrutsConverter extends Converter {
// 
//     @Override
//     public Object visualize(PMContext ctx) throws ConverterException {
//         Object s = ctx.get(PM_FIELD_VALUE);
//         if (s == null) {
//             return "void.jsp?text=";
//         }
//         if (s instanceof String && s.toString().contains(".jsp?") || s.toString().contains(".do?")) {
//             return s;
//         } else {
//             return "void.jsp?text=" + s;
//         }
//     }
// }


import org.jpos.ee.Constants;
import org.jpos.ee.pm.core.PMService;
import org.jpos.ee.pm.struts.converter.DefaultStrutsConverter;
/*
 * jPOS Project [http://jpos.org]
 * Copyright (C) 2000-2010 Alejandro P. Revilla
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jpos.ee.pm.struts;

/**This is an implementation of the PMService for struts.*/

/**
 * QBean for struts Presentation Manager service
 * 
 * @author jpaoletti
 */
public class PMStrutsService extends PMService implements Constants {

    @Override
    protected void initService() throws Exception {
        super.initService();
        if (getDefaultConverter() == null) {
// Path: modules/pm_struts/src/org/jpos/ee/pm/struts/converter/DefaultStrutsConverter.java
// public class DefaultStrutsConverter extends Converter {
// 
//     @Override
//     public Object visualize(PMContext ctx) throws ConverterException {
//         Object s = ctx.get(PM_FIELD_VALUE);
//         if (s == null) {
//             return "void.jsp?text=";
//         }
//         if (s instanceof String && s.toString().contains(".jsp?") || s.toString().contains(".do?")) {
//             return s;
//         } else {
//             return "void.jsp?text=" + s;
//         }
//     }
// }


// Path: modules/pm_struts/src/org/jpos/ee/pm/struts/PMStrutsService.java
import org.jpos.ee.Constants;
import org.jpos.ee.pm.core.PMService;
import org.jpos.ee.pm.struts.converter.DefaultStrutsConverter;

/*
 * jPOS Project [http://jpos.org]
 * Copyright (C) 2000-2010 Alejandro P. Revilla
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jpos.ee.pm.struts;

/**This is an implementation of the PMService for struts.*/

/**
 * QBean for struts Presentation Manager service
 * 
 * @author jpaoletti
 */
public class PMStrutsService extends PMService implements Constants {

    @Override
    protected void initService() throws Exception {
        super.initService();
        if (getDefaultConverter() == null) {
            setDefaultConverter(new DefaultStrutsConverter());