When to use ValidationAware

2008-01-09 Thread TuomoS
"ValidationAware classes can accept Action (class level) or field level error messages. Action level messages are kept in a Collection. Field level error messages are kept in a Map from String field name to a List of field error msgs." I have two actions Action A which renders the page and submi

Re: Problem in using Message Store Interceptor

2008-01-09 Thread Chris Pratt
Try wrapping the STORE and RECEIVE strings in param tags, like: RETRIEVE (*Chris*) On Jan 8, 2008 11:49 PM, quinquin2209 <[EMAIL PROTECTED]> wrote: > > HI All, > > I have originally define some action as follow: > > > > /jsp/main.jsp > > > > /jsp/main.jsp >

Re: TabbedPanel question

2008-01-09 Thread Pablo Vázquez Blázquez
Thanks for your reply Martin. I have looked at http://struts.apache.org/2.0.9/docs/tabbedpanel.html and those attributes (targets and highlightColor) don´t exists for my struts 2 version (2.0.9). Besides that, when yo say "set colour for any ids specified via targets", what ids do you mean? Th

how to use difference resource file in Class ActionMessage

2008-01-09 Thread Mike . G
Hi, one question about the Class ActionMessage, how to use the difference resource file in Class ActionMessage? example: I have to resource file, one is the default for struts configuration, secondly had used a bundle key. so, how to use that message resource file in Class ActionMessage? thanks

Re: When to use ValidationAware

2008-01-09 Thread Laurie Harper
TuomoS wrote: "ValidationAware classes can accept Action (class level) or field level error messages. Action level messages are kept in a Collection. Field level error messages are kept in a Map from String field name to a List of field error msgs." I have two actions Action A which renders the

Re: Problem in using Message Store Interceptor

2008-01-09 Thread quinquin2209
Thanks for reply. I have wrap them in param tags but don't know why it disappear when posting to this forum. The problem persists even if param tag is used. Chris Pratt wrote: > > Try wrapping the STORE and RECEIVE strings in param tags, like: > > > RETRIEVE > > > (*

acessing form values in validation.xml

2008-01-09 Thread Sivaswamynatha K
Hi, Is it possible to access the form variables in the validation.xml file. I am using Struts 1.2.9 Ie. I have a requirement to enter the year field between 1800 to current year + years. In validation.xml

Problem using client side form validation feature. Friends, please help!!!

2008-01-09 Thread sai reddy
I'm using struts 1.2.7 version. I wanted to validate a form client side. I used tag with 'formName' attribute set to the form-bean's logical name in struts-config.xml. Inside validation.xml file, i set "depends" attribute's value as "required" ( i just wanted these form fields to be non white

Struts 1 or Struts 2

2008-01-09 Thread aum strut
Hi All, I have a small query and hope that here i can get the best answer of my query. ihave just started learning Struts 2. the purpose of learning struts is simple i have some projects at my end which i want to develop using this framework. My purpose is also to learn this technology as much as

Re: Problem using client side form validation feature. Friends, please help!!!

2008-01-09 Thread sai reddy
Why does struts generate unnecessary javascript in the HTML page?? Is there any way to stop struts from generating the extra javascript?? Ingo Villnow wrote: I think it's quite normal that the whole javascript code is generated in the HTML output when you use client-side validation or are my

Re: Problem using client side form validation feature. Friends, please help!!!

2008-01-09 Thread Ingo Villnow
I think it's quite normal that the whole javascript code is generated in the HTML output when you use client-side validation or are my thoughts wrong? sai reddy schrieb: I'm using struts 1.2.7 version. I wanted to validate a form client side. I used tag with 'formName' attribute set to the

extending tags for multi client capability

2008-01-09 Thread Olaf Kittelmann
hi, for our web applications we need to implement multi client capability. where the application is deployed once, and via customization can be accessed in n different flavours. One Aspect of The customization is the presence/absence of a certain field in a certain form, and therefore the valida

