Re: OT: J2EE certified

2003-08-14 Thread Adam Hardy
On 08/14/2003 04:26 AM Mohd Amin Mohd Din wrote: Simple question, is there or is there not a certification for a J2EE web app? You want to certify a WEB APP? You mean the code and the database etc? The answer is no. Normally only people get the certification. Adam ---

Re: intuitively to get new Id to next action when old Id is in request?

2003-08-12 Thread Adam Hardy
because I'm moving from one action to a second action within the scope of the same request - I think. In fact, I'm not sure. I know if I create my own actionforward, I can write to the querystring, but I haven't done that yet. Will have to wait til after lunch. Theoretically if it works that me

Re: struts problem(Unable to populate the form in the jsp to ActionFormbean)

2003-08-11 Thread Adam Hardy
That's because your ipAddress objects don't exist in your formbeans arraylist when you submit. In your formbean you are only instantiating one ipAddress object. Sridhar Kotagiri wrote: Hi, I have a Action form which contains an arraylist the array list adds beans which are called IpAddress(t

Re: Redirect option instead of findForward!!!Urgent

2003-08-11 Thread Adam Hardy
Hi Anurag, you specify in struts-config in the forward element for the action mapping, that it should redirect. (="true") Adam Anurag Garg wrote: Hello All, I have created a page where i submit the data for saving it in the database. I have some hidden variables defined in the same page. After

Re: Apache Tomcat web servers

2003-08-10 Thread Adam Hardy
Hi Hue, thanks for the comprehensive run-down on hosting. Perhaps you should get the company put on http://jakarta.apache.org/struts/resources/hosts.html for the record. Actually it's a shame that there are no comments about the current hosting companies on that list. By the way Hue, you negle

Re: how to pass a jsp variable to a javascript function

2003-08-10 Thread Adam Hardy
Hi Julie, what do you get as a result of that iterate? It looks correct. Do you have javascript errors? Adam [EMAIL PROTECTED] wrote: Hi All, Can anyone suggest how to pass a jsp variable to a javascript function correctly? It is in a nested:iterate block that has an indexId="tmpIndex". what

Re: [OFF TOPIC] JavaScript + tag question

2003-08-09 Thread Adam Hardy
;Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: [OFF TOPIC] JavaScript + tag question You may be right - might have to use the .index property instead. -Original Message- From: Adam Hardy [mailt

method to get new Id to next action when old Id is in request?

2003-08-08 Thread Adam Hardy
I have two actions chained together. They both take the same formbean. The first is sectionInsert.do and the second, which sectionInsert forwards to on success, is sectionEdit.do sectionInsert.do receives the properties of a Section in the request parameters, including id=0 where it is 0 becaus

Re: Apache Tomcat web servers

2003-08-08 Thread Adam Hardy
How much are you expecting to pay for a shared machine with tomcat on? And is that with or without root access? I am not suggesting anything, but I am planning to do this myself and would like to find out prices. What I have looked at so far for root access costs 49 euros (= dollars almost) for

Re: extending Action-config

2003-08-08 Thread Adam Hardy
I think if you want to use set-property in the action mapping, you have to extend action mapping class. This is what they did to configure it for sslext: Reinhard wrote: Hi all, I wonna pass extra parameters to an action. As I saw, the parameter-attribute is just a st

Re: N form items as fields

2003-08-07 Thread Adam Hardy
Hi Dave, you should look at indexed or nested tags with the iterate tag. hth Adam David Thielen wrote: Hi; I have a jsp page where I want to display N items where I get the N items from the database. I need to have an edit field with each item. Whats the best way to do this in struts? thanks - da

Re: changing to JSTL

2003-08-07 Thread Adam Hardy
Wow. I like this EL, but I'm not sure it's a good thing unless they ban <%scripting%> in jsps. :) Alex Shneyderman wrote: test="${yourFormName.yourProperty ne 0}" -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 200

Re: Actions Best Practice

2003-08-06 Thread Adam Hardy
Erez Efrati wrote: One of the problem I found with 'action=init' method, is that the validation is activated automatically for both cases (both init & send), and fails of course on the 'init' cause no field is yet in the form. So I was forced to configure 'validate=false' and call it manually in t

Re: [OFF TOPIC] JavaScript + tag question

2003-08-06 Thread Adam Hardy
I believe that document.forms[0].elements[anySelectbox].value will be invalid. .value only works on non-select form-elements. AFAIK without testing it now. Mark Galbreath wrote: If you read the API you will see that JavaScript functions are built into the Struts tag: http://jakarta.apache.org/s

Re: Still struggeling: howto get ActionForward to calling page

2003-08-06 Thread Adam Hardy
quot; <[EMAIL PROTECTED]> Date sent: Wed, 06 Aug 2003 10:50:00 +0200 From: Adam Hardy <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject:Re: Still struggeling: howto get ActionForw

Re: Still struggeling: howto get ActionForward to calling page

2003-08-06 Thread Adam Hardy
The input attribute on the action mapping is what you specify for the return page when validation of the form bean fails, so that is not going to help you. The easiest solution I can think of is to put a hidden field in your selection screens with the screen's URL in it. Alternatively you coul

Re: DynaActionForm BUG?

2003-08-06 Thread Adam Hardy
Hi Amin, what do you mean by a multibox or "set" of checkboxes? I am not familiar with the terminology. I presume you have a set of checkboxes for a range of dates. Adam [EMAIL PROTECTED] wrote: All the multiboxes have different names. The checkboxes are rendered dynamically. I have checked the

Re: Date validation and format

2003-08-05 Thread Adam Hardy
I have l10n issues like this to resolve but haven't had the time yet. I'm interested in the reply. I suspect that the issue is still outstanding, although there is no enhancement request in bugzilla. There is this related bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=19161 but there a

Re: Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132

2003-08-05 Thread Adam Hardy
I think you will have to look in the struts source. I've often seen this question but never an answer. Adam L wrote: I've seen this same issue since moving to 1.1. I'm running JBoss 3.0.7. Other apps I have running (non struts apps, or if they are, they must be using an earlier version) are usin

Re: JSP Exception, HELP!!!

2003-08-04 Thread Adam Hardy
It's not possible to tell what is happening without seeing the snippet of HTML for the taglib that is causing the problem. Perhaps you should post that here and it would be easier for people to tell. Adam Samanth Athrey wrote: Hello All, This is a real strange exception am getting. I have a ma

Re: Fwd: model - controller interface

2003-07-25 Thread Adam Hardy
Hi, after checking out those patterns and examples on the sun website, I decided beans were the best way to transfer data across the model-controller interface. I just have to convert my DVform beans into my own value beans using BeanUtils and it's done. I was just worried it would impact perf

Re: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]

