RE: Difference between and JS submit.

2005-11-07 Thread Scott Piker
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)

RE: accessing from jsp to the size of a list property of my FormBean

2005-11-07 Thread Scott Piker
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,

RE: newbie...but not stupid...so I thought

2005-07-27 Thread Scott Piker
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

RE: Which button was pressed?

2005-07-26 Thread Scott Piker
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

RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-08 Thread Scott Piker
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

RE: [OT] Off topic threads

2005-06-30 Thread Scott Piker
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

RE: Struts and Sessions Problem

2005-06-29 Thread Scott Piker
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

RE: Populating the ActionForm without using the reset method?

2005-06-29 Thread Scott Piker
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

RE: [OT] Business Layer Ideas

2005-06-01 Thread Scott Piker
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:

RE: Double submit and Implied Save

2005-04-27 Thread Scott Piker
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

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Scott Piker
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

RE: Action Question

2005-03-23 Thread Scott Piker
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

RE: Output PDF

2005-03-14 Thread Scott Piker
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

RE: Struts ActionForward to HTML anchor

2005-03-11 Thread Scott Piker
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

RE: [OT] CSS site/forum ?

2005-03-10 Thread Scott Piker
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

RE: time validation mask (hh:mm)

2005-03-10 Thread Scott Piker
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

[OT] CSS site/forum ?

2005-03-10 Thread Scott Piker
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

RE: Need Help Deciphering Error:

2005-03-02 Thread Scott Piker
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

RE: message-resources question

2005-02-24 Thread Scott Piker
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

RE: Checkbox problem again

2005-02-24 Thread Scott Piker
> 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 ---

RE: Tiles - a reality check (contains many details) - Am I using this thing right?

2005-02-22 Thread Scott Piker
> 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

Re: ActionMessage without using a key from application.properties

2005-02-17 Thread Scott Piker
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

[OT] Re: Need guidance in the presentation layer

2005-02-11 Thread Scott Piker
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

Re: Flow Control, Is there a good way?

2005-01-26 Thread Scott Piker
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

Re: ActionMessages

2005-01-19 Thread Scott Piker
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

Re: ActionMessages

2005-01-19 Thread Scott Piker
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

Re: Struts Tiles and Internationalization

2004-10-27 Thread Scott Piker
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: *