You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sjones <sj...@yahoo.com> on 2003/06/03 17:05:29 UTC

Html Buttons and Struts

has any body used this class,  can you please

give you please explain it more in depth  than the author.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Html Buttons and Struts

Posted by sjones <sj...@yahoo.com>.
this class

/**
 * Copyright 2001-2003 Antonio W. Lagnada.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. The name "Antonio W. Lagnada" must not be used to endorse or
 *    promote products derived from this software without prior
 *    written permission. For written permission,
 *    please contact tony@lagnada.com
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL ANTONIO W. LAGNADA OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 */
package com.lagnada.j2ee.struts.htmlbutton;

import java.io.Serializable;

/**
 * HtmlButton
 */
public class HtmlButton implements Serializable {

    private String m_name = null;

    private Integer m_x = null;

    private Integer m_y = null;

    /**
     * Default Constructor
     */
    public HtmlButton() {
    }

    /**
     * Button Pressed
     * @return boolean
     */
    public boolean pressed() {
        return !(m_name == null || m_name.trim().length() <= 0)
            || (m_x != null || m_y != null);
    }

    /**
     * @return String
     */
    public String getName() {
        return m_name;
    }

    /**
     * @return Integer
     */
    public Integer getX() {
        return m_x;
    }

    /**
     * @return Integer
     */
    public Integer getY() {
        return m_y;
    }

    /**
     * Sets the name.
     * @param name The name to set
     */
    public void setName(String name) {
        m_name = name;
    }

    /**
     * Sets the x.
     * @param x The x to set
     */
    public void setX(Integer x) {
        m_x = x;
    }

    /**
     * Sets the y.
     * @param y The y to set
     */
    public void setY(Integer y) {
        m_y = y;
    }

}


"sjones" <sj...@yahoo.com> wrote in message
news:bbida5$i30$1@main.gmane.org...
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Html Buttons and Struts

Posted by sjones <sj...@yahoo.com>.
My HTML button has been solved.
I know have 2 different solutions.

HTMLButton.java
LookupDispatchAction


"sjones" <sj...@yahoo.com> wrote in message
news:bbida5$i30$1@main.gmane.org...
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Html Buttons and Struts

Posted by James Mitchell <jm...@apache.org>.
What class?


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org



----- Original Message ----- 
From: "sjones" <sj...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, June 03, 2003 11:05 AM
Subject: Html Buttons and Struts


> has any body used this class,  can you please
> 
> give you please explain it more in depth  than the author.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Html Buttons and Struts

Posted by sjones <sj...@yahoo.com>.
here is a link: http://j2ee.lagnada.com/struts/html-buttons.htm


"sjones" <sj...@yahoo.com> wrote in message
news:bbida5$i30$1@main.gmane.org...
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org