2003-07-25 Thread Adam Hardy
No, it's real. You see it all the time on ezines and quasi-spam newsletters. I never realised how ridiculous it was before - bit like Amazon, where it says "Welcome Adam Hardy! If you are not Adam Hardy, please click here!" Andrew Hill wrote: Hehe. Tongue in cheek surely? :-)

Re: Radio active? :-) or a working example of nested radio buttons

2003-07-25 Thread Adam Hardy
the time to respond to my plea for help. Scott "Adam Hardy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] you need someething like this where the bean define allows the radio button to access the current bean of the iterate loop, and then you can call the name f

[FRIDAY] Re: OT Posts on this List

2003-07-24 Thread Adam Hardy
mply doing a search on Java Developer's Forum. But I guess a lot of people are like me, feel good about this mailing list and wanna ask questions here. -Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 24, 2003 3:37 PM To: Struts Users Mailing List Subject: Re: O

Re: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Adam Hardy
Watch out, you might get blackballed Yansheng Lin wrote: Hahahaha, Oh shoot, I almost fell off my chair:). -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: July 24, 2003 1:53 PM To: Struts Users Mailing List Subject: Re: OT Posts on this List --- Mark Galbreath

Re: Using XMLForms in Struts

2003-07-24 Thread Adam Hardy
Hi Simon, what is xml forms? Do you use it to produce xml output? Is it for input as well? Adam Simon Kelly wrote: Hi all, has anyone tried to use the XMLForms in the struts setup yet? I need to use it as part of the pre-requisites for the current project, and am wondering if it is easy or com

Re: model - controller interface

