Re: Html Buttons and Struts

2003-06-04 Thread sjones
This is probably the easiest way to go although using the
LookupDispatchAction
is "Struts" compliant since it extends the "Action" class.

http://j2ee.lagnada.com/struts/html-buttons.htm

"Mick Knutson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Minutes ago, I just got an html buton and LookupDispatchAction error.
> Please elaborate on your solution.
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
>
>
>
> >From: "sjones" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Html Buttons and Struts
> >Date: Tue, 3 Jun 2003 14:39:17 -0400
> >
> >My HTML button has been solved.
> >I know have 2 different solutions.
> >
> >HTMLButton.java
> >LookupDispatchAction
> >
> >
> >"sjones" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> > > has any body used this class,  can you please
> > >
> > > give you please explain it more in depth  than the author.
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Html Buttons and Struts

2003-06-04 Thread Mick Knutson
Minutes ago, I just got an html buton and LookupDispatchAction error.
Please elaborate on your solution.


---
Thanks...
Mick Knutson
---




From: "sjones" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Html Buttons and Struts
Date: Tue, 3 Jun 2003 14:39:17 -0400
My HTML button has been solved.
I know have 2 different solutions.
HTMLButton.java
LookupDispatchAction
"sjones" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Html Buttons and Struts

2003-06-04 Thread sjones
My HTML button has been solved.
I know have 2 different solutions.

HTMLButton.java
LookupDispatchAction


"sjones" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Html Buttons and Struts

2003-06-04 Thread Chen, Gin
This is not a standard struts class.
Shouldn't you email the author directly?
-Tim

-Original Message-
From: sjones [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: Html Buttons and Struts


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 [EMAIL PROTECTED]
 *
 * 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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Html Buttons and Struts

2003-06-04 Thread sjones
here is a link: http://j2ee.lagnada.com/struts/html-buttons.htm


"sjones" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Html Buttons and Struts

2003-06-04 Thread sjones
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 [EMAIL PROTECTED]
 *
 * 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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> has any body used this class,  can you please
>
> give you please explain it more in depth  than the author.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Html Buttons and Struts

2003-06-04 Thread James Mitchell
What class?


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



- Original Message - 
From: "sjones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Html Buttons and Struts

2003-06-04 Thread sjones
has any body used this class,  can you please

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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]