Re: Struts training...

2008-01-09 Thread Dave Newton
I provide on-site training in NYC; feel free to contact me off-list. Dave --- Antoine Solomon <[EMAIL PROTECTED]> wrote: > Anyone know of struts training in New York city? > > On Jan 8, 2008 8:47 PM, Jack Haynes <[EMAIL PROTECTED]> wrote: > > > > > Thanks for the feedback Dave. > > > > Jack> D

Re: Type conversion with Generics

2008-01-09 Thread jvleminc
Just noticed that this partial solution only started working after I had changed the Set of EoActivities into a List of EoActivities; this while the internal ones are still Sets. Seems the *-conversion.properties for only works for Lists... jvleminc wrote: > > I have already found out that by u

Re: Type conversion with Generics

2008-01-09 Thread Dave Newton
--- jvleminc <[EMAIL PROTECTED]> wrote: > Just noticed that this partial solution only started working after I had > changed the Set of EoActivities into a List of EoActivities; this while the > internal ones are still Sets. Seems the *-conversion.properties for only > works for Lists... That was

RE: Struts training...

2008-01-09 Thread Deepak Kumar
HI, We are providing Struts training all over India. Please check http://www.roseindia.net/ittraining/Struts2Training.shtml Thanks -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 6:09 PM To: Struts Users Mailing List Subject: Re: Struts t

Re: learning struts/spring?

2008-01-09 Thread mah bub
thanks a lot guys On Jan 8, 2008 3:15 PM, Rick Reumann <[EMAIL PROTECTED]> wrote: > On Jan 7, 2008 9:15 PM, mah bub <[EMAIL PROTECTED]> wrote: > > > > > is there any nice tutorial which covers the basic with step by step > > examples > > so that i can catch up. > > > > > I have several step by st

RE: Struts training...

2008-01-09 Thread Dave Newton
--- Deepak Kumar <[EMAIL PROTECTED]> wrote: > We are providing Struts training all over India. That's quite dissimilar to NYC. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: learning struts/spring?

2008-01-09 Thread Deepak Kumar
Hi, Good step by step examples are available at: Struts 2: http://www.roseindia.net/struts/struts2/ Struts 1: http://www.roseindia.net/struts/ Thanks -Original Message- From: mah bub [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 6:35 PM To: Struts Users Mailing List Subj

Re: Struts 1 or Struts 2

2008-01-09 Thread Ted Husted
In this case, I'd suggest Struts 2. HTH, Ted * On Jan 9, 2008 6:32 AM, aum strut <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a small query and hope that here i can get the best answer of my > query. ihave just started learning Struts 2. > the purpose of learnin

Re: Why? en-us theme=ajax 404 error on Struts 2.0.9

2008-01-09 Thread venku
Hi Wayne, Did you find any solution for it I am also facing the same problem Thanks Venku :) -- View this message in context: http://www.nabble.com/Why--en-us-theme%3Dajax-404-error-on-Struts-2.0.9-tp14692647p14712651.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Problem using client side form validation feature. Friends, please help!!!

2008-01-09 Thread sai reddy
Why does struts generate unnecessary javascript in the HTML page?? Is there any way to stop struts from generating the extra javascript?? Ingo Villnow wrote: I think it's quite normal that the whole javascript code is generated in the HTML output when you use client-side validation or are my

struts2: sent value to freemarker template

2008-01-09 Thread niels
I want to pass a value to my fielderror.ftl lik this: Does someone knows how to retrief the value in de template? ${parameters.foo} gives me the error: freemarker.core.InvalidReferenceException: Expression Expression parameters.foo is undefined Thanks in advance, NIELS

RE: Struts training...

