SV: validation with struts 1.2

2004-04-05 Thread hermod . opstvedt
Hi So now we know of two problems with it :) 1. Bundles don't work 2. It prefixes the methods with the formname, but the validation routines don't not know this. Hemrod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 08:50 Til: 'Struts Users Mailing

AW: validation with struts 1.2

2004-04-05 Thread Otto, Frank
It doesn't search the message text in this bundle. It was been ignored. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. April 2004 08:44 An: [EMAIL PROTECTED] Betreff: SV: validation with struts 1.2 Hi And what excactly is the problem ?

SV: validation with struts 1.2

2004-04-05 Thread hermod . opstvedt
Hi And what excactly is the problem ? Hermod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 08:42 Til: Struts-User (E-Mail) Emne: validation with struts 1.2 Hi, i have downloaded struts 1.2. It contains a new commons-validation.jar. This suppo

validation with struts 1.2

2004-04-05 Thread Otto, Frank
Hi, i have downloaded struts 1.2. It contains a new commons-validation.jar. This supported the bundle attribute of the msg element. But it doesnt't function. Does someone use this kind of validation? Regards, Frank

Action Class - No of instances

2004-04-05 Thread Senthivel U S
Greetings, Programming Jakarta Struts by Chuck Cavaness book says always there will be only one instance of Action Class but we have checked with the application and found that there are more than one instance of same action class even though the same instance is serving simultaneous requests. Pl

RE: 1JSP and multiple forms ,which have session scope

