Re: change locale on form-login-page

2002-10-28 Thread Gemes Tibor
oups duplicated cp oups duplicated cp :) sorry sorry Tib Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Trivial Q

2002-10-28 Thread Khan, Manuchehar A (ACF)
This q is irrelevant to strusts but somebody can solve this easy puzzle that I am stuck with I have an multidimentional array rows*columnsCan someone figureout code to get the x, y poisition in this multidimentional array if i know the number For example I have number 10.Its

RE: Trivial Q....Correcton

2002-10-28 Thread Khan, Manuchehar A (ACF)
-Original Message- From: Khan, Manuchehar A (ACF) Sent: Monday, October 28, 2002 3:20 AM To: 'Struts Users Mailing List' Subject: Trivial Q This q is irrelevant to strusts but somebody can solve this easy puzzle that I am stuck with I have an multidimentional array

Huge action instance synchronization problem

2002-10-28 Thread Dan Bunea
My problem: I have a search action. When 2 (or more) users submit the search form simultaniously, because the seach usually takes about 1-2 seconds, the same action instance is rethrieved to complete the search and sessions are combined like this: the action makes the search for the first

Problem with validator arguments - message is beingsubstituted by 'null'

2002-10-28 Thread Greg Tan
I am having a problem with the validator. It is not substituting the message with the correct values, null is being substituted instead. I am using Struts 1.1b. I have a custom validator which checks that a phone number has a minimum number of digits (excluding special characters like spaces,

RE: Trivial Q

2002-10-28 Thread Vincent PROSPER
if number=10 (for instance) for an array nb_cols x nb_rows then col=number mod nb_rows (should be 2) row=(number div nb_cols) + 1 (should be 3) dont know the language you're looking for ;-) Vince -Original Message- From: Khan, Manuchehar A (ACF) [mailto:mkhan;acf.hhs.gov] Sent:

RE: Trivial Q

2002-10-28 Thread Khan, Manuchehar A (ACF)
Java -Original Message- From: Vincent PROSPER [mailto:Vincent.Prosper;Alkinos.com] Sent: Monday, October 28, 2002 3:29 AM To: Struts Users Mailing List Subject: RE: Trivial Q if number=10 (for instance) for an array nb_cols x nb_rows then col=number mod nb_rows (should be 2)

RE: Huge action instance synchronization problem

2002-10-28 Thread Andrew Hill
The action instance itself doesnt have any member variables does it? If you store stuff in the HTTPSession each user will have their own session context - it shouldnt (be possible to) get mixed up like that (unless both requests are actually by the same user (in the same session) - in which case

generating serial no

2002-10-28 Thread Amit Badheka
Is there any tag available in struts to generate serial no ? AB.

RE: Trivial Q

2002-10-28 Thread Vincent PROSPER
col=number % nb_rows ; row=(number / nb_cols) + 1; // provided that number and nb_cols are both int Vince -Original Message- From: Khan, Manuchehar A (ACF) [mailto:mkhan;acf.hhs.gov] Sent: Monday, October 28, 2002 9:30 AM To: 'Struts Users Mailing List' Subject: RE: Trivial Q Java

RE: Trivial Q

2002-10-28 Thread Vincent PROSPER
oops! replace 'nb_rows' by 'nb_cols' in first instruction... nb_rows has nothing to do with that question... Vince -Original Message- From: Vincent PROSPER [mailto:Vincent.Prosper;Alkinos.com] Sent: Monday, October 28, 2002 9:43 AM To: Struts Users Mailing List Subject: RE: Trivial Q

RE: Huge action instance synchronization problem

2002-10-28 Thread Dan Bunea
I know it shouldn't have this problem. It is not the same session, nor the same user that performs the search. Of course each user has the same session, but let me explain some more of what I have seen happening. The first user (say with session id #s1) obtains the action instance ( say instance

RE: Trivial Q

2002-10-28 Thread Khan, Manuchehar A (ACF)
Thanks...Finally working...I was playing with same % and / operators but got confused Thanks again.. -Original Message- From: Vincent PROSPER [mailto:Vincent.Prosper;Alkinos.com] Sent: Monday, October 28, 2002 3:48 AM To: Struts Users Mailing List Subject: RE: Trivial Q oops!

Re: generating serial no

2002-10-28 Thread Affan Qureshi
I guess u can make a simple Bean that increments an instance variable on each read. /* A - Original Message - From: Amit Badheka [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 28, 2002 1:40 PM Subject: generating serial no Is there any tag

how can I do it? using validation without formset.

2002-10-28 Thread Arik Levin ( Tikal )
I want to use validation at struts 1.1b2, with no validation.xml descriptor. Can anyone have an example for this one?

parameter in session

2002-10-28 Thread Marcus Biel
Hi, I got an select box, where you can select a value. When you hit submit, you get displayed a list of data records that fit to that value. But the selected value should get stored for the whole session, so if you hit on edit or delete that you directly get displayed the table, wihout selecting

Re:[OT] Trivial Q

2002-10-28 Thread David Derry
This will work some of the time (maybe most). But you are missing edge conditions. take 8 for ex. in a 4X4 that would be row 2 column 4. But your foumula places it at row 3 column 0. However, right now I can't think of a better solution (too early on a Mon morning!), other than to test for column

Re: parameter in session

2002-10-28 Thread Affan Qureshi
I think placing the Form Bean in the session scope will help. /* A - Original Message - From: Marcus Biel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 4:57 PM Subject: parameter in session Hi, I got an select box, where you can select a value. When you hit

Validation, javaScript modal windows

2002-10-28 Thread Albuquerque, Ronald
Hello, I'm working on a project that has a lot of existing static HTML; this will serve as the basis for the JSP's for the J2EE application. I've come across a situation in the HTML and I'd like to please ask your help. Existing Flow (in static HTML pages): 1. End-User sees information page on

RE: html:option with iterate

2002-10-28 Thread Sri Sankaran
It is much easier if you use the 'collection' attribute of the html:options tag. See http://jakarta.apache.org/struts/userGuide/struts-html.html#options. Also take a look at the html-select.jsp file that is in the struts-exercise-taglib application that ships with Struts. Sri -Original

Re: parameter in session

2002-10-28 Thread Marcus Biel
Hi, I got this: action-mappings type=org.apache.struts.action.ActionMapping action path=/selectPlant type=CreatePlantTableAction name=plantSelectionForm scope=session input=/index.jsp /action (scope=session in action) Or should I add scope=session to my form-bean mapping ??? form-bean

RE: Huge action instance synchronization problem

2002-10-28 Thread Dan Bunea
Thank you, but what happens if I set the execute method from the action synchronized? I did that and it works fine. I have also run some tests to see if performance drops but it did not. -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran;sas.com] Sent: Monday, October 28, 2002

RE: Huge action instance synchronization problem

2002-10-28 Thread Sri Sankaran
As I pointed out, it de-couples your business logic and the data from how it is presented to the user. Further, it promotes re-usability. You have found your problem to disappear when you mark the execute() method as being syncrhonized. Is this a tenable alternative? Won't it affect the

Re: how can I do it? using validation without formset.

2002-10-28 Thread David Graham
Why do you want to do this? I'm not sure that you can because the validator needs to know what fields to validate. David From: Arik Levin ( Tikal ) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: how can I

RE: [JSTL] c:out and DynaBeanClass

2002-10-28 Thread Parmar, Dipakkumar
sometimes I need to display field value from my DynaValidatorForm based on user role and some criteria. For example c:choose c:when test=${user.Admin} html:text property=budget / /c:when c:otherwise bean:write name=MyDynaValidatorForm property=budget / /c:otherwise and sometimes

RE: re. i18n

2002-10-28 Thread Jeff Born
Thanks for all the information from everyone. My problem came from not understanding where I needed to place the UTF-8 line below. I had placed this line in all the included jsp, but not the wrapper jsp. Without being in the highest level JSP it did not load correctly. Once I moved it there

Serialization question...

2002-10-28 Thread Ryan Cornia
In my web application, I have all of my forms declared as - public final class FORM_NAME extends org.apache.struts.validator.ValidatorForm implements Serializable { } In my tomcat 4.1.12 logs, however, I keep getting errors - Cannot serialize session attribute FORM_NAME Do I need to

Tiles factory=''

2002-10-28 Thread Roland Carlsson
Hi! I get an error that I fails to trace to the source so I would appreciate if anyone please could point me in the right direction. Thanks in advance Roland Carlsson 2002-10-28 15:45:39 action: Tiles definition factory loaded for processor ''. 2002-10-28 15:45:39 jsp: init 2002-10-28 15:45:35

Re: Serialization question...

2002-10-28 Thread Eddie Bush
Does the form contain any fields which do not implement Serializable? If so that makes the form unable to be serialized. In order for an object to be serializble both that object and *all* fields it contains *must* implement Serializable. It cascades too, so the fields' fields (if they are

Re: static pages

2002-10-28 Thread John Nicholas
Andrew Hill wrote: Barracuda? -Original Message- From: James Mitchell [mailto:jmitchtx;telocity.com] I'm not here to argue about Struts' performance. Anyone who chooses another framework over Struts either doesn't need Struts or they don't know what it has to offer. I have yet to meet

Re: tiles problem with tomcat 4.1.12

2002-10-28 Thread Marco Machmer
Am Freitag, 25. Oktober 2002 13:58 schrieb Marco Machmer: Am Freitag, 25. Oktober 2002 12:31 schrieb Hue Holleran: Hi, We had a few probs getting tiles to run with Tomcat 4.1.12 but have now sorted all those issues - to be honest some were with Java Sec Mgr, some with the

RE: Huge action instance synchronization problem

2002-10-28 Thread James Mitchell
As Andrew pointed out, you are probably using a class level (member) variable. Can you move this to the execute method and retest? Also, you should seriously consider what Sri has posted as well. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are

[Tiles] Using Tiles Parameter in logic:equals

2002-10-28 Thread Jerry Jalenak
I'm trying to find a way to pass a parameter from a tiles definition into a JSP so I can use logic:equal to check the parameter and then render the appropriate 'chunk' of JSP. I can pass the parameter from my base definition to my tile by using tiles:put; when I use tiles:get to retrieve it I

is there a way to use Oracle JDBC Datasource

2002-10-28 Thread Petit, Yannick (FR, Ext:Oxymel)
Hi, I'm new to struts, and looking for it to decide use it or not for our new Dev in J2ee MVC² Project. Our most imprtant requirement is to interact with Oracle (8i) Database so for powerfull Apps ( Large Corporate Intranet) we planned to use the Oracle JDBC Datasource and most particularly the

Re: Serialization question...

2002-10-28 Thread Eddie Bush
To be honest, I'm not sure. All cases I have needed to use serialization were such that all fields had to be serialized. So ... I can neither confirm nor deny that. It certainly sounds logical though. Gideon, Thomas wrote: Can't you also mark your members as transient if you don't want them

Re: Using html:Options tag

2002-10-28 Thread Umberto Nicoletti
On Mon, 2002-10-28 at 09:31, Alok Garg wrote: Hello, I am facing a problem using html:options tag. The case: 1) I have a Hashtable map which contain an Id (java.lang.Integer) as the Key and Description (String) as the value. 2) I have to iterate this Hashtable and display the values in a

RE: how can I do it? using validation without formset.

2002-10-28 Thread Arik Levin ( Tikal )
Because my fields are coming from the DB and I don't know the field's names, yet. I'm using struts syntax for example html:text property=value(fieldname)/ So in that way I can't use the descriptor (validation.xml). How can I do it thru the API? Or is there any other suggestions? -Original

RE: nested:iterate recursion inverts tree

2002-10-28 Thread Steve Hall
Arron, Weblogic 5.1 sp11 is running JSP spec 1.1. It sounds like that is the root of my problem. I'll just 'manually' nest my jsp until we get upgraded to Weblogic 7. Then I'll come back and implement the recursion. Thanks for your time! Steve -Original Message- From:

Checkbox column and paging.

2002-10-28 Thread Susan Bradeen
I have a JSP table that contains a checkbox column used for multiple selection, which returns the selected item(s) Id value to a String array in my ActionForm bean. Happily, this is working. However, my problem is with paging. I am using the Display Tags to display my table, with a Decorator

[Nested Tags] Nested vs logic tags..

2002-10-28 Thread Jeff_Mychasiw
Greetings: I am almost exclusively using nested tags. Every now and then I run into a problem and have to switch over the corresponding logic or bean version. Can anyony tell me if this is a bug? I am using 1.1b2 I tried this with nested:equal but got a NullPointerException (listed

javax.servlet.jsp.JspException: No getter method for property Username of bean org.apache.struts.taglib.html.BEAN

2002-10-28 Thread Ananya Bhushan, Noida
hi frnz, I'm a newbie to struts so my question can be a bit novice. I'm trying to use the frame work to build a small login screen. i'm deploying it in weblogic 7.0. the war file gets deployed and on calling the login.jsp it gives me an error:-- javax.servlet.jsp.JspException: No getter

RE: [Tiles] Using Tiles Parameter in logic:equals

2002-10-28 Thread Chen, Gin
Hi Jerry, I had the same problem before and this is the solution that I got using importAttribute: tiles:importAttribute name=myputparam/ bean:message name=myputparam/ You can also use tiles:useAttribute and assign it an id to use later. -Tim

Re: Serialization question...

2002-10-28 Thread Eddie Bush
I don't see anything regarding serialization that talks about a possibility to mark members as transient. Would you happen to have references Thomas? Gideon, Thomas wrote: Can't you also mark your members as transient if you don't want them serialized? So shouldn't a combination of

Re: javax.servlet.jsp.JspException: No getter method for property Username ofbean org.apache.struts.taglib.html.BEAN

2002-10-28 Thread David Graham
Make sure your variable is named username and it has a getter named getUsername and a setter setUsername. David From: Ananya Bhushan, Noida [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: javax.servlet.jsp.JspException: No getter

Re: Serialization question...

2002-10-28 Thread David Graham
You can use the transient keyword in a class to mark un-serializable members so that the rest of the class is serializable. For example, if your class had a variable private Connection conn; your class would not be serializable because the sql Connection class isn't. So you do this:

RE: JAXP version 1.1

2002-10-28 Thread Haseltine, Celeste
My thanks to everyone who responded. I've got a copy now. Celeste -Original Message- From: Haseltine, Celeste [mailto:CHaseltine;magticket.com] Sent: Friday, October 25, 2002 3:13 PM To: 'Struts Users Mailing List' Subject: JAXP version 1.1 This is a little off topic, but does anyone

Re: Serialization question...

2002-10-28 Thread Eddie Bush
Thanks for your edification, Mr. Graham ;-) I'd never had call to use that one before. David Graham wrote: You can use the transient keyword in a class to mark un-serializable members so that the rest of the class is serializable. For example, if your class had a variable private

RE: Serialization question...

2002-10-28 Thread Gideon, Thomas
It's in the Java Language Specification, section 8.3.1.3 but I ran across it myself in some book or other (couldn't remember which so I dug into the spec). http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#7811 9 Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236

Re: Struts 1.1b1 with WAS 3.5.4

2002-10-28 Thread David Graham
Why can't struts use 1.1 while WAS uses 1.0? Also, why are you on beta 1? David From: CHARRIER Sébastien [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Struts 1.1b1 with WAS 3.5.4 Date: Mon, 28 Oct 2002

Re: Struts 1.0.2, Tomcat 4.1.12 Web-App start-up funny

2002-10-28 Thread David Graham
I suggest you develop with tomcat 4.1.12 since you're deploying on that version. It will make your life easier with less surprises. You should check what object is stored under org.apache.struts.taglib.html.BEAN in the request. It may not be the bean you think it is. David From:

RE: Struts 1.1b1 with WAS 3.5.4

2002-10-28 Thread CHARRIER Sébastien
Each application deployed on WAS has in its classpath the jar which contains the xml parser 1.0. The problem is that I can only append libraries to this classpath. I can't add at the begining of this classpath the xml parser 1.1 to make the applications use it. I know that a solution would be to

RE: Struts 1.1b1 with WAS 3.5.4

2002-10-28 Thread David Graham
I don't know how to make struts work with a 1.0 parser. In this case, I would inform my client that the container they're using has this limitation and to work around it you need to alter the config file. David From: CHARRIER Sébastien [EMAIL PROTECTED] Reply-To: Struts Users Mailing

Can validator mask rule be made optional

2002-10-28 Thread Halvorson, Loren
Currently we are using the validator-rules.xml that comes with the Struts 1.1 distribution. We have several situations where we have fields we need to conform to a pattern _if_ the user enters data, but the fields are not required (ex: phone number, e-mail). We noticed that the mask validation

Re: Huge action instance synchronization problem

2002-10-28 Thread Craig R. McClanahan
As others have pointed out, 99.9% of this kind of a problem comes from using class-level instance variables (also called member variables) to store information that is specific to a particular request. This fails because there is only one instance of the Action, so the instance variables are

RE: how can I do it? using validation without formset.

2002-10-28 Thread James Mitchell
If you do not know what the field names are before displaying the page, how could you possibly validate them? Are you storing the validation in the database as well? If so, it sounds like you need to develop your own custom validation. Sorry I can't help you further. FWIWgood luck. James

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Madel,Kurt
If anyone is interested, I figured this out. Of course this is a basic JavaScript problem so I understand not getting a response on the Struts list. Never the less, I feel that it pertains enough for a solution to be submitted. onSubmit is not called if you use JavaScript to submit a form.

RE: Submit Using html:link and html:javascript

2002-10-28 Thread David Graham
I don't think it's a good idea to use hyperlinks for form submission but I'm glad you got it to work. David From: Madel,Kurt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Submit Using html:link and

RE: Stop auto fill in html:password

2002-10-28 Thread Chen, Gin
Hi Billy, Sorry I might be providing an answer you already found. The email said that users enable this. That's partly true. You can also set AUTOCOMPLETE=off to never have it autocomplete. So the syntax would be input type=password autocomplete=off/ now u just have to translate it to

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Madel,Kurt
Yes, I suppose so but the powers beyond me like the way they look. On the plus side, you can then use a link for cancel that href's an action. Also, this would work well if you wanted to use an image for submit purposes. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original

form and action in struts-config

2002-10-28 Thread Vankineni, Naga X
Can anyone explain me why I get this problem... I have my action and form defined in the struts-config.xml.. Now in my jsp page when I enter a value in the text-box and try to see the value in my action using debugger, I don't see that value in my form and all i see is the reset value defined in

prefill form with session data?

2002-10-28 Thread Albrecht Berger
Hello, I need to set specific userdata read from a session in an ActionForm in the form's reset method. Could there be any conflicts with userdata from other users which use the form at the same time ? Thx berger -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org

[OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Bradley G Smith
The nov/dec issue of Oracle Magazine has several person of the year awards. The person picked as Java developer of the year is James Holmes for his work on Struts Console. Struts is also mentioned in several articles as a key framework component in the same issue. Brad -- To unsubscribe,

RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Taylor, Jason
Just a hunch-- have you tried specifying a 'name' for the nested:iterate tag? -Original Message- From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca] Sent: Monday, October 28, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [Nested Tags] Nested vs logic tags.. Greetings: I am

RE: [OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Assenza, Chris
That's great, congrats James! Chris -Original Message- From: Bradley G Smith [mailto:bgsmith01;fs.fed.us] Sent: Monday, October 28, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: [OT] Oracle Magazine Java Developer of the Year The nov/dec issue of Oracle Magazine has several person of the

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Madel,Kurt
Is there a struts tags for an input image? Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: David Graham [mailto:dgraham1980;hotmail.com] Sent: Monday, October 28, 2002 3:44 PM To: [EMAIL PROTECTED] Subject: RE: Submit Using html:link and html:javascript

RE: Submit Using html:link and html:javascript

2002-10-28 Thread David Graham
http://jakarta.apache.org/struts/userGuide/struts-html.html#image In the future, check the users guide first. David From: Madel,Kurt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Submit Using html:link

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Wendy Smoak
Is there a struts tags for an input image? Assuming you mean a SUBMIT button with an image on it instead of text, here's what I'm using: html-el:submit property=submit onclick=setAction('Add Prospect'); styleClass=addButton titleKey=button.add.prospect value= / And here's the style that

Struts Validator for multiple Selects

2002-10-28 Thread Madel,Kurt
We have a multiple select that is required. The following works on server side, but not client side: form name=milestoneDetailForm field property=mspersonsIds[0] depends=required arg0 key=label.milestone.mspersonsIds/

Re: [JSTL] c:out and DynaBeanClass

2002-10-28 Thread flare
Note that DynaBeans aren't strictly JavaBeans (I believe), so it might be difficult to patch them into the JSTL. JSTL supports dynabeans transparently -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: [OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Kevin . Bedell
Here's the link: http://otn.oracle.com/oramag/oracle/02-nov/o62awards.html#JAMES Assenza, Chris [EMAIL PROTECTED] on 10/28/2002 03:34:33 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:'Struts Users Mailing List' [EMAIL PROTECTED] cc: (bcc: Kevin

RE: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-28 Thread James Mitchell
Hi Derek, Sorry for not getting back sooner. if you are using the same action and jsp for your wizards, how are they qualified to be wizards? Whenever I need a wizard-like flow in my application, I use a single action and a single jsp to go from Step 1 to Step n. I can do this by passing

RE: [JSTL] c:out and DynaBeanClass

2002-10-28 Thread Karr, David
-Original Message- From: flare [mailto:flare;flare.it] Sent: Monday, October 28, 2002 1:26 PM To: Struts Users Mailing List Subject: Re: [JSTL] c:out and DynaBeanClass Note that DynaBeans aren't strictly JavaBeans (I believe), so it might be difficult to patch them into the

Token

2002-10-28 Thread Ricardo de Souza Moura
When I need to control transactions, I am using Tokens. I call saveToken() in the Action that forward to a page A. my page A: html:form action=/teste.do input type=hidden name=method value=methodA/ input type=submit/ /html:form My Action teste.do is a DispatchAction, so my methodA will

Re: [OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Vincent Stoessel
Congrat, James! I love the console! Bradley G Smith wrote: The nov/dec issue of Oracle Magazine has several person of the year awards. The person picked as Java developer of the year is James Holmes for his work on Struts Console. Struts is also mentioned in several articles as a key framework

RE: Struts Validator for multiple Selects

2002-10-28 Thread Madel,Kurt
Oh yeah, the jsp is: html:javascript formName=milestoneDetailForm dynamicJavascript=true/ html:form action=/addmilestone onsubmit=return validateMilestoneDetailForm(this); table class=form html:hidden property=mrevdate/ tr td align=left valign=center

RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Jeff_Mychasiw
No I have not. I could be wrong but I am under the assumptiion that the name attribute is used to look for a bean. The documents state that the nested versions of the tags will work the same but allow you exclude specific references to parent tags. I have done this many times: logic:iterate

does javascript have a place in mvc struts

2002-10-28 Thread jmattucci
Sorry this might be an elementary question, but im new to jsp and struts. I have done a lot of reading in the last few weeks. I realize that struts is the way to go in terms of following the mvc model. My one question at this time is in regards to form validation. By that i mean when a user enters

RE: action mapping input

2002-10-28 Thread Chen, Gin
Okay, I misunderstood what John was saying and this is what I have: 1) forward failure is NOT the same as input which is required if validate=true 2) input CAN forward to a tiles definition. I looked at the original post and realized that it was pretty ambiguous. what i wanted to do (and it was

RE: does javascript have a place in mvc struts

2002-10-28 Thread Madel,Kurt
I believe that there is not exactly a consensus. However, the Struts Validator makes it easy to incorporate both. Additionally, many will check the data again in the model layer before it is persisted (i.e. inserted into a database). On the model layer, I use O/R mapping that helps with data

Using tiles and container managed security/form based login

2002-10-28 Thread Alan P Sexton
[I have moved this branch of this thread to struts-users as it no longer belongs on struts-dev; was: RE: [SURVEY] HREF attribute for FormTag] Thanks, I should be able to use that advice to fix my problem. However I still don't understand why my approach doesn't work: I have CMS set up on /*.

RE: does javascript have a place in mvc struts

2002-10-28 Thread Joe Barefoot
Not an elementary question at all, and the answer is: It depends on the situation. ;) First, your business requirements dictate where validation is possible. If you are creating a service-type web application accessible via the Internet to many different kinds of users, then your business

RE: does javascript have a place in mvc struts

2002-10-28 Thread Craig R. McClanahan
You should absolutely, positively, perform validation on the server side regardless of what you might do on the client side. It is not appropriate for a server-side application to trust the client (which might be anything from a browser with JavaScript turned off to a malicious application trying

RE: does javascript have a place in mvc struts

2002-10-28 Thread Joe Germuska
Sorry this might be an elementary question, but im new to jsp and struts. I have done a lot of reading in the last few weeks. I realize that struts is the way to go in terms of following the mvc model. My one question at this time is in regards to form validation. By that i mean when a user enters

RE: [Nested Tags] Nested vs logic tags..

2002-10-28 Thread Arron Bates
Just a hunch-- have you tried specifying a 'name' for the nested:iterate tag? The nested tags don't need it, and if it's provided they will ignore it. Why?... because all the tags are working off the same bean structure, and this is defined for us by the form tag. The nested tags will fetch

Re: Using tiles and container managed security/form based login

2002-10-28 Thread Alan P Sexton
I am using logic:forward rather than jsp:forward. I had not checked it but had assumed (perhaps naively) that since that is part of struts, it would be tiles plugin aware. If it is not, then that would certainly explain my symptoms and your suggestion will fix it. Many thanks again. Alan

error checking in Action

2002-10-28 Thread Mark Silva
I need to do some extensive error checking, and need to move this into an action class. my question is when i identify an action, how i forward back to the previous page (the same way a form class would). is there a method to take care of this? or do i need to setup all the passed values in

Re: error checking in Action

2002-10-28 Thread David Graham
Why do you need to move error checking into an action? Why not just let the form bean do it's job and validate itself? Have you looked at using the validator? Validation belongs in the form bean; actions' main job is to direct traffic and execute business layer methods. David From:

html:cancel problem

2002-10-28 Thread Nicolas Parisé
Hi, I have problem with the html:cancel tag in STRUTS 1.02 I have an Action class that create an instance of a ActionForm, populate it with data and put it in the session (session.setAttribute). Then my action class redirect the request to a JSP page that display the data from the session’s

Maxlength validation returns null in error message

2002-10-28 Thread Jeff Born
Hi all, I've looking at the struts-example.war in 1.1b2 and when running through the login.jsp page I keep getting the following username can not be greater than null characters. This happens via the JavaScript validation. I thought maybe it might be JavaScript related, but when I remove

RE: [OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread James Mitchell
That's great!!! Congratulations!! James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein (1879-1955) -Original Message- From: Vincent Stoessel

RE: error checking in Action

2002-10-28 Thread Andrew Hill
I do all my validation in the action too - I need a lot of info from the b-tier about such things as which fields are mandatory when, etc... and it proved inconvienient (still quite possible - just required some ugly contortions - especially given some of the evil things Im doing in the

RE: [OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Andrew Hill
Great work James! Good on ya mate! :-) -Original Message- From: Bradley G Smith [mailto:bgsmith01;fs.fed.us] Sent: Tuesday, October 29, 2002 04:35 To: [EMAIL PROTECTED] Subject: [OT] Oracle Magazine Java Developer of the Year The nov/dec issue of Oracle Magazine has several person of

Re: error checking in Action

2002-10-28 Thread Rob Leland
David Graham wrote: Why do you need to move error checking into an action? Why not just let the form bean do it's job and validate itself? Have you looked at using the validator? Validation belongs in the form bean; actions' main job is to direct traffic and execute business layer methods.

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-28 Thread Derek Lin
James, Are you using the plugin validator to validate your form fields? I am using it. (see my form entry in my validation.xml at the end). Now If I only include a subset of form in one page, the validator will throw exceptions in the backgroud. Are you aware of this? Any workaround other

ExceptionHandler DispatchAction (1.1b1 vs b2)

2002-10-28 Thread Andrew Hill
Been trying to get my first struts ExceptionHandler to work today and just came across another good reason to make the jump from 1.1b1 to 1.1b2. Seems that exceptions thrown in a DispatchAction are handled correctly in 1.1b2 (ie: if possible thrown up where you can process them with an exception

Re: error checking in Action

2002-10-28 Thread David Graham
Nice restatement Rob. That's exactly how I see the validation working. I know I'm in trouble when my action class gets too big :-). David From: Rob Leland [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re:

RE: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-28 Thread James Mitchell
No, not in the scenario I described earlier. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein (1879-1955) -Original Message- From: Derek

what for are nested tags ?

2002-10-28 Thread Marcus Biel
? thx, marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

How to make the LazyList Serializable?

2002-10-28 Thread William Wan
I found the nested tag with LazyList is very useful for implementing nested structure form submission. I would like to know is there any simple method to make the LazyList Serializable so that I can store the form object into session? Thanks William

RE: what for are nested tags ?

2002-10-28 Thread James Mitchell
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=what+for+are+nested+t agsbtnG=Google+Search James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein

  1   2   >