RE: Mapping between a request parameter name and a Struts form property name

2006-09-01 Thread David Friedman
You jogged my memory and I have a solution from the Appendix of "Struts In Action." Version 1.1 and onward (possibly even in 1.0), struts ActionMappings have had two attributes: "prefix" and "suffix." The are from the ActionConfig class but carry over to the ActionMapping class used by the Struts-

Re: Mapping between a request parameter name and a Struts form property name

2006-09-01 Thread David Durham
Andrey Falaleev wrote: Hello everybody, I'd have the following question: Let's suppose I call a Struts action, which is bound to a particular form through struts-config.xml. As far as I know, the request is being analysed internally by Struts at the beginning, such that for each form property th

Re: RE : validateValidWhen and javascript

2006-09-01 Thread Laurie Harper
It's not really practicable, considering that a validwhen rule can address other properties on the form bean that may or may not have any client-side representation, or may have a different representation on the client (e.g. strings vs. integers). L. Jean-Marie Pitre wrote: Do you know what

Re: reset() method

2006-09-01 Thread nuwan chandrasoma
Hi, what is the scope the form is in? i think it must be session. what you can do is with out adding a reset button, add a normal button and call a javascript with would reset the values in the from elements explicitly. i had the same problem. this what i did. Thanks, Nuwan On 9/1/06, Sonu S <

Re: tag and User bypassing onclick() by pressing

2006-09-01 Thread Mississippi John Hurt
The has an onsubmit but how would it know which button was pressed? On 9/1/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: I have an tag with onClick set. So when users press button, it does something. The problem is what if user type input into a field say keywordSearch, then they press

[OT][ANN] JAVAWUG BOF 21 / 5th Sept 2006 @ 18:30 / SkillsMatter / Max Antoni / AJAX & Objected Oriented Javascript

2006-09-01 Thread Peter . Pilgrim
Hi All I would like remind you of the twentieth first birds-of-a-feather (BOF 21) of the Java Web Users Group, taking part at the Skillmatters building, London, England on Tuesday 5th September 2006 FYI: http://www.jroller.com/page/javawug?entry=announcement_javabof_xxi_max_a ntoni The feature

tag and User bypassing onclick() by pressing

2006-09-01 Thread Mississippi John Hurt
I have an tag with onClick set. So when users press button, it does something. The problem is what if user type input into a field say keywordSearch, then they press . In that case the logic in the onClick attribute is not executed. I tried to put that into an onSubmit tag, but there's no such

reset() method

2006-09-01 Thread Sonu S
Hi, I am using struts in my application. i am using reset and validation. i am not writing any validation method. i am using struts' validation framework. validation is working. reset also works fine in application if i enter some values in form (text box) and press reset, it clears form values.

1.3.5 - Exception handler ignoring 'bundle' attribute?

2006-09-01 Thread Scott Van Wart
I can't get the exception handler in struts-config.xml to use the 'bundle' attribute: It always tries to look in the default (MessageResources.properties). Is this a known issue or am I doing something bad? - Scott --

Re: Dynamically Initializing Checkbox Value

2006-09-01 Thread Albert L. Sapp
Anthony, See my comments below. Hope this clears things up a little and I see Laurie has made a worthwhile comment about looking at the examples available. HTH, Al Anthony N. Frasso wrote: My head hurts. :) Thanks for everyone's help. I've gotten a number of responses, it's just that I

AW: How to access Struts2 FilterDispatcher

2006-09-01 Thread Ingo.Harbeck
I will implement the DispatcherListener... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 1. September 2006 13:29 An: user@struts.apache.org Betreff: How to access Struts2 FilterDispatcher Hi, is there any way to get access to the initial

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread jaikarthi
Hi, I am not getting any exception in log. Antonio Petrelli wrote: > > jaikarthi ha scritto: >> >> >> > value="/WEB-INF/pages/tiles/header.jsp"/> >> >> >> >> >> ... >> >> > path="/jspException" >> type

Mapping between a request parameter name and a Struts form property name

2006-09-01 Thread Andrey Falaleev
Hello everybody, I'd have the following question: Let's suppose I call a Struts action, which is bound to a particular form through struts-config.xml. As far as I know, the request is being analysed internally by Struts at the beginning, such that for each form property the corresponding reques

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread Antonio Petrelli
jaikarthi ha scritto: ... path="/jspException" type="com.sen.exception.JspExceptionHandlerAction" scope="request" > redirect="false/> my action class gets executed and success is forwarded,b

How to access Struts2 FilterDispatcher