2004-04-05 Thread Matthew Fisher
you could try the following ... -Original Message- From: Masashi Nakane [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 April 2004 2:26 PM To: Struts Users Mailing List Subject: 1JSP and multiple forms ,which have session scope Hi, all Can 1 JSP change submit poi

1JSP and multiple forms ,which have session scope

2004-04-05 Thread Masashi Nakane
Hi, all Can 1 JSP change submit point(action map which means action and form bean) under some condition ? like - .jsp <%-- from here search conditions form--%>.

RE: accessing imported classes with jstl

2004-04-05 Thread Matthew Fisher
I thought I should add that I want to access these with the jstl not scriplet code. -Original Message- From: Bill Siggelkow [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 April 2004 11:35 AM To: [EMAIL PROTECTED] Subject: Re: accessing imported classes with jstl Matthew Fisher wrote: > Hi al

RE: why I got "response already committed" exception

2004-04-05 Thread Daniel Joshua
btw, typo for "onclick" ? Regards, Daniel -Original Message- From: Sanoj, Antony (IE10) [mailto:[EMAIL PROTECTED] Sent: Monday, 05 April, 2004 2:28 PM To: Struts Users Mailing List Subject: RE: why I got "response already committed" exception Have you tried using the jsp include di

Re: accessing imported classes with jstl

2004-04-05 Thread Bill Siggelkow
Matthew Fisher wrote: Hi all, I'm relatively new the jstl and I am mondering, how the heck I access methods and constants of the classes that I've imported? Matthew http://java.sun.com/webservices/docs/ea1/tutorial/doc/JSTL.html

Re: Problem with custom ActionMapping, set-property and WebLogic

2004-04-05 Thread Martin Cooper
Try adding matching getters for your setters, to make sure Weblogic sees these as properties. -- Martin Cooper "chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm having trouble getting a custom ActionMapping class populated with the > contents of a element of a Struts >

Problem with custom ActionMapping, set-property and WebLogic

2004-04-05 Thread chris
I'm having trouble getting a custom ActionMapping class populated with the contents of a element of a Struts declaration. My code works under Tomcat, but not under Weblogic 8.1. Can anyone provide any pointers? Everything's fine, except that the custom properties don't get set. The cus

accessing imported classes with jstl

2004-04-05 Thread Matthew Fisher
Hi all, I'm relatively new the jstl and I am mondering, how the heck I access methods and constants of the classes that I've imported? Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Iterate over ActionErrors

2004-04-05 Thread Matt Sgarlata
Thanks all, that worked :) Matt Kumar M wrote: Sorry about thatyou are right. Also, by default the tag goes after the Globals.ERROR_KEY (message="false"). [EMAIL PROTECTED] wrote: Kumar, isn't it meant to be message="false"? true=Globals.MESSAGE_KEY false=Globals.ERROR_KEY On 04/05/200

Re: Iterate over ActionErrors

2004-04-05 Thread Kumar M
Sorry about thatyou are right. Also, by default the tag goes after the Globals.ERROR_KEY (message="false"). [EMAIL PROTECTED] wrote: Kumar, isn't it meant to be message="false"? true=Globals.MESSAGE_KEY false=Globals.ERROR_KEY On 04/05/2004 07:57 PM Kumar M wrote: Use the html:message tag:

Re: validator javascript function names == action-paths

2004-04-05 Thread Adam Hardy
Hi Niall, it seems not. Well, according to my browsers! Thanks for the response though, but I couldn't find a solution and after a couple of hours of poking around in the source, I just dropped the whole ValidatorActionForm and went with the ValidatorForm. It seems that people on the dev-list

Re: Iterate over ActionErrors

2004-04-05 Thread Adam Hardy
Kumar, isn't it meant to be message="false"? true=Globals.MESSAGE_KEY false=Globals.ERROR_KEY On 04/05/2004 07:57 PM Kumar M wrote: Use the html:message tag: [EMAIL PROTECTED] wrote: Does anyone know the recommended way to iterate over all the errors automatically generated by the Valid

Re: Problem with DynaValidatorForm

2004-04-05 Thread Adam Hardy
Done the same sort of time-wasting myself just recently with the validator. My mistake was to forget to upgrade the validator-rules.xml. I thought I would try to help with the docs by writing out the setup steps on the wiki. Perhaps if you could look over it and see if there's anything I missed

Re: validator javascript function names == action-paths

2004-04-05 Thread Niall Pemberton
Don't know much about javascript, but are you allowed to have "/" in a javascript function name? Niall - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, April 04, 2004 9:48 PM Subject: validator javascript funct

Re: How to use DispatchAction for a List header?

2004-04-05 Thread Niall Pemberton
You do this using tiles. Take a look at Section 5 in the following pdf: http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Niall - Original Message - From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, April 05

RE: Creating value objects using reflection class

2004-04-05 Thread Robert Taylor
org.apache.commons.beanutils.* robert > -Original Message- > From: walkrustin [mailto:[EMAIL PROTECTED] > Sent: Monday, April 05, 2004 12:37 PM > To: [EMAIL PROTECTED] > Subject: Creating value objects using reflection class > > > Hi, > > After receiving the form, I have to copy the va

Re: Creating value objects using reflection class

2004-04-05 Thread Niall Pemberton
Commons beanutils - struts uses it already - there is a copyProperties() method org.apache.commons.beanutils.BeanUtils http://jakarta.apache.org/commons/beanutils/ - Original Message - From: "walkrustin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 05, 2004 5:3

RE: Creating value objects using reflection class

2004-04-05 Thread Takhar, Sandeep
org.apache.commons.beanutils.BeanUtils In the jakarta-commons sandeep -Original Message- From: walkrustin [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:37 PM To: [EMAIL PROTECTED] Subject: Creating value objects using reflection class Hi, After receiving the form, I have

Re: returns null

2004-04-05 Thread Niall Pemberton
doesn't return null - it will generate a tag with the value specified. When you submit the form however disabled form controls are not submitted - this is part of the HTML specification and nothing to do with struts. If you want to show a value, but not allow the user to edit it then use to sho

Creating value objects using reflection class

2004-04-05 Thread walkrustin
Hi, After receiving the form, I have to copy the value of each field to a value object. I wrote a small reflection utility class to server the purpose. Now I need more functionalities to that utility class. I was wondering if there is any utility package already out there which helps copy the

returns null

2004-04-05 Thread asd asd
Why return null? If I change it with it will return "bbb" I use it in a ActionForm with appropriate setter/getter methods. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ANT Build: package javax.servlet does not exist

2004-04-05 Thread Rick Roberts
Thanks for the help. Reading comprehension must be a nice skill... I wouldn't know :( For example: Here is an excerpt from the build.xml file that Ted Husted provided me with: Once I provided the correct Local system paths the build went as expected. Thanks for your help, y

Re: Problem with DynaValidatorForm

2004-04-05 Thread Skip Hollowell
Son of a gun. As my gramma would used to say, "Ain't that a pip?" I guess I just have to ask myself how I missed that part in the tags and validator documentation. Thanks a million, Adam and Niall. 3 days down the drain, but you probably saved me at least 3 more. Skip Hollowell "Niall Pember

Re: Problem with DynaValidatorForm

2004-04-05 Thread Niall Pemberton
The validation is done before it calls the action's execute method - so if you get validation errors you won't see the debug output you put into your action - it forwards to what you defined in the "input" parameter before that. Sounds to me like your validation is working - as Adam said - put an

Re: Problem with DynaValidatorForm

2004-04-05 Thread Skip Hollowell
I do not currently have any error tags in my JSP. I was hoping to actually see the validation work in the server logs first, then work on spitting out messages as appropriate to the user. Skip Hollowell "Adam Hardy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Did you forget the

Re: ANT Build: package javax.servlet does not exist

2004-04-05 Thread Rick Roberts
I am trying to work thru Ted Husted, et al "Struts in Action". The tutorials are designed to use ANT to build the build.xml. I don't know much about ANT, but am assuming that it's javac that will use my CLASSPATH when ANT calls javac to compile the source. He provides a build.xml in $TOMCAT_HOM

Re: Iterate over ActionErrors

2004-04-05 Thread Kumar M
Use the html:message tag: [EMAIL PROTECTED] wrote: Does anyone know the recommended way to iterate over all the errors automatically generated by the Validator? I am familiar with the tag, but I can't figure out what tag(s) should be used if I want to manually iterate over each of the er

Re: Problem with DynaValidatorForm

2004-04-05 Thread Skip Hollowell
/PrepaidAccountInfo.do is the same form as prepaid.do, just a different path name. I couldn't get them to use the same path name. The forward is working, and it 'reloads' the form, but I get no validation issues. The funny thing is I don't think the PrepaidDynaAction is being called either. Non

Re: Problem with DynaValidatorForm

2004-04-05 Thread Adam Hardy
Did you forget the errors tag? Adam On 04/05/2004 07:44 PM Niall Pemberton wrote: With your configuration validator will forward to /PrepaidAccountInfo.do if validation errors are found - because thats what you set up as the "input" in your "/prepaid" action mapping - is that not happening? Niall

Re: Problem with DynaValidatorForm

2004-04-05 Thread Niall Pemberton
With your configuration validator will forward to /PrepaidAccountInfo.do if validation errors are found - because thats what you set up as the "input" in your "/prepaid" action mapping - is that not happening? Niall - Original Message - From: "Skip Hollowell" <[EMAIL PROTECTED]> To: <[EM

Iterate over ActionErrors

2004-04-05 Thread Matt Sgarlata
Does anyone know the recommended way to iterate over all the errors automatically generated by the Validator? I am familiar with the tag, but I can't figure out what tag(s) should be used if I want to manually iterate over each of the errors and build my own custom error message. Sorry for the ba

Problem with DynaValidatorForm

2004-04-05 Thread Skip Hollowell
OK, I have a lot of things going on in my app, and something is cancelling out my Validation, and I don't know what.I load the PrepaidAccoundInfo.do action, and the Tiles based page loads properly. I am able to submit the form on this page, and it loads the prepaid.do action just fine, and r e

Re: ANT Build: package javax.servlet does not exist

2004-04-05 Thread Joe Germuska
I am trying to work thru some examples and when I get to the part where I need to get ANT to build the project, ANT gives me this error: package javax.servlet does not exist So you're trying to build Struts source code with ANT? Have you got "servlet.jar" defined correctly in a copy of "build.

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Joe Germuska
At 11:54 AM -0400 4/5/04, Brian Lee wrote: Note that redirecting is less efficient than forward as it involves a additional http response and request. So forward will be faster and less processor intensive. Yes, but as noted, Struts is not designed to pass a single HTTP request through the Strut

RE: ANT Build: package javax.servlet does not exist

2004-04-05 Thread Paul McCulloch
It's not your system classpath that maters, it's the classpath for the javac ant task. For instance I have a task: This uses another task (earlier in build.xml) to set the classpath: So, read up on the javac ant task, specifical

Re: integer validation problem

2004-04-05 Thread Hubert Rabago
--- Joe Hertz <[EMAIL PROTECTED]> wrote: > Jolly, you answered it yourself: > > "I dont want to write another actionForm class that represent my DTO...I am > in great trouble." > > I do feel your pain though. It seems on many levels, just plain silly to > have > to declare objects almost but n

Re: ANT Build: package javax.servlet does not exist

2004-04-05 Thread Matt Sgarlata
Hi Rick, You need to make sure that servlet.jar is in your classpath for Ant. This is done in your build.xml file. For my project, I have my classpath pull everything in my webapp's WEB-INF/lib directory and then I put other jars that are included in my application server (i.e. - Tomcat) in

ANT Build: package javax.servlet does not exist

2004-04-05 Thread Rick Roberts
I am new to the list so go easy on me :) I searched the archives but did not find the answer to this but I am almost certain that it has been asked here a Bejillion times already. I have tomcat 4.24 on Redhat running with no problems. I can run the struts blank.war starter application with no pr

Re: integer validation problem

2004-04-05 Thread Craig R. McClanahan
Joe Hertz wrote: [snip] Wouldn't it be more useful to have the form object do the type conversion? Have a way to tell it the "JSP type" (99% String) and the "application type". Make the form objects smart enough to give you a properly typed result, much in the same way Hibernate's Session.load(

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Brian Lee
Note that redirecting is less efficient than forward as it involves a additional http response and request. So forward will be faster and less processor intensive. BAL From: "Daniel Perry" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: Calling one action fr

Re: struts app on weblogic 8.1

2004-04-05 Thread as as
Hi, I get a similar error too.I am trying to port my application from weblogic 7 to 8i...Has anyone enocuntered similar problems like this. Thanks! BASHEER <[EMAIL PROTECTED]> wrote: Hi I was able to deploy to struts-example.war successfully, i was trying another sample, here is the error

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Takhar, Sandeep
This is the same request so the parameters are still there. In the struts-config you can use redirect="true" which means use a new request (on the forward), but I rarely use this personally. (Default is false) sandeep -Original Message- From: James MacKenzie [mailto:[EMAIL PROTECTED] Se

Re: Calling one action from another - removing request parameters

2004-04-05 Thread Geeta Ramani
James: Why this happens is because you are proabably forwarding (rather than redirecting) to Something2Action - so the request object is intact for your second action. So you can choose to redirect instead.. however be aware that if you redirect, *everything* in the request object then will be lo

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Robert Taylor
You are probably forwarding to something2Action. If you redirect to something2Action, then the query parameters will have been removed from memory. robert > -Original Message- > From: James MacKenzie [mailto:[EMAIL PROTECTED] > Sent: Monday, April 05, 2004 11:01 AM > To: [EMAIL PROTECTED

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Guillermo Meyer
If the problem is that somethingAction2 sees row parameter, you have to send a redirect when calling action2. You can set redirect="true" in the forward. Request parameters cant be deleted during request life cicle. When sending a redirect, a new request is generated, so original request paramenter

RE: Calling one action from another - removing request parameters

2004-04-05 Thread Daniel Perry
If you forward between actions without actually redirecting the browser, then the parameters remain intact! If you set redirect to true, then the request will be redirected at the browser level, and parameters will be cleared. Daniel. -Original Message- From: James MacKenzie [mailto:[EMA

Calling one action from another - removing request parameters

2004-04-05 Thread James MacKenzie
Hi All, I am having a small problem with Struts. If my application calls say something1.do?row=10 and the result of this calls another action servlet ie something2.do with no request parameters, something2Action is still able to see request.getParameter("row"). Does anyone know why is this hap

RE: Design Question

2004-04-05 Thread Erez Efrati
The SecurityFilter aims to solve among others, one big and strange problem with the way Servlet Containers treat secured URLs. It makes unsolicited login request forms doable - though still not perfect. Sure, I would have expected Servlet Container Standard to address this painful problem by now, b

Re: html:radio and Validator Framework

2004-04-05 Thread Adam Hardy
VJ, I think I'm right in saying that a radio button will not be included as a submit parameter if it is not checked. I know that's true for checkboxes. Are you using required() as well as whatever value you wanted? Post the struts-config form declaration and the validation form dec, and the get

Re: integer validation problem

2004-04-05 Thread Adam Hardy
Actually there's a module in xdoclet that will do this the other way around for you - it'll create the struts-config form decs and the validation.xml if you put in javadoc-style hooks into a DTO, with javadoc for getter / setter. http://xdoclet.sourceforge.net/tags/apache-tags.html I know what

Re: Frequently Performed Action Tasks

2004-04-05 Thread Adam Hardy
That's basic authentication for you. Or was it roll-your-own? Also I'm always surprised people bother using such mechanisms, especially when you have to do the 'is this a public computer?' scenario. Form-based authentication doesn't rely on the browser for any more than the session id. Still it

RE: [FRIDAY OT] .net or websphere?

2004-04-05 Thread Andrew Hill
And dont forget the bodykit, lowered suspension, momo steering wheel, recaro seats, Alpine and a couple of subs, and of course the obligatory Hello Kitty in the back window... -Original Message- From: McCormack, Chris [mailto:[EMAIL PROTECTED] Sent: Monday, 5 April 2004 16:22 To: Struts Us

RE: [FRIDAY OT] .net or websphere?

2004-04-05 Thread McCormack, Chris
Buy the civic but put reay big tyres on it and wear a helmet and leathers whenever you drive it. Debate ? What for :) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: 02 April 2004 18:52 To: Struts Users Mailing List Subject: Re: [FRIDAY OT] .net or websphere?

Re: integer validation problem

2004-04-05 Thread Joe Hertz
I use Hibernate. I wouldnt consider this goal at all obtainable without a robust. ORM tool. Don't get me wrong, I'm not hellbent on using Maps for everything. I dont mind creating the forms. I mind creating N extra classes because of the JSP type conversion issue. What I'm going to do in the s

How to use DispatchAction for a List header?

2004-04-05 Thread Sanoj, Antony (IE10)
I have some 10-15 views which display the list of items based on a key. for eg: if the key is ProblemReport, the view that will be called will be a problem report list. if the key is Notification, it will be notification list..etc Now each list view has a header frame and a content frame. Header

Re: Frequently Performed Action Tasks

2004-04-05 Thread Joe Hertz
Actually, I was thinking about the situation where someone deleted me off of a Mailman list (a whole \'nuther story, that one!), but neglected the fact I had access to the web archives (thanks to a session cookie I had already obtained) for as long as my browser remained open (weeks). I suppose

html:radio and Validator Framework

2004-04-05 Thread Vijay.Nair
Hi, In my form has one radio button and many text fields. At the time of submit, I am validating the form using ValidatorFrameWork. I am getting error message for all text fields. But not radio button fields. Is it that the validator framework cannot be used with the Radi

RE: Form submit in JavaScript

2004-04-05 Thread Andrew Hill
Why not? It should work. What error does that give? -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Saturday, 3 April 2004 03:32 To: Struts Users Mailing List Subject: RE: Form submit in JavaScript I tried that too...but still not able to submit to the a

RE: why I got "response already committed" exception

2004-04-05 Thread Sanoj, Antony (IE10)
Have you tried using the jsp include directive? This will include the contents of your snapshotHtml page in the body.jsp, before it compiles. -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:24 AM To: [EMAIL PROTECTED] Subject: RE: why I got "r

Re: HashMap of Vectors and Indexed Properies

2004-04-05 Thread Craig R. McClanahan
Craig Tataryn wrote: Thanks, I'll check that out. Hey, did the mailing list address change or something? I've always mailed to [EMAIL PROTECTED] and now I see the reply-to generated by the list manager is now [EMAIL PROTECTED] Craig Yes, it did. At the March 2004 meeting of the Apache Soft