2008-01-09 Thread Al Sutton
Please READ the original emails before spamming the list with adverts!!! Your training in india is as relevant as a chocolate kettle to the thread -Original Message- From: Deepak Kumar [mailto:[EMAIL PROTECTED] Sent: 09 January 2008 12:58 To: Struts Users Mailing List Subject: RE

Re: tag and hiding parameters in the link

2008-01-09 Thread [EMAIL PROTECTED]
Thanks Laurie for the info. On Jan 8, 2008 5:32 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Zuquirio is correct, you can't do it. See comments inline below: > > [EMAIL PROTECTED] wrote: > > Definitely I'll post it to let everyone get benefit if I figure it out. > > > > By the way, welcome ever

Re: Why? en-us theme=ajax 404 error on Struts 2.0.9

2008-01-09 Thread Martin Gainty
please repost stack-trace and struts configuration files Thanks M- - Original Message - From: "venku" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 09, 2008 9:11 AM Subject: Re: Why? en-us theme=ajax 404 error on Struts 2.0.9 > > Hi Wayne, > > Did you find any solution for it I am al

[S2] conversion and REPORT_CONVERSION_ERRORS

2008-01-09 Thread Adam Hardy
I am having temporary (hopefully) aphasia - I cannot see any documentation about setting XWorkConverter.REPORT_CONVERSION_ERRORS to stop conversion errors being reported. I assumed I could put in the struts.xml but it didn't accept it. Where should it go? Thanks Adam ---

Namespace issue for a particular result ...

2008-01-09 Thread Mufaddal Khumri
I have a struts config file with the following: http://struts.apache.org/dtds/struts-2.0.dtd";> extends="mypackage"> ${originalUrl} In this case the LoginAction received the original url as: http:// localhost/mypackage/cr/test.action

Re: Namespace issue for a particular result ...

2008-01-09 Thread Dave Newton
--- Mufaddal Khumri <[EMAIL PROTECTED]> wrote: > > extends="mypackage"> > > > ${originalUrl} > > > > > > > In this case the LoginAction received the original url as: http:// > localhost/mypackage/cr/test.action > > When I execute this cod

Forward with redirect="true" failing mysteriously

2008-01-09 Thread Thomas Okken
Hi all, I'm running into a problem in a struts application I'm working on. In my struts-config.xml, I have this action-mapping: The RegistrationAction.execute() method takes several request parameters and uses them to create an account; when this is succ

Re: Interceptor doesn't work upon submit?

2008-01-09 Thread styl9090
Thank you so much... It works. :) All I had to create Interceptor will all the values of defaultStack. Thanks. newton.dave wrote: > > Did I not already answer this? > > --- styl9090 <[EMAIL PROTECTED]> wrote: >> >> >> /pages/assign_user.jsp >> > > You have configu

Re: Namespace issue for a particular result ...

2008-01-09 Thread Mufaddal Khumri
That was an oversight on my part .. I just changed the type to redirect. Instead of the URL I send the action a request.getRequestURI + request.getQueryString (if any) and that now works good as a champ. -Mufaddal. On Jan 9, 2008, at 9:23 AM, Dave Newton wrote: --- Mufaddal Khumri <[EMA

Catch the element param in a action class

2008-01-09 Thread Manoel Pimentel
Hi to everyone, Please, I need help :-). Like are possible catch the values in a session using the "ActionContext.getContext().getSession()", I want to know if have any way to catch in a action class, the value of one parameter set in the struts.xml file? Example: I need use in my Action

executeScripts not working on second invocation

2008-01-09 Thread Robert Dietrick
I've run into an "interesting" situation (interesting in that it's had me cursing my computer for two days). I've got a page which uses a remote to load a form. The form uses the ajax theme and a submit button with executeScripts="true". The returned script tells the page to reload a new form w

RE: Struts training...

2008-01-09 Thread Jack Haynes
Thanks Ted. Do you know of any training in Toronto?> Date: Tue, 8 Jan 2008 20:54:42 -0500> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: Re: Struts training...> > As Dave says, if you're trying to get hired, or trying to hire people,> then Struts 1 is the still the safe choice.