2003-07-24 Thread Adam Hardy
oginForm) Suzette H. Daniel -Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 8:31 AM To: Struts Users Mailing List Subject: Re: model - controller interface So in this code snippet from the example Business Delegate class, public void addNewRes

Re: model - controller interface

2003-07-24 Thread Adam Hardy
at the bottom). http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html It seems that you understand the use of this pattern, so now identify what isa delegate in your system and use this pattern in your code. Hope this helps. Suzette H. Daniel -Original Message- From: Adam Hardy

Re: model - controller interface

2003-07-24 Thread Adam Hardy
ns (http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html). Suzette H. Daniel -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 7:12 AM To: Struts Users Mailing List Subject: model - controller interface I'm just about to write all t

model - controller interface

2003-07-24 Thread Adam Hardy
I'm just about to write all the factory classes in tomcat (to connect via JDBC to the DB) for the updates and other CRUD my app will do. I am going to write methods for my actions to call, with a parameter for each item of data on the objects to be updated, e.g.: treeHuggerFactory.update(id, na

Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote: I think it would be better if we prompt all the errors at once to the user. The user should not wait till entering the valid fields and then check for the validity of the entered values. The "Required" condition should take the precedence over all other condition for that *part

Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only "2" characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the *minlength* condition un

Re: International Struts Meetup Day

2003-07-24 Thread Adam Hardy
Hey, they don't have my city in there! I'm sure Munich is bigger than Dusseldorf! Anyone else in Munich? Van Riper, Mike wrote: When I was looking into starting a Silicon Valley Struts User Group back in March, I put in a proposal to meetup.com for a new topic area for Struts. Meetups happen at l

Re: DynaActionForm, reset(), initialize() & session scope

2003-07-24 Thread Adam Hardy
Sorry Mike, what happens if you don't override reset() and call initialize() - I mean what is this empty/null collection problem with checkboxes? I haven't come across it. Adam Mike Whittaker wrote: Okay. We have to overide reset() and call initialize() to prevent the empty/null collection pro

Re: Validator Problem

2003-07-22 Thread Adam Hardy
read maxlength 16 minlength 2 Chuck -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can yo

Re: Validator Problem

2003-07-22 Thread Adam Hardy
1 not arg2. Your file should read maxlength 16 minlength 2 Chuck -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts

Re: Radio active? :-)

2003-07-22 Thread Adam Hardy
oh sorry. It's late. umm, the radio value should reference the bean defined in bean define from the nested iterate. so currentOp.guyName() Vijay Balakrishnan wrote: Is it <%=currentOp.guyName();%> or <%=myBean.guyName(); %> in your example below ?? -Original Message-

Re: Validator Problem

2003-07-22 Thread Adam Hardy
Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message "title cannot be less than 2 characters" for the minlength validation, but I get "title cannot be more than null characters" for the maxlength validation.

Re: Radio active? :-)

2003-07-22 Thread Adam Hardy
you need someething like this where the bean define allows the radio button to access the current bean of the iterate loop, and then you can call the name function. hth Adam ScottC wrote: I'm having trouble figuring out the nested:radio tag and getting the values set. I have bean that nests

Re: Building Dynamic Tables with DyanValidatorForms

2003-07-21 Thread Adam Hardy
I don't recognise the javascript functions table.insertRow() and row.insertCell(), but I have written javascript to manipulate the html dom and I had problems copying stuff, i.e. it just wouldn't. But I never got the copied stuff to appear on the page like you have. I found I could only create

Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread Adam Hardy
I'm donig something like that using xml. The javascript xml conversion facilities are quite manageable. Yansheng Lin wrote: Haha, that's what I did with my table when I have to submit the whole table at one. Old string + new string. - Javascript: sorry, I don't know you. what's your name aga

more about login

2003-07-17 Thread Adam Hardy
I've hit a conflict in my security set-up. I am using container-managed security with the FORM option and so far I have a login.jsp and an error.jsp which work fine. The conflict is now that I want to put my JSPs in my WEB-INF directory for protection's sake. Tomcat can't handle this because i

login for half my action mappings, leaving other half unsecured

