/html:cancel
Adam
On 03/14/2004 12:56 AM Dean A. Hoover wrote:
I have an html:form with a
html:submit and an html:cancel.
According to the documentation for
html:cancel:
Pressing of this submit button causes
the action servlet to bypass calling the
associated form bean validate() method.
I tried
javascript validation.
The cancel button should look like this:
input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true; /
The JSP should look like this:
html:cancelCancel or whatever/html:cancel
Adam
On 03/14/2004 12:56 AM Dean A. Hoover wrote:
I have
onclick=bCancel=true; /
The JSP should look like this:
html:cancelCancel or whatever/html:cancel
Adam
On 03/14/2004 12:56 AM Dean A. Hoover wrote:
I have an html:form with a
html:submit and an html:cancel.
According to the documentation for
html:cancel:
Pressing of this submit button causes
Adam,
OK, I get that part now... I mistakenly changed
html:submit property=methodbean:message
key=button.cancel//html:submit
to
html:cancel property=methodbean:message
key=button.cancel//html:cancel
which turns into
input type=submit name=method value=Cancel onclick=bCancel=true;
instead
mistakenly changed
html:submit property=methodbean:message
key=button.cancel//html:submit
to
html:cancel property=methodbean:message
key=button.cancel//html:cancel
which turns into
input type=submit name=method value=Cancel onclick=bCancel=true;
instead of what you showed me:
input type=submit name
I have an html:form with a
html:submit and an html:cancel.
According to the documentation for
html:cancel:
Pressing of this submit button causes
the action servlet to bypass calling the
associated form bean validate() method.
I tried it and it did validation anyway.
Then I looked at the generated
Not as such. What you can do is have the Action class look for a a
cancel forward when there is a cancelled command. This lets you define
a local cancel forward when needed or rely on a global one otherwise.
HTH, Ted.
Gandle, Panchasheel wrote:
Is there a way to go back to previous, previous
Is there a way to go back to previous, previous page
without having a extra forward in the config file.
say I'm on list page
then I go to add page
which calls pageAddAction on cancel
I want to go back to list page and not on pageAdd when users cancel it.
action pageAdd
input list
action
Is it just me, or do these objects have no intrinsic affect on html:text
objects?
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Tuesday 10 June 2003 14:30, Mark Galbreath wrote:
Is it just me, or do these objects have no intrinsic affect on html:text
objects?
From which perspective do you mean? Client or server?
The reset is basically an html input of type reset which will effect the page
on the client side, while
Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:51 PM
To: Struts Users Mailing List
Subject: Re: html:reset and html:cancel
On Tuesday 10 June 2003 14:30, Mark Galbreath wrote:
Is it just me, or do these objects have no intrinsic affect on
html:text objects?
From which perspective
). For client approach, you must do as you suggested (JavaScript,
isn't it wonderful?). For a server-side clear, just use html:cancel but
change it to show Reset (html:cancel value=Reset). Read up on the
docos for this one. There are a couple of gotcha's.
So, I hope this clears things up
Using html:reset/ or html:cancel does not clear the entered data to
defaults. This is before a submit, typically when a user has entered a
bunch of data and realized he was looking at the wrong ledger and wants to
reset everything to 0. It's not working. And this shouldn't be rocket
science
Hi all,
I have a LookupDispatchAction that my jsp is going to. I need to
provide cancel functionality for this page. I tried to use the html:cancel
but with the property on it, it still tries to perform the validation. I
know its documented but is there a way around it? How do you skip
Hi,
I would like to use a image button (html:image..) instead of html:cancel/.
How can I do that? It also fine of I have to handle that in the Action class.
Zsolt
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
I have problem with the html:cancel tag in STRUTS 1.02
I have an Action class that create an instance of a ActionForm, populate
it with data and put it in the session (session.setAttribute). Then my
action class redirect the request to a JSP page that display the data
from the sessions
From everything that I can tell when using the html:cancel/ tag, my
perform() method in my Action class never seems to get executed. It
appears that after pressing the cancel button that the forward tag
named as cancel in my action mapping in the struts-config file is used
and forwards
It turns out that on our project they are overriding several methods in
the ActionServlet one of which changes the way the cancel button is
handled.
On Fri, 12 Jul 2002, Paul McKinney wrote:
From everything that I can tell when using the html:cancel/ tag, my
perform() method in my Action
Is there a way to achieve html:cancel characteristics with an input
image? I'd like to call isCancelled() in my perform() method when a cancel
image is pressed. Does the HTML tag library support that?
Thanks,
George Cutrell
Technical Manager, Wireless Applications Development
Nextel
html:image src=images/cancel.gif border=0
property=org.apache.struts.taglib.html.CANCEL/
-Original Message-
From: Cutrell, George [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 4:45 PM
To: 'Struts Users Mailing List'
Subject: How to achieve html:cancel but with an image
Hi,
Does anyone know how to associate an image with the html:cancel tag?
Thanks.
-Nimmi
21 matches
Mail list logo