[S2] OpenSessionInView implementation with Spring

2008-01-09 Thread Gabriel Belingueres
Hi, I'm developing a new application using S2 + Spring 2.0 + Hibernate 3.2.5. I wanted to know which would be the best way of implementing the Open Session in View pattern in S2: Is there any standard implementation for S2? I''ve seen it implemented as a servlet filter, but I think it would be g

Validation Complications - Validating only those fields displayed in the form, and not the rest of the object in use

2008-01-09 Thread Singulariter
Hi all, Quick Struts 2 validation question: Is it possible to validate only the fields displayed in a form, when the form's fields are part of a larger object that uses annotation validation? The problem is that I am using one object across many forms, each form contains some of the values for

Re: Struts training...

2008-01-09 Thread Ted Husted
ATM, I don't think there are any public Struts 2 training courses being offered anywhere. (Except maybe India!) I believe Ian is researching venues for public courses, so if anyone is interested in a public course, ping Ian with your locale. A few of us do offer private on-site trainings. I belie

RE: Struts training...

2008-01-09 Thread Jack Haynes
Hey Ted, Thanks. What do you charge for training through your site? Regards, Jack> Date: Wed, 9 Jan 2008 16:46:08 -0500> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: Re: Struts training...> > ATM, I don't think there are any public Struts 2 training courses> being offered a

Re: acessing form values in validation.xml

2008-01-09 Thread Laurie Harper
Sivaswamynatha K wrote: Hi, Is it possible to access the form variables in the validation.xml file. I am using Struts 1.2.9 Ie. I have a requirement to enter the year field between 1800 to current year + years. In validation.xml

Re: Problem using client side form validation feature. Friends, please help!!!

2008-01-09 Thread Laurie Harper
This is normal. From the documentation for the html:javascript tag [1] "... The dynamicJavascript and staticJavascript attributes default to true, but if dynamicJavascript is set to true and staticJavascript is set to false then only the dynamic JavaScript will be rendered. If dynamicJavascri

Re: extending tags for multi client capability

2008-01-09 Thread Laurie Harper
Are you asking how to realize these requirements with Struts 2? Olaf Kittelmann wrote: hi, for our web applications we need to implement multi client capability. where the application is deployed once, and via customization can be accessed in n different flavours. One Aspect of The customizatio

Re: Struts 2: duplicated error messages occur when nest another table within tag

2008-01-09 Thread Laurie Harper
Cheng Wei Lee wrote: I'd difficulties in clearing the client side validation error messages. So I followed the guide at http://struts.apache.org/2.x/docs/client-validation.html and try from scratch and found that if I nest a table within the tag, the message cannot be cleared and it will keep ac

Re: [S2] Form Select