2003-07-17 Thread Adam Hardy
In some of my action mappings I am providing XML output for anybody and it shouldn't be protected by any web.xml security-constraint, but for the rest, I need login security which I already have set up. What I have come up with after a slight false start is a plan to have all my secured request

Re: dificult problem, preventing population (repost)

2003-07-17 Thread Adam Hardy
I'm sure a quick look in the source code would give you what you want - try looking at isTokenValue() in Action.java Jing Zhou wrote: - Original Message - From: "Rob" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 16, 2003 6:57 PM Subject: dificult problem, preventing

Re: security constraints on servlet mappings to struts action mappings

2003-07-16 Thread Adam Hardy
Oh! Well I guess that puts an end to that little plan. Thanks anyway. David Graham wrote: --- Adam Hardy <[EMAIL PROTECTED]> wrote: I just want to make sure I understand this correctly. I have 2 different servlet mappings to the struts action servlet, e.g. *.do and /xml/* See the w

security constraints on servlet mappings to struts action mappings

2003-07-16 Thread Adam Hardy
I just want to make sure I understand this correctly. I have 2 different servlet mappings to the struts action servlet, e.g. *.do and /xml/* If I put a security constraint on one in my web.xml, then an action mapping in struts via e.g. library.do would be only 1/2 protected, because the same a

Re: Where to build dropdown lists?

2003-07-16 Thread Adam Hardy
Because it depends on how dynamic the list is. I only have a few things which are so unchanging from user to user and screen to screen that they can go in application scope. But I use the same mechanism for the objects in request scope that are lists which depend on an ID or something and so ch

Re: Where to build dropdown lists?

2003-07-15 Thread Adam Hardy
Susan Bradeen wrote: I also use a method call to retrieve my dropdown lists, but I gave up using an action as the input mapping parameter. I didn't see how I could implement it without putting a "returning from validation" check in there somewhere, and those particular "setup" actions have becom

Re: Where to build dropdown lists?

2003-07-15 Thread Adam Hardy
I designed a system where I can specify in my action which dropdown lists I require with a method call. I route my failed validate requests thro' the action (using the action mapping input tag) every time so the call is always made, and if I specified it should be in the request, the system loo

Re: FW: need help

2003-07-15 Thread Adam Hardy
The question is whether you have the time to familiarise yourself with struts in order to take advantage of its time-saving features. Tiles would be good, having an action class for each object would be sensible, with different action mappings for display, create, update, delete and other opera

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread Adam Hardy
I've never been a fan of having SQL tags (especially the updating ones) in JSTL, for all the obvious reasons. However, there are a whole bunch of developers in the world who are used to model 1 style development (VB, PHP, PERL, Cold Fusion, ...), and it would not be fair for expert groups to ignor

Re: [OT] colours

2003-07-10 Thread Adam Hardy
How do you find these things? I searched google and got nowhere. Brown, Melonie S. - Contractor wrote: I like _http://www.defencemechanism.com/color/color_toy_fr.htm_ Adam Hardy wrote: > I'm doing the HTML design for my current project and I'm looking for > some resource on t

Re: [OT] colours

2003-07-10 Thread Adam Hardy
Wow. That is a good resource. I'm not sure about the guy's writing style though. Sounds like Tom Cruise in Magnolia! Thanks Andrew Adam Andrew Hill wrote: Maybe this can help: http://www.visibone.com/colorlab/ -Original Message----- From: Adam Hardy [mailto:[EMAIL PROTE

[OT] colours

2003-07-10 Thread Adam Hardy
I'm doing the HTML design for my current project and I'm looking for some resource on the web somewhere that will show me what colours go together well, i.e. sets of 2 or 3 colours that contrast pleasingly. I saw someone post a button site called 'steal these' http://gtmcknight.com/buttons/inde

Re: Outputting form:text value as "normal" text in the .jsp

2003-07-10 Thread Adam Hardy
I would not put the text to display into the form. Just put it straight in the request scope when you obtain it, or in both places if needs be. Or alternatively, output it as a read-only text field with CSS styles that make the field box invisible. Adam Linus Nikander wrote: Is there a way to

tiles attribute as message key?

2003-07-09 Thread Adam Hardy
I saw a few posts about this in the list archives. Couldn't find a definitive answer. What I am doing at the moment is this: to get the tiles attribute into my bean:message key. I started out just doing this: "/> because the key attribute of bean:message is RT However this only worked for

Re: Question on design

2003-07-09 Thread Adam Hardy
One big form bean for all parameters for all reports? It seems like the 'wizard' type of functionality. Adam Jamie M. Guillemette wrote: Perhaps i should clarify.. its now how to produce the final output.. thats the easy part. Its the fact that the reports may need customization.. ie intermidate

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
It's to be expected that the validate won't be called, since it makes the same test as isCancelled() to check whether to run the form's validate. The extra javascript for the onclick event stops any javascript validation from the validator plug-in from running. I doubt it's relevant here. You

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
sense then recompiling the source. We do this all the time for authentication filters etc. -Tim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 4:34 PM To: Struts Users Mailing List Subject: Re: Cancel button not working? I think the only way you

Re: Reusable Components

2003-07-09 Thread Adam Hardy
JavaServer Faces sounds like Tiles, Dynamic Forms and Validator rolled into one - or does that miss the point? Craig R. McClanahan wrote: On Wed, 9 Jul 2003, Frédéric Dreier wrote: Date: Wed, 9 Jul 2003 10:13:02 +0200 From: Frédéric Dreier <[EMAIL PROTECTED]> Reply-To: Struts Users Mailing List

Re: Question on design

2003-07-09 Thread Adam Hardy
jfreecharts worked well for me Adam Yansheng Lin wrote: You might want to consider using a third-party reporting tool/plugin. -Original Message- From: Jamie M. Guillemette [mailto:[EMAIL PROTECTED] Sent: July 9, 2003 12:35 PM To: Struts Users Mailing List Subject: Question on design

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
I think the only way you will solve this is by downloading the source and putting some logging statnements in there. It's easy enough to use the struts source by putting the org/apache/struts/action/RequestProcessor.java in your own source directory and recompiling and deploying. I don't think

Re: Performance Question about Tiles Plugin

2003-07-09 Thread Adam Hardy
Do you mean just the first time when the servlet container is compiling the JSP, or do you mean every time you call the page? Adam Axel Sachmann wrote: Hi, i am new in Tiles and i have some Questions! After i use the tiles-plugin with a external tile-defs file - the start of my frontpage (stan

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Via logging is basically how I solved it - by figuring out where in struts I was going wrong. What it means now is that RequestProcessor is not setting that attribute - you don't need to set it by hand, struts should. It's just one little if clause. According to your logging, request.getParame

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
I've solved my problem. Now you've checked the parameter, check to see if the request.attribute is set with request.getAttribute(Globals.CANCEL_KEY); For some reason in the RequestProcessor it sets this attribute to true when the request.parameter is present. Check it out. This is the one that

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Try logging what is in this cancel parameter (org.apache.struts.taglib.html.CANCEL) in the same place where you are calling isCancelled() Actually I've just realised I'm suffering the same problem. I'll try it myself. Let me know what you find as well! Adam Sashi Ravipati wrote: HTML is as sh

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Sashi, what HTML does the tag produce? Adam Sashi Ravipati wrote: I am trying this on Struts 1.1 final. Will this make any difference.. [EMAIL PROTECTED] 07/08/03 05:11PM >>> Odd, I can't reproduce that in 1.1-rc1. Unless you're extending something which might override the isCancelled(HttpSer

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
taking data(Value Objects) from webserver to appserver Shashank - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 3:26 PM Subject: Re: Design question: Confirm actio

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
? any idea? Pls reply Shashank - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 2:52 PM Subject: Re: Design question: Confirm action after validation ? I have an A

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
I have an Action base class which all my other Action classes inherit. In the execute() of this base class I check whether the user clicked cancel, before I call the child class execute(). I presume it would be easy enough to store the originating URL in the session, and if cancel is clicked, r

Re: ClassCastException using the DynaValidatorForm

2003-07-09 Thread Adam Hardy
Don't you just love caching? The number of errors I have made like that which drove me insane until whatever it was - the browser, the server, the memory - stopped caching. Torture. Michael Muller wrote: That would explain it. The struts-config got re-loaded telling it that "myForm" was a dyna

Re: ClassCastException using the DynaValidatorForm

2003-07-08 Thread Adam Hardy
l mock me. i'll be the laughingstock of the company. -- mike Adam Hardy wrote: I missed your second post. My mailer didn't thread it. So what is struts putting in 'instance' if it's not a dynabean? I don't suppose it would be so simple as the wrong form specified in t

Re: Urgent plz. on Dyna Validator

2003-07-08 Thread Adam Hardy
actually the javadocs say it all. If you've got dynaactionforms or validatorforms then it's not a huge step. [EMAIL PROTECTED] wrote: I am new to Dyna Validator and its working. Any useful resources on the working of a Dyna Validator Form/Dyna Action Validator will be appreciated. thanx --mohan

Re: How can I set the defualt selection?

2003-07-08 Thread Adam Hardy
rm in jsp. Maybe I am wrong, could give me a valid code segment example? "Adam Hardy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Struts will automatically mark the selected option when the value of the select box field/property in the actionform is set. So if you w

Re: ClassCastException using the DynaValidatorForm

2003-07-08 Thread Adam Hardy
nce" is not a DynaBean. It would appear that something other than a DynaBean is being stored where struts expects to find a DynaBean. Does this help anyone figure out what I'm doing wrong? -- Mike Adam Hardy wrote: I got ClassCast exceptions, but not necessarily this one, because

Re: ClassCastException using the DynaValidatorForm

2003-07-08 Thread Adam Hardy
Bummer. It isn't so simple, judging from your stack trace. Looks like a config error, because struts is barfing when it tries to create your action form. Michael Muller wrote: All my fields are strings. Here's some of my struts-config.xml: ... Adam Hardy wrote: I got

Re: prepopulate a DynaActionForm

2003-07-07 Thread Adam Hardy
if (form == null) { form = RequestUtils.createActionForm(...) } look at: http://www.mail-archive.com/[EMAIL PROTECTED]/msg12356.html -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 7, 2003 4:01 PM To: Struts Users Mailing List Subject: Re: prepopulate a DynaActionForm Ha

Re: ClassCastException using the DynaValidatorForm

2003-07-07 Thread Adam Hardy
I got ClassCast exceptions, but not necessarily this one, because I was using field class types other than Strings in my DynaActionForm. DynaValidator will only validate strings, btw. Adam Michael Muller wrote: I've got the validation framework working for me using my own form bean which is de

Re: prepopulate a DynaActionForm

2003-07-07 Thread Adam Hardy
Have you got any exceptions logged or on the console? Where did you get the dynamic="true" attribute from? I don't use it, & don't need it. What does it do? Have you got the validating parameter set in web.xml for the action servlet? validating true Hope that helps. Adam Nabil

Re: Validate() in netscape

2003-07-07 Thread Adam Hardy
going to the page specified in Action Forward. Any clue why this doesn't work in Netscape? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:36 PM To: Struts Users Mailing List Subject: Re: Validate() in netscape sriram wrote: I'm using Netsc

Re: Validate() in netscape

2003-07-07 Thread Adam Hardy
sriram wrote: I'm using Netscape 4.7 And the erors here are not javascript. Simple validations performed in validate() method of ActionForm. I'm using an image in place of a submit button (using tag). In case value is not provided for a mandatory field, the validate() method will chk for null an

Re: null form pointer

2003-07-07 Thread Adam Hardy
First make sure you have specified the form bean in the action mapping correctly. What do you mean by "the validate button"? Is that your submit button which submits the form to your edit action mapping? Adam Nicolas Seinlet wrote: I have a simple struts application. I've begin with a login pa

Re: question about depends attribute in validator-rule.xml

2003-07-07 Thread Adam Hardy
it's the attribute you use to set the validation tests you want validator to carry out, e.g. required, maxlength, creditCard Kelvin wu wrote: > Hi, > could anyone tell me the meaning of depends attribute of validator element > in validator-rules.xml? > > > > - Original Message - > From

Re: Validate() in netscape

2003-07-07 Thread Adam Hardy
It's weird how many people have javascript issues with validator. What version of Netscape are you using and what errors are you getting? sriram wrote: I'm using Struts 1.0 and I have written some validations in the validate() method in ActionForm . For example, some of the fields on the form are

Re: Do any one send me the simplest validate strut for me?

2003-07-07 Thread Adam Hardy
Hi MaFai, the subscription form in the struts-example does validation with the normal validation mechanism, and the registration form does it with the struts-validator plug-in. Which one are you having problems with? The subscription form is simpler. I just had a look at the struts-config.xml file

Re: How can I set the defualt selection?

2003-07-07 Thread Adam Hardy
Struts will automatically mark the selected option when the value of the select box field/property in the actionform is set. So if you want to set one option as default in a blank form, set the actionform property to the value of the option you want. Preferably in the action.execute() so you do

Re: javascipt error in IE

2003-07-07 Thread Adam Hardy
y Ive had no trouble running NS6 and Mozilla together on the same machine - at the same time too. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, 7 July 2003 12:05 To: Struts Users Mailing List Subject: Re: javascipt error in IE --- Adam Hardy <[EMAIL P

Re: javascipt error in IE

2003-07-06 Thread Adam Hardy
this not acceptable for production use. Any ideas? -Original Message----- From: Adam Hardy To: Struts Users Mailing List Sent: 7/4/2003 5:43 AM Subject: Re: javascipt error in IE You mean the error comes from the email-validation? Richard Mixon wrote: Andy, I too would like to know how to

DynaValidatorActionForm suggestion / question

2003-07-04 Thread Adam Hardy
In my validation.xml I am repeating the form tag for several action mappings over and over again. Would it possible to allow the form tag attribute to be its own tag in the form tag, specified 1...n times, so that I can use the same validation declaration for different action mappings without c

Re: JAAS Struts & JBoss + Tomcat

2003-07-04 Thread Adam Hardy
Erez Efrati wrote: Hi, I am trying to integrate the JAAS into my Struts application running on JBoss 3.0.7 + Tomcat. I am a newbie here, and I would appreciate your help on several questions: 1. From what I read here, I saw that I should probably use the FORM auth method, and that this page should

Re: [OT] Does any one know ....

2003-07-04 Thread Adam Hardy
ject: Re: [OT] Does any one know the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, July 04, 2003 2:48 PM Subject

Re: GenericDataSource

2003-07-04 Thread Adam Hardy
woohoo - I just had a look at the dbcp bugzilla http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&chang

Re: [OT] Does any one know ....

2003-07-04 Thread Adam Hardy
a bit like Tom when gets an electric shock in Tom & Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTE

Re: [OT] Does any one know ....

2003-07-04 Thread Adam Hardy
hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List S

Re: [OT] Does any one know ....

2003-07-04 Thread Adam Hardy
I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - Original Message - From: "Steve Raeburn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTE

Re: javascipt error in IE

2003-07-04 Thread Adam Hardy
You mean the error comes from the email-validation? Richard Mixon wrote: Andy, I too would like to know how to fix this when using the validator Javascripts. In most cases it appears to be benign, but irritating. I've got on or two forms that it really does break though. Hope someone has an clue.

Re: Upgrading to Struts 1.1 problem with commons-collections

2003-07-03 Thread Adam Hardy
ruts1.1 on SilverStream4.0? Kim -Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:49 AM To: Struts Users Mailing List Subject: Re: Upgrading to Struts 1.1 problem with commons-collections did you actually look inside your commons-collections.

Re: Réf. : Re: How to pass parameters to a javascript popup

2003-07-03 Thread Adam Hardy
onclick="openWindow('myaction.do?task=doThis');return false;">Help I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy <[EMAIL PROTECTED]> 03/0

Re: Réf. : Re: How to pass parameters to a javascript popup

2003-07-03 Thread Adam Hardy
I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy <[EMAIL PROTECTED]> 03/07/2003 16:24 Veuillez répondre à "Struts Users Mailing List" Pour : Struts

Re: Validating by action

2003-07-03 Thread Adam Hardy
strip off the leading / as well Kamholz, Keith (corp-staff) USX wrote: Hey everyone, Quick question. I'm trying to get the validator working with ValidatorActionForm. In the validation.xml, do I have to put the ".do" in the form name, or do I just leave it as ? Thanks! - Keith -

<    1   2   3   4   5   6   7   8   9   >