Change error bundle validatior-rules

2006-03-14 Thread Holger Moosbauer
Hello "friends",

 

 

 

I have a serious problem here, maybe someone can help me.

 

Thank you first :-) .. OK, the problem ... how can I change the 

 

application resource bundle for xml validation?

 

 

 

I can read in validatior-rules.xml ... 

 

 

 

.

 

 

 

These are the default error messages associated with

 

   each validator defined in this file.  They should be

 

   added to your projects ApplicationResources.properties

 

   file or you can associate new ones by modifying the

 

   pluggable validators msg attributes in this file.

 

 

 

   # Struts Validator Error Messages

 

   errors.required={0} is required.  

 

 

 

... a.s.o.

 

 

 

How does the validator know this file when I don't pass an

 

explicit bundle value?

 

It's annoying here, because I have to overwrite the default key for each
field with something like that ...

 

 

 



 

 

 

How can I avoid this?

 

 

 

Thank you and Greetings



Buttons and DispatchActions

2006-02-21 Thread Holger Moosbauer
Hi,

 

We're using Dispatch Actions in our project. My question: How do you set the
method?

In the request after (or before) using button (submit) tag? ... I wrote a
filter which assembles the proper

Request (and some values, if needed) ... That looks like that on JSP

 



 

 

The property value (method$$init$value) handles the method
RequestHelper.getDispatchName("init") ... so my question,

is there a better way, that just looks pretty ugly ... how about extending
the struts tag? ... 

 

... the filter changes it to method=init and writes the value into the
request with setAttribute ...

 

Thanks for any answers

 

 

Holger Moosbauer
Am Mediapark 8
50670 Köln
=
TECON Systems AG <http://www.tecon.de> 
[EMAIL PROTECTED]
Telefon: +49 (221) 92007-68
=

 



AW: Strange validation exception

2006-01-04 Thread Holger Moosbauer
Thanks Ted,

I already spent some hours on that issue. I just wanted to
test the automatic form-validation - I'm a newbe and I performed
the validation in the FormBean methode before.
I just tried with the required-argument in the validation.xml ->


  

  

  


...

in the validator-rules.xml there is this entry



so all seems quite OK, but it just don't work ... any idea? ... I just want
to use the
predefined validators but I can't :-(

Greetings and thx for any help


-Ursprüngliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 14:52
An: Struts Users Mailing List
Betreff: Re: Strange validation exception


In a situation like this, the best thing is to create a new
application that contains just enough code to expose the error. Most
often, in creating the application to expose the error, you will find
the problem that is causing  the error. If not, you will have a
concise example to post, so that other people will be able to help.

-- HTH, Ted.
http://www.husted.com/poe/


On 1/2/06, Holger Moosbauer <[EMAIL PROTECTED]> wrote:
> Hello friends,
>
> I'm a struts newbe and I just can't find the
> answer on the internet to that validation exception.
> Does anyone know the answer? ... thx.
>
> org.apache.commons.validator.ValidatorException:
> org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
> org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
> javax.servlet.http.HttpServletRequest)
>
> pretty strange, he?
>
> Greetings
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: regarding log4j

2006-01-02 Thread Holger Moosbauer
Tomcat can't find the log4j.properties.

Put the file in the classes directory of your web application.

e.g. ->

og4j.rootCategory = INFO, stdout, fileout
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout

log4j.appender.stdout.layout.ConversionPattern = %5p [%t] (%F:%L) - %m%n
log4j.appender.fileout = org.apache.log4j.FileAppender
log4j.appender.fileout.layout = org.apache.log4j.HTMLLayout
log4j.appender.fileout.append = false
log4j.appender.fileout.File = $TOMCAT_HOME$/logs/ticr.htm

Hope that helps ... bye

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Januar 2006 14:24
An: user@struts.apache.org
Betreff: regarding log4j




I am using Tomcat5,
When I start the Tomcat i faace like this.
I am using log4j

log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.
inside the init method
using log
fileC:\Tomcat5\webapps\catalogServer\WEB-INF/classes/log4j.properties
2006-01-02 19:06:27,140 org.apache.coyote.http11.Http11Protocol
INFO  : Starting Coyote HTTP/1.1 on http-8080
2006-01-02 19:06:27,375 org.apache.jk.common.ChannelSocket
INFO  : JK2: ajp13 listening on /0.0.0.0:8009
2006-01-02 19:06:27,375 org.apache.jk.server.JkMain
INFO  : Jk running ID=0 time=0/32  config=C:\Tomcat5\conf\jk2.properties
2006-01-02 19:06:27,421 org.apache.catalina.startup.Catalina
INFO  : Server startup in 5250 ms

Is it correct for deployment

Any one help me


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Strange validation exception

2006-01-02 Thread Holger Moosbauer
Hello friends,

I'm a struts newbe and I just can't find the
answer on the internet to that validation exception.
Does anyone know the answer? ... thx.

org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest)

pretty strange, he?

Greetings


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]