HTML 4.0 button/ Tag?

2003-05-29 Thread Josh McCulloch
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the button/ tag in HTML 4.0? I just found it 
listed in Web Design In A Nutshell.
To quote, Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images. These buttons can 
function as if it were a input type=button/submit/reset,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh



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


HTML 4.0 button/ Tag?

2003-05-29 Thread Josh McCulloch
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the button/ tag in HTML 4.0? I just found it 
listed in Web Design In A Nutshell.
To quote, Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images. These buttons can 
function as if it were a input type=button/submit/reset,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons: _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh



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


RE: HTML 4.0 button/ Tag?

2003-05-29 Thread Phillip Qin
This is the spec you should look for

http://www.w3.org/TR/html4/interact/forms.html#h-17.5

-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:17 PM
To: Struts Users Mailing List
Subject: HTML 4.0 button/ Tag?

(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the button/ tag in HTML 4.0? I just found it 
listed in Web Design In A Nutshell.
To quote, Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images. These buttons can 
function as if it were a input type=button/submit/reset,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons: _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh




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


Re: HTML 4.0 button/ Tag?

2003-05-29 Thread Joe Germuska
At 11:16 AM -0700 5/28/03, Josh McCulloch wrote:
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the button/ tag in HTML 4.0? I just found 
it listed in Web Design In A Nutshell.
To quote, Defines a 'button' that functions similar to buttons 
created with the input tag, but allows for richer rendering 
possibilities.
Buttons can contain content such as text and images. These buttons 
can function as if it were a input type=button/submit/reset,
but you can embed an image within the button (I might want to use it 
for displaying accessKeys on buttons _S_ave).

Should there be a html: tag to deal with this tag? Is this still 
part of the specification?
There only needs to be a tag-library tag if you need to dynamically 
change the attribute values of the tag as it is rendered.  I haven't 
used button much, so nothing comes to mind; I always thought you 
used it when you wanted some arbitrary javascript triggered without 
having to deal with the added semantics of a submit or reset button.

I guess if you wanted the label of the button to be looked up from a 
Struts message resources bundle, that would be a justification.  If 
you find yourself needing it, why not take a shot at writing the 
class yourself?  My first (modest) contribution to the Struts package 
was the tag handler for HTML frames.  I pretty much just checked out 
the source code and copied from existing stuff -- it's easier than 
you might think.

By the way, I have since vigorously sworn off using frames in all 
cases -- but when you can't convince the client that frames are evil, 
you sometimes need the html:frame tag...

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
If nature worked that way, the universe would crash all the time. 
	--Jaron Lanier

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


Button Tag

2002-11-14 Thread Savantraj, Chennamakal Subramanian
Hi,
Which Tag should be used to create a input type=button in STRUTS?
My requirement is I want to call different actions based on different Button
click.
Rgds

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---


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




Re: Button Tag

2002-11-14 Thread Karim Saloojee
Take a look at the RequestDispatcher. A good example can be found in Chucks
book at theserverside.com


- Original Message -
From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 10:57 AM
Subject: Button Tag


 Hi,
 Which Tag should be used to create a input type=button in STRUTS?
 My requirement is I want to call different actions based on different
Button
 click.
 Rgds

 ---
 This email is confidential and intended only for the use of the individual
 or entity named above and may contain information that is privileged. If
you
 are not the intended recipient, you are notified that any dissemination,
 distribution or copying of this email is strictly prohibited. If you have
 received this email in error, please notify us immediately by return email
 or telephone and destroy the original message. Thank you. - This mail is
 sent via Sony Asia Pacific Mail Gateway.
 ---


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




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




Re: Button Tag

2002-11-14 Thread Gemes Tibor
2002. november 14. 09:57 dátummal Savantraj, Chennamakal Subramanian ezt 
írtad:
 Hi,
 Which Tag should be used to create a input type=button in STRUTS?
 My requirement is I want to call different actions based on different
 Button click.

Read this: 

http://husted.com/struts/tips/003.html

Hth,

Tib

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




Re: Button Tag

2002-11-14 Thread Karim Saloojee
Oops

I meant the DispatchAction not the RequestDispatcher. Sorry - need more
sleep!

Take a look at Chapter 5 in Chucks book, the heading in ch 5 is The
org.apache.struts.actions.DispatchAction

Regards,
Karim

- Original Message -
From: Karim Saloojee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 11:10 AM
Subject: Re: Button Tag


 Take a look at the RequestDispatcher. A good example can be found in
Chucks
 book at theserverside.com


 - Original Message -
 From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, November 14, 2002 10:57 AM
 Subject: Button Tag


  Hi,
  Which Tag should be used to create a input type=button in STRUTS?
  My requirement is I want to call different actions based on different
 Button
  click.
  Rgds
 
  ---
  This email is confidential and intended only for the use of the
individual
  or entity named above and may contain information that is privileged. If
 you
  are not the intended recipient, you are notified that any dissemination,
  distribution or copying of this email is strictly prohibited. If you
have
  received this email in error, please notify us immediately by return
email
  or telephone and destroy the original message. Thank you. - This mail is
  sent via Sony Asia Pacific Mail Gateway.
  ---
 
 
  --
  To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 



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




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




Re: Button Tag

2002-11-14 Thread David Graham
See the user's guide section on html tags.

David







From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Button Tag
Date: Thu, 14 Nov 2002 16:57:06 +0800

Hi,
Which Tag should be used to create a input type=button in STRUTS?
My requirement is I want to call different actions based on different 
Button
click.
Rgds

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If 
you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway.
---


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


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Mark's Custom Button Tag

2002-04-19 Thread Galbreath, Mark

Here ya go! My Friday gift to the list.  Just modify were obvious (like
package name, class name, etc.) to suit your environment.

I hope this posts without getting too mangled by the mail server.

--
Usage:

maintenance:Button label=Confirm  width=%= buttonWidth % style=Acc
href=javascript:SaveCustomerOrder.submit() /

--
TLD:

?xml version = '1.0' encoding = 'windows-1252'?
!DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
taglib
  tlibversion1.0/tlibversion
  jspversion1.1/jspversion
  shortnamemaintenance/shortname
  urimaintenance.tld/uri
  infoMarko Sharko's JSP Button Tag/info
  tag
nameButton/name
tagclasscom.tessco.web.taglib.Button/tagclass
bodycontentJSP/bodycontent
attribute
namelabel/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
namewidth/name
requiredtrue/required
  rtexprvaluetrue/rtexprvalue
/attribute
attribute
namestyle/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
namehref/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameonClick/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
  /tag
/taglib

--
web.xml:

taglib
  taglib-urimaintenance.tld/taglib-uri
  taglib-location/WEB-INF/maintenance.tld/taglib-location
/taglib

-
The code:

package com.tessco.partner.web.maintenance.taglib;

import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.tagext.BodyContent;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.ServletRequest;
import java.io.PrintWriter;
import java.io.IOException;

/**
 * The button is an html table with the following layout:
 * TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0
 * TR
 * TD ROWSPAN=3  bgcolor=#26367A
 * IMG SRC=images/button_left.gif WIDTH=9 HEIGHT=26/TD
 * TD bgcolor=#26367A
 * IMG SRC=images/button_top.gif WIDTH=57 HEIGHT=3/TD
 * TD ROWSPAN=3 bgcolor=#26367A
 * IMG SRC=images/button_right.gif WIDTH=8 HEIGHT=26/TD
 * /TR
 * TR
 * TD valign=MIDDLE align=center bgcolor=#26367ASPAN
 *  class=buttonfont face=arial color=whitebButton Text/b
 *  /font/span/TD
 * /TR
 * TR
 * TD valign=bottom bgcolor=#26367A
 * IMG SRC=images/button_bottom.gif WIDTH=57 HEIGHT=3/TD
 * /TR
 * /TABLE
 */

public class Button extends TagSupport {
 // This is required so there's no default.
 String label = ;
 String width = ;
 String href = ;
 String onClick = ;
 String anchor = ;
 String endAnchor = ;
 String style = ;

/**
 * The label (text) to appear on the button
 * @param label   The text to appear on the button.  This becomes the
hyperlink
 *
 */
public void setLabel(String label) {
 this.label = label;
}

/**
 * The width of the button
 * @param width   The width of the button text area in pixels.  This value
is
 * used to adjust the width of the image that occurrs below and above the
text.
 * Setting this two small will result in a malformed button image.
 */
public void setWidth(String width) {
 this.width = width;
}

/**
 * The style of the button
 * @param style   This attribute determines how the button will look.
 * The style is concated with other information to determine reference
 * stylesheet attributes and the location of the button images.
 * The following stylesheet attributes are used.
 * buttonXBG - the background color of the button
 * buttonXText - the style of the text on the button
 * The images for the 3d look are obtained from:
 * /images/buttonX
 *
 * where X is the name of the style
 */
public void setStyle(String style) {
 this.style = style;
}

/**
 * The href for the hyperlink
 * @param href   Optional value for the href attribute for the hyperlink.
This
 * defaults to #top for Navigator compatability.
 */
public void setHref(String href) {
 this.href =  href=' + href + ' ;
 this.anchor = a;
 this.endAnchor = /a;
}

/**
 * The onClick event for the hyperlink
 * @param onClick  Optional Javascript code that should be executed when the
hyperlink 
 * is clicked.  This attribute automatically adds return false to prevent
the 
 * href from being processed.
 */
public void setOnClick(String onClick) {
 this.onClick =  onClick=\ + onClick + ;return false\ ;
 this.anchor = a;
 this.endAnchor = /a;
 
 if (this.href==) {
   this.href =  href='#top';
 } 
}

/**
 * Generates the html for the button.
 */
public int doEndTag() throws JspException {
 try {
  pageContext.getOut().println(TABLE BORDER=0 CELLPADDING=0
CELLSPACING=0);
  pageContext.getOut().println(TR);
  pageContext.getOut().println(TD ROWSPAN=3);
  pageContext.getOut().println(IMG SRC='images/button

Re: button tag

2002-01-05 Thread Ted Husted

It should work the way you describe. 

You might try changing the method to get, and see what shows up in the
query string. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Kuntz Peter, NY wrote:
 
 Hi,
 
 I have a question about the html: button tag. The discription about the
 property attribute of that tag is the following: Name of the request
 parameter that will be included with this submission, set to the specified
 value.. And additionally the value attribute has the following
 description: Value of the label to be placed on this button. This value
 will also be submitted as the value of the specified request parameter.
 
 As far as I understand these descriptions I would expect the value of the
 specified parameter in the HttpServletRequest object. That means when I call
 the getParameter(String) method with the specified name of that button tag I
 would expect to retrieve the value specified in the tag.
 I tried to do this but it didn't work. Am I wrong with my assumption.
 
 Peter
 DISCLAIMER: The information in this message is confidential and may be
 legally privileged. It is intended solely for the addressee.  Access to this
 message by anyone else is unauthorised.  If you are not the intended
 recipient, any disclosure, copying, or distribution of the message, or any
 action or omission taken by you in reliance on it, is prohibited and may be
 unlawful.  Please immediately contact the sender if you have received this
 message in error. Thank you
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




button tag

2002-01-03 Thread Kuntz Peter, NY

Hi,

I have a question about the html: button tag. The discription about the
property attribute of that tag is the following: Name of the request
parameter that will be included with this submission, set to the specified
value.. And additionally the value attribute has the following
description: Value of the label to be placed on this button. This value
will also be submitted as the value of the specified request parameter. 

As far as I understand these descriptions I would expect the value of the
specified parameter in the HttpServletRequest object. That means when I call
the getParameter(String) method with the specified name of that button tag I
would expect to retrieve the value specified in the tag.
I tried to do this but it didn't work. Am I wrong with my assumption.

Peter
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you

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




Radio-Button Tag

2001-08-09 Thread Metehan Selvi



Hi,
one question about Radio-Input Fields, which are 
implemented by the RadioTag-class:
How to set an 'element' as checked e.g. as a 
default value?
I haven't found a hint or an property for the 
radio-field, where i can set the property checked=true or something like 
that.

cheers
mete