Re: request between actions

2004-12-01 Thread brenmcguire
It seems that a bug report connected to this problem has been posted. Take a look to: http://issues.apache.org/bugzilla/show_bug.cgi?id=32134 I think the way to work around to it is to put in the tag the attribute: contextRelative="true" Or maybe you could download the CVS version of Struts (ok ok

Re: message-resources in struts-config.xml won't work!

2004-12-01 Thread René Thol
Hello again, Lane, Brad schrieb: Use key=""/> Unfortunately this did not change anything. I'm still getting this error. Kind regards -- René Thol E-Mail: [EMAIL PROTECTED] ---

RE: Using a key as var-value in validator

2004-12-01 Thread Kinjal Sonpal
Ram, Thanks for replying back. > If you have defined resource bundle in struts config & are able to > access key from jsp then no additional step/configuration > is required to > access them in validation file. The arg/msg lookup resource bundle > defined for the application and then pick up valu

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread David G. Friedman
Niall, Derek isn't crazy and this looks like a bug to me IF your args try to use 'resource="true"'. I duplicated the problem using Struts 1.2.4 with the commons validator 1.1.3 and 1.1.4 jars. Sadly, the java code suggests resource="true" works in 1.1.4 but I can't get it to work even with a new

RE: nested tiles

2004-12-01 Thread David G. Friedman
Bill, That was very nice of you. I'll have to add a complementary post about using html tags with the name="SomeBeanInAScopeName" to access various beans inside the various tiles. I posted about how to do that just this week. Regards, David -Original Message- From: Bill Keese [mailto:[

Re: request between actions

2004-12-01 Thread Bill Keese
>I have an action that forwards to another action, and i'm loosing request parameters. If you need to pass parameters to the 2nd action (either the same parameters or different ones), AND you need to forward using redirect="true" (because you want the URL displayed in the browser URL bar to be

Re: nested tiles

2004-12-01 Thread Bill Keese
FYI, I went ahead and added a wiki page for this. Apparently this is the first wiki page on general tile use (?) http://wiki.apache.org/struts/StrutsDocTiles (if you see any mistakes please correct them. or if anyone has any other tips on tiles please add them.) Bill

RE: problem with required validation

2004-12-01 Thread David G. Friedman
Rajesh, What version of Struts or commons validator are you using? I'm on Struts 1.2.4 (it has the Commons Validator 1.1.3) and both the JavaScript AND the server-side Java class trim off leading and trailing white space characters for the "required" validation. Yes, I read the code in both pla

problem with required validation

2004-12-01 Thread Rajesh
Hai all in validation of required field when user gives just a spaces it considereds it as charectors i want to stop this that even if user types blank speces i need to specify that he must type letters of numbers i dont want to use mask here Regards, Rajmahendra R. Hegde GK Bharani Soft

problem with required validation

2004-12-01 Thread Rajesh
Hai all in validation of required field when user gives just a spaces it considereds it as charectors i want to stop this that even if user types blank speces i need to specify that he must type letters of numbers i dont want to use mask here Regards, Rajmahendra R. Hegde GK Bharani Soft

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Niall Pemberton
You need to specify maxlength and minlength variables. minlength10 maxlength20 Alternatively, if its an integer field you could use the intRange validator instea

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread David G. Friedman
Derek, I'm seeing the same thing you described. I'm sorry I didn't believe you. Sadly, I'm having a HELL of a time figuring out what's wrong because I recently upgraded my development setup to Struts 1.2.4 and Tomcat 5.5.4 and haven't used validation in a while. Trying the 1.1.4 validator binary

Re: doc URL/struts hosts

2004-12-01 Thread Kevin Burke
D. Stimits wrote: I'm looking at: http://struts.apache.org/faqs/kickstart.html On this it mentions a URL for struts hosting: http://struts.sourceforge.net/commnity/index.html Unfortunately that doesn't exist. I'm wondering if there is an updated list of various hosting services that make struts av

doc URL/struts hosts

