Re: Size of a collection in a bean

2005-06-03 Thread Rodolfo García Esteban/CYII
bean:size .. Rodolfo ___ Este mensaje y cualquier fichero que pudiera adjuntar se dirige exclusivamente a su destinatario. Si Vd. ha recibido esta comunicación por error, por favor, notifíquelo inmediatamente al remitente y borre el mensaje junto

Problem using validator framework

2005-06-03 Thread Nitesh
I'm trying to use the validator framework. for client and server side validations. I'm using Struts 1.1. I have in my struts-config.xml form-beans form-bean name=UserListAdmin dynamic=true type=com.sample.forms.SampleDynaForm form-property name=test type=java.lang.String / /form-bean

Re: Problem using validator framework

2005-06-03 Thread Nitesh
How much careless one can be!!! The problem was with the form name in validation.xml (userListAdmin instead of UserListAdmin) :) - Original Message - From: Nitesh [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, June 03, 2005 12:40 PM Subject:

Re: Problem using indexed properties and validator framework

2005-06-03 Thread Nitesh
Thanks for the answer John... Could you give me an example as to how we pre populate the array? Regards, Nitesh - Original Message - From: John Fitzpatrick [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, June 02, 2005 6:00 PM Subject: Re: Problem

How do I use JAAS(JbossSX) in Struts?

2005-06-03 Thread marc
Now I have made a Struts app, that uses a LoginContext (Using jbossSX/JAAS) to login. And this works fin. But now I what to use the attibutes from the logincontext for more. And what to be able to make menu's based on what role the user have. I what to be able to set access controls to

Re: OT Friday - Random sorting

2005-06-03 Thread Riyaz Mansoor
i may be missing something here, but if random is what u want in a collection, then y don't u use Collections.shuffle() ? riyaz Mark Benussi wrote: Hello. I am trying to write a comparator that randomly sorts a collection. I have something like this: new Comparator() {

Re: help with messages using bean on jsp

2005-06-03 Thread Martin Gainty
Tony- to allow access by your Struts app's bean tag set the struts-config.xml message-resources parameter=test.ApplicationResources/ (ApplicationResources.properties is located in test folder off root) Now you can have multiple message-resources with key=PropertyKey to identify the particular

OT Friday - Random sorting

2005-06-03 Thread Mark Benussi
Hello. I am trying to write a comparator that randomly sorts a collection. I have something like this: new Comparator() { /** * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(Object object1, Object

Newbie Q - Struts expression language taglibs

2005-06-03 Thread Ibha Gandhi
Hi All, From where can I download struts el tag libraries. I downloaded jakarta-struts-1.2.4.zip, but it does not contain struts-html-el tag libraries Thanks, Ibha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Newbie Q - Struts expression language taglibs

2005-06-03 Thread Nicolas De Loof
Take a look into the contrib/struts-el/lib folder ! Nico. Ibha Gandhi a écrit : Hi All, From where can I download struts el tag libraries. I downloaded jakarta-struts-1.2.4.zip, but it does not contain struts-html-el tag libraries Thanks, Ibha

RE: Newbie Q - Struts expression language taglibs

2005-06-03 Thread Ibha Gandhi
Ok. Now I know it was in the contrib directory. Thanks, Ibha -Original Message- From: Ibha Gandhi [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 5:22 PM To: 'Struts Users Mailing List' Subject: Newbie Q - Struts expression language taglibs Hi All, From where can I

Re: Problem using indexed properties and validator framework

2005-06-03 Thread John Fitzpatrick
: UserBean users[] = (UserBean[]) form.get ( users ); for ( int i = 0; i users.length; i++ ) { // check on the attributes of UserBean users[i] } Hope that example clears it up for you. John On 20050603 5:05 AM, Nitesh [EMAIL PROTECTED] wrote: Thanks for the answer John

RE: How do I use JAAS(JbossSX) in Struts?

2005-06-03 Thread Vance Karimi
Have a look at the Struts Menu plugin http://struts-menu.sourceforge.net/ -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of marc Sent: Friday, 3 June 2005 5:51 PM To: user@struts.apache.org Subject: How do I use JAAS(JbossSX) in Struts? Now I have made a

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-03 Thread marc
Yeah looks cool and works with Velocity. I'm working on getting it to work in me project. But I still need to have access controls on me different action's. Vance Karimi wrote: Have a look at the Struts Menu plugin http://struts-menu.sourceforge.net/ -Original Message- From:

RE: How do I use JAAS(JbossSX) in Struts?

2005-06-03 Thread Vance Karimi
I use xdoclet and since Struts 1.1 you can do something like this in your Action class where you can specify the list of Roles that have access to this action. /** * @struts.action * name=CustomerCreateForm * path=/operator/customers/customer/CustomerAddAction *

how do I switch off Struts - internal logging?

2005-06-03 Thread Abhinav Bhatnagar
how do I switch off Struts - internal logging? I am using struts 1.2.6. Thanks in advance. Abhinav

Re: OT Friday - Random sorting

2005-06-03 Thread Dave Newton
Mark Benussi wrote: I am trying to write a comparator that randomly sorts a collection. I'm not entirely convinced that the word sort it applicable here. Collections.shuffle might do what you want if you have a List. Dave

html:multibox -- is this a bug

2005-06-03 Thread Qinjian Jian
Greeting: I am using html:multibox tag on a jsp page. The scope of form bean associated with this jsp page is session. The Struts version is 1.1. I first check some of checkboxes and then refresh the page. The bean's property, i.e. selectedUsers (a String array), got populated and jsp page

Re: how do I switch off Struts - internal logging?

2005-06-03 Thread Martin Gainty
commons-logging.properties # Disable logging #org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog log4j.properties log4j.enable=OFF consult the applicable doc for either package Martin- in - Original Message - From: Abhinav Bhatnagar [EMAIL PROTECTED] To:

Problems with tiles

2005-06-03 Thread lk
Hi, I'm trying to use the tiles framework. Everything runs well, but if I try to use a custom RequestProcessor I get this error in the console: Jun 3, 2005 4:54:26 PM org.apache.struts.tiles.TilesPlugin initRequestProcessorClass SEVERE: TilesPlugin : Specified RequestProcessor not compatible

tiles problem

2005-06-03 Thread Anindya Bandyopadhyay
Hi All, I am new to tiles frame work. I've applied tiles throughout my project. My layout is very commonly used and it includes header, left navigation bar, main body and footer. I've defined all the JSP pages in *tiles-defs.xml*file. I'm providing part of *tiles-defs.xml, layout.jsp *(default

Re: html:multibox -- is this a bug

2005-06-03 Thread Wendy Smoak
From: Qinjian Jian [EMAIL PROTECTED] Next, if I just unchecked some of checked checkboxes rather then all of them, then refresh the page it still works fine. However, if I unchecked them all then refresh the page, the previous step checked boxed remained unchanged and still were checked. I

Double posting problem

2005-06-03 Thread Barnett, Brian W.
We've spent the last couple of weeks enhancing our web app and now every get/post to Tomcat from our web app is coming in twice. I can't figure out what was changed. I have a breakpoint in the execute() method of our LookupDispatchAction derived base class and all incoming requests come in twice

RE: html:multibox -- is this a bug

2005-06-03 Thread Qinjian Jian
Yes. That's it. Thanks a lot. Tim Jian Momentum systems, Inc. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 11:27 AM To: Struts Users Mailing List Subject: Re: html:multibox -- is this a bug From: Qinjian Jian [EMAIL PROTECTED] Next, if I

BaseRequestProcessor extends TilesRequestProcessor error

2005-06-03 Thread David Whipple
We have a BaseRequestProcessor which extends the TilesRequestProcessor defined in the struts-config file. A co-worker is getting the following error when he tries to use it: [6/3/05 10:14:03:327 EDT] 690b690b WebGroup E SRVE0026E: [Servlet Error]-[action]: java.lang.ClassCastException:

Re: Double posting problem

2005-06-03 Thread Wendy Smoak
From: Barnett, Brian W. [EMAIL PROTECTED] We've spent the last couple of weeks enhancing our web app and now every get/post to Tomcat from our web app is coming in twice. Any ideas on what I can check? Do you have any Filters? Check that chain.doFilter(...) is only called *once*. -- Wendy

RE: Double posting problem

2005-06-03 Thread Barnett, Brian W.
Not using any Filters. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 11:24 AM To: Struts Users Mailing List Subject: Re: Double posting problem From: Barnett, Brian W. [EMAIL PROTECTED] We've spent the last couple of weeks enhancing our

Exception Handler

2005-06-03 Thread Leandro_Dorileo/ABACO
I'm working in a project where I'm planning to use my own implementation of ExceptionHander, I know that I need extend the org.apache.struts.action.ExceptionHandler and overwrite the execute method, I also know that I need use the html:errors / taglib and configure my action to work with my

Re: Double posting problem

2005-06-03 Thread Woodchuck
check to see if you are using image buttons input type=image to submit your forms. these types of buttons submit your form by default. if you define javascript functions for these buttons to do your submitting that would be the reason for the double submits your getting. you can get around this

RE: Double posting problem

2005-06-03 Thread Barnett, Brian W.
Thanks woodchuck, but the behavior is happening with any request, not just a form submit using a button. In the troubleshooting I've done since the post, I stepped out of the entire call stack of methods and found out that the second hit on the breakpoint comes when I step out of

Re: Exception Handler

2005-06-03 Thread Joe Germuska
At 1:41 PM -0400 6/3/05, Leandro_Dorileo/[EMAIL PROTECTED] wrote: I'm working in a project where I'm planning to use my own implementation of ExceptionHander, I know that I need extend the org.apache.struts.action.ExceptionHandler and overwrite the execute method, I also know that I need use the

RE: Double posting problem [SOLVED]

2005-06-03 Thread Barnett, Brian W.
Well, here's what the problem was. We added a line of code in our header.jsp tile like this: img border=0 src=${DistrictLogo}/ There were times when the DistrictLogo was empty, which resulted in html that looked like this: img border=0 src=/ This img tag with an empty src attribute caused a

Re: Tricky configuration?

2005-06-03 Thread Rick Reumann
Why not just map /do/* to the action servlet insted of *.do Then all of these would go through Struts.. http://myserver/do/Login http://myserver/do/Logout http://myserver/do/user/blahblah This obviously wouldn't go through struts.. http://myserver/pages/blahblah.jsp amol k wrote the

Re: Tricky configuration?

2005-06-03 Thread amol k
Why not just map /do/* to the action servlet insted of *.do http://myserver/Login.do to http://myserver/do/Login, etc is not an issue but Making the users type http://myserver/do/user/blahblah instead of http://myserver/user/blahblah is a usability issue. (will have to ultimately do that if

Re: Tricky configuration?

2005-06-03 Thread Dave Newton
amol k wrote: Here is what I am trying to achieve: http://myserver/Login.do -- (maps to) LoginAction http://myserver/Logout.do -- (maps to) LogoutAction http://myserver/user/blahblah -- UserPageAction (notice that there is no .do in this case. blahblah can be replaced by anything at runtime)

RE: Tricky configuration?

2005-06-03 Thread Ray Madigan
Why are you making your users type in the action anyway. Why don't you mask this so they don't know how you implemented it. There are several ways to make this transparent to the user! I can send details if you don't know how? -Original Message- From: amol k [mailto:[EMAIL PROTECTED]

Re: Tricky configuration?

2005-06-03 Thread Martin Gainty
Amol- http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html You can Use setup an alias in your httpd.conf here is an example from Apache tech doc # (1) Make Apache know about the context location. Alias /examples D:\tomcat\webapps\examples # (2) Optional, customize Apache

Re: Tricky configuration?

2005-06-03 Thread amol k
There are several ways to make this transparent to the user! I can send details if you don't know how? Do send details if you can. Something like what Martin is suggesting looks like one way. Thanks. On 6/3/05, Ray Madigan [EMAIL PROTECTED] wrote: Why are you making your users type in the

struts-blank.war in Jboss 4.0.0

2005-06-03 Thread Rolf Fredi Molz
Hi I´m trying execute the struts-blank.war example in Jboss 4.0.0. I´m using the Windows 2000 Operating system and the struts is 1.2.4 version. Please, is anyone have the answer contact me. In the Tomcat don´t have problem, but in Jboss show : HTTP Status 500 -

Re: Tricky configuration?

2005-06-03 Thread Laurie Harper
Another option might be to use two URL mappings: *.do and /users/*. Would that get you what you want? L. amol k wrote: There are several ways to make this transparent to the user! I can send details if you don't know how? Do send details if you can. Something like what Martin is

Re: Tricky configuration?

2005-06-03 Thread Nic Werner
Yeah, depending on what language your boss likes, make your action .pl , .dll, .exe, .vbs, .ico, or my favorite: .bat /processCreditCard.bat just instills confidence in me. - Nic. amol k wrote: There are several ways to make this transparent to the user! I can send details if you

Re: struts-blank.war in Jboss 4.0.0

2005-06-03 Thread John M Flinchbaugh
On Fri, Jun 03, 2005 at 02:22:18PM -0300, Rolf Fredi Molz wrote: I?m trying execute the struts-blank.war example in Jboss 4.0.0. I?m using the Windows 2000 Operating system and the struts is 1.2.4 version. I've not seen this, and I've probably run this combination at some point, though on

Validator question

2005-06-03 Thread Lucas Bern
Hi all... I am trying to validate a form... public XForm extends ValidatorForm{ private YForm[] subForms; getters.. setters-- } public YForm extends ValidatorForm{ private String field; getters.. setters.. } I need to validate my XForm first validating each YForm in subForms... I