2008-01-09 Thread Laurie Harper
They need to be public for Struts to be able to call them... ;-) carmi_cd wrote: here is my getter and setter method for selectedModules private String[] getSelectedModules() { return selectedModules; } private void setSelectedModules(String[] value) { selectedM

Re: Servlet /struts threw load() exception

2008-01-09 Thread Laurie Harper
Sohil Rupani wrote: hi , i m getting the following error of which i understand there might be a problem with my struts-config file but i checked it and couldn fine any i m using struct 1.3.8 below i have pasted my structs-config file SEVERE:javax.servlet.UnavailableException: Parsin

Re: how to use difference resource file in Class ActionMessage

2008-01-09 Thread Laurie Harper
Mike.G wrote: Hi, one question about the Class ActionMessage, how to use the difference resource file in Class ActionMessage? example: I have to resource file, one is the default for struts configuration, secondly had used a bundle key. so, how to use that message resource file in Class Action

Re: Problem in using Message Store Interceptor

2008-01-09 Thread Laurie Harper
When you specify interceptors for an individual action, you are replacing the default set with what you specified. So, with the configuration you posted below, the default interceptor stack is being replaced with just the store interceptor. You would need to add a reference to the interceptor s

Re: Forward with redirect="true" failing mysteriously

2008-01-09 Thread Laurie Harper
Tough to diagnose remotely without more information :-( Usually an IllegalStateException on a redirect is the result of the response having been committed, but you say the response isn't being touched by your action. My guess would be that it's being touched by something else... If you can't f

Re: Validation Complications - Validating only those fields displayed in the form, and not the rest of the object in use

2008-01-09 Thread Laurie Harper
Singulariter wrote: Hi all, Quick Struts 2 validation question: Is it possible to validate only the fields displayed in a form, when the form's fields are part of a larger object that uses annotation validation? The problem is that I am using one object across many forms, each form contains so

Re: unexpected behavior with a checkbox.

2008-01-09 Thread Dave Newton
--- "David Durham, Jr." wrote: > Peter L. Berghold wrote: >> Where the trouble comes in is if the field is unchecked which I thought >> would set the value of the Boolean to "false." It doesn't, it remains >> as a true. >> >> How do I implement behavior where if the checkbox is unchecked it sets >

Re: struts 2.0.9 tooltip attribute problem

2008-01-09 Thread Laurie Harper
akash agrawal wrote: Hi, I am using tooltip attribute on a textfield. The problem is that tooltip does not comes up completely. Is there a limit on the length of characters a tooltip can have? How can I fix/change this so the whole tooltip comes up? What do you mean by "...does not comes up

Re: [S2] Form Select

2008-01-09 Thread carmi_cd
thank you so much..it solved the problem.. Laurie Harper wrote: > > They need to be public for Struts to be able to call them... ;-) > > carmi_cd wrote: >> here is my getter and setter method for selectedModules >> >> private String[] getSelectedModules() { >> return selectedModul

Re: Problem in using Message Store Interceptor

2008-01-09 Thread quinquin2209
Thanks for your reply. It works now. Laurie Harper wrote: > > When you specify interceptors for an individual action, you are > replacing the default set with what you specified. So, with the > configuration you posted below, the default interceptor stack is being > replaced with just the

Re: Validation Complications - Validating only those fields displayed in the form, and not the rest of the object in use

2008-01-09 Thread Singulariter
Great! I guess I'll be switching to XML validation or action specific validation. Thanks for the info :) George Laurie Harper wrote: > > Singulariter wrote: >> Hi all, >> >> Quick Struts 2 validation question: >> >> Is it possible to validate only the fields displayed in a form, when the >

how to use difference message resource file in ActionMessage

2008-01-09 Thread Mike . G
Hi, everyone, I am use the struts version 1. now I have a question about the class ActionMessage: if I had configurated more than one message resources in struts-config.xml, and I had use difference key for mark them. but In my action, I want to use ActionMessage for some message, how to do fo

Re: Struts 1 or Struts 2

2008-01-09 Thread aum strut
Hi Ted, Thanks for the response. The point of my confusion was that i came to know from some where that Struts1 is more demanding in the market than Struts2. is there much diffreence between Struts1 and Struts2? On Jan 9, 2008 7:15 PM, Ted Husted <[EMAIL PROTECTED]> wrote: > In this case, I'd s

Re: Type conversion with Generics

2008-01-09 Thread ravi_eze
hey! one thing btw: when u say something[0] how can it be represented in set/ map as the order is not maintained? and one more thing: *-conversion.prop does it work for a custom object in the action class (struts2) (i.e. i had seen fromString being called but not toString method ) any help r

Re: Struts 2: duplicated error messages occur when nest another table within tag

2008-01-09 Thread Cheng Wei Lee
I read from the documentation that pure Javascript client side validation is only applicable for xhtml and css_xhtml themes, so other themes are out. I took a look at the validation.js and found that the Javascript function to clear the error messages actually only consider that there're 1 table in