2006-09-01 Thread Ingo.Harbeck
Hi, is there any way to get access to the initialized instance of a Filter Class running in the same context of the webserver. (I try to get access to the Struts2 FilterDispatcher) Best wishes, Ingo

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread jaikarthi
Hi, please find the problem Hi, I am trying to handle JSP Exception in my Project. We are using Tiles plug in in our project. My Layout definition is My header and footer remains same in all pages. in my

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread Antonio Petrelli
It seems that your message has been corrupted. Try to resend it. jaikarthi ha scritto: Hi, I am trying to handle JSP Exception in my Project. We are using Tiles plug in in our project. My Layout definition is My header and footer re

Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread jaikarthi
Hi, I am trying to handle JSP Exception in my Project. We are using Tiles plug in in our project. My Layout definition is My header and footer remains same in all pages. in my layout.jsp I defined <%@ page errorPage="/jsp

Re: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Antonio Petrelli
Peter Neu ha scritto: I see this struts logging INFO for example: 01.09.2006 11:31:46 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Try to use Leon's suggestion: log4j.logger.org.apache.struts=ERROR

AW: AW: AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
*Argh* sometimes I'm just stupid. Yes, package name was wrong. I see this struts logging INFO for example: 01.09.2006 11:31:46 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true > -Ursprüngliche Nachr

Re: AW: AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Antonio Petrelli
Peter Neu ha scritto: Hm, file looks now like this: log4j.rootLogger=ERROR, cons log4j.appender.cons=org.apache.log4j.ConsoleAppender log4j.logger.de.ktbl=DEBUG, cons, myAppender log4j.additivity.de.ktbl=false log4j.appender.myAppender=org.apache.log4j.RollingFileAppender log4j.appender.myAppend

AW: AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
Hm, file looks now like this: log4j.rootLogger=ERROR, cons log4j.appender.cons=org.apache.log4j.ConsoleAppender log4j.logger.de.ktbl=DEBUG, cons, myAppender log4j.additivity.de.ktbl=false log4j.appender.myAppender=org.apache.log4j.RollingFileAppender log4j.appender.myAppender.File=c:/nbw06-2.log l

Re: AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Antonio Petrelli
Peter Neu ha scritto: That's it: log4j.rootLogger=INFO, cons Change it to: log4j.rootLogger=ERROR, cons ("ERROR" level will be enough high for your debugging purposes) log4j.logger.de.ktbl=, myAppender Change it to : log4j.logger.de.ktbl=DEBUG, cons, myAppender log4j.additivity

Re: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Leon Rosenberg
log4j.rootLogger=ERROR, cons or log4j.logger.org.apache.struts=ERROR, myAppender On 9/1/06, Peter Neu <[EMAIL PROTECTED]> wrote: That's it: log4j.rootLogger=INFO, cons log4j.logger.de.ktbl=, myAppender log4j.appender.cons=org.apache.log4j.ConsoleAppender log4j.appender.myAppender=org.apache.l

Re: Reg : Exception Handling

2006-09-01 Thread Li
return mapping,findforward("failure"); should it be : return mapping.findforward("failure"); (you use ',' here, it should be '.') On 9/1/06, Rokariya, Raman <[EMAIL PROTECTED]> wrote: Make sure that you have a mapping in Struts-Config.xml also, for the respective action-mapping with the forw

AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
That's it: log4j.rootLogger=INFO, cons log4j.logger.de.ktbl=, myAppender log4j.appender.cons=org.apache.log4j.ConsoleAppender log4j.appender.myAppender=org.apache.log4j.RollingFileAppender log4j.appender.myAppender.File=/usr/local/log/nbw06.log #create max. 5 BackUp Files log4j.appender.myAppend

RE: Reg : Exception Handling

2006-09-01 Thread Rokariya, Raman
Make sure that you have a mapping in Struts-Config.xml also, for the respective action-mapping with the forward="failure" /Raman Rokariya -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, September 01, 2006 1:11 PM To: Struts Users Mailing List Subject: R

Re: Reg : Exception Handling

2006-09-01 Thread Antonio Petrelli
Karthikn ha scritto: Hi, I am new user. I am implementing exception handling in my application. In my action class I have try, catch block. in the catch block catch(Exception e) { return mapping,findforward("failure");

[OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Antonio Petrelli
Peter Neu ha scritto: Hello, how can I turn off the logging info struts gives me when it starts up? I mean this stuff: I use log4J as Logging Framework. Can you post your log4j.properties? - To unsubscribe, e-mail: [EMAI

How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
Hello, how can I turn off the logging info struts gives me when it starts up? I mean this stuff: 01.09.2006 09:02:44 org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping INFO: Tiles definition factory found for request processor ''. 01.09.2006 09:02:47 org.apache.struts.ut