Re: Browser History by HTTP-REFERER

2006-08-04 Thread Thomas Joseph
Can you please specify in more broad terms, what are you trying to do (especially with the referrer code)? Are you trying to restrict user to access pages only after login or something like that? Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin

Re: Need help in how to display error messages

2006-08-04 Thread Niniva Ray
Hi Niall, Thank you for the suggestion and explanation. It worked. Thanks, Niniva Niall Pemberton <[EMAIL PROTECTED]> wrote: The reason this is happening is because (normally) your ActionMessage contains the key - and then the tag looks up the actual message (i.e. "resolves the m

Re: RE : Re: Messages and Validator

2006-08-04 Thread Niall Pemberton
This comes up regularly on the list - if you feel like documenting the steps on the wiki I'm sure it would be a great help to others :-) http://wiki.apache.org/struts/StrutsDocComments Niall On 8/4/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Thank you, I have found the solution, I created

Re: Need help in how to display error messages

2006-08-04 Thread Niall Pemberton
The reason this is happening is because (normally) your ActionMessage contains the key - and then the tag looks up the actual message (i.e. "resolves the message") - but you're actually resolving the message yourself in the Action. Try just creating the ActionMessage with the key: ActionMessage

Re: Re: Validator not getting called and I can't see why

2006-08-04 Thread Matt Kurjanowicz
Just curios - that's the only createStudentGroupForm instance in your struts config? Since DynaValidatorForm extends DynaActionForm it inherits' the DynaActionForm toString - which always just starts off with "DynaActionForm[..." - in the action, can you log the actual class (form.getClass().getN

Re: Validator not getting called and I can't see why

2006-08-04 Thread Niall Pemberton
On 8/5/06, Bart Busschots <[EMAIL PROTECTED]> wrote: Hi Niall, I don't seem to be able to get log output form the validator. Maybe I'm doing something wrong? This is my commons-logging.properties file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog org.apache.commons.

Need help in how to display error messages

2006-08-04 Thread Niniva Ray
Hi, I am working on a web application where I am using struts 1.2.9. The problem I am encountering is whenever I want to show any messages on the browser, suppose if I want to show the message "Error saving configuration", it is displaying ???en_US.Error saving configuration???

Re: Validator not getting called and I can't see why

2006-08-04 Thread Bart Busschots
Hi Niall, I don't seem to be able to get log output form the validator. Maybe I'm doing something wrong? This is my commons-logging.properties file: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog org.apache.commons.logging.simplelog.defaultlog=debug org.apache.common

Re: Validator not getting called and I can't see why

2006-08-04 Thread Niall Pemberton
Try turning on logging in debug mode, should give you more info about what its doing. Niall On 8/3/06, Bart Busschots <[EMAIL PROTECTED]> wrote: I'm either missing something stupid (which is always possible) or I've managed to break the validator. I have an app that uses validator all over the

struts and forrest

2006-08-04 Thread manart77
Hi all, I'm a struts user and wolud like to know if it's possible to integrate struts with forrest (or at least with cocooon...) Has anybody tried this work? Thank you in advance for any reply and or suggestion. - To unsubscr

testing

2006-08-04 Thread juapar2
I had posted quite some posts and they did not go through so i am just testing... -- View this message in context: http://www.nabble.com/testing-tf2051957.html#a5652963 Sent from the Struts - User forum at Nabble.com. - To uns

RE: Validator not getting called and I can't see why

2006-08-04 Thread Samere, Adam J
Sure you can, just follow Eric's example and subclass DynaValidatorForm. Then change your form-bean declaration to ... Adam -Original Message- From: Bart Busschots [mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 10:41 AM To: Struts Users Mailing List Subject: Re: Valida

RE: Validator lost data when go back to form

2006-08-04 Thread Martin Gainty
It *appears* you are redirecting the user in which case you are losing all of the users session Data You may want to define the ActionMapping to forward the request and ensure redirect=false Here is an explanation of the use of redirect vs forward http://www.mail-archive.com/struts-user@jakarta

Re: Validator not getting called and I can't see why

2006-08-04 Thread Bart Busschots
Hi Eric, Thanks for the reply but I'm using a DynaValidatorForm so I don't have a class to override things in. I would assume that DynaValidatorForm validates correctly because I use it all over the place. It's just this one action that's not validating and I just can't see what's different he

Validator lost data when go back to form

2006-08-04 Thread Jean-Marie Pitre
Hi, I'am using validator to validate data on client side and server side. It works fine, but when I validate on server side when there are errors detected I go back to the html but without user data (the form is reseted). Have you got any idea ? Thanks in advance, Jean-Marie. -Message d'

RE : Re: Messages and Validator

2006-08-04 Thread Jean-Marie Pitre
Thank you, I have found the solution, I created a custom database-backed ressource bundle with cache and it works well. Regards -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Laurie Harper Envoyé : mercredi 2 août 2006 23:59 À : user@struts.apache.org Objet : Re:

RE: Browser History by HTTP-REFERER

2006-08-04 Thread Raghuveer
How about Adding nocache="true" to struts-config.xml file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 8:16 PM To: user@struts.apache.org; [EMAIL PROTECTED] Subject: RE: Browser History by HTTP-REFERER Do you realize that browse

Re: Struts + Spring 2.0

2006-08-04 Thread Nicolas De Loof
I've updated the wiki. Please review it as my english is so bad... Wendy Smoak a écrit : On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Action java source as parameter. Lot's of my

RE: validate integer with a comma thousands seperator using Validator

2006-08-04 Thread fea jabi
Thanks, Eric. From: "Givler, Eric" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: RE: validate integer with a comma thousands seperator using Validator Date: Thu, 3 Aug 2006 11:45:28 -0400 You could create another validator, and inside th

Re: Exposing an attribute using tiles

2006-08-04 Thread Antonio Petrelli
Per Jørgen Walstrøm ha scritto: Hello again, Antonio's solution seemed to work fine to start with, but whenever my collection region1Papers contains more than one outageElement, it seems like only one of the outageElements is imported into nextPage.jsp. Ok it seems like a bug, I someway exp

RE: Validator not getting called and I can't see why

2006-08-04 Thread Givler, Eric
Can you override the validate() method inside your form and just call super.validate(), then see what the error collection has? At least then you know it was called, but may not have done what you thought it should: package view.struts.forms; import javax.servlet.http.HttpServletRequest; impor

Re: Exposing an attribute using tiles

2006-08-04 Thread Per Jørgen Walstrøm
Hello again, Antonio's solution seemed to work fine to start with, but whenever my collection region1Papers contains more than one outageElement, it seems like only one of the outageElements is imported into nextPage.jsp. The number of iterations are correct, but nextPage.jsp just keeps using th

Re: BeanUtils copyProperties - copying vector

2006-08-04 Thread Antonio Petrelli
chamal desilva ha scritto: Now I need to copy properties from CustomerForm object to Customer object. My customers classes accounts vector contains Account objects. CustomerForm classes accounts vector contains AccountForms. So when BeanUtils copy accounts vector from CustomerForm to Customer c