2004-12-01 Thread D. Stimits
I'm looking at: http://struts.apache.org/faqs/kickstart.html On this it mentions a URL for struts hosting: http://struts.sourceforge.net/commnity/index.html Unfortunately that doesn't exist. I'm wondering if there is an updated list of various hosting services that make struts available.

RE: Adding rows (beans) to dynamic form

2004-12-01 Thread Jim Barrows
> -Original Message- > From: Daffin, Miles (Company IT) > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 2:27 PM > To: Struts Users Mailing List > Subject: Adding rows (beans) to dynamic form > > > Hi All, > > I apologise in advance for this question - but I have > sea

Re: nested tiles

2004-12-01 Thread Stefan Clos
Yes it works. Here is my working configuration. Thank you very much. tiles-def.xml: --- layout.jsp -- Bill Keese

Adding rows (beans) to dynamic form

2004-12-01 Thread Daffin, Miles (Company IT)
Hi All, I apologise in advance for this question - but I have searched/tried all day without nailing a solution. I am using DynaValidatorActionForm. One of the fields is a list of qualifications. Each qualification has three fields (I have implemented this as a simple custom bean). I want the

RE: Checking radio button based on object value

2004-12-01 Thread Jim Barrows
> -Original Message- > From: Ciaran Hanley [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 12:11 PM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: RE: Checking radio button based on object value > > > Ok sounds like this could solve my problem. How do I g

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Derek Broughton
On Wednesday 01 December 2004 14:28, David G. Friedman wrote: > P.S. Question for the Day: Why do so many questions lately seem to be > clearly answered in the UserGuides yet always asked? Because very little is _clearly_ answered in the UserGuides, particularly that question. In hindsight, he

RE: Checking radio button based on object value

2004-12-01 Thread t t
To my opinion, using "true" and "false" as radio buttons' value is not a good idea. Try to do that as shown in my example. If your form bean's scope is"session", there should be no problem. it will reproduce what the user selected. tong Ciaran Hanley <[EMAIL PROTECTED]> wrote: optionOne, option

RE: Checking radio button based on object value

2004-12-01 Thread Ciaran Hanley
Ok sounds like this could solve my problem. How do I get the object from the session and populate the form? My ActionForm does not have the HttpServletRequest visible to it as it is created with a no parameter constructor. public OptionsForm() { } My question now is how/where can I call Options

Re: Checking radio button based on object value

2004-12-01 Thread Lee Harrington
I'll describe the scenario where you are using a database. In the action that is displaying "existing values" (ones in the database) 1. Retrieve record from database 2. Populate form bean with values from database 3. Forward to the jsp If you are not getting your values from the database

RE: Hibernate for data caching

2004-12-01 Thread David G. Friedman
I've dabbled with ehCache, using default settings, for caching query results, not for individual items. I've had no trouble with cached queries. Regards, David -Original Message- From: Sudip Shrestha [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 1:51 PM To: Struts Users

Re: Hibernate for data caching

2004-12-01 Thread Sudip Shrestha
Ashish: Try: ehCache There are others too...check Hibernate doc site. http://www.hibernate.org/158.html http://ehcache.sourceforge.net/ On Wed, 1 Dec 2004 09:40:59 -0800 (PST), Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > Has anyone used Hibernation for data caching, i have a > table in DB2

RE: Checking radio button based on object value

2004-12-01 Thread Ciaran Hanley
optionOne, optionTwo are two groups consisting of two buttons each. Basically each is an on and off switch, "true" or "false". I can set the default values in my form bean ok, I set them all to false initially. The problem is once updated options have been submitted and saved in the session I ne

Re: Checking radio button based on object value

2004-12-01 Thread Lee Harrington
If you have and "fromBean" has properties "optionOne/optionTwo" -- then they should automatically be valued at whatever the bean properties are. Lee On Wed, 1 Dec 2004 18:19:09 -, Ciaran Hanley <[EMAIL PROTECTED]> wrote: > Hi, > > I have a form consisting of several radio buttons. Upon fo

Re: Checking radio button based on object value

2004-12-01 Thread t t
Not sure if your optionOne and optionTwo is two groups of radio button or two radio button in one group. I give you an example to illustrate how to set default values: Suppose I have a group (group1) of radio buttons, say 3. I want to preselect the first one. In my JSP file. I do this:

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread David G. Friedman
Actually, they are both arg1 for their respective validators... See the docs: http://struts.apache.org/userGuide/dev_validator.html minlength - validate input data isn't less than a specified minimum length. Requires a minlength variable. minlength3 maxlength

Checking radio button based on object value

2004-12-01 Thread Ciaran Hanley
Hi, I have a form consisting of several radio buttons. Upon form generation I need radio buttons in the form to be checked based on the attribute of a bean stored in the session. If the beans property is true then a particular radio button value of "true" should be checked. Option One

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Derek Broughton
On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote: > I'm trying to validate a simple field. I want to validate that the field > is an integer, and meets the min and max length requirements. In the same > application I am able to correctly validate a date field so I'm confident > my ove

RE: Where to store and how to retrieve Images for web app

2004-12-01 Thread Woodchuck
hihi, yea i also keep images on the fileserver. it's nice and simple. as many others have said already, all that needs to go to the database is any meta info about the image you require and any other info needed to construct the image link for display. no need for any servlet image<-->blob busi

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Ram Venkataswamy
This is do with argument number - change errors.maxlength={0} can not be greater than {1} characters. To errors.maxlength={0} can not be greater than {2} characters. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 9:49 AM To: [

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 10:49 AM > To: [EMAIL PROTECTED] > Subject: Problem with validation using both minlength and maxlength on > the same field > > > validation.xml > ... > ... >

RE: Where to store and how to retrieve Images for web app

2004-12-01 Thread Jim Barrows
> -Original Message- > From: Brady Hegberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 10:40 AM > To: Struts Users Mailing List > Subject: RE: Where to store and how to retrieve Images for web app > > > Does anyone know if there are advantages in particular app-serv

Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread jesnook
I'm trying to validate a simple field. I want to validate that the field is an integer, and meets the min and max length requirements. In the same application I am able to correctly validate a date field so I'm confident my overall struts setup is correct. However when I try to do both a min

RE: Using a key as var-value in validator

2004-12-01 Thread Ram Venkataswamy
Hi, If you have defined resource bundle in struts config & are able to access key from jsp then no additional step/configuration is required to access them in validation file. The arg/msg lookup resource bundle defined for the application and then pick up value FYI: There is glitch though the r

Hibernate for data caching

2004-12-01 Thread Ashish Kulkarni
Hi Has anyone used Hibernation for data caching, i have a table in DB2 on AS400 which has about 1 records i want to cache this data in my web application so can improve performance Ashish __ Do you Yahoo!? All your favorites on one personal

RE: Where to store and how to retrieve Images for web app

2004-12-01 Thread Brady Hegberg
We've tried a couple different approaches. One of them involves a pass-through servlet that grabs the image from the filesystem and sends it to the browser on request. It works well, in some cases. However it seems to cause some problems with caching - reloading the page is slow and causes the g

Re: Where to store and how to retrieve Images for web app

2004-12-01 Thread fzlists
I have faced this situation on a number of ocassions. Speaking as someone who has done it just about every which way, I offer this "best practice"... I suggest storing them on the file system OUTSIDE the webapp directory. I then suggest creating an action specifically for returning images. Al

RE: message-resources in struts-config.xml won't work!

2004-12-01 Thread Lane, Brad
Use -Original Message- From: René Thol [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 9:15 AM To: Struts Users Mailing List Subject: message-resources in struts-config.xml won't work! Hello again everybody, I just changed my application from having its message resources

Re: Where to store and how to retrieve Images for web app

2004-12-01 Thread Joe Germuska
It would be easy to store them in a subdirectory of the web app, which would allow me to include them in my JSPs with a simple HREF tag. However, does this cause problems with the size of the web app, maybe the start-up and reload speeds of the container, etc.? I trialed this by storing 1500 imag

message-resources in struts-config.xml won't work!

2004-12-01 Thread René Thol
Hello again everybody, I just changed my application from having its message resources defined in web.xml via init parameter to defining it in struts-config.xml using I left my JSPs unchanged using tags. But now the JSPs won't be compiled anymore. I'm always getting: Cannot find message resourc

RE: disable validation of validator.xml & validator-rules.xml (partially OT now)

2004-12-01 Thread Joe Germuska
At 2:51 PM + 12/1/04, Marco Mistroni wrote: Hello, Thanx for suggestion... however WAS Studio is giving me problems When building my application I have specified following as DTD reference Two things: first, I don't think that your DTD public identifier is one which was ever actually

Re: Where to store and how to retrieve Images for web app

2004-12-01 Thread Colin Kilburn
John, I typically store the images in a web-accessible directory. I have done this in several different webapps (in several languages for that matter). I typically have a table that holds any data about the image, most importantly, how to contruct a url for an image tag so I can display it o

Re: Where to store and how to retrieve Images for web app

2004-12-01 Thread Guillaume Cottenceau
"Mark Benussi" writes: > As a second point I would be interested to know if anyone has any code > snippets to persist (Create and Read) the data to MySQl. In the application we use at my company, we put images in a postgres database and we have a servlet which can reply with image content when g

html:form with modules

2004-12-01 Thread Daniel Massie
Again this may be easily solved, but I can't find an answer elsewhere. Using a module I go through an action to a JSP containg a form (using html:form). The action attribute of this form is the same as an action defined in the module's struts config ie /Login, but when the page is accessed the f

RE: disable validation of validator.xml & validator-rules.xml (partially OT now)

2004-12-01 Thread Marco Mistroni
Hello, Thanx for suggestion... however WAS Studio is giving me problems When building my application I have specified following as DTD reference and WAS Studio keeps on telling me that it cannot find the dtd on filesystems.. anyone had similar problems? Regards marco -Original

Re: view controller

2004-12-01 Thread Joe Germuska
Yes but only half. Regarding the first point, since struts is actually able to accept and deal with a second action mapping in that mapping's "input" (or "forward") param, then somehow struts must be designed for it. It can't possibly have been a happy coincidence, surely? I don't know about te

RE: Where to store and how to retrieve Images for web app

2004-12-01 Thread Mark Benussi
John, I have also had this issue, and I can come at the problem from a different angle. I allow users to upload images, and they get persisted to the file system under a directory in the Web App. A pointer to the image also gets placed in mysql. I will be migrating to storing the data in Mysql

Where to store and how to retrieve Images for web app

2004-12-01 Thread john . chesher
My web app will have about 300 users, each of whom will be allowed to upload a max of 5 images/digital pictures. I am using the Struts-upload package. I considered storing the images in MySQL as blobs, but have read lots of advice that this is more trouble than it's worth / overkill. However,

Re: disable validation of validator.xml & validator-rules.xml

2004-12-01 Thread Derek Broughton
On Wednesday 01 December 2004 08:36, Joe Germuska wrote: > Ultimately, this is the responsibility of the commons-validator > library which Struts uses. For each config file, a > "ValidatorResources" object is constructed. This object uses > commons-digester to process the XML config. > > http://c

Re: disable validation of validator.xml & validator-rules.xml

2004-12-01 Thread Joe Germuska
Ultimately, this is the responsibility of the commons-validator library which Struts uses. For each config file, a "ValidatorResources" object is constructed. This object uses commons-digester to process the XML config. http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/share/org

RE: Placing JSPs under WEB-INF using modules

2004-12-01 Thread Daniel Massie
what about for the path attribute of action mappings in the struts config files? Daniel -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 13:04 To: Struts Users Mailing List Subject: RE: Placing JSPs under WEB-INF using modules Yeah, it's no proble

RE: Placing JSPs under WEB-INF using modules

2004-12-01 Thread Daniel Perry
Yeah, it's no problem. Just use forwards like: Daniel. > -Original Message- > From: Daniel Massie [mailto:[EMAIL PROTECTED] > Sent: 01 December 2004 11:58 > To: [EMAIL PROTECTED] > Subject: Placing JSPs under WEB-INF using modules > > > I have a module called admin, and wish to locate

Re: simple html:select issue

2004-12-01 Thread Mark Lowe
Corey's suggestion could work with arraylist. If you use your code wrote: > Andy, > > I believe you are after something like this: > > > > > Regards, > Corey > > > > On Wed, 01 Dec 2004 11:18:33 +, andy wix <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am trying to use select an

Re: simple html:select issue

2004-12-01 Thread Corey Scott
Andy, I believe you are after something like this: Regards, Corey On Wed, 01 Dec 2004 11:18:33 +, andy wix <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use select and options tags in the simplest way where I have > an ArrayList of Strings in the request (Logs) and I wish the

Placing JSPs under WEB-INF using modules

2004-12-01 Thread Daniel Massie
I have a module called admin, and wish to locate JSPs in /WEB-INF/pages/admin. This however is relative to the default context rather than /admin. Is it possible to place JSPs under the WEB-INF directory when using modules? Thanks Daniel

Totally stuck handling forms

2004-12-01 Thread Alexander Czernay
I'm still trying to find a nice way for handling standard list/create/edit/delete-forms... After browsing through all the hints and tips I got from here, I started building an initial form-setup-action using DispatchAction with a parameter dispatch that should be set to list, create, edit or de

Re: Automatic logging

2004-12-01 Thread Eddie Bush
- Original Message - From: "Kinjal Sonpal" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 01, 2004 1:03 AM Subject: RE: Automatic logging On the other hand, I don't find it all that burdensome to establish a static log instance for each

simple html:select issue

2004-12-01 Thread andy wix
Hi, I am trying to use select and options tags in the simplest way where I have an ArrayList of Strings in the request (Logs) and I wish the one selected to end up in the form's logName variable. According to page 296 of Struts in action I think this should work: but I get: [ServletExceptio

Re: view controller

2004-12-01 Thread Adam Hardy
On 11/28/2004 04:40 PM Joe Germuska wrote: At 11:31 AM + 11/24/04, Adam Hardy wrote: On 11/23/2004 02:20 PM Joe Germuska wrote: Your action isn't executed if validation fails. However, the validation is performed on a second request, so the object placed into the scope before the form was pr

Problem using MessageResources

2004-12-01 Thread René Thol
Hello everybody, I'm still using struts1.0.2 (I have to) and have a problem regarding message resources. The locale in my requests is always de and I'm setting a de_DE locale using the following: session.setAttribute(Action.LOCALE_KEY, locale); But when I'm fetching my messages a line later in

Using a key as var-value in validator

2004-12-01 Thread Kinjal Sonpal
Dear all, I'm using Struts 1.2.4 with Validator 1.1.3 for my application. I need to access the Date Format stirng across the application at many places. Instead of hard-coding format string everywhere I would like to use a key from the Resource Bundle for the purpose. I can access the key from al

Re: disable validation of validator.xml & validator-rules.xml

2004-12-01 Thread Guillaume Cottenceau
"Marco Mistroni" writes: > Hello all, > Does anyone know how to disable the validation of the two files > mentioned in the subject? > Looks like struts, when loaded, is trying to validate those files > against the DTD... and if by mistake my internet connection goes down, > then code > Won\

disable validation of validator.xml & validator-rules.xml

2004-12-01 Thread Marco Mistroni
Hello all, Does anyone know how to disable the validation of the two files mentioned in the subject? Looks like struts, when loaded, is trying to validate those files against the DTD... and if by mistake my internet connection goes down, then code Won\t work. (meaning, I am using WAS Studio

retrieve hidden fields value after validation error

2004-12-01 Thread Johannes Wolfgang Woger
Hi, I have a small form, with some strings and some numbers to be inserted. Strings are validated to be required and numbers have to be integer. There is a hidden field: A shows that its value is not present anymore after a validation error (after error messages are s

RE: request between actions

2004-12-01 Thread Morales de Frías, David
Thanks for your help, but it's still not working. i've changed struts config, from redirect="true" (ops..) to redirect="false". And it's supossed that i will have my request's parameters in second action, but it isn't true. I don's see any parameters... What is the error?? Best regards