RE: Re: Validation only occurs client side

2005-03-25 Thread tarek.nabil
Thanks Bill. Actually, I had tried that by overriding validate in my form, calling super.validate() and checking the return value. I found that validate in the parent class "ValidatorForm" returns an empty ActionErrors object. So, that means the form is passing the validation, which is really stran

Re: Where to store application settings

2005-03-25 Thread Craig McClanahan
On Fri, 25 Mar 2005 18:35:12 + (UTC), John Brayton <[EMAIL PROTECTED]> wrote: > Laurent free.fr> writes: > > I have a few settings in my webapp (address of the LDAP server, location > > of 2 or 3 files), which are in the source code at the moment. This makes > > it difficult to change them (an

Re: PDF of User's Guide

2005-03-25 Thread Ted Husted
Sadly not, unless there is one off-site somewhere :( -Ted. On Fri, 25 Mar 2005 14:07:47 -0600, Justin Morgan <[EMAIL PROTECTED]> wrote: > I apologize in advance if this is a trivial question... > > I poked around the Struts website, but I was unable to find a PDF > version of the User's Guide >

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Frank W. Zammetti
Just read that... Yeah, all good points, but I think one makes all the difference: differentiating between a web APPLICATION and a web SITE. I have no problem agreeing that a web SITE probably shouldn't use this. I would even go so far as to say that relatively simple web APPLICATIONS shouldn'

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Frank W. Zammetti
Yeah, that would be cool... but then again you have to ask the question of whether there is a true benefit or if it's just for the sake of doing something cool, not that I'm against that :) I'm not sure I'd want to do this with an existing app, not sure it'd really be worth it (unless you have

Re: Exceptions and ActionErrors

2005-03-25 Thread Hubert Rabago
I can't remember personally running across this situation, and maybe that's because what I try to communicate changes between levels/tiers. In the business tier, I tend to log messages that would help me debug problems should any arise. Hopefully, I would log parameters and values calculated/disc

RE: Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Slattery, Tim - BLS
> I thought when the form is submitted, Strut will re-construct > the collection of objects with values from the input form. > Therefore, I don't have to specify the Collection/List size > in the form bean constructor. I can tell you from bitter experience that it does not work that way. The

RE: Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Phan, Hienthuc T (Rosetta)
That's not it. I still get same error. I thought when the form is submitted, Strut will re-construct the collection of objects with values from the input form. Therefore, I don't have to specify the Collection/List size in the form bean constructor. -Original Message- From: Slattery,

RE: focussing on image in jsp

2005-03-25 Thread Greg Pelly
Another approach would be to have the image be an tag. Then you could add an "onload=document.form.element.focus()" to your tag. HTH, Greg -Original Message- From: Vilpesh Mistry [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 5:38 AM To: Struts Users Mailing List; [EMAIL PROTE

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Erik Weber
Ah I was just thinking about some web apps I have that basically just refresh combo boxes on POSTs using onchange, one at a time. It would be kind of cool to try to embed some new JavaScript like yours and put some new URLs on the app server to take advantage of this kind of thing, but without

RE: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Justin Morgan
On a slightly tangential note, here's one opinion on XMLHttpRequest usability: http://www.baekdal.com/articles/Usability/XMLHttpRequest-guidelines/ I tend to agree with most, but not all of it. -Justin -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Frank W. Zammetti
I'm not sure I follow Erik... I know I've only used this in Intranet-based applications because of the browser support... No sense locking out anyone using anything but the latest versions (although the version support seems to be better than I had thought frankly)... You can do basically this

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Erik Weber
Thanks for the example. I copied the source. I suppose you could write some JavaScript that would run on more browsers that would try to reload a combo box, but would submit the form if the reload failed? That way you wouldn't have to be as worried about browser support and could possibly work

RE: using with Tiles and Struts

2005-03-25 Thread Fumo, Vince
thank you.. I totally missed that.. Appreciated! -Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 2:57 PM To: 'Struts Users Mailing List' Subject: RE: using with Tiles and Struts Ah. Yes, that's the problem... The tag is the "rt" version

PDF of User's Guide

2005-03-25 Thread Justin Morgan
I apologize in advance if this is a trivial question... I poked around the Struts website, but I was unable to find a PDF version of the User's Guide (http://struts.apache.org/userGuide/index.html). Is there a PDF version of this resource out there? Thanks, -Justin -

Exceptions and ActionErrors

2005-03-25 Thread Matt Hughes
In my current application, business logic is often scattered throughout my Action classes. I am trying desperately to undo this 8th deadly sin, and while I have, I've noticed how Exception(s) and ActionError(s) are really being used with the exact same functionality. You might see something li

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Frank W. Zammetti
I'm sure what you've found on the net is sufficient, but in case it isn't, here's a quick example I just threw together: http://www.omnytex.com/XMLHTTPRequestExample.htm Note that if a URL you are trying to access isn't in the same domain, then at least on Firefox you will get an access denied e

RE: Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Slattery, Tim - BLS
> I'm trying to use Strut indexed tag but keep getting > java.lang.IndexOutOfBoundsException: Index: -9. It > displays with correct values but when the form is submitted, > I got the error. Below is a snip of my code. Do you know > what's wrong with it? When you submit your form, the

Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Phan, Hienthuc T (Rosetta)
Hello, I'm trying to use Strut indexed tag but keep getting java.lang.IndexOutOfBoundsException: Index: -9. It displays with correct values but when the form is submitted, I got the error. Below is a snip of my code. Do you know hat's wrong with it? JSP code:

RE: using with Tiles and Struts

2005-03-25 Thread Benedict, Paul C
Ah. Yes, that's the problem... The tag is the "rt" version (run time) which does not accept expressions. JSTL comes with 2 sets of tags. One el (expression-language) and the other rt (runtime), which allows scriplets to be entered into tags. Download them here: http://jakarta.apache.org/site/dow

RE: using with Tiles and Struts

2005-03-25 Thread Fumo, Vince
I'm assuming you mean the jar? It's just the usual jstl.jar and the tld is fmt.tld hnm.. I just looked at the tld and I've got class names like : Maps key to localized message and performs parametric replacement message org.apache.taglibs.standard.tag.rt.fmt.MessageTag

Re: Debugging struts application

2005-03-25 Thread Martin Seebach
That looks really nice, thanks! But will that tell me why Tomcat says that my action is unavailable? Venlig hilsen Martin Seebach John Hyun wrote: If you use eclipse you can get the tomcat-eclipse plugin and this will let you debug your web application (including tomcat and any supporting libr

RE: using with Tiles and Struts

2005-03-25 Thread Benedict, Paul C
Did you accidentally include the run-time version of fmt? -Original Message- From: Fumo, Vince [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 2:38 PM To: 'Struts Users Mailing List' Subject: RE: using with Tiles and Struts That was close to the first way I went about it. I did

Re: Debugging struts application

2005-03-25 Thread John Hyun
If you use eclipse you can get the tomcat-eclipse plugin and this will let you debug your web application (including tomcat and any supporting libraries, i.e. struts). The plugin is at: http://www.sysdeo.com/eclipse/tomcatPlugin.html You will need to download the source code of struts and

RE: using with Tiles and Struts

2005-03-25 Thread Fumo, Vince
That was close to the first way I went about it. I did the following: and then I was able to access the key just fine ( I did a test of and got "home.title"), proving that the problem wasn't in the way I was using the tiles attribute. For some reason, when I plugged in : I got the usual ??

RE: using with Tiles and Struts

2005-03-25 Thread Benedict, Paul C
Vince, You need to import the Tiles attribute before you reference it: Thanks, Paul -Original Message- From: Fumo, Vince [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 2:11 PM To: 'user@struts.apache.org' Subject: using with Tiles and Struts I am building a Struts Web

using with Tiles and Struts

2005-03-25 Thread Fumo, Vince
I am building a Struts Web application and I'm using Tiles for the first time. I have it all set up and working nicely. My problem comes in the fact that I want to use a standard messages.resources file for my page titles. For example home.title=Main Home Page info.title=Intro Page etc. I am u

Debugging struts application

2005-03-25 Thread Martin Seebach
Hi, I'm working on my first struts project, and I've got things working, little by little. One thing that I can't seem to resolve, is debugging information - currently an action fails with "Servlet action is currently unavailable", but I can't find out what I did på make it become unavailable.

Re: Where to store application settings

2005-03-25 Thread John Brayton
Laurent free.fr> writes: > I have a few settings in my webapp (address of the LDAP server, location > of 2 or 3 files), which are in the source code at the moment. This makes > it difficult to change them (and I have to recompile every time). I like to store settings that a system administrator w

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Erik Weber
If you could write your state machine once as part of your server application, use full page reloads as a first implementation, and then later use the technique to segment your page reloads into partial page reloads, without having to redo any of the logic, then you'd have something . . . Erik

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Angie Lin
I used this as a starting point: http://developer.apple.com/internet/webcontent/xmlhttpreq.html and I coded a Struts action to return my XML. Angie On Mar 25, 2005, at 9:36 AM, Stéphane Zuckerman wrote: I would highly recommend using XmlHttpRequest (aka ajax), which is much more user-friendly, m

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
OK, I found it and that works. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: George Sexton [mailto:[EMAIL PROTECTED] > Sent: Friday, March 25, 2005 10:45 AM > To: 'Struts Users Mailing List' > Subject: RE: Newbie Help html

Re: Where to store application settings

2005-03-25 Thread K.C. Baltz
There must be a dozen possible answers to this one. I can tell you what we do and say it works for us. We use a combination of settings methods. Some web settings go in the web.xml in a element. Things that are non-web specific go into the Java System Preferences. I was initially skeptical

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
OK, I found the EL stuff. I'll try it. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: George Sexton [mailto:[EMAIL PROTECTED] > Sent: Friday, March 25, 2005 10:38 AM > To: 'Struts Users Mailing List'; 'Hubert Rabago' > Subje

Re: [OT] i18n: fmt:message versus bean:message

2005-03-25 Thread Angie Lin
Thanks for the link. Unfortunately, that appears to only talk about when your preferred locale isn't found at all (i.e. at the file level) and that's where JSTL and Struts diverge on finding the "next best match". My problem is that I do have a resource file for the preferred locale, but it's

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
How would I do this? I upgraded all of the jars to 1.2.4 version of struts, and copied the TLDs and DTDs, but the READONLY attribute is still not set. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Hubert Rabago [mailto:[EMAI

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Stéphane Zuckerman
I would highly recommend using XmlHttpRequest (aka ajax), which is much more user-friendly, much quicker to use and more flexible than reloading the page each time the user clicks on something. This is a solution I wasn't aware of... And it would be a really great one, provided I could find a way

Re: Beginner question: No action instance for path /anzeigen could be created

2005-03-25 Thread Wolfgang Rinnert
From: <[EMAIL PROTECTED]> ... You forgot to extend "Action" class in your own action. Here is why you got a ClassCastException. Thanks a lot - that was it. 8-) Regards, Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
The readonly attribute is not output. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Friday, March 25, 2005 9:42 AM > To: Struts Users Mailing List > Subject: Re: Newbie Help ht

Re: Newbie Help html:text conditional arguments

2005-03-25 Thread Hubert Rabago
It's possible you just need to update your taglib declarations to use the EL version of the tags. Hubert On Fri, 25 Mar 2005 11:41:41 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > What is it doing wrong? Getting errors? What does the resulting html src > code look like? > > George Sexton wro

Re: Newbie Help html:text conditional arguments

2005-03-25 Thread Rick Reumann
What is it doing wrong? Getting errors? What does the resulting html src code look like? George Sexton wrote the following on 3/24/2005 10:45 PM: I'm running into a problem with Struts, and I admit I'm a newbie to it. I have a line in a JSP file: What I'd like to do is conditionally have readonl

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread K.C. Baltz
I agree with those who suggest inline updating use Javascript. I've written some code to handle paging of a table this way so that flipping to the next page of results doesn't result in a whole page refresh. What I would add is that it can be very simple because Javascript allows you to repla

Where to store application settings

2005-03-25 Thread Laurent
Hi, I have a few settings in my webapp (address of the LDAP server, location of 2 or 3 files), which are in the source code at the moment. This makes it difficult to change them (and I have to recompile every time). Where is the best place to store these kinds of settings? I thought of using a Res

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Laurent
StÃphane Zuckerman wrote: > > 2Â) When I select "foo", then some javascript reloads the page (it does > a post) with the "foo" argument, and the rest of the JSP is loaded. This > is the way I'd like to take, since some informations mustn't be in the > clear uselessly. > > My problem is that I don

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Stéphane Zuckerman
Thanks to both of you, Frank and Erik. I think I'll use a single action with states, as Erik suggested (I had this solution on my mind myself, but I wanted to check whether a better solution existed for my needs). - To unsubscr

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Erik Weber
Stéphane Zuckerman wrote: Hello, I am to write JSP pages with a form that has some items (lists, or checkboxes) that depend on previous choices from the same form. So here I have two choices basically : 1°) Load all the information that is possibly needed for a given page, hide it, and only sho

Re: Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Frank W. Zammetti
There are two solutions that I have used for years that I firmly believe to be better... (1) Simply use iFrames. The downside is that browser compatibility still leaves a little to be desired, but I *pretty* sure all the modern browsers support them. Also, depending on the way your security w

RE: [OT] i18n: fmt:message versus bean:message

2005-03-25 Thread David Suarez
I haven't been using JSTL for i18n yet, just struts taglibs so I found the below very interesting when considering a move... I found this on the web: http://www.junlu.com/msg/30187.html The link suggests if you have a preferred approach, you can change the jstl resources configured to be used s

Re: focussing on image in jsp

2005-03-25 Thread Vilpesh Mistry
hi why not have a anchor near or above image and focus or move to that anchor thanks --- Raghuveer Vellanki <[EMAIL PROTECTED]> wrote: > > can any one provide information on , > focussing on image in jsp when page loads. > > > >

Best practice for "dynamic reloading" of a part of the JSP ?

2005-03-25 Thread Stéphane Zuckerman
Hello, I am to write JSP pages with a form that has some items (lists, or checkboxes) that depend on previous choices from the same form. So here I have two choices basically : 1°) Load all the information that is possibly needed for a given page, hide it, and only show what is relevant with som

Struts Password Validators

2005-03-25 Thread Prashant Reddy
Are there any Struts Password validators that verify if the password is part of a "dictionary" ? Obviously building strong passwords needs web applications to check against a dictionary. Prashant - To unsubscribe, e-mail: [EMA

focussing on image in jsp

2005-03-25 Thread Raghuveer Vellanki
can any one provide information on , focussing on image in jsp when page loads. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]