That's because, by design, a javascript submit() call does not invoke
whatever's established as the form's onSubmit action. It's not a struts
thing, it's a javascript/web browser thing.
In these situations, just call the validation function directly in your
javascript, e.g.:
function doIt(form)
Look at the and tags... I think that's
what you need.
> -Original Message-
> From: arnaud gonzales [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 07, 2005 12:42 PM
> To: user@struts.apache.org
> Subject: accessing from jsp to the size of a list property of
> my FormBean
>
> Hello,
You're not specifying the form name in your action definitions. Not
sure which action you're attempting to call, but add name="yourFormName"
to that action.
> -Original Message-
> From: Chris Pat [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 27, 2005 3:38 PM
> To: Struts Users Maili
A warning about using property="submit" for the html:submit tag... If
you need to use javascript to programmatically submit forms (i.e.
myForm.submit()), then using property="submit" will cause you problems
since you now have a form property called "submit", which overrides the
form's submit method
It's a type of temporary work visa in the US.
http://uscis.gov/graphics/howdoi/h1b.htm
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 08, 2005 5:33 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] Re: Fired was...Re: Struts Books
> Re
I personally don't mind them as long as they're flagged [OT] - that way,
my email filters work and I can choose to read them when/if I choose.
Besides - without these threads, we'd lose out on such timeless
analogies like the 'mud-wrestling with pigs' comment! :-)
- Scott
> -Original Messag
As Michael alluded to in his response, a session will be created when
the user hits index.jsp unless you explicitly specify session="false" in
the page directive. (See
http://java.sun.com/products/jsp/syntax/2.0/syntaxref2010.html#15653)
That's probably what's going on here.
- Scott
> -Origi
It's pretty simple; you just need to populate the form bean and put it
into request/session scope prior to forwarding to your jsp when in edit
mode. You'll also need a hidden variable in your form to flag whether
you're in edit or add mode, so your backend does the appropriate DB
action.
The mail
We had to walk in the snow. And we couldn't afford snow boots, so we
had to wrap newspapers around our feet!
...and they made us use Macs!!! ;-)
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 01, 2005 4:54 PM
To: Struts Users Mailing List
Subject:
This is more of a design issue, but I personally hate it (and find it
dangerous in some cases) when anything is "automatically" saved for the
user without their knowledge. What if I don't want my work on page A to
be saved and really just want to go to page B?
In situations like this, I prefer to
I wholeheartedly agree that often times, simplicity is the best way to
go for web (and webapp) UIs. However, end-user simplicity does not
always imply developer simplicity (i.e. bare-bones HTML).
Case in point: Google Maps vs. Mapquest, specifically in the Scroll Map
use case. Which one is simp
Should also point out that it's usually better to use
mapping.getInputForward() in these situations (instead of defining a
"failure" forward), since validator will always redirect the user back
to the "input" location if there's a validation error (and this is
usually the same place you want them t
This intrigued me, since our app also has some generated PDFs. Sure
enough, there's a double-get occurring w/ our IE clients (IE 6.0).
Problem is that the "USER_AGENT" header for get #1 & #2 are identical.
In fact, the only difference I can see in all headers is that get #1 has
an "ACCEPT-LANGU
I don't think you can do it quite in the manner that you're attempting,
but you can achieve this behavior by doing the following:
- in your action class, populate a request attribute when this page
refresh occurs
- forward back to your jsp as normal
- in your jsp, check for the existence of this
eresy!)
Not really, since you have to worry about explorer 5.0, 5.5, 6.0, 6.0 SP2 and,
end of the year, 7.0 Not to mention netscape, firefox, safari, konqueror and
opera.
Regards
Leon
> -Ursprüngliche Nachricht-
> Von: Scott Piker [mailto:[EMAIL PROTECTED]
> Gesendet: Donners
Quid pro quo for answering my CSS post... :-)
Just surround your pattern with start-of-line (^) and end-of-line ($)
chars and you should get the behavior you desire:
time
^((?:0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9])$
Incidentally, I came across this useful uti
Hey all,
Sorry for the OT post, but I know a number of folks here are quite
skilled with CSS. We're having some really annoying cross-browser CSS
formatting issues and I was wondering if someone could direct me to a
good site/forum where I could find common compatibility issues between
IE and oth
You have a typo there... valudate="true"
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 2:43 PM
To: user@struts.apache.org
Subject: Need Help Deciphering Error:
Hello,
I am getting the following error and I cannot quite figure out what
Yes, you can. Take a look at getResources(request)
- Scott
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:10 PM
To: user@struts.apache.org
Subject: message-resources question
In an action class, can one get access to the message-re
> disabled="<%myBean.isEnable%>"/>
>
> no errors thrown but It does nothing, it doesn't even outputs the
disabled on html tag.
>
"does nothing" means what? Nothing rendered, or does it render an
tag without the disabled flag?
I think you want to use !myBean.isEnable().
- Scott
---
> When using tiles this way, does this mean that any forward I define in
> my struts-config.xml should be a valid Tiles Definition?
>
> Would that then imply that every page in my application is specified
> by a tiles Definition, and that's how I GET to any given page?
Yes, that's typically the w
You usually want to avoid doing this because you lose a lot of
flexibility, but you can pretty easily simulate this behavior by just
defining an empty message in your .properties file with one argument:
message.custom={0}
and then use the arg0 slot for your hard-coded custom message
new ActionMe
Yes, it's pretty straightforward to do this with just lists and DHTML.
You definitely don't need an applet for this.
See: http://www.gazingus.org/html/Using_Lists_for_DHTML_Menus.html
>>> [EMAIL PROTECTED] 2/11/2005 9:47:36 AM >>>
Hi,
I am having the problem of designing my main menu. My main
Have you taken a look at the Struts Workflow extension
(http://www.livinglogic.de/Struts/) ?
>>> [EMAIL PROTECTED] 1/26/2005 10:28:49 AM >>>
I am migrating to Struts from an existing webapp. One of the issues
with the
old architecture was managing the flow control logic. Currently we
track in
t
How dynamic do you need the messages to be? Can't you just use argument
substitution in your messages?
e.g.:
error.message="{0} must be between {1} and {2}."
new ActionMessage("error.message", fieldName, minVal, maxVal);
>>> [EMAIL PROTECTED] 1/18/2005 6:07:34 PM >>>
Anyone know how to pas
How dynamic do you need the messages to be? Can't you just use argument
substitution in your messages?
e.g.:
error.message="{0} must be between {1} and {2}."
new ActionMessage("error.message", fieldName, minVal, maxVal);
>>> [EMAIL PROTECTED] 1/18/2005 6:07:34 PM >>>
Anyone know how to pas
It's actually pretty straightforward. Just define a "title" attribute in your
tiles-defs, as you would any other attribute. Override it for each page that requires
a different title. For example:
tiles-defs.xml:
*
27 matches
Mail list logo