RE: Action input

2003-02-26 Thread du Plessis, Corneil C
Create an action that has no input and validate is false.
In this action you call validate on the form and check the return value. 
Then create a forward using request.getRequestURI() if is fails otherwise go
to a forward you have defined that matches the request.getRequestURI() or
some you can easily derive from the request.getRequestURI().

-Original Message-
From: harish krishnaswamy [mailto:[EMAIL PROTECTED]
Sent: 27 February, 2003 03:30
To: [EMAIL PROTECTED]
Subject: Action input


Is there a way of providing the action input in a
dynamic fashion? In other words, if I had the same
action being submitted from multiple pages/forms, how
would I go back to the page/form I came from?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



indexed property

2003-02-26 Thread Mohan Radhakrishnan
Hi,
  Can 

Re: CRUD crud using DynaValidatorActionForms?

2003-02-26 Thread Dave Newton
I swear, I'm not stupid, really.

I had left out the name attribute in the action configuration so it
didn't know what kind of form to create. Duh.

Fear not, I'm declaring a moratorium on asking questions for awhile,
mostly to save what remaining dignity I have left :)

(Well, I am kind of wondering if when people to an update/edit if they
have the id of the object as a hidden field in the form, and if people
think it's a potential security risk if it's there.)

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nested:Checkbox

2003-02-26 Thread Arron Bates
nested tags don't like the "name" attribute, becuase they're getting the bean
from their parent. In the example, the check is working off the product of the
iterate tag anyway. I'm betting the following is what you're after...

  

  

...(there was also the closing slash in the checkbox tag, as well as the
closing tag, may have been the issue too). The process of making a bean with
the "id" property, and then the child using that, is more or less what the
nested tags do for free.

Hope this gets you working.
Happy nesting...

Arron.


> Nothing obvious jumps out.  However, have you tried the updated nested jar
that Arron made available a few days ago?  See
http://marc.theaimsgroup.com/?l=struts-user&m=104600916205585&w=2.
> 
> Sri
> 
> -Original Message-
> From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 26, 2003 8:11 PM
> To: 'Struts Users Mailing List'
> Subject: Nested:Checkbox
> 
> 1.1b3 Bug?
> I have 
> 
> 
>   
> 
> 
> Where associates is the collection in my formbean with each bean in
something like: //interface only
> 
> AssociateVO
>   private boolean selected;
>   public boolean getSelected();
>   public void setSelected( boolean selected );
> 
> And I keep getting this.
> [ServletException in:/jsps/selectAssociates.jsp] No getter method for
property associates[0].selected of bean assoc' I had it as isSelected but I
thought the error was related to that so I changed it to get.
> 
> Yet when I simply do:
> 
> 
>   
> 
> 
> It works just fine.
> 
> Is something wrong with my nested setup?
> I've used the before in older versions so I don't think thats what it is but
its getting late and I might be blind. >_<
> 
> -Tim
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts banking example

2003-02-26 Thread David Graham
I've read online pieces of Ted Husted's book and it seems pretty good.  I 
got plenty of hits on google for "struts tutorial" and there's always the 
Struts users guide.

David



From: "joni santoso" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>
Subject: Re: struts banking example
Date: Thu, 27 Feb 2003 11:59:32 +0700

that' the problem :(. i don't even remember where i downloaded it :(. too 
many tutorials :).

try google "struts banking".

btw, is there any good tutorials about struts? i read some in 
developer.com, husted.com, etc.

the problem is i think the beginners need to know the skeletons of 
actionforms, actions, etc related to struts. what do you think? and also 
what to learn first :).

regards,

On Thu, 27 Feb 2003 12:55:27 +0800
 "Andrew Hill" <[EMAIL PROTECTED]> wrote:
Ive not seen this example myself. Can give us the url?

-Original Message-
From: joni santoso [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 February 2003 12:44
To: Struts Users Mailing List
Subject: Re: struts banking example
nope. someone on the list told me already.

but, now i wonder what the example wants to show? i only
see it shows list. nothing like adding, updating,
deleting, etc.
On Wed, 26 Feb 2003 21:41:25 -0700
  "David Graham" <[EMAIL PROTECTED]> wrote:
Struts does not supply a banking example app.  It's
highly unlikely that anyone on this list will know your
username and password to an app we've never seen.

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di
bulan Februari !

===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Regards,

Joni
===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di 
bulan Februari !
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts banking example

2003-02-26 Thread Richard Raquepo
http://examples.oreilly.com/jakarta/
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 12:55 PM
Subject: RE: struts banking example


> Ive not seen this example myself. Can give us the url?
>
>
> -Original Message-
> From: joni santoso [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 27 February 2003 12:44
> To: Struts Users Mailing List
> Subject: Re: struts banking example
>
>
> nope. someone on the list told me already.
>
> but, now i wonder what the example wants to show? i only
> see it shows list. nothing like adding, updating,
> deleting, etc.
>
> On Wed, 26 Feb 2003 21:41:25 -0700
>   "David Graham" <[EMAIL PROTECTED]> wrote:
> >Struts does not supply a banking example app.  It's
> >highly unlikely that anyone on this list will know your
> >username and password to an app we've never seen.
> >
>

> ===
> Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui
> http://toko.plasa.com
> 50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di
> bulan Februari !
>

> ===
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts banking example

2003-02-26 Thread Richard Raquepo
actually the struts banking example is from a book from oreilly ,
"Programming Jakarta Struts".

- Original Message -
From: "joni santoso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 12:44 PM
Subject: Re: struts banking example


> nope. someone on the list told me already.
>
> but, now i wonder what the example wants to show? i only
> see it shows list. nothing like adding, updating,
> deleting, etc.
>
> On Wed, 26 Feb 2003 21:41:25 -0700
>   "David Graham" <[EMAIL PROTECTED]> wrote:
> >Struts does not supply a banking example app.  It's
> >highly unlikely that anyone on this list will know your
> >username and password to an app we've never seen.
> >
>

===
> Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui
http://toko.plasa.com
> 50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di
bulan Februari !
>

===
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts banking example

2003-02-26 Thread joni santoso
that' the problem :(. i don't even remember where i 
downloaded it :(. too many tutorials :).

try google "struts banking".

btw, is there any good tutorials about struts? i read some 
in developer.com, husted.com, etc. 

the problem is i think the beginners need to know the 
skeletons of actionforms, actions, etc related to struts. 
what do you think? and also what to learn first :).

regards,

On Thu, 27 Feb 2003 12:55:27 +0800
 "Andrew Hill" <[EMAIL PROTECTED]> wrote:
Ive not seen this example myself. Can give us the url?

-Original Message-
From: joni santoso [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 February 2003 12:44
To: Struts Users Mailing List
Subject: Re: struts banking example
nope. someone on the list told me already.

but, now i wonder what the example wants to show? i only
see it shows list. nothing like adding, updating,
deleting, etc.
On Wed, 26 Feb 2003 21:41:25 -0700
  "David Graham" <[EMAIL PROTECTED]> wrote:
Struts does not supply a banking example app.  It's
highly unlikely that anyone on this list will know your
username and password to an app we've never seen.

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di 
PlasaCom melalui
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di 
http://idc.plasa.com khusus di
bulan Februari !

===

-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]

Regards,

Joni
===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di bulan 
Februari !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: struts banking example

2003-02-26 Thread Andrew Hill
Ive not seen this example myself. Can give us the url?


-Original Message-
From: joni santoso [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 February 2003 12:44
To: Struts Users Mailing List
Subject: Re: struts banking example


nope. someone on the list told me already.

but, now i wonder what the example wants to show? i only
see it shows list. nothing like adding, updating,
deleting, etc.

On Wed, 26 Feb 2003 21:41:25 -0700
  "David Graham" <[EMAIL PROTECTED]> wrote:
>Struts does not supply a banking example app.  It's
>highly unlikely that anyone on this list will know your
>username and password to an app we've never seen.
>

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di
bulan Februari !

===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts banking example

2003-02-26 Thread David Graham
You mean 123 456 was actually the username/password?  I thought they were 
joking :-).

David



From: "joni santoso" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: struts banking example
Date: Thu, 27 Feb 2003 11:44:19 +0700
nope. someone on the list told me already.

but, now i wonder what the example wants to show? i only see it shows list. 
nothing like adding, updating, deleting, etc.

On Wed, 26 Feb 2003 21:41:25 -0700
 "David Graham" <[EMAIL PROTECTED]> wrote:
Struts does not supply a banking example app.  It's highly unlikely that 
anyone on this list will know your username and password to an app we've 
never seen.

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di 
bulan Februari !
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts banking example

2003-02-26 Thread joni santoso
nope. someone on the list told me already.

but, now i wonder what the example wants to show? i only 
see it shows list. nothing like adding, updating, 
deleting, etc.

On Wed, 26 Feb 2003 21:41:25 -0700
 "David Graham" <[EMAIL PROTECTED]> wrote:
Struts does not supply a banking example app.  It's 
highly unlikely that anyone on this list will know your 
username and password to an app we've never seen.

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di bulan 
Februari !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts banking example

2003-02-26 Thread David Graham
Struts does not supply a banking example app.  It's highly unlikely that 
anyone on this list will know your username and password to an app we've 
never seen.

David

From: "joni santoso" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: struts banking example
Date: Thu, 27 Feb 2003 11:31:19 +0700
i thougt the example already puts the default ones something like oracle's 
default userid/password.

so how do i know the userid/password then?

On Wed, 26 Feb 2003 21:26:57 -0700
 "David Graham" <[EMAIL PROTECTED]> wrote:
No one on this list knows your username and password.

David

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di 
bulan Februari !
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts banking example

2003-02-26 Thread joni santoso
ok.
thx.
On Thu, 27 Feb 2003 12:41:52 +0800
 "Richard Raquepo" <[EMAIL PROTECTED]> wrote:
123
456
- Original Message -
From: "joni santoso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
<[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 12:10 PM
Subject: struts banking example


hi,

i got a struts banking app example. however, i dont know
the user id and password. could anyone tell me?
regards,


===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di 
PlasaCom melalui
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di 
http://idc.plasa.com khusus di
bulan Februari !


===
-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]

Regards,

Joni
===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di bulan 
Februari !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts banking example

2003-02-26 Thread Richard Raquepo
123
456
- Original Message -
From: "joni santoso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 12:10 PM
Subject: struts banking example


> hi,
>
> i got a struts banking app example. however, i dont know
> the user id and password. could anyone tell me?
>
> regards,
>

===
> Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui
http://toko.plasa.com
> 50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di
bulan Februari !
>

===
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts banking example

2003-02-26 Thread joni santoso
i thougt the example already puts the default ones 
something like oracle's default userid/password.

so how do i know the userid/password then?

On Wed, 26 Feb 2003 21:26:57 -0700
 "David Graham" <[EMAIL PROTECTED]> wrote:
No one on this list knows your username and password.

David

===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di bulan 
Februari !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts banking example

2003-02-26 Thread David Graham
No one on this list knows your username and password.

David



From: "joni santoso" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: struts banking example
Date: Thu, 27 Feb 2003 11:10:47 +0700
hi,

i got a struts banking app example. however, i dont know the user id and 
password. could anyone tell me?

regards,
===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di 
bulan Februari !
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


CRUD crud using DynaValidatorActionForms?

2003-02-26 Thread Dave Newton
Hola,

I'm playing around with the DynaValidatorActionForm and attempting
(perhaps foolishly) to use them to perform CRUD functions using a
DispatchAction.

I have a DispatchAction that has doCreate, doUpdate, etc. methods
in it. I turn off validation in the action's struts-config definition
and call them manually in the appropriate methods (i.e., not doList).

In the olden days to do a CRUD action I would check to see if the
ActionForm passed in to the execute method was null. If it was, I'd
create one, populate it, go to the input page to display everything, and
run the action when the form was submitted (using an appropriate form
value to indicate what function I was performing) as per most of the
example webapps.

Now I want to do (more or less) the same thing using a
DynaValidatorActionForm so I can be less involved in form creation and
validation and only stick my head into it to do the actual backend code.

The problem is that I'm not sure how to go about creating a
DynaValidatorActionForm, initializing it, populating it, etc. The naive
solution, just making a new DynaValidatorActionForm bombs out with a
NullPointerException from the RequestProcessor but I haven't really
figured it out much beyond that.

Is it possible to do this, create a DynaValidatorActionForm if necessary
(for the first hit on the doUpdate method), initialize it from the
struts-config.xml file (so it knows what fields it needs), and throw it
into the request so the presentation page can do everything it would
normally do? If so, how?!

I searched the archive a bit and found little bits of info but nothing
that seemed to answer my question, and my foray into the Struts source
led me to believe that this type of thing is frowned upon at the
application level, but I'm tired and may have misunderstood.

Thanks much,
Dave Newton



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts banking example

2003-02-26 Thread joni santoso
hi,

i got a struts banking app example. however, i dont know 
the user id and password. could anyone tell me?

regards,
===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di bulan 
Februari !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: checkbox and iterate problem

2003-02-26 Thread Neal
I got it working..Thank you for your assistance.

I completely rewrote my code, and instead of using indexed=true, I
constructed the property inline using <%= blah %>
I'm not sure why I couldn;t get it working the first way, but now it works.

Neal


> Mine is Collection, so I iterate thru the collection and set "false"
> (String) to each checked.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: Neal [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2003 5:20 PM
> To: [EMAIL PROTECTED]
> Subject: RE: checkbox and iterate problem
>
> I changed everything from boolean (primative) to Boolean (Object type),
> no difference
> I still see the same behavior.
> After submit my setter function is not called.
> but for a non-indexed checkbox it is called.
>
> However the getter() is always called.
>
> Neal
>
>> try Boolean.FALSE (Object) instead of false (which is a primitive
>> type).
>>
>> Regards,
>>
>>
>> PQ
>>
>> "This Guy Thinks He Knows Everything"
>> "This Guy Thinks He Knows What He Is Doing"
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: February 26, 2003 2:04 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: checkbox and iterate problem
>>
>> I have a Reset method, and I am calling  mFolders[i].setChecked(false)
>> for each item in my array. Is that what you mean by setting the
>> default value ?
>> If so, it hasn't fixed my problem.
>>
>> Thanx
>>
>>> Have to set default value in reset method.
>>>
>>> Regards,
>>>
>>>
>>> PQ
>>>
>>> "This Guy Thinks He Knows Everything"
>>> "This Guy Thinks He Knows What He Is Doing"
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>> Sent: February 26, 2003 1:18 PM
>>> To: [EMAIL PROTECTED]
>>> Subject: checkbox and iterate problem
>>>
>>> Hi,
>>>  I'm having a problem with checkboxes and I was hoping someone could
>>> help.
>>>
>>>  The short version is:
>>>when using  over an array of checkboxes, the
>>> setter
>>> method is not called after submit
>>>
>>>  Long version
>>>I have class   CheckableString { String str; boolean checked =
>>> false;
>>> // etc.. };
>>>I have a Form
>>>HostForm extends ActionForm {
>>>  CheckableString[] mFolders = new CheckableString[100];
>>> public CheckableString getFolder(int n) {
>>> System.err.println("HostForm getFolder a " + mFolders[n]);
>>> return mFolders[n];
>>> }
>>> public CheckableString[] getFolder() {
>>> System.err.println("HostForm getFolder b " + this);
>>> for (int i = 0; i != mFolders.length; i++) {
>>> System.err.println("HostForm getFolder b " +
>>> mFolders[i]);
>>> }
>>> return mFolders;
>>> }
>>> public void setFolder(int n, CheckableString folders) {
>>> System.err.println("HostForm setFolder a " + folders + " " +
>>> this);
>>> mFolders[n] = folders;
>>> }
>>> public void setFolder(CheckableString[] folders) {
>>> System.err.println("HostForm setFolder b " + this);
>>> mFolders = folders;
>>> }
>>> public void reset(ActionMapping a, HttpServletRequest b) {
>>> System.err.println("HostForm reset " + this);
>>> flag = false;
>>> for (int i = 0; i != mFolders.length; i++) {
>>> System.err.println("HostForm reset "
>>> + mFolders[i]);
>>> if (mFolders[i] != null)
>>>
>>> mFolders[i].setChecked(false);
>>> }
>>> }
>>> }
>>>
>>> I have an Action class setup the form, populating values from a
>>> database,
>>> it then forwards to a jsp page
>>> 
>>> ..
>>> >> indexId="index">
>>> 
>>>   
>>> 
>>>>> name='quack' />
>>>   
>>> 
>>>   
>>> 
>>> 
>>> 
>>>
>>>
>>> The form is populated correctly, items marked as true are selected.
>>> And looking at the logs the getter function is called
>>> The problem is when I submit, the setter function is NEVER called,
>>> and the Form is not populated.
>>> note: If I have a simple non-indexed checkbox, then that works as
>>> expected and the setter is called
>>>
>>> I am using struts 1.1RC1
>>>
>>> Anyone got any ideas ??, I'm stumped
>>>
>>> Thanks
>>>
>>> Neal
>>>
>>>
>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] can I use ArrayList type for property ?

2003-02-26 Thread Sri Sankaran
Quoting the docs

..Renders an HTML  element of type checkbox, whose "checked" status is 
initialized based on whether the specified value matches one of the elements of the 
underlying property's array of current values...

I'd guess it must be an Object[].  I have used it only with String[]s.

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 5:40 PM
To: [EMAIL PROTECTED]
Subject: [Q] can I use ArrayList type for  property ?


Hello,

what types allowed for   property ?

Best Regards.
Michael.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Action input

2003-02-26 Thread Ivan N. Zhidov
I actualy had a similar question before and the answer I came up with was to
describe that universal action in struts-config w/o input and forwards, then
define the views/jsp pages this action will be called from as global
forwards and then use the global forwards aliases as a value passed as
parameter to the action.

example:

in struts-config.xml

  


  




public final class MyActionForm extends ActionForm  {

  // view
  private String view;

  public void setView(String val){
this.view = val;
  }

  public String getView(){
return view;
  }

}

public final class MyAction extends Action{
public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws IOException, ServletException
{

  String view = ((MyActionForm)form).getView();
   ...
  return mapping.findForward(view);
  }
}

so in your index.jsp
process

so you defined one action and the user still will not see the real view
names.

If anybody has a better solution besides extending ActionServlet , let me
know beacuse I'd like to make it more efficient.

Cheers,
Ivan

- Original Message -
From: "harish krishnaswamy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 8:29 PM
Subject: Action input


> Is there a way of providing the action input in a
> dynamic fashion? In other words, if I had the same
> action being submitted from multiple pages/forms, how
> would I go back to the page/form I came from?
>
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nested:Checkbox

2003-02-26 Thread Sri Sankaran
Nothing obvious jumps out.  However, have you tried the updated nested jar that Arron 
made available a few days ago?  See 
http://marc.theaimsgroup.com/?l=struts-user&m=104600916205585&w=2.

Sri

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 8:11 PM
To: 'Struts Users Mailing List'
Subject: Nested:Checkbox


1.1b3 Bug?
I have 



  

Where associates is the collection in my formbean with each bean in something like: 
//interface only

AssociateVO
  private boolean selected;
  public boolean getSelected();
  public void setSelected( boolean selected );

And I keep getting this.
[ServletException in:/jsps/selectAssociates.jsp] No getter method for property 
associates[0].selected of bean assoc' I had it as isSelected but I thought the error 
was related to that so I changed it to get.

Yet when I simply do:



  

It works just fine.

Is something wrong with my nested setup?
I've used the before in older versions so I don't think thats what it is but its 
getting late and I might be blind. >_<

-Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action input

2003-02-26 Thread Sri Sankaran
If your intent is to re-use the same action class you can simply create an action 
mapping for each usage.  The only thing that has to be unique is the path.  Each 
action mapping can, of course, define it's own input attribute; effectively providing 
the dynamism you seek.

Sri

-Original Message-
From: harish krishnaswamy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 8:30 PM
To: [EMAIL PROTECTED]
Subject: Action input


Is there a way of providing the action input in a
dynamic fashion? In other words, if I had the same
action being submitted from multiple pages/forms, how
would I go back to the page/form I came from?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internal-only paths

2003-02-26 Thread Kris Schneider
Another thought is to try a security constraint in your web.xml:


  
Private
/private/*
  
  

So if you had an action mapping:



Then a client making a request for /app/private/funk.do should receive 
an error from the container.

Or maybe use a servlet filter (requires a Servlet 2.3 container) 
configured with a set of action paths that should be protected.

Joe Barefoot wrote:
If that doesn't work for ya, I have a really hacky way to do it, but it relies on your using an abstract action superclass that all other actions extend.  If you have this, then all you need to do in the superclass's perform method is use an Integer request attribute:

check if Integer attrib exists...if so, increment it by 1.
if it doesn't, create it and initialize it to 1
In your non-externally-accessible Action, grab this attrib first thing.  If it's greater than 1 (meaning you came from another Action, cause you had to go through your superclass' perform method twice or more), proceed.  If not, this action must be the first in the request chain, so return a nasty message saying they can't do this (or throw an exception, or do a response.redirect() and set the status code to 404, or whatever).  :)

Note that this won't work for redirects of course, but neither would anything else

--joe


-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 5:00 PM
To: Struts Users Mailing List
Subject: RE: Internal-only paths
Gee, I wonder if specifying a "roles" value of "dummy" (a nonexistent
role name) would do this.  I don't know if a non-redirect forward from
an action to an action would go through the RequestProcessor. 
I have a
feeling it wouldn't.  If this works, I have a feeling it's a fortunate
accident.


-Original Message-
From: John Brayton [mailto:[EMAIL PROTECTED]
I am trying to find a way to specify that an Action can only be
accessed as a forward from another action.  I want to avoid web
clients access those actions directly.  Does anyone know of a way to
do this from, say, the "struts-config.xml" file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Kris Schneider 
D.O.Tech   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Action input

2003-02-26 Thread Todd Pierce
Or you could have a custom action for each screen, all exactly the same
except for the defined success forward and the input screen

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 February 2003 12:48 PM
To: Struts Users Mailing List
Subject: Re: Action input


Well you could fake it maybe? In one.jsp point your form to action1, in
two.jsp point it to action2. However in struts-config.xml just map
action1 and action2 both to the same action class with appropriate input
fields.  This ought to work I think. (And if it doesn't, I already have
an excuse..;))

But maybe you wanted a slicker solution..?  Maybe there is one in
Struts1.1..

Regards,
Geeta

harish krishnaswamy wrote:

> Is there a way of providing the action input in a
> dynamic fashion? In other words, if I had the same
> action being submitted from multiple pages/forms, how
> would I go back to the page/form I came from?
>
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Action input

2003-02-26 Thread Geeta Ramani
Well you could fake it maybe? In one.jsp point your form to action1, in
two.jsp point it to action2. However in struts-config.xml just map
action1 and action2 both to the same action class with appropriate input
fields.  This ought to work I think. (And if it doesn't, I already have
an excuse..;))

But maybe you wanted a slicker solution..?  Maybe there is one in
Struts1.1..

Regards,
Geeta

harish krishnaswamy wrote:

> Is there a way of providing the action input in a
> dynamic fashion? In other words, if I had the same
> action being submitted from multiple pages/forms, how
> would I go back to the page/form I came from?
>
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Action input

2003-02-26 Thread harish krishnaswamy
Is there a way of providing the action input in a
dynamic fashion? In other words, if I had the same
action being submitted from multiple pages/forms, how
would I go back to the page/form I came from?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Nested:Checkbox

2003-02-26 Thread Chen, Gin
1.1b3 Bug?
I have 



  

Where associates is the collection in my formbean with each bean in
something like:
//interface only

AssociateVO
  private boolean selected;
  public boolean getSelected();
  public void setSelected( boolean selected );

And I keep getting this.
[ServletException in:/jsps/selectAssociates.jsp] No getter method for
property associates[0].selected of bean assoc'
I had it as isSelected but I thought the error was related to that so I
changed it to get.

Yet when I simply do:



  

It works just fine.

Is something wrong with my nested setup?
I've used the before in older versions so I don't think thats what it is but
its getting late and I might be blind. >_<

-Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal-only paths

2003-02-26 Thread Joe Barefoot
If that doesn't work for ya, I have a really hacky way to do it, but it relies on your 
using an abstract action superclass that all other actions extend.  If you have this, 
then all you need to do in the superclass's perform method is use an Integer request 
attribute:

check if Integer attrib exists...if so, increment it by 1.
if it doesn't, create it and initialize it to 1

In your non-externally-accessible Action, grab this attrib first thing.  If it's 
greater than 1 (meaning you came from another Action, cause you had to go through your 
superclass' perform method twice or more), proceed.  If not, this action must be the 
first in the request chain, so return a nasty message saying they can't do this (or 
throw an exception, or do a response.redirect() and set the status code to 404, or 
whatever).  :)

Note that this won't work for redirects of course, but neither would anything else


--joe

> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 5:00 PM
> To: Struts Users Mailing List
> Subject: RE: Internal-only paths
> 
> 
> Gee, I wonder if specifying a "roles" value of "dummy" (a nonexistent
> role name) would do this.  I don't know if a non-redirect forward from
> an action to an action would go through the RequestProcessor. 
>  I have a
> feeling it wouldn't.  If this works, I have a feeling it's a fortunate
> accident.
> 
> > -Original Message-
> > From: John Brayton [mailto:[EMAIL PROTECTED]
> > 
> > I am trying to find a way to specify that an Action can only be
> > accessed as a forward from another action.  I want to avoid web
> > clients access those actions directly.  Does anyone know of a way to
> > do this from, say, the "struts-config.xml" file?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal-only paths

2003-02-26 Thread Karr, David
Gee, I wonder if specifying a "roles" value of "dummy" (a nonexistent
role name) would do this.  I don't know if a non-redirect forward from
an action to an action would go through the RequestProcessor.  I have a
feeling it wouldn't.  If this works, I have a feeling it's a fortunate
accident.

> -Original Message-
> From: John Brayton [mailto:[EMAIL PROTECTED]
> 
> I am trying to find a way to specify that an Action can only be
> accessed as a forward from another action.  I want to avoid web
> clients access those actions directly.  Does anyone know of a way to
> do this from, say, the "struts-config.xml" file?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Internal-only paths

2003-02-26 Thread John Brayton
I am trying to find a way to specify that an Action can only be 
accessed as a forward from another action.  I want to avoid web 
clients access those actions directly.  Does anyone know of a way to 
do this from, say, the "struts-config.xml" file?

John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FW: Running unit tests for Validator used with Struts

2003-02-26 Thread otisg
Hello Edgar,

I already am using StrutsTestCase to tests
Actions I write.  I see how that could be
used to test whether validation works, but
unless I'm missing something testing of
custom validators this way would really be
just a side-effect of testing Actions.

So imagine you have an Action A that uses
Validator V.  I write a STC-bases unit test
and run it.  It passes, no problems.  One
day somebody modifies A to stop using V and
modifies V and breaks it.

My STC-bases tests keep running and passing,
because A still works, but I will never find
out that V is broken, because V is never
really tested directly.

A new developer is hired and writes a new
Action, AA, and decides to use V.  V is
broken and his AA class is now broken
because V is kaput.

One could argue that AA should have its unit
tests, too, and that those should show me
that V is (has been) broken

So I will use STC for testing the Validator,
too, but I'm wondering if there is better,
more direct way of testing them?
I can test them directly when they are
Struts-independent, but when they depend on
Struts (e.g. by taking some Struts classes
as params), then I cannot.

Thanks,
Otis




 On Wed, 26 Feb 2003, Edgar P. Dollin
([EMAIL PROTECTED]) wrote:

>  
> > Use StrutsTestCase,
http://strutstestcase.sourceforge.net.  
> > It does the whole struts cycle and
allows test of all struts 
> > components.
> > 
> > Edgar
> > 
> > > -Original Message-
> > > From: otisg [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 26, 2003 4:51 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: Q: Running unit tests for
Validator used with Struts
> > > 
> > > 
> > > Hello,
> > > 
> > > It is almost impossible to get anyone
> > > attention on struts-user.
> > > I'm using Struts and Validator with it.
> > > I wrote a custom Validator and want to
write
> > > a unit test for it.
> > > My Validator has a method like this:
> > > 
> > > public static boolean validateStartLetter(
> > > Object bean,
> > > ValidatorAction validatorAction,
> > > Field field,
> > > ActionErrors errors,
> > > HttpServletRequest request
> > > )
> > > {
> > > String value =
> > > ValidatorUtil.getValueAsString(bean,
> > > field.getProperty());
> > > if
> > >
((GenericValidator.isBlankOrNull(value)) ||
> > > !Character.isLetter(value.charAt(0)))
> > > {
> > > errors.add(field.getKey(),
> > > Resources.getActionError(request,
validatorAction, field));
> > > }
> > > 
> > > return errors.isEmpty();
> > > }
> > > 
> > > I am running JUnit from Ant to run my unit
> > > test class.
> > > Apparently this doesn't work because the
> > > instance of ActionErrors passed to this
> > > method is null, causing a NPE.
> > > 
> > > I wanted to check the unit tests for
> > > Validator in Struts (FieldChecks) to
see how
> > > you wrote your unit tests, so that
this NPE
> > > is avoided, but I could not find any unit
> > > tests for it.
> > > Are there really no unit tests there?
> > > 
> > > Regardless, how would you go about running
> > > unit tests for a custom validator from
> > > something like Ant?
> > > 
> > > It seems to me that doing that may be
> > > impossible, because there is no Struts
> > > running to instantiate ActionErrors, there
> > > is no HttpServletRequest, and so on.
> > > 
> > > Is there a way to do this?
> > > 
> > > Thanks,
> > > Otis
> > > 
> > > 
> > >

> > > Get your own "800" number
> > > Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
> > > 
> > > 
> >
-
> > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > > 
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
> 
> 
> 



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Marco Tedone
I'm using Jboss connection pooling and access it from a session bean.

Marco

> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 26, 2003 10:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> 
> I'm setting up named data sources with the following: 
>type="org.apache.commons.dbcp.BasicDataSource">
>  value="false"/>
>  value="EHA Definition"/>
>  value="oracle.jdbc.driver.OracleDriver"/>
>  value="4"/>
>  value="2"/>
>  
> value="jdbc:oracle:thin:@citation:1521/citation"/>
>  value="david"/>
>  value="secret"/>
>   
> 
> 
> In my Action, I reference this as:
> DataSource ds = getDataSource(req, "eha");
> 
> Tomcat reports the following in catalina.out:
> SQLException: Cannot load JDBC driver class 'null'
> 
> -david-
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> What is the bug that you discovered? Mine works just fine.
> 
> Tomcat 4.1.18
> Struts 1.1-rc1
> Oracle 8i
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> After working on this for most of the day, I have discovered 
> that Tomcat 4.1.18 and DBCP do not play well together. There 
> is a bug against Tomcat for this (I have *got* to remember to 
> check the bugs databases sooner
> ;-) ), but no analysis or corrective action has been recorded to date.
>  
> So, my question is this. "What are people using for their DataSource?"
>  
> My environment is:
> Tomcat 4.1.18
> Struts 1.1rc1
> Oracle 9i
> JDBC
>  
> Thanks!
> -david-
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Show or hide fields according to an other field value.

2003-02-26 Thread Paul Thomas
On 25/02/2003 13:09 Heligon Sandra wrote:
I would like to know how is it possible to show or hide fields in
a
Tiles/JSP page according
to the check or not of a radio button ?
For example at the top of the page I have a radio button with two
values:one or more.
If the more option is selected I have to display a table else a
single line is displayed.
It's certainly possible but might involve using JavaScript. You could use
the logic:equal and logic:notEqual tags to test some property, let's call
it "more", and display/hide fields as needed. The radio buttons would need
to have JavaScript "onClick" functions which would generate an appropriate
post to the server. The server then changes the value of the "more"
property and sends the page back. It may also be possible to do it
entirely in JavaScript on the client side but don't be surprised if you
hit browser compatibility problems if you choose to go down that route.
--
Paul Thomas
Thomas Micro Systems Limited
http://www.tmsl.demon.co.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: websites that use Struts..

2003-02-26 Thread Daniel Ritchey
A little birdy told me Vignette 7.0 uses Struts.

- Original Message -
From: "James Prance" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 10:42 AM
Subject: websites that use Struts..


> The list on the Apache website, half the links dont work...
> does anyone know of some websites out there on the old 'interweb' that are
> currently live using struts..
> I need to find some good examples to convince our PM's that this is our
way
> forward..
>
> James
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tiles: dynamically adding definitions

2003-02-26 Thread John Nikolai
Is it possible to define a few base tiles definitions (loaded using 
TilesPlugin) and, during runtime, read in other definitions which 
extend these base definitions?

Here is an example use:

We have an XML file which defines a web site and used to generate the 
web site navigation. If we add a new page to the site we need to update 
this XML file to update the navigation as well. Can I add a tiles 
definition to this XML file and add that definition into tiles for 
processing?


 Events & Activities 
 Events & Activities 


...


NOTE: "master.page" is defined in the default definitions loaded at 
startup using TilesPlugin.

Doing it this way when I add a new file I only need to update a single 
XML file as opposed to several.

Thanks for your help!
 - John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help with optionsCollection error

2003-02-26 Thread Peng Tuck Kwok
Ok here goes :
The original method for the attribute recipients was :
public void setRecipients(Vector input)
That caused the errors of the type mismatch ,
So I tried changing it to take to array of strings, like this
	public void setRecipients(String [] one, String [] two)
It doesn't complain about anything, but it doesn't pass any values to it 
as I have tried putting in a few println statements in there.



Ian Hunter wrote:
I don't understand the question -- if your example is working, the setter
method is getting called and it's storing whatever got passed to it.  Can
you ask the question a different way?
- Original Message -
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 12:25 AM
Subject: Re: Help with optionsCollection error


Another question Ian, since I changed it, what values would be passed
into the two inputs ? I tried doing a System.out.println to see what's
in there but apparently the output does not come out.
Ian Hunter wrote:

Lowly me?  Contribute to the FAQ?  hee hee.  Glad to help.

(Hey, who's in charge of the FAQ around here?)

- Original Message -
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 11:39 PM
Subject: Re: Help with optionsCollection error



Hi Ian, your tip worked like a charm and I substituted it with the
setRecipient(String key, String value) method. Hmm now I need to see
what exactly I put in there.
Ian ever thought of adding this as a faq in Struts ?

Peng Tuck Kwok wrote:


Will try that and post results. Thanks.

Ian Hunter wrote:



I think so -- whichever setter method within your ActionForm applies
to the
field named in your  tag has to be the ONLY setter method
named
whatever it's named.
That's contradictory to normal bean conventions where you would
normally


have

public void setValues(Vector values)
and
public void setValues(String key, String value)
for instance.  The introspection done by Struts can't tell the
difference so
you get an error thrown by BeanUtils.populate where it tries to call
setValues(String key, String value) with only one value.
There has been a fair amount of debate about this recently, but if you
have
overloaded setter methods, comment all but the one that suits the type
of


value you're really using, and see if it works.

I had to go from having
public void setIds(String ids[])
and
public void setIds(int i; String ids[])
to having

public void setIds(String ids[])
and
public void setId(int i; String ids[])
see the difference?  The "s" is gone in the case of the indexed
property.


See if that applies to your situation.

- Original Message -
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 10:56 PM
Subject: Re: Help with optionsCollection error




I'm currently implementing the recipients as a vector of beans and I
do


provide method setRecipients which takes in a vector and sets the
recipients vector to it. Is that the setter method you are referring
to ?
Thanks.


Ian Hunter wrote:



The ActionForm descendant.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: websites that use Struts..

2003-02-26 Thread Michael Mok
Try this.

It is 100% STRUTS. Other open source technologies used are itext (PDF 
generator) and castor (Persistance and caching layer to the database).

http://www.teatimej.com

Logon: guest
password: guest
Regards

Michael



Dennis Muhlestein wrote:

http://www.datemate.com

On Wed, 2003-02-26 at 08:42, James Prance wrote:
 

*This message was transferred with a trial version of CommuniGate(tm) Pro*
The list on the Apache website, half the links dont work...
does anyone know of some websites out there on the old 'interweb' that are
currently live using struts..
I need to find some good examples to convince our PM's that this is our way
forward..
James





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FW: Running unit tests for Validator used with Struts

2003-02-26 Thread Edgar P. Dollin
 
> Use StrutsTestCase, http://strutstestcase.sourceforge.net.  
> It does the whole struts cycle and allows test of all struts 
> components.
> 
> Edgar
> 
> > -Original Message-
> > From: otisg [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 4:51 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Q: Running unit tests for Validator used with Struts
> > 
> > 
> > Hello,
> > 
> > It is almost impossible to get anyone
> > attention on struts-user.
> > I'm using Struts and Validator with it.
> > I wrote a custom Validator and want to write
> > a unit test for it.
> > My Validator has a method like this:
> > 
> > public static boolean validateStartLetter(
> > Object bean,
> > ValidatorAction validatorAction,
> > Field field,
> > ActionErrors errors,
> > HttpServletRequest request
> > )
> > {
> > String value =
> > ValidatorUtil.getValueAsString(bean,
> > field.getProperty());
> > if
> > ((GenericValidator.isBlankOrNull(value)) ||
> > !Character.isLetter(value.charAt(0)))
> > {
> > errors.add(field.getKey(),
> > Resources.getActionError(request, validatorAction, field));
> > }
> > 
> > return errors.isEmpty();
> > }
> > 
> > I am running JUnit from Ant to run my unit
> > test class.
> > Apparently this doesn't work because the
> > instance of ActionErrors passed to this
> > method is null, causing a NPE.
> > 
> > I wanted to check the unit tests for
> > Validator in Struts (FieldChecks) to see how
> > you wrote your unit tests, so that this NPE
> > is avoided, but I could not find any unit
> > tests for it.
> > Are there really no unit tests there?
> > 
> > Regardless, how would you go about running
> > unit tests for a custom validator from
> > something like Ant?
> > 
> > It seems to me that doing that may be
> > impossible, because there is no Struts
> > running to instantiate ActionErrors, there
> > is no HttpServletRequest, and so on.
> > 
> > Is there a way to do this?
> > 
> > Thanks,
> > Otis
> > 
> > 
> > 
> > Get your own "800" number
> > Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: More Than Form On A JSP

2003-02-26 Thread Andrew Shirk
One method would be to encode the form info into the urls of the next and 
previous button links. Then in your action, get the request parameters and 
populate the form.

At 02:38 PM 2/26/2003 -0800, you wrote:
I am developing an architecture for the rest of my
development staff to use on a new J2EE project
starting next month.
I have the following situation:

A JSP contains a form which allows the user to lookup
a list of information. For example, if you enter an
SSN the JSP will display some demographic information
about the person associated with the SSN (first name,
last name, etc) along with a list in an HTML table of
payment history.
The HTML table displays a subset of data, say 10 rows
at a time. The total number of rows could be much
higher. The table comes with buttons to navigate
through the next and previous rows in the table.
The point is the user can display the "previous" and
"next" items in the table while the demographic
information at the top remains displayed.
The HTML table is built using a custom taglib I've
developed. I also wrote a custom Action, called
NavigateAction, which handles all the logic associated
with clicking "previous" and "next". I've wrapped the
HTML table in a form so that Struts can direct it to
NavigateAction. NavigateAction gets the next 10 rows
of data, puts them into the request object, and
forwards to the same page we came from. Finally, the
taglib builds the table from the data stored in the
request. All that is working fine.
All this allows my developers to reuse this HTML table
logic on any JSP that has a similar appearance (static
data at the top and scrollable data at the bottom).
There is a problem however. After the page is
redisplayed, the top part of the page contains no
data. All of it has been lost because the form
associated with it is out of scope (it was scoped to
the request).
I don't want to scope the forms to the session as they
will accumulate as the user navigates through the
application, plus the data in them will be stale if
the user returns to a JSP they were at a while ago.
Does anyone have any ideas how to solve this?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Action Class singleton -- throw away option?

2003-02-26 Thread David Graham
AFAIK, Struts holds onto the instance for the life of the app.  You might be 
able to subclass RequestProcessor and somehow get rid of the instance.

David



From: "Shackelford, John-Mason" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Action Class singleton -- throw away option?
Date: Wed, 26 Feb 2003 16:34:49 -0600
Does Stuts provide a mechanism to instantiate & throw away instances of an
action class rather than keeping them around singleton style? I assume the
logic for this is part of the Action Servlet. Are there multiple
implemenations available. Are other Struts users using a throw-away style
action class / action servlet (as is common in Maverick)?
John-Mason Shackelford

Software Developer
Pearson Educational Measurement - eMeasurement Group
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
[EMAIL PROTECTED]
http://etest.ncspearson.com

This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: checkbox and iterate problem

2003-02-26 Thread Neal
I'm afraid you've lost me, I thought the propery HAD to be boolean for a
checkbox.
Can you please send me a code snippet of what you have working (even if
its different then what I am trying to do).

High level: I just want to read a list a of strings items from a DB, and
then populate a form with the items and let the user select them or not.

Thanx


> Mine is Collection, so I iterate thru the collection and set "false"
> (String) to each checked.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: Neal [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2003 5:20 PM
> To: [EMAIL PROTECTED]
> Subject: RE: checkbox and iterate problem
>
> I changed everything from boolean (primative) to Boolean (Object type),
> no difference
> I still see the same behavior.
> After submit my setter function is not called.
> but for a non-indexed checkbox it is called.
>
> However the getter() is always called.
>
> Neal
>
>> try Boolean.FALSE (Object) instead of false (which is a primitive
>> type).
>>
>> Regards,
>>
>>
>> PQ
>>
>> "This Guy Thinks He Knows Everything"
>> "This Guy Thinks He Knows What He Is Doing"
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: February 26, 2003 2:04 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: checkbox and iterate problem
>>
>> I have a Reset method, and I am calling  mFolders[i].setChecked(false)
>> for each item in my array. Is that what you mean by setting the
>> default value ?
>> If so, it hasn't fixed my problem.
>>
>> Thanx
>>
>>> Have to set default value in reset method.
>>>
>>> Regards,
>>>
>>>
>>> PQ
>>>
>>> "This Guy Thinks He Knows Everything"
>>> "This Guy Thinks He Knows What He Is Doing"
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>> Sent: February 26, 2003 1:18 PM
>>> To: [EMAIL PROTECTED]
>>> Subject: checkbox and iterate problem
>>>
>>> Hi,
>>>  I'm having a problem with checkboxes and I was hoping someone could
>>> help.
>>>
>>>  The short version is:
>>>when using  over an array of checkboxes, the
>>> setter
>>> method is not called after submit
>>>
>>>  Long version
>>>I have class   CheckableString { String str; boolean checked =
>>> false;
>>> // etc.. };
>>>I have a Form
>>>HostForm extends ActionForm {
>>>  CheckableString[] mFolders = new CheckableString[100];
>>> public CheckableString getFolder(int n) {
>>> System.err.println("HostForm getFolder a " + mFolders[n]);
>>> return mFolders[n];
>>> }
>>> public CheckableString[] getFolder() {
>>> System.err.println("HostForm getFolder b " + this);
>>> for (int i = 0; i != mFolders.length; i++) {
>>> System.err.println("HostForm getFolder b " +
>>> mFolders[i]);
>>> }
>>> return mFolders;
>>> }
>>> public void setFolder(int n, CheckableString folders) {
>>> System.err.println("HostForm setFolder a " + folders + " " +
>>> this);
>>> mFolders[n] = folders;
>>> }
>>> public void setFolder(CheckableString[] folders) {
>>> System.err.println("HostForm setFolder b " + this);
>>> mFolders = folders;
>>> }
>>> public void reset(ActionMapping a, HttpServletRequest b) {
>>> System.err.println("HostForm reset " + this);
>>> flag = false;
>>> for (int i = 0; i != mFolders.length; i++) {
>>> System.err.println("HostForm reset "
>>> + mFolders[i]);
>>> if (mFolders[i] != null)
>>>
>>> mFolders[i].setChecked(false);
>>> }
>>> }
>>> }
>>>
>>> I have an Action class setup the form, populating values from a
>>> database,
>>> it then forwards to a jsp page
>>> 
>>> ..
>>> >> indexId="index">
>>> 
>>>   
>>> 
>>>>> name='quack' />
>>>   
>>> 
>>>   
>>> 
>>> 
>>> 
>>>
>>>
>>> The form is populated correctly, items marked as true are selected.
>>> And looking at the logs the getter function is called
>>> The problem is when I submit, the setter function is NEVER called,
>>> and the Form is not populated.
>>> note: If I have a simple non-indexed checkbox, then that works as
>>> expected and the setter is called
>>>
>>> I am using struts 1.1RC1
>>>
>>> Anyone got any ideas ??, I'm stumped
>>>
>>> Thanks
>>>
>>> Neal
>>>
>>>
>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -

RE: More Than Form On A JSP

2003-02-26 Thread Raible, Matt
Maybe a tiles controller for the form information at the top?

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:39 PM
> To: Struts Mailing List
> Subject: More Than Form On A JSP
> 
> 
> I am developing an architecture for the rest of my
> development staff to use on a new J2EE project
> starting next month.
> 
> I have the following situation:
> 
> A JSP contains a form which allows the user to lookup
> a list of information. For example, if you enter an
> SSN the JSP will display some demographic information
> about the person associated with the SSN (first name,
> last name, etc) along with a list in an HTML table of
> payment history.
> 
> The HTML table displays a subset of data, say 10 rows
> at a time. The total number of rows could be much
> higher. The table comes with buttons to navigate
> through the next and previous rows in the table.
> 
> The point is the user can display the "previous" and
> "next" items in the table while the demographic
> information at the top remains displayed.
> 
> The HTML table is built using a custom taglib I've
> developed. I also wrote a custom Action, called
> NavigateAction, which handles all the logic associated
> with clicking "previous" and "next". I've wrapped the
> HTML table in a form so that Struts can direct it to
> NavigateAction. NavigateAction gets the next 10 rows
> of data, puts them into the request object, and
> forwards to the same page we came from. Finally, the
> taglib builds the table from the data stored in the
> request. All that is working fine.
> 
> All this allows my developers to reuse this HTML table
> logic on any JSP that has a similar appearance (static
> data at the top and scrollable data at the bottom).
> 
> There is a problem however. After the page is
> redisplayed, the top part of the page contains no
> data. All of it has been lost because the form
> associated with it is out of scope (it was scoped to
> the request).
> 
> I don't want to scope the forms to the session as they
> will accumulate as the user navigates through the
> application, plus the data in them will be stale if
> the user returns to a JSP they were at a while ago.
> 
> Does anyone have any ideas how to solve this? 
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



More Than Form On A JSP

2003-02-26 Thread Art Vandalay
I am developing an architecture for the rest of my
development staff to use on a new J2EE project
starting next month.

I have the following situation:

A JSP contains a form which allows the user to lookup
a list of information. For example, if you enter an
SSN the JSP will display some demographic information
about the person associated with the SSN (first name,
last name, etc) along with a list in an HTML table of
payment history.

The HTML table displays a subset of data, say 10 rows
at a time. The total number of rows could be much
higher. The table comes with buttons to navigate
through the next and previous rows in the table.

The point is the user can display the "previous" and
"next" items in the table while the demographic
information at the top remains displayed.

The HTML table is built using a custom taglib I've
developed. I also wrote a custom Action, called
NavigateAction, which handles all the logic associated
with clicking "previous" and "next". I've wrapped the
HTML table in a form so that Struts can direct it to
NavigateAction. NavigateAction gets the next 10 rows
of data, puts them into the request object, and
forwards to the same page we came from. Finally, the
taglib builds the table from the data stored in the
request. All that is working fine.

All this allows my developers to reuse this HTML table
logic on any JSP that has a similar appearance (static
data at the top and scrollable data at the bottom).

There is a problem however. After the page is
redisplayed, the top part of the page contains no
data. All of it has been lost because the form
associated with it is out of scope (it was scoped to
the request).

I don't want to scope the forms to the session as they
will accumulate as the user navigates through the
application, plus the data in them will be stale if
the user returns to a JSP they were at a while ago.

Does anyone have any ideas how to solve this? 

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Q] can I use ArrayList type for property ?

2003-02-26 Thread michael . korolyov
Hello,

what types allowed for   property ?

Best Regards.
Michael.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Action Class singleton -- throw away option?

2003-02-26 Thread Shackelford, John-Mason
Does Stuts provide a mechanism to instantiate & throw away instances of an
action class rather than keeping them around singleton style? I assume the
logic for this is part of the Action Servlet. Are there multiple
implemenations available. Are other Struts users using a throw-away style
action class / action servlet (as is common in Maverick)?


John-Mason Shackelford

Software Developer
Pearson Educational Measurement - eMeasurement Group

2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
[EMAIL PROTECTED]
http://etest.ncspearson.com

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Vic Cekvenich
My DAO's DBCP-standalone works with Tomcat; and you can switch to JNDI pool.
Source:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/src/basicWebLib/org/apache/basicWebLib/DAO/BasicDAOImpl.java
.V
David Haynes wrote:
After working on this for most of the day, I have discovered that Tomcat
4.1.18 and DBCP do not play well together. There is a bug against Tomcat
for this (I have *got* to remember to check the bugs databases sooner
;-) ), but no analysis or corrective action has been recorded to date.
 
So, my question is this. "What are people using for their DataSource?"
 
My environment is:
Tomcat 4.1.18
Struts 1.1rc1
Oracle 9i
JDBC
 
Thanks!
-david-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: checkbox and iterate problem

2003-02-26 Thread pqin
Mine is Collection, so I iterate thru the collection and set "false"
(String) to each checked.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Neal [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem

I changed everything from boolean (primative) to Boolean (Object type), no
difference
I still see the same behavior.
After submit my setter function is not called.
but for a non-indexed checkbox it is called.

However the getter() is always called.

Neal

> try Boolean.FALSE (Object) instead of false (which is a primitive type).
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2003 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: checkbox and iterate problem
>
> I have a Reset method, and I am calling  mFolders[i].setChecked(false)
> for each item in my array. Is that what you mean by setting the default
> value ?
> If so, it hasn't fixed my problem.
>
> Thanx
>
>> Have to set default value in reset method.
>>
>> Regards,
>>
>>
>> PQ
>>
>> "This Guy Thinks He Knows Everything"
>> "This Guy Thinks He Knows What He Is Doing"
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: February 26, 2003 1:18 PM
>> To: [EMAIL PROTECTED]
>> Subject: checkbox and iterate problem
>>
>> Hi,
>>  I'm having a problem with checkboxes and I was hoping someone could
>> help.
>>
>>  The short version is:
>>when using  over an array of checkboxes, the
>> setter
>> method is not called after submit
>>
>>  Long version
>>I have class   CheckableString { String str; boolean checked =
>> false;
>> // etc.. };
>>I have a Form
>>HostForm extends ActionForm {
>>  CheckableString[] mFolders = new CheckableString[100];
>>  public CheckableString getFolder(int n) {
>>  System.err.println("HostForm getFolder a " + mFolders[n]);
>>  return mFolders[n];
>>  }
>>  public CheckableString[] getFolder() {
>>  System.err.println("HostForm getFolder b " + this);
>>  for (int i = 0; i != mFolders.length; i++) {
>>  System.err.println("HostForm getFolder b " +
>> mFolders[i]);
>>  }
>>  return mFolders;
>>  }
>>  public void setFolder(int n, CheckableString folders) {
>>  System.err.println("HostForm setFolder a " + folders + " " +
>> this);
>>  mFolders[n] = folders;
>>  }
>>  public void setFolder(CheckableString[] folders) {
>>  System.err.println("HostForm setFolder b " + this);
>>  mFolders = folders;
>>  }
>>  public void reset(ActionMapping a, HttpServletRequest b) {
>>  System.err.println("HostForm reset " + this);
>>  flag = false;
>>  for (int i = 0; i != mFolders.length; i++) {
>>  System.err.println("HostForm reset "
>> + mFolders[i]);
>>  if (mFolders[i] != null)
>>
>> mFolders[i].setChecked(false);
>>  }
>>  }
>>  }
>>
>>  I have an Action class setup the form, populating values from a
>> database,
>> it then forwards to a jsp page
>> 
>> ..
>> > indexId="index">
>> 
>>   
>> 
>>> name='quack' />
>>   
>> 
>>   
>> 
>> 
>> 
>>
>>
>> The form is populated correctly, items marked as true are selected.
>> And looking at the logs the getter function is called
>> The problem is when I submit, the setter function is NEVER called, and
>> the Form is not populated.
>> note: If I have a simple non-indexed checkbox, then that works as
>> expected and the setter is called
>>
>> I am using struts 1.1RC1
>>
>> Anyone got any ideas ??, I'm stumped
>>
>> Thanks
>>
>> Neal
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Sorry, make sure top use commons-dbcp and pooling in tomcat's common/lib.
Since Tomcat JNDI is tomcat's not struts'.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 5:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

I use Tomcat's JNDI database, not struts - my config is below.  Make sure
that classes12.jar is in common/lib.

Matt

web.xml

DB Connection
jdbc/mydb
javax.sql.DataSource
Container


webapps/mycontext.xml




factory
org.apache.commons.dbcp.BasicDataSourceFactory



maxActive
50



maxIdle
10



maxWait
1



username
username


password
password



driverClassName
oracle.jdbc.pool.OracleConnectionPoolDataSource



url
jdbc:oracle:thin:@hostname:1521:SID


removeAbandoned
true


removeAbandonedTimeout
60


logAbandoned
true


validationQuery
SELECT 1 FROM DUAL



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> 
> Make sure commons-dbcp and pooling are not in your common/lib, use
> tomcat's.
> 
> Besides, I don't use struts datasource, I use Tomcat JNDI 
> datasource and
> pooling.
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 5:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> I'm setting up named data sources with the following:
> 
>type="org.apache.commons.dbcp.BasicDataSource">
>  value="false"/>
>  value="EHA Definition"/>
>  value="oracle.jdbc.driver.OracleDriver"/>
>  value="4"/>
>  value="2"/>
>  
> value="jdbc:oracle:thin:@citation:1521/citation"/>
>  value="david"/>
>  value="secret"/>
>   
> 
> 
> In my Action, I reference this as:
> DataSource ds = getDataSource(req, "eha");
> 
> Tomcat reports the following in catalina.out:
> SQLException: Cannot load JDBC driver class 'null'
> 
> -david-
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> What is the bug that you discovered? Mine works just fine.
> 
> Tomcat 4.1.18
> Struts 1.1-rc1
> Oracle 8i
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> After working on this for most of the day, I have discovered 
> that Tomcat
> 4.1.18 and DBCP do not play well together. There is a bug 
> against Tomcat
> for this (I have *got* to remember to check the bugs databases sooner
> ;-) ), but no analysis or corrective action has been recorded to date.
>  
> So, my question is this. "What are people using for their DataSource?"
>  
> My environment is:
> Tomcat 4.1.18
> Struts 1.1rc1
> Oracle 9i
> JDBC
>  
> Thanks!
> -david-
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Raible, Matt
I use Tomcat's JNDI database, not struts - my config is below.  Make sure
that classes12.jar is in common/lib.

Matt

web.xml

DB Connection
jdbc/mydb
javax.sql.DataSource
Container


webapps/mycontext.xml




factory
org.apache.commons.dbcp.BasicDataSourceFactory



maxActive
50



maxIdle
10



maxWait
1



username
username


password
password



driverClassName
oracle.jdbc.pool.OracleConnectionPoolDataSource



url
jdbc:oracle:thin:@hostname:1521:SID


removeAbandoned
true


removeAbandonedTimeout
60


logAbandoned
true


validationQuery
SELECT 1 FROM DUAL



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> 
> Make sure commons-dbcp and pooling are not in your common/lib, use
> tomcat's.
> 
> Besides, I don't use struts datasource, I use Tomcat JNDI 
> datasource and
> pooling.
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 5:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> I'm setting up named data sources with the following:
> 
>type="org.apache.commons.dbcp.BasicDataSource">
>  value="false"/>
>  value="EHA Definition"/>
>  value="oracle.jdbc.driver.OracleDriver"/>
>  value="4"/>
>  value="2"/>
>  
> value="jdbc:oracle:thin:@citation:1521/citation"/>
>  value="david"/>
>  value="secret"/>
>   
> 
> 
> In my Action, I reference this as:
> DataSource ds = getDataSource(req, "eha");
> 
> Tomcat reports the following in catalina.out:
> SQLException: Cannot load JDBC driver class 'null'
> 
> -david-
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> What is the bug that you discovered? Mine works just fine.
> 
> Tomcat 4.1.18
> Struts 1.1-rc1
> Oracle 8i
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> After working on this for most of the day, I have discovered 
> that Tomcat
> 4.1.18 and DBCP do not play well together. There is a bug 
> against Tomcat
> for this (I have *got* to remember to check the bugs databases sooner
> ;-) ), but no analysis or corrective action has been recorded to date.
>  
> So, my question is this. "What are people using for their DataSource?"
>  
> My environment is:
> Tomcat 4.1.18
> Struts 1.1rc1
> Oracle 9i
> JDBC
>  
> Thanks!
> -david-
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: checkbox and iterate problem

2003-02-26 Thread Neal
I changed everything from boolean (primative) to Boolean (Object type), no
difference
I still see the same behavior.
After submit my setter function is not called.
but for a non-indexed checkbox it is called.

However the getter() is always called.

Neal

> try Boolean.FALSE (Object) instead of false (which is a primitive type).
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2003 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: checkbox and iterate problem
>
> I have a Reset method, and I am calling  mFolders[i].setChecked(false)
> for each item in my array. Is that what you mean by setting the default
> value ?
> If so, it hasn't fixed my problem.
>
> Thanx
>
>> Have to set default value in reset method.
>>
>> Regards,
>>
>>
>> PQ
>>
>> "This Guy Thinks He Knows Everything"
>> "This Guy Thinks He Knows What He Is Doing"
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: February 26, 2003 1:18 PM
>> To: [EMAIL PROTECTED]
>> Subject: checkbox and iterate problem
>>
>> Hi,
>>  I'm having a problem with checkboxes and I was hoping someone could
>> help.
>>
>>  The short version is:
>>when using  over an array of checkboxes, the
>> setter
>> method is not called after submit
>>
>>  Long version
>>I have class   CheckableString { String str; boolean checked =
>> false;
>> // etc.. };
>>I have a Form
>>HostForm extends ActionForm {
>>  CheckableString[] mFolders = new CheckableString[100];
>>  public CheckableString getFolder(int n) {
>>  System.err.println("HostForm getFolder a " + mFolders[n]);
>>  return mFolders[n];
>>  }
>>  public CheckableString[] getFolder() {
>>  System.err.println("HostForm getFolder b " + this);
>>  for (int i = 0; i != mFolders.length; i++) {
>>  System.err.println("HostForm getFolder b " +
>> mFolders[i]);
>>  }
>>  return mFolders;
>>  }
>>  public void setFolder(int n, CheckableString folders) {
>>  System.err.println("HostForm setFolder a " + folders + " " +
>> this);
>>  mFolders[n] = folders;
>>  }
>>  public void setFolder(CheckableString[] folders) {
>>  System.err.println("HostForm setFolder b " + this);
>>  mFolders = folders;
>>  }
>>  public void reset(ActionMapping a, HttpServletRequest b) {
>>  System.err.println("HostForm reset " + this);
>>  flag = false;
>>  for (int i = 0; i != mFolders.length; i++) {
>>  System.err.println("HostForm reset "
>> + mFolders[i]);
>>  if (mFolders[i] != null)
>>
>> mFolders[i].setChecked(false);
>>  }
>>  }
>>  }
>>
>>  I have an Action class setup the form, populating values from a
>> database,
>> it then forwards to a jsp page
>> 
>> ..
>> > indexId="index">
>> 
>>   
>> 
>>> name='quack' />
>>   
>> 
>>   
>> 
>> 
>> 
>>
>>
>> The form is populated correctly, items marked as true are selected.
>> And looking at the logs the getter function is called
>> The problem is when I submit, the setter function is NEVER called, and
>> the Form is not populated.
>> note: If I have a simple non-indexed checkbox, then that works as
>> expected and the setter is called
>>
>> I am using struts 1.1RC1
>>
>> Anyone got any ideas ??, I'm stumped
>>
>> Thanks
>>
>> Neal
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit Error

2003-02-26 Thread otisg
I don't have a solution, but I saw this,
too, but only when running JUnit tests from
Eclipse.  When I run them from Ant I did not
see this problem.

Otis


 On Wed, 26 Feb 2003, Curtney Jacobs
([EMAIL PROTECTED]) wrote:

> Greetings everyone!!
> 
> I don't understand why I am receiving the
following failure from JUnit. I am 
> pretty sure that my log4j.xml file is
properly constructed. 
> 
> I have checked the archive and someone did
post a similiar question, however, 
> there was no reply.
> 
> If you know the cause and solution to this
error please don't be shy and 
> reply.
> 
> _CJ
> 
> unit.framework.AssertionFailedError:
Exception in constructor: testValidLogin 
>
(org.apache.commons.logging.LogConfigurationException:

>
org.apache.commons.logging.LogConfigurationException:

>
org.apache.commons.logging.LogConfigurationException:
Class 
>
org.apache.commons.logging.impl.Log4JLogger
does not implement Log
>   at 
>
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:568)
>   at 
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
>   at 
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:265)
>   at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
> -- 
> U-Interface.com
> 
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
> 
> 
> 



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
Make sure commons-dbcp and pooling are not in your common/lib, use tomcat's.

Besides, I don't use struts datasource, I use Tomcat JNDI datasource and
pooling.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 5:12 PM
To: 'Struts Users Mailing List'
Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

I'm setting up named data sources with the following:













In my Action, I reference this as:
DataSource ds = getDataSource(req, "eha");

Tomcat reports the following in catalina.out:
SQLException: Cannot load JDBC driver class 'null'

-david-


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 4:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

What is the bug that you discovered? Mine works just fine.

Tomcat 4.1.18
Struts 1.1-rc1
Oracle 8i

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?

After working on this for most of the day, I have discovered that Tomcat
4.1.18 and DBCP do not play well together. There is a bug against Tomcat
for this (I have *got* to remember to check the bugs databases sooner
;-) ), but no analysis or corrective action has been recorded to date.
 
So, my question is this. "What are people using for their DataSource?"
 
My environment is:
Tomcat 4.1.18
Struts 1.1rc1
Oracle 9i
JDBC
 
Thanks!
-david-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
I'm setting up named data sources with the following:













In my Action, I reference this as:
DataSource ds = getDataSource(req, "eha");

Tomcat reports the following in catalina.out:
SQLException: Cannot load JDBC driver class 'null'

-david-


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 4:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

What is the bug that you discovered? Mine works just fine.

Tomcat 4.1.18
Struts 1.1-rc1
Oracle 8i

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?

After working on this for most of the day, I have discovered that Tomcat
4.1.18 and DBCP do not play well together. There is a bug against Tomcat
for this (I have *got* to remember to check the bugs databases sooner
;-) ), but no analysis or corrective action has been recorded to date.
 
So, my question is this. "What are people using for their DataSource?"
 
My environment is:
Tomcat 4.1.18
Struts 1.1rc1
Oracle 9i
JDBC
 
Thanks!
-david-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: monkey tree - must be session-based?

2003-02-26 Thread Edgar Dollin
> Question about session access.  No idea...
> 
> Question about multiple browsers in a single session:
> 
> Put a sequence number in your form and your jsp.  Similar to 
> the one struts puts in the session.  I don't like that one 
> since it really restricts the user movement, i.e. they can't 
> be working in a form, jump to another form for some info and return.
> 
> Always validate.
> 
> In your validation check the sequence number in the form vs 
> the jsp.  If not equal, fail the action.
> 
> In my case I am usually doing data entry.  If this is a new 
> record, I just warn of the sequence / session problem.  If 
> its an old record, I re-read the data.  The actions you 
> choose will depend upon your circumstances.
> 
> Edgar
> 
> > -Original Message-
> > From: Pani R [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 11:36 AM
> > To: 'Struts Users Mailing List'
> > Subject: Re: monkey tree - must be session-based?
> > 
> > 
> > Affan,
> > 
> > Iam sorry, I dont the answer for u r question. But, just
> > wondering if you know a way to access a SESSION variables 
> > from the constructor of MONKEYTREEBEAN which is an ActionForm.
> > 
> > -Pani.
> > --
> > 
> > On Wed, 26 Feb 2003 08:27:56
> >  Affan Qureshi wrote:
> > >I have been using Nested tags to create pretty complicated nested
> > >structures in a flash. But I have a problem when the user opens 
> > >multiple windows and the session values can get messed up 
> > and the trees
> > >throw ArrrayIndexOutOfBound Exceptions. Has anyone come across the
> > >same? How to resolve it?
> > >
> > >Can we make the  to pick up a ActionForm bean from the
> > >session dynamically? I mean instead of using the name defined in 
> > >struts-config.xml, can we specify a name of formbean to use 
> > at runtime?
> > >This way we can create 'N' no. of independent trees and store in
> > >session under different names and and the user can work with them 
> > >simultaneously.
> > >
> > >Thanks a lot.
> > >
> > >Affan
> > >
> > >
> > 
> >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> > _
> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for
> > $19.95/year. 
> > http://login.mail.lycos.com/brandPage.shtml?> 
> pageId=plus&ref=lmtplus
> > 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: websites that use Struts..

2003-02-26 Thread Edgar Dollin


> -Original Message-
> From: Edgar Dollin 
> Sent: Wednesday, February 26, 2003 5:01 PM
> To: 'Raible, Matt'
> Subject: RE: websites that use Struts..
> 
> 
> They are going to have to switch to extension mapping when 
> they upgrade :-}...
> 
> > -Original Message-
> > From: Raible, Matt [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 12:29 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: websites that use Struts..
> > 
> > 
> > Baahhh, they don't like modern browsers eh?  Using Mozilla, I
> > get the following page.  No response needed, just thought 
> > maybe the developers are listening ;-)
> > 
> > You cannot access Online Account Services with your current
> > Web browser.
> > 
> > Possible reasons for this could be one of the following:
> > 
> > * You are using Netscape 4.0 through 4.07, which we
> > cannot support for online account transactions due to 
> > security reasons.
> > * You are using a browser that is incompatible with our 
> > Online Account Services system. We suggest Netscape version 
> > 4.08 or higher or Internet Explorer version 4.0 or higher. 
> > For Macintosh users, we suggest Internet Explorer version 4.5 
> > or higher.
> > * Your browser does not support 128-bit encryption.
> > 
> > We regret any inconvenience this may cause but, with these
> > policies, we strive to keep your account information as 
> > secure as possible. 
> > 
> > 
> > 
> > > -Original Message-
> > > From: Brandon Goodin [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 26, 2003 10:01 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: websites that use Struts..
> > > 
> > > 
> > > Found this one too.
> > > 
> > 
> https://service.capitalone.com/oas/login.do?objectclicked=LoginSplash
> > > 
> > > Brandon Goodin
> > > Phase Web and Multimedia
> > > PO Box 85
> > > Whitefish MT 59937
> > > P (406) 862-2245
> > > F (406) 862-0354
> > > [EMAIL PROTECTED]
> > > http://www.phase.ws
> > >  
> > > 
> > > -Original Message-
> > > From: Brandon Goodin [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 26, 2003 9:56 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: websites that use Struts..
> > > 
> > > 
> > > Opps...
> > > 
> > > One of my links was bad. :-o
> > > 
> > > http://www.bearmountainmercantile.com
> > > 
> > > Brandon Goodin
> > > Phase Web and Multimedia
> > > PO Box 85
> > > Whitefish MT 59937
> > > P (406) 862-2245
> > > F (406) 862-0354
> > > [EMAIL PROTECTED]
> > > http://www.phase.ws
> > >  
> > > 
> > > -Original Message-
> > > From: Brandon Goodin [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 26, 2003 9:53 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: websites that use Struts..
> > > 
> > > 
> > > Here is a collection of sites that use struts:
> > > 
> > > http://www.bearmountainmercantilec.com
> > > http://www.joebasirico.com
> > > http://www.whitefishre.com
> > > http://www.eisenhartbuilders.com
> > > http://www.parkersvilllecollection.com - contact page only.
> > > 
> > > Brandon Goodin
> > > Phase Web and Multimedia
> > > PO Box 85
> > > Whitefish MT 59937
> > > P (406) 862-2245
> > > F (406) 862-0354
> > > [EMAIL PROTECTED]
> > > http://www.phase.ws
> > >  
> > > 
> > > -Original Message-
> > > From: James Prance [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 26, 2003 8:42 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: websites that use Struts..
> > > 
> > > 
> > > The list on the Apache website, half the links dont work... does
> > > anyone know of some websites out there on the old 
> > 'interweb' that are
> > > currently live using struts..
> > > I need to find some good examples to convince our PM's that
> > > this is our way
> > > forward..
> > > 
> > > James
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > 
> > 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread Raible, Matt
I'm working fine with:

Tomcat 4.1.18 (+ DBCP Connection Pool)
Struts 1.1-rc1
Oracle 9i
Servers: Win2K, Red Hat 8, Solaris 8

What's the bug you're referring too?


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> 
> What is the bug that you discovered? Mine works just fine.
> 
> Tomcat 4.1.18
> Struts 1.1-rc1
> Oracle 8i
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -Original Message-
> From: David Haynes [mailto:[EMAIL PROTECTED] 
> Sent: February 26, 2003 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?
> 
> After working on this for most of the day, I have discovered 
> that Tomcat
> 4.1.18 and DBCP do not play well together. There is a bug 
> against Tomcat
> for this (I have *got* to remember to check the bugs databases sooner
> ;-) ), but no analysis or corrective action has been recorded to date.
>  
> So, my question is this. "What are people using for their DataSource?"
>  
> My environment is:
> Tomcat 4.1.18
> Struts 1.1rc1
> Oracle 9i
> JDBC
>  
> Thanks!
> -david-
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jstl and collection sizes

2003-02-26 Thread David Graham
The spec doesn't require empty to work for Collections but the jakarta 
implementation seems to work with them.

David



From: "Jerome Jacobsen" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>,   
<[EMAIL PROTECTED]>
Subject: RE: jstl and collection sizes
Date: Wed, 26 Feb 2003 16:25:12 -0500

Woops.  In addition to java.util.List it works on java.util.Map and arrays
and java.lang.String.  But still not on other java.util.Collection types :(
> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 4:21 PM
> To: Struts Users Mailing List
> Subject: RE: jstl and collection sizes
>
>
> That only works if the Collection is a List.  If it isn't a List
> you can do
> ${myCollection["empty"]}.  Not allowing ${empty myCollection} for
> non-Lists
> is odd, but that's what the spec says.
>
> There's a thread about this oddity in taglibs-user.
>
> http://shorl.com/dapofrypragragu
>
>
>
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 4:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: jstl and collection sizes
> >
> >
> > I've created a simple wrapper to get the exact size but if you
> > just want to
> > know if the collection has an item in it you can do this:
> >
> > ...
> >
> > David
> >
> >
> >
> > >From: John Thorhauer <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" 
<[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > >Subject: jstl and collection sizes
> > >Date: 26 Feb 2003 15:50:52 -0500
> > >
> > >I am trying to figure out how to get the size of a collection using 
the
> > >JSTL Expression Language.  Is this possible?  I have read the lists 
and
> > >it appears that you can not do it without some kind of collection
> > >wrapper.  Is this correct.
> > >
> > >Thanks,
> > >John
> > >--
> > >
> > >** John Thorhauer
> > >** Web Developer
> > >** Phoenix Color Corp.
> > >** [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > _
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Nested tags

2003-02-26 Thread Sloan Seaman
How do I pull this off?

 
  
 


I'm guessing I have to do something with nested tags but I'm not sure what.

Thanks!

--
Sloan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread pqin
What is the bug that you discovered? Mine works just fine.

Tomcat 4.1.18
Struts 1.1-rc1
Oracle 8i

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18, DBCP, DataSources - What are people using?

After working on this for most of the day, I have discovered that Tomcat
4.1.18 and DBCP do not play well together. There is a bug against Tomcat
for this (I have *got* to remember to check the bugs databases sooner
;-) ), but no analysis or corrective action has been recorded to date.
 
So, my question is this. "What are people using for their DataSource?"
 
My environment is:
Tomcat 4.1.18
Struts 1.1rc1
Oracle 9i
JDBC
 
Thanks!
-david-


JUnit Error

2003-02-26 Thread Curtney Jacobs
Greetings everyone!!

I don't understand why I am receiving the following failure from JUnit. I am 
pretty sure that my log4j.xml file is properly constructed. 

I have checked the archive and someone did post a similiar question, however, 
there was no reply.

If you know the cause and solution to this error please don't be shy and 
reply.

_CJ

unit.framework.AssertionFailedError: Exception in constructor: testValidLogin 
(org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Log4JLogger does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:568)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:265)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
-- 
U-Interface.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and Portlets

2003-02-26 Thread Jim Bonanno
I am glad to see the interest in supporting Struts applications in a Portal
Server. I worked on adding support for Struts in WebSphere Portal, which
added the ability to create Struts applications that can be deployed in
WebSphere Portal. We encountered some relatively minor changes that could be
made to the framework to help support Struts in a Portal Server, but there
were other issues as well.  It was not clear how receptive the Struts
community would be to some of these suggestions at the time but it sounds
like the co-existence of Struts and JSR 168 may be an important one for the
future. Some of the issues have already been raised like ForwardAction and
the chaining of request processors. We had to package an implementation of a
request processor, so that meant we also had to ship a Tiles request
processor that inherited from ours.

There were some general problems that we encountered in a Portal
environment. The first was Struts depends on the servlet container to
distinguish Struts actions from other requests, as it should. In a Portal
server, the URLs use the servlet context of the configured Portal. The URL
will have some additional information that the Portal server can use to
determine which portlet the user is interacting with, and then some
attributes for the portlet. We had to modify the tags that created URLs,
like Form and Link, to create URLs to the Portal Server and then we added
the Struts action, href, forward, etc as a request parameter. The portlet
would then look at the parameter and determine whether to call the request
processor because it was an action or include a jsp, for example. It would
be a real convenience to create a hook in the tags to allow creating these
custom URLs. We were able to subclass the link tags implementations and
modify the tlds to use our version. That is fine, but I think Struts
developers will want to create Struts applications that can be deployed in
both a servlet and a portlet environment.

Other changes that we needed dealt with the fact that in a Portal Server it
is very easy to add a portlet to a page more than once. This could also be
an issue when using Tiles as well. The problem that we encountered is the
Struts form tag uses the name of the form bean as the form name. This name
will not be unique if the same Struts application is added to the Portal
page more than once. We had to namescope the name so it was unique, but that
forced us to change the dynamic validation tags to also create unique names
for the validation function.

We also ran into issues with the response object. In Portal, the response
object is committed by the time a portlet gets it, so we had to include
instead of forward. The forward was convenient for many applications because
you could forward to an action or a dynamic/static page. We recursively call
the appropriate request processor for actions as needed and use an include
if the URI was for a page. This also meant that pageContext.forward in a JSP
would not function correctly, but that turned out not to be a big issue
because of the logic forward tag which we could modify. This detail may be
specific to my Portal Server.

Portal also has two phase processing, as opposed to the servlet's one phase
service method. There are some interesting design decisions that need to be
made with how to map Struts processing with Portal's two phase processing.
This is a feature in the JSR 168.

The module support in Struts was very helpful to support the different modes
in Portal. The portal mode could be used when selecting modules so the
developer can create a Struts module for each of the portlet's mode, like
view and edit. It was a nice application for Struts modules. Portlet modes
are also part of the JSR.

That's just an brief overview of some of the things we encountered, I don't
want to bore this mailing list with all the details.

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 1:32 PM
Subject: RE: Struts and Portlets


>
>
> On Wed, 26 Feb 2003, PILGRIM, Peter, FM wrote:
>
> > >
> > > Does anyone have a copy of the JSR 168 as a PDF or MS WORD document?
> > > If you do, could you save
> >
> > I meant could you send me a copy of the draft specification document
> > off list. Actually the last thing I do have on my work drive is a
> > Power Point presentation from JavaOne 2002 on JSR 168.
> >
> > MTIA == many thanks in advance
>
> JSR168 has not yet gone to community draft, so the only folks who would
> have such a document are EG members.  You can get the current status of
> the JSR at:
>
> http://jcp.org/en/jsr/detail?id=168
>
> Craig
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PRO

Tomcat 4.1.18, DBCP, DataSources - What are people using?

2003-02-26 Thread David Haynes
After working on this for most of the day, I have discovered that Tomcat
4.1.18 and DBCP do not play well together. There is a bug against Tomcat
for this (I have *got* to remember to check the bugs databases sooner
;-) ), but no analysis or corrective action has been recorded to date.
 
So, my question is this. "What are people using for their DataSource?"
 
My environment is:
Tomcat 4.1.18
Struts 1.1rc1
Oracle 9i
JDBC
 
Thanks!
-david-


RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
Woops.  In addition to java.util.List it works on java.util.Map and arrays
and java.lang.String.  But still not on other java.util.Collection types :(

> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 4:21 PM
> To: Struts Users Mailing List
> Subject: RE: jstl and collection sizes
>
>
> That only works if the Collection is a List.  If it isn't a List
> you can do
> ${myCollection["empty"]}.  Not allowing ${empty myCollection} for
> non-Lists
> is odd, but that's what the spec says.
>
> There's a thread about this oddity in taglibs-user.
>
> http://shorl.com/dapofrypragragu
>
>
>
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 4:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: jstl and collection sizes
> >
> >
> > I've created a simple wrapper to get the exact size but if you
> > just want to
> > know if the collection has an item in it you can do this:
> >
> > ...
> >
> > David
> >
> >
> >
> > >From: John Thorhauer <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > >Subject: jstl and collection sizes
> > >Date: 26 Feb 2003 15:50:52 -0500
> > >
> > >I am trying to figure out how to get the size of a collection using the
> > >JSTL Expression Language.  Is this possible?  I have read the lists and
> > >it appears that you can not do it without some kind of collection
> > >wrapper.  Is this correct.
> > >
> > >Thanks,
> > >John
> > >--
> > >
> > >** John Thorhauer
> > >** Web Developer
> > >** Phoenix Color Corp.
> > >** [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > _
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
That only works if the Collection is a List.  If it isn't a List you can do
${myCollection["empty"]}.  Not allowing ${empty myCollection} for non-Lists
is odd, but that's what the spec says.

There's a thread about this oddity in taglibs-user.

http://shorl.com/dapofrypragragu



> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: jstl and collection sizes
>
>
> I've created a simple wrapper to get the exact size but if you
> just want to
> know if the collection has an item in it you can do this:
>
> ...
>
> David
>
>
>
> >From: John Thorhauer <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: jstl and collection sizes
> >Date: 26 Feb 2003 15:50:52 -0500
> >
> >I am trying to figure out how to get the size of a collection using the
> >JSTL Expression Language.  Is this possible?  I have read the lists and
> >it appears that you can not do it without some kind of collection
> >wrapper.  Is this correct.
> >
> >Thanks,
> >John
> >--
> >
> >** John Thorhauer
> >** Web Developer
> >** Phoenix Color Corp.
> >** [EMAIL PROTECTED]
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> _
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jstl and collection sizes

2003-02-26 Thread John Thorhauer
On Wed, 2003-02-26 at 16:07, David Graham wrote:
> I've created a simple wrapper to get the exact size but if you just want to 
> know if the collection has an item in it you can do this:
> 
> ...
> 

bingo!! that is what i was looking for.

thanks,
john



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: posible remove ![CDATA[]] from validator-rules?

2003-02-26 Thread David Graham
Why can't you use the CDATA section?

David



From: "Adolfo Miguelez" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: posible remove ![CDATA[]] from validator-rules?
Date: Wed, 26 Feb 2003 20:13:49 +
Hi All,

I am trying to implement customized validator. In validator-rules.xml XML 
file, we need to define the validator and its assigned javascript 
validation code for the JSP.

The  tag is defined as a PCDATA element in the DTD:



so we need enclose the function in a CDATASection as ![CDATA[...]]to 
prevent parser to parse the javascript function:

   

My question is: could not the DATASection be specified in the DTD so it 
would not need to specify it in the XML. And validating with a schema?

TIA,

Adolfo



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jstl and collection sizes

2003-02-26 Thread David Graham
I've created a simple wrapper to get the exact size but if you just want to 
know if the collection has an item in it you can do this:

...

David



From: John Thorhauer <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: jstl and collection sizes
Date: 26 Feb 2003 15:50:52 -0500
I am trying to figure out how to get the size of a collection using the
JSTL Expression Language.  Is this possible?  I have read the lists and
it appears that you can not do it without some kind of collection
wrapper.  Is this correct.
Thanks,
John
--

** John Thorhauer
** Web Developer
** Phoenix Color Corp.
** [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: jstl and collection sizes

2003-02-26 Thread Raible, Matt
A workaround that I've used (b/c I don't think you can get the size) is to
add a getter to a form that contains the collection.

public String getCollectionSize() {
return collection.size();
}

> -Original Message-
> From: John Thorhauer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 1:51 PM
> To: Struts Users Mailing List
> Subject: jstl and collection sizes
> 
> 
> I am trying to figure out how to get the size of a collection 
> using the
> JSTL Expression Language.  Is this possible?  I have read the 
> lists and
> it appears that you can not do it without some kind of collection
> wrapper.  Is this correct.
> 
> Thanks,
> John
> -- 
> 
> ** John Thorhauer
> ** Web Developer
> ** Phoenix Color Corp.
> ** [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jstl and collection sizes

2003-02-26 Thread Jerome Jacobsen
You can't AFAIK.

Some people do this:



Or this:



If you want to set a scoped variable to the size of the collection I'd
recommend the bean:size approach.

> -Original Message-
> From: John Thorhauer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:51 PM
> To: Struts Users Mailing List
> Subject: jstl and collection sizes
>
>
> I am trying to figure out how to get the size of a collection using the
> JSTL Expression Language.  Is this possible?  I have read the lists and
> it appears that you can not do it without some kind of collection
> wrapper.  Is this correct.
>
> Thanks,
> John
> --
> 
> ** John Thorhauer
> ** Web Developer
> ** Phoenix Color Corp.
> ** [EMAIL PROTECTED]
> 
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Netscape 4.7x and Struts performance problems

2003-02-26 Thread Steve Stair
Another problem I've seen that occurs using Netscape 4.7x (and possibly
later versions as well)
but does NOT occur using IE:

Netscape, while waiting for a server response, does a busy wait.
So if you are doing development on a box running both the web/app
server and the browser,
Netscape will use up 1/2 the clock cycles waiting for the server to
respond.

I've seen this on *nix and Windows boxes.


--
Steve Stair


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException : argument type mismatch

2003-02-26 Thread michael . korolyov
Hello,

I think that problem is - multibox

in my jsp:


  
   
  
   


in my Form:

  public ArrayList getGuaranteeItems() {
return guaranteeItems;
  }

  public void setGuaranteeItems(ArrayList guaranteeItems) {
this.guaranteeItems = guaranteeItems;
  }

  private ArrayList guaranteeItems;

  private ArrayList selectedGuaranteeItems;

  public ArrayList getSelectedGuaranteeItems() {
return this.selectedGuaranteeItems;
  }
  public void setSelectedGuaranteeItems(ArrayList selectedGuaranteeItems) {
this.selectedGuaranteeItems = selectedGuaranteeItems;
  }

--
looks like that "multibox" doesn't understand type ArrayList - isn't it?

tnx a lot

Best Regards.
Michael.


-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:44 PM
To: 'Struts Users Mailing List'
Subject: RE: [Q] how to know which one?
java.lang.IllegalArgumentException : argument type mismatch


What does your ReportForm look like?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Q] how to know which one?
> java.lang.IllegalArgumentException : argument type mismatch
> 
> 
> Hello,
> 
> based on stack trace - I don't see any calls to my classes at all.
> I use ReportForm extends ValidatorForm.
> 
> java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
> Utils.java:1789)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
> Utils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
> java:1713)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
> )
> at
> org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:798)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
> 
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:262)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:198)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:2637)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2359)
> at 
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 12:18 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Q] how to know which one?
> java.lang.IllegalArgumentException: argument type mismatch
> 
> 
> Can you provide more details?
> 
> Specifically, your DynaActionForm declaration.  
> If you've subclassed, can you show that as well?
> 
> 
> 
> --
> James Mitchell
> Software Developer
> Struts Technical Support
> A division of The Apache Software Foundation 
> (ok, not really ;)
> http://www.apache.org/struts
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
> Sent: mercredi 26 février 2003 15:19
> To: [EMAIL PROTECTED]
> Subject: [Q] how to know which one? 
> java.lang.IllegalArgumentException: argument type mismatch
> 
> 
> hello,
> 
> I'm getting:
> 
> 
> Root cause of ServletException
> java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
> Utils.java:1789)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
> Utils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
> java:1713)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
> )
> 
> tnx
> 
> Best Regards.
> Michael.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [E

RE: [OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Well, I just had a D'Oh-moment!

While upgrading to Struts 1.1, I had upgraded my web.xml gleefully using the example 
apps as inspiration.  Therein lies the rub -- the example apps assume that you are on 
a Servlet 2.3 container.  However JRun 3.1 is not; it is downright prehistoric.

(I have since (re)updated my web.xml to use the old DTD)

Now I have a different problem.  The ServletException message is:

Could not instantiate org.apache.struts.action.ActionServlet
[1]java.lang.NullPointerException

I was hoping that updating my application code base would be all I had to do;  I guess 
not :(

Sri
P.S.
I *have* seen the earlier posts on this subject such as 
http://marc.theaimsgroup.com/?l=struts-user&m=103643076609041&w=2

-Original Message-
From: Sri Sankaran 
Sent: Wednesday, February 26, 2003 3:17 PM
To: Struts-User
Subject: [OT] DTD URL in web.xml


Does the servlet container actually access the location specified for the DTD in the 
DOCTYPE statement of the web.xml?

Couple of reasons for this question:
* JRun 3.1 is having heartache with my app that I just ported 
  to Struts 1.1.  It throws a ServletException with the message
  External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";.
* This seems un-necessary and circuitous.  One would think the 
  container would maintain a copy of the DTD

The odd thing is that it works for the Struts 1.0 web.xml.

Sri


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jstl and collection sizes

2003-02-26 Thread John Thorhauer
I am trying to figure out how to get the size of a collection using the
JSTL Expression Language.  Is this possible?  I have read the lists and
it appears that you can not do it without some kind of collection
wrapper.  Is this correct.

Thanks,
John
-- 

** John Thorhauer
** Web Developer
** Phoenix Color Corp.
** [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException : argument type mismatch

2003-02-26 Thread Jarnot Voytek Contr AU HQ/SC
What does your ReportForm look like?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Q] how to know which one?
> java.lang.IllegalArgumentException : argument type mismatch
> 
> 
> Hello,
> 
> based on stack trace - I don't see any calls to my classes at all.
> I use ReportForm extends ValidatorForm.
> 
> java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
> Utils.java:1789)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
> Utils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
> java:1713)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
> )
> at
> org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:798)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
> 
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:262)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:198)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:2637)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2359)
> at 
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 12:18 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Q] how to know which one?
> java.lang.IllegalArgumentException: argument type mismatch
> 
> 
> Can you provide more details?
> 
> Specifically, your DynaActionForm declaration.  
> If you've subclassed, can you show that as well?
> 
> 
> 
> --
> James Mitchell
> Software Developer
> Struts Technical Support
> A division of The Apache Software Foundation 
> (ok, not really ;)
> http://www.apache.org/struts
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
> Sent: mercredi 26 février 2003 15:19
> To: [EMAIL PROTECTED]
> Subject: [Q] how to know which one? 
> java.lang.IllegalArgumentException: argument type mismatch
> 
> 
> hello,
> 
> I'm getting:
> 
> 
> Root cause of ServletException
> java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
> Utils.java:1789)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
> Utils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
> java:1713)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
> )
> 
> tnx
> 
> Best Regards.
> Michael.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread michael . korolyov
Hello,

based on stack trace - I don't see any calls to my classes at all.
I use ReportForm extends ValidatorForm.

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
essor.java:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:142
2)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:262)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:198)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2637)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:18 PM
To: 'Struts Users Mailing List'
Subject: RE: [Q] how to know which one?
java.lang.IllegalArgumentException: argument type mismatch


Can you provide more details?

Specifically, your DynaActionForm declaration.  
If you've subclassed, can you show that as well?



--
James Mitchell
Software Developer
Struts Technical Support
A division of The Apache Software Foundation 
(ok, not really ;)
http://www.apache.org/struts



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: mercredi 26 février 2003 15:19
> To: [EMAIL PROTECTED]
> Subject: [Q] how to know which one? 
> java.lang.IllegalArgumentException: argument type mismatch
> 
> 
> hello,
> 
> I'm getting:
> 
> 
> Root cause of ServletException
> java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
> Utils.java:1789)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
> Utils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
> java:1713)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
> )
> 
> tnx
> 
> Best Regards.
> Michael.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] DTD URL in web.xml

2003-02-26 Thread Wendy Smoak
Geeta wrote:
> You know I *vaguely* remember an error like this and I *think* we resolved
it by 
> changing 2_3.dtd to 2_2.dtd or some such
> thing.. So maybe you may want to check that..?  Long shot, i agree..;)

This doesn't seem to be just Struts... all of the sudden as I work on my
Struts webapp, JEdit is popping up windows complaining that "This XML file
depends on a resource which is stored at the following Internet address ..."
and do I want the XML plugin to download the resource and cache it.

Have the  tags in the xml files been changed recently?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


Re: [OT] DTD URL in web.xml

2003-02-26 Thread Craig R. McClanahan


On Wed, 26 Feb 2003, Sri Sankaran wrote:

> Date: Wed, 26 Feb 2003 15:17:17 -0500
> From: Sri Sankaran <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts-User <[EMAIL PROTECTED]>
> Subject: [OT] DTD URL in web.xml
>
> Does the servlet container actually access the location specified for
> the DTD in the DOCTYPE statement of the web.xml?
>

It depends on the container -- Tomcat has a built-in copy of the DTDs and
accesses those if the public ID that you specify matches.  For other
containers, you'd have to ask their developers.

> Couple of reasons for this question:
> * JRun 3.1 is having heartache with my app that I just ported
>   to Struts 1.1.  It throws a ServletException with the message
>   External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";.
> * This seems un-necessary and circuitous.  One would think the
>   container would maintain a copy of the DTD
>

Yep :-).

> The odd thing is that it works for the Struts 1.0 web.xml.
>
> Sri
>
>

Craig


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] DTD URL in web.xml

2003-02-26 Thread Geeta Ramani
You know I *vaguely* remember an error like this and I *think* we resolved it by 
changing 2_3.dtd to 2_2.dtd or some such
thing.. So maybe you may want to check that..?  Long shot, i agree..;)
Geeta

Sri Sankaran wrote:

> Does the servlet container actually access the location specified for the DTD in the 
> DOCTYPE statement of the web.xml?
>
> Couple of reasons for this question:
> * JRun 3.1 is having heartache with my app that I just ported
>   to Struts 1.1.  It throws a ServletException with the message
>   External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";.
> * This seems un-necessary and circuitous.  One would think the
>   container would maintain a copy of the DTD
>
> The odd thing is that it works for the Struts 1.0 web.xml.
>
> Sri


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread James Mitchell
Can you provide more details?

Specifically, your DynaActionForm declaration.  
If you've subclassed, can you show that as well?



--
James Mitchell
Software Developer
Struts Technical Support
A division of The Apache Software Foundation 
(ok, not really ;)
http://www.apache.org/struts



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: mercredi 26 février 2003 15:19
> To: [EMAIL PROTECTED]
> Subject: [Q] how to know which one? 
> java.lang.IllegalArgumentException: argument type mismatch
> 
> 
> hello,
> 
> I'm getting:
> 
> 
> Root cause of ServletException
> java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
> Utils.java:1789)
> at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
> Utils.java:1684)
> at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
> java:1713)
> at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
> )
> 
> tnx
> 
> Best Regards.
> Michael.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] DTD URL in web.xml

2003-02-26 Thread Sri Sankaran
Does the servlet container actually access the location specified for the DTD in the 
DOCTYPE statement of the web.xml?

Couple of reasons for this question:
* JRun 3.1 is having heartache with my app that I just ported 
  to Struts 1.1.  It throws a ServletException with the message
  External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";.
* This seems un-necessary and circuitous.  One would think the 
  container would maintain a copy of the DTD

The odd thing is that it works for the Struts 1.0 web.xml.

Sri



[Q] how to know which one? java.lang.IllegalArgumentException: argument type mismatch

2003-02-26 Thread michael . korolyov
hello,

I'm getting:


Root cause of ServletException
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924
)

tnx

Best Regards.
Michael.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



posible remove ![CDATA[]] from validator-rules?

2003-02-26 Thread Adolfo Miguelez
Hi All,

I am trying to implement customized validator. In validator-rules.xml XML 
file, we need to define the validator and its assigned javascript validation 
code for the JSP.

The  tag is defined as a PCDATA element in the DTD:



so we need enclose the function in a CDATASection as ![CDATA[...]]to prevent 
parser to parse the javascript function:

   

My question is: could not the DATASection be specified in the DTD so it 
would not need to specify it in the XML. And validating with a schema?

TIA,

Adolfo



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Adding parameters dynamically in DispatchAction

2003-02-26 Thread Rick Ashley
Hello,

I have a own Action class that is derived from DispatchAction.
I have overriden execute method to do some extra tasks.
I like to know if it is possible to add couple of new parameters and values 
inside that execute method so that they will be effective in next forwarded 
target?
e.g. URL before adding would look like this: 
/myApp/act.do?method=doit¶m1=value1
and after adding it would look something like
/myApp/act.do?method=doit¶m1=value1¶m2=val2¶m3=val3

I desperately need those couple of new parameters at runtime, but is it 
possible get it work?

Any suggestions how to do it?

Thanks,

_
Express yourself with cool emoticons http://messenger.msn.co.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Action without FormBean

2003-02-26 Thread James Mitchell
Good, sounds like you've got a good start.  Let us know if you need
further assistance.



--
James Mitchell
Software Engineer/Struts Evangelist


> -Original Message-
> From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> Sent: mercredi 26 février 2003 14:57
> To: 'Struts Users Mailing List'
> Subject: RE: Action without FormBean
> 
> 
> Yea JavaScript is the only way to go right now.
> I invoke a javascript function to populate hidden fields 
> during the onclick.
> If you have a better id (other than going away from struts 
> for this page
> :-/) plz let me know.
> -Tim
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 2:00 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Action without FormBean
> 
> 
> Ok, assuming the number of rows are not known, how do you plan to deal
> with:
> 1. Which id they picked
> 2. Whether they hit edit or delete for the id they picked
> 
> This can be easily accomplished with a little JavaScript, but I'm not
> sure if you want to (or can) go that route.
> 
> 
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> 
> 
> 
> 
> > -Original Message-
> > From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> > Sent: mercredi 26 février 2003 13:49
> > To: 'Struts Users Mailing List'
> > Subject: RE: Action without FormBean
> > 
> > 
> > Hi James,
> > I did use links before. But they want to see buttons 
> > instead of href
> > links.
> > D*mn users. ;P
> > -Tim
> > 
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 1:34 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Action without FormBean
> > 
> > 
> > So your [View] and [Delete] are submit buttons?
> > 
> > Why can't you use links within an iterator?
> > 
> > 
> > 
> > --
> > James Mitchell
> > Software Engineer/Struts Evangelist
> > 
> > 
> > 
> > 
> > > -Original Message-
> > > From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> > > Sent: mercredi 26 février 2003 13:24
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: Action without FormBean
> > > 
> > > 
> > > Thanks David.
> > > That's what I figured.
> > > Unfortunately it just seems like an unnecessary step sometimes.
> > > For example I have a collection that is returned to me and I 
> > > show it as such
> > > 
> > > x   [View] [Delete]
> > > x   [View] [Delete]
> > > x   [View] [Delete]
> > > x   [View] [Delete]
> > > 
> > > To set this up using struts i have to make a form bean that 
> > > is simply a
> > > container for my collection
> > > Cant do this with dynaform cause it doesnt handle collections >:[
> > > Is there a better way to do this?
> > > Or should I just break away from struts for this?
> > > -Tim
> > > 
> > > -Original Message-
> > > From: David Graham [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 26, 2003 1:13 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Action without FormBean
> > > 
> > > 
> > >  must have a form bean.  Form beans are the 
> > > framework's way of 
> > > dealing with forms.
> > > 
> > > David
> > > 
> > > 
> > > 
> > > >From: "Chen, Gin" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List" 
> > > <[EMAIL PROTECTED]>
> > > >To: "'Struts Users Mailing List'" 
> <[EMAIL PROTECTED]>
> > > >Subject: Action without FormBean
> > > >Date: Wed, 26 Feb 2003 13:05:29 -0500
> > > >
> > > >I set up the following:
> > > >
> > > > > > >parameter="userAction"/>
> > > >
> > > >//myJsp.jsp
> > > >
> > > >
> > > >
> > > >
> > > >Thats it nothing in between the form tags and I get 
> > > exception can not 
> > > >access
> > > >formbean null.
> > > >
> > > >Well I dont want a formbean.
> > > >Is this not a legal form?
> > > >
> > > >I do this all the time from anchor hrefs but this is the 
> > > first time I've
> > > >tried it in html:form style.
> > > >I can't find anywhere in the docs that says that a html:form 
> > > MUST have a
> > > >related formbean.
> > > >Is this just an implied rule?
> > > >
> > > 
> > 
> >-
> > > >To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > >For additional commands, e-mail: 
> > [EMAIL PROTECTED]
> > > 
> > > 
> > > _
> > > Tired of spam? Get advanced junk mail protection with MSN 8. 
> > > http://join.msn.com/?page=features/junkmail
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL P

RE: Struts and Portlets

2003-02-26 Thread Craig R. McClanahan


On Wed, 26 Feb 2003, Mete Kural wrote:

> Date: Wed, 26 Feb 2003 11:08:59 -0800 (PST)
> From: Mete Kural <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Struts and Portlets
>
> > JSR168 has not yet gone to community draft, so the
> > only folks who would
> > have such a document are EG members.  You can get
> > the current status of
> > the JSR at:
> > http://jcp.org/en/jsr/detail?id=168
>
> On this page, it says that the public draft is
> scheduled for March 2003 and the final draft is
> scheduled for May 2003. Is this still the case or have
> the deadlines changed? I thought they did and maybe
> they forgot the update the status page accordingly.
>

I'm not on the 168 expert group, so can't answer that one for you -- best
bet would be to send mail to the feedback address and ask.

> > Craig
>
> -Mete

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upload and BeanUtils problem

2003-02-26 Thread Geeta Ramani
Ok, so remove the jar from the tomcat/server/lib, rebuild and restart.. I'm not
sure if this is the best solution (if indeed it is one) but see if this at least
gets you going..

Good luck!
Geeta

Sébastien Col wrote:

> I have the beanutils.jar in the tomcat/server/lib, and in the WEB-INF/lib of
> my application.war file. If I don't have it in my war file, I have an
> exception when I try to access my index.jsp page. It can't find the Bean
> Message (application resources file for internationalization).
>
> I don't know what to do.
> Sebastien
>
> -Message d'origine-
> De : Geeta Ramani [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 26 février 2003 20:37
> À : Struts Users Mailing List
> Objet : Re: Upload and BeanUtils problem
>
> Ok, so you are now sure that beanutils.jar is in just one place?  If you
> are,
> rebuild everything (make sure the old compiled classes are thrown away),
> restart
> tomcat and try again.
> Geeta
>
> Sébastien Col wrote:
>
> > Thanks for your answer. I re-installed Tomcat, effectively I had the
> > beanutils jar twice in the tomcat directories.
> > Then I still have the same problem. I have the beanutils jar in my .war
> > otherwise I have an exception when I try to access my web application.
> > Any idea?
> >
> > Sebastien
> >
> > -Message d'origine-
> > De : Geeta Ramani [mailto:[EMAIL PROTECTED]
> > Envoyé : mercredi 26 février 2003 20:15
> > À : Struts Users Mailing List
> > Objet : Re: Upload and BeanUtils problem
> >
> > Hi Sébastien:
> >
> > A "NoClassDefFoundError" is different from a "ClassNotFoundError".  The
> time
> > I got an
> > error similar to yours was when I had placed one of the required jars in
> > more than one
> > place.  So check your classpath and every place where a compiler would
> look
> > for
> > classes/jars and make sure your jar is in *exactly* one place.  (Remember
> to
> > restart
> > your servlet engine if you make a chnage: I got bit with that one too!!)
> >
> > Regards,
> > Geeta
> >
> > Sébastien Col wrote:
> >
> > > Hi,
> > > I'm trying to get the  tag working, but I'm stuck. When I
> > submit
> > > my form, I have a NoClassDefFoundError exception for
> > > org/apache/commons/beanutils/MethodUtils. The commons-beanutils.jar file
> > is
> > > in my /WEB-INF/lib directory, so I don't understand.
> > > Any idea?
> > > Following is the exception trace.
> > > Thanks in advance.
> > > Sebastien
> > >
> > > javax.servlet.ServletException: L''exécution de la servlet a lancé une
> > > exception
> > > at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > > FilterChain.java:269)
> > > at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > > ain.java:193)
> > > at
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > > va:260)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > at
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > > va:191)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > at
> > >
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> > > at
> > >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> > > )
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> > > java:170)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:641)
> > > at
> > >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> > > )
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:641)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > at
> > >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > > :174)
> > > at
> > >
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

RE: Action without FormBean

2003-02-26 Thread Chen, Gin
Yea JavaScript is the only way to go right now.
I invoke a javascript function to populate hidden fields during the onclick.
If you have a better id (other than going away from struts for this page
:-/) plz let me know.
-Tim

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:00 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without FormBean


Ok, assuming the number of rows are not known, how do you plan to deal
with:
1. Which id they picked
2. Whether they hit edit or delete for the id they picked

This can be easily accomplished with a little JavaScript, but I'm not
sure if you want to (or can) go that route.


--
James Mitchell
Software Engineer/Struts Evangelist




> -Original Message-
> From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> Sent: mercredi 26 février 2003 13:49
> To: 'Struts Users Mailing List'
> Subject: RE: Action without FormBean
> 
> 
> Hi James,
>   I did use links before. But they want to see buttons 
> instead of href
> links.
> D*mn users. ;P
> -Tim
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 1:34 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Action without FormBean
> 
> 
> So your [View] and [Delete] are submit buttons?
> 
> Why can't you use links within an iterator?
> 
> 
> 
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> 
> 
> 
> 
> > -Original Message-
> > From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> > Sent: mercredi 26 février 2003 13:24
> > To: 'Struts Users Mailing List'
> > Subject: RE: Action without FormBean
> > 
> > 
> > Thanks David.
> > That's what I figured.
> > Unfortunately it just seems like an unnecessary step sometimes.
> > For example I have a collection that is returned to me and I 
> > show it as such
> > 
> > x   [View] [Delete]
> > x   [View] [Delete]
> > x   [View] [Delete]
> > x   [View] [Delete]
> > 
> > To set this up using struts i have to make a form bean that 
> > is simply a
> > container for my collection
> > Cant do this with dynaform cause it doesnt handle collections >:[
> > Is there a better way to do this?
> > Or should I just break away from struts for this?
> > -Tim
> > 
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 1:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Action without FormBean
> > 
> > 
> >  must have a form bean.  Form beans are the 
> > framework's way of 
> > dealing with forms.
> > 
> > David
> > 
> > 
> > 
> > >From: "Chen, Gin" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" 
> > <[EMAIL PROTECTED]>
> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > >Subject: Action without FormBean
> > >Date: Wed, 26 Feb 2003 13:05:29 -0500
> > >
> > >I set up the following:
> > >
> > > > >parameter="userAction"/>
> > >
> > >//myJsp.jsp
> > >
> > >
> > >
> > >
> > >Thats it nothing in between the form tags and I get 
> > exception can not 
> > >access
> > >formbean null.
> > >
> > >Well I dont want a formbean.
> > >Is this not a legal form?
> > >
> > >I do this all the time from anchor hrefs but this is the 
> > first time I've
> > >tried it in html:form style.
> > >I can't find anywhere in the docs that says that a html:form 
> > MUST have a
> > >related formbean.
> > >Is this just an implied rule?
> > >
> > 
> >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > 
> > 
> > _
> > Tired of spam? Get advanced junk mail protection with MSN 8. 
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Upload and BeanUtils problem

2003-02-26 Thread Sébastien Col
I have the beanutils.jar in the tomcat/server/lib, and in the WEB-INF/lib of
my application.war file. If I don't have it in my war file, I have an
exception when I try to access my index.jsp page. It can't find the Bean
Message (application resources file for internationalization).

I don't know what to do.
Sebastien

-Message d'origine-
De : Geeta Ramani [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 26 février 2003 20:37
À : Struts Users Mailing List
Objet : Re: Upload and BeanUtils problem


Ok, so you are now sure that beanutils.jar is in just one place?  If you
are,
rebuild everything (make sure the old compiled classes are thrown away),
restart
tomcat and try again.
Geeta

Sébastien Col wrote:

> Thanks for your answer. I re-installed Tomcat, effectively I had the
> beanutils jar twice in the tomcat directories.
> Then I still have the same problem. I have the beanutils jar in my .war
> otherwise I have an exception when I try to access my web application.
> Any idea?
>
> Sebastien
>
> -Message d'origine-
> De : Geeta Ramani [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 26 février 2003 20:15
> À : Struts Users Mailing List
> Objet : Re: Upload and BeanUtils problem
>
> Hi Sébastien:
>
> A "NoClassDefFoundError" is different from a "ClassNotFoundError".  The
time
> I got an
> error similar to yours was when I had placed one of the required jars in
> more than one
> place.  So check your classpath and every place where a compiler would
look
> for
> classes/jars and make sure your jar is in *exactly* one place.  (Remember
to
> restart
> your servlet engine if you make a chnage: I got bit with that one too!!)
>
> Regards,
> Geeta
>
> Sébastien Col wrote:
>
> > Hi,
> > I'm trying to get the  tag working, but I'm stuck. When I
> submit
> > my form, I have a NoClassDefFoundError exception for
> > org/apache/commons/beanutils/MethodUtils. The commons-beanutils.jar file
> is
> > in my /WEB-INF/lib directory, so I don't understand.
> > Any idea?
> > Following is the exception trace.
> > Thanks in advance.
> > Sebastien
> >
> > javax.servlet.ServletException: L''exécution de la servlet a lancé une
> > exception
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:269)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:193)
> > at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:260)
> > at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > va:191)
> > at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> >
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> > at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> > )
> > at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> > java:170)
> > at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:641)
> > at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> > )
> > at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:641)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > :174)
> > at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > at
> >
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
> > at
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> > ction(Http11Protocol.java:386

RE: checkbox and iterate problem

2003-02-26 Thread pqin
try Boolean.FALSE (Object) instead of false (which is a primitive type).

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem

I have a Reset method, and I am calling  mFolders[i].setChecked(false) for
each item in my array. Is that what you mean by setting the default value
?
If so, it hasn't fixed my problem.

Thanx

> Have to set default value in reset method.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2003 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: checkbox and iterate problem
>
> Hi,
>  I'm having a problem with checkboxes and I was hoping someone could
> help.
>
>  The short version is:
>when using  over an array of checkboxes, the setter
> method is not called after submit
>
>  Long version
>I have class   CheckableString { String str; boolean checked = false;
> // etc.. };
>I have a Form
>HostForm extends ActionForm {
>  CheckableString[] mFolders = new CheckableString[100];
>   public CheckableString getFolder(int n) {
>   System.err.println("HostForm getFolder a " + mFolders[n]);
>   return mFolders[n];
>   }
>   public CheckableString[] getFolder() {
>   System.err.println("HostForm getFolder b " + this);
>   for (int i = 0; i != mFolders.length; i++) {
>   System.err.println("HostForm getFolder b " +
> mFolders[i]);
>   }
>   return mFolders;
>   }
>   public void setFolder(int n, CheckableString folders) {
>   System.err.println("HostForm setFolder a " + folders + " " +
> this);
>   mFolders[n] = folders;
>   }
>   public void setFolder(CheckableString[] folders) {
>   System.err.println("HostForm setFolder b " + this);
>   mFolders = folders;
>   }
>   public void reset(ActionMapping a, HttpServletRequest b) {
>   System.err.println("HostForm reset " + this);
>   flag = false;
>   for (int i = 0; i != mFolders.length; i++) {
>   System.err.println("HostForm reset "
> + mFolders[i]);
>   if (mFolders[i] != null)
>
> mFolders[i].setChecked(false);
>   }
>   }
>   }
>
>   I have an Action class setup the form, populating values from a
> database,
> it then forwards to a jsp page
> 
> ..
>  indexId="index">
> 
>   
> 
> name='quack' />
>   
> 
>   
> 
> 
> 
>
>
> The form is populated correctly, items marked as true are selected. And
> looking at the logs the getter function is called
> The problem is when I submit, the setter function is NEVER called, and
> the Form is not populated.
> note: If I have a simple non-indexed checkbox, then that works as
> expected and the setter is called
>
> I am using struts 1.1RC1
>
> Anyone got any ideas ??, I'm stumped
>
> Thanks
>
> Neal
>
>
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Action without FormBean

2003-02-26 Thread Dennis Muhlestein
Use an image instead of a form button?? 
ie: 

-Dennis

On Wed, 2003-02-26 at 11:48, Chen, Gin wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> Hi James,
>   I did use links before. But they want to see buttons instead of href
> links.
> D*mn users. ;P
> -Tim
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 1:34 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Action without FormBean
> 
> 
> So your [View] and [Delete] are submit buttons?
> 
> Why can't you use links within an iterator?
> 
> 
> 
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> 
> 
> 
> 
> > -Original Message-
> > From: Chen, Gin [mailto:[EMAIL PROTECTED] 
> > Sent: mercredi 26 février 2003 13:24
> > To: 'Struts Users Mailing List'
> > Subject: RE: Action without FormBean
> > 
> > 
> > Thanks David.
> > That's what I figured.
> > Unfortunately it just seems like an unnecessary step sometimes.
> > For example I have a collection that is returned to me and I 
> > show it as such
> > 
> > x   [View] [Delete]
> > x   [View] [Delete]
> > x   [View] [Delete]
> > x   [View] [Delete]
> > 
> > To set this up using struts i have to make a form bean that 
> > is simply a
> > container for my collection
> > Cant do this with dynaform cause it doesnt handle collections >:[
> > Is there a better way to do this?
> > Or should I just break away from struts for this?
> > -Tim
> > 
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 1:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Action without FormBean
> > 
> > 
> >  must have a form bean.  Form beans are the 
> > framework's way of 
> > dealing with forms.
> > 
> > David
> > 
> > 
> > 
> > >From: "Chen, Gin" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" 
> > <[EMAIL PROTECTED]>
> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > >Subject: Action without FormBean
> > >Date: Wed, 26 Feb 2003 13:05:29 -0500
> > >
> > >I set up the following:
> > >
> > > > >parameter="userAction"/>
> > >
> > >//myJsp.jsp
> > >
> > >
> > >
> > >
> > >Thats it nothing in between the form tags and I get 
> > exception can not 
> > >access
> > >formbean null.
> > >
> > >Well I dont want a formbean.
> > >Is this not a legal form?
> > >
> > >I do this all the time from anchor hrefs but this is the 
> > first time I've
> > >tried it in html:form style.
> > >I can't find anywhere in the docs that says that a html:form 
> > MUST have a
> > >related formbean.
> > >Is this just an implied rule?
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > _
> > Tired of spam? Get advanced junk mail protection with MSN 8. 
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upload and BeanUtils problem

2003-02-26 Thread Geeta Ramani
Ok, so you are now sure that beanutils.jar is in just one place?  If you are,
rebuild everything (make sure the old compiled classes are thrown away), restart
tomcat and try again.
Geeta

Sébastien Col wrote:

> Thanks for your answer. I re-installed Tomcat, effectively I had the
> beanutils jar twice in the tomcat directories.
> Then I still have the same problem. I have the beanutils jar in my .war
> otherwise I have an exception when I try to access my web application.
> Any idea?
>
> Sebastien
>
> -Message d'origine-
> De : Geeta Ramani [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 26 février 2003 20:15
> À : Struts Users Mailing List
> Objet : Re: Upload and BeanUtils problem
>
> Hi Sébastien:
>
> A "NoClassDefFoundError" is different from a "ClassNotFoundError".  The time
> I got an
> error similar to yours was when I had placed one of the required jars in
> more than one
> place.  So check your classpath and every place where a compiler would look
> for
> classes/jars and make sure your jar is in *exactly* one place.  (Remember to
> restart
> your servlet engine if you make a chnage: I got bit with that one too!!)
>
> Regards,
> Geeta
>
> Sébastien Col wrote:
>
> > Hi,
> > I'm trying to get the  tag working, but I'm stuck. When I
> submit
> > my form, I have a NoClassDefFoundError exception for
> > org/apache/commons/beanutils/MethodUtils. The commons-beanutils.jar file
> is
> > in my /WEB-INF/lib directory, so I don't understand.
> > Any idea?
> > Following is the exception trace.
> > Thanks in advance.
> > Sebastien
> >
> > javax.servlet.ServletException: L''exécution de la servlet a lancé une
> > exception
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:269)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:193)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:260)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > va:191)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> > )
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> > java:170)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:641)
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> > )
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:641)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > :174)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
> > at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> > ction(Http11Protocol.java:386)
> > at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
> > at
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> > a:530)
> > at java.lang.Thread.run(Thread.java:536)
> >
> > cause mère
> > java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils
> > at
> >
> org.apache.commons.fileupload.FileUpload.getNewInstanceMethod(FileUpload.jav
> > a:669)
> > at
> org.apache.commons.fileup

RE: Upload and BeanUtils problem

2003-02-26 Thread Sébastien Col
Thanks for your answer. I re-installed Tomcat, effectively I had the
beanutils jar twice in the tomcat directories.
Then I still have the same problem. I have the beanutils jar in my .war
otherwise I have an exception when I try to access my web application.
Any idea?

Sebastien


-Message d'origine-
De : Geeta Ramani [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 26 février 2003 20:15
À : Struts Users Mailing List
Objet : Re: Upload and BeanUtils problem


Hi Sébastien:

A "NoClassDefFoundError" is different from a "ClassNotFoundError".  The time
I got an
error similar to yours was when I had placed one of the required jars in
more than one
place.  So check your classpath and every place where a compiler would look
for
classes/jars and make sure your jar is in *exactly* one place.  (Remember to
restart
your servlet engine if you make a chnage: I got bit with that one too!!)

Regards,
Geeta

Sébastien Col wrote:

> Hi,
> I'm trying to get the  tag working, but I'm stuck. When I
submit
> my form, I have a NoClassDefFoundError exception for
> org/apache/commons/beanutils/MethodUtils. The commons-beanutils.jar file
is
> in my /WEB-INF/lib directory, so I don't understand.
> Any idea?
> Following is the exception trace.
> Thanks in advance.
> Sebastien
>
> javax.servlet.ServletException: L''exécution de la servlet a lancé une
> exception
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:269)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:260)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:386)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:530)
> at java.lang.Thread.run(Thread.java:536)
>
> cause mère
> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils
> at
>
org.apache.commons.fileupload.FileUpload.getNewInstanceMethod(FileUpload.jav
> a:669)
> at
org.apache.commons.fileupload.FileUpload.createItem(FileUpload.java:600)
> at
> org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:473)
> at
> org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:355)
> at
>
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Common
> sMultipartRequestHandler.java:233)
> at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1055)
> at
>
org.apache.struts.action.RequestProcessor

Re: [OT] database access philosophy

2003-02-26 Thread Kirby Vandivort
I've been looking into ResultSetDynaClass as well as something that
Ted posted a while back:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg14919.html

where he makes a collection out of a result set.


My problem, though, is that some code that we've got that accesses result
sets uses the column name, and some uses the id.  I'm not sure that
either method works with both names and id's.  That's a relatively minor
thing, though, because I guess the code can be converted to either
entirely names or entirely id's.  

At any rate, it looks like the ResultSetDynaClass code given in the
API example converts to an ArrayList, which is going to be ID based.

The example that Ted gave seems to use the ResultSet metadata to
probably return the collection via the name, although I haven't yet
totally figured his code out.  There seems to be some missing methods
that I haven't yet tracked down.

The JavaWorld example that was mentioned in another reply sounds like
it would work _except_ I don't want to have to make a bean for every
piece of data that can be sent back from the database.  I'm looking
for a way to "somewhat" dynamically create the necessary data structure
and send it back.

Kirby


On Wed, Feb 26, 2003 at 11:12:01AM -0700, Wendy Smoak wrote:
> Kirby wrote:
> > SO,  I am wondering what people do when they need to return all of the
> > data in a ResultSet to their business layer.  Do you have to go to the
> > hassle of copying everything to some sort of data structure, or is
> > there a better, cleaner, faster way to handle this?
> 
> Does this look useful?  
> 
> "Implementation of DynaClass for DynaBeans that wrap the java.sql.Row
> objects of a java.sql.ResultSet"
> 
> http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils
> /ResultSetDynaClass.html
> 
> I haven't gotten to use it yet since my database doesn't speak JDBC, but it
> looks interesting!
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management

-- 

Kirby Vandivort  Theoretical and Computational Biophysics 
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: websites that use Struts..

2003-02-26 Thread Dennis Muhlestein
http://www.datemate.com

On Wed, 2003-02-26 at 08:42, James Prance wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> The list on the Apache website, half the links dont work...
> does anyone know of some websites out there on the old 'interweb' that are
> currently live using struts..
> I need to find some good examples to convince our PM's that this is our way
> forward..
> 
> James
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Running example app on Websphere 4.0

2003-02-26 Thread Hajratwala, Nayan (N.)
I'm not sure that it matters, but does "lib" have to be lowercase, i.e. /WEB-INF/lib?

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Shkolnik, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 6:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Running example app on Websphere 4.0


Initially, I just had it in one place - where it's suppose to be in
/WEB-INF/LIB/. But that didn't seem to work.

Thanks.

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:56 PM
To: Struts Users Mailing List
Subject: Re: Running example app on Websphere 4.0


Mike:

I don't know anything about WebSphere, but thought you may like to know
this:
the time that I got a similar error "NoClassDefFoundError was in fact when I
had
placed a jar in one place too many... not to be confused with the
"ClassNotFoundError".  (I believe the error occurs when a class found in the
compilation path is not the same as the one found at run time. )  Since you
say
below that you tried to put the struts.jar in lots of places, maybe this is
the
problem..?  So try to remove the struts.jar from everywhere *except* one
place,
rebuild everything and then try again.

Regards,
Geeta

"Shkolnik, Mike" wrote:

> The link or file that you were trying to include is not there.
>
> Deploying example app directly to the WS 4.0 appserver does not seem to
> work.
>
> When I try to deploy and run my own struts application (not the example) I
> get following error:
>
> [2/25/03 10:52:01:630 PST] 37191c7f WebGroup  X Servlet
Error-[action]:
> Failed to load servlet: java.lang.NoClassDefFoundError:
> org/apache/struts/action/ActionServlet
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:254)
> at java.beans.Beans.instantiate(Beans.java:213)
> at java.beans.Beans.instantiate(Beans.java:57)
> at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet
>
> I tried to put the struts.jar everywhere I could think of, but it still
can
> not find it.
>
> When I deploy example application, I'm not getting above error, however
when
> I try to invoke any action from a browser I get "File not found..." error.
>
> Thanks.
>
> -Original Message-
> From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 2:03 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Running example app on Websphere 4.0
>
> Assuming you're trying to get it up and running in WSAD 4.0 or 5.0, here
is
> a bug-report that contains instructions on getting the example running in
> WSAD 5.0.  I imagine it should be similar for 4.0
>
> If you're simply trying to deploy it directly to the WS 4.0 appserver, you
> should be able to deploy the WAR file just like any other WAR file.
>
> ---
> - Nayan Hajratwala
> - Chikli Consulting LLC
> - http://www.chikli.com
>
> -Original Message-
> From: Shkolnik, Mike [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 4:51 PM
> To: '[EMAIL PROTECTED]'
> Subject: Running example app on Websphere 4.0
>
> Has anybody figured out how to run Struts example app on Websphere 4.0. I
> can't make it work. Any help is greatly appreciated.
>
> Thank you.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upload and BeanUtils problem

2003-02-26 Thread Geeta Ramani
Hi Sébastien:

A "NoClassDefFoundError" is different from a "ClassNotFoundError".  The time I got an
error similar to yours was when I had placed one of the required jars in more than one
place.  So check your classpath and every place where a compiler would look for
classes/jars and make sure your jar is in *exactly* one place.  (Remember to restart
your servlet engine if you make a chnage: I got bit with that one too!!)

Regards,
Geeta

Sébastien Col wrote:

> Hi,
> I'm trying to get the  tag working, but I'm stuck. When I submit
> my form, I have a NoClassDefFoundError exception for
> org/apache/commons/beanutils/MethodUtils. The commons-beanutils.jar file is
> in my /WEB-INF/lib directory, so I don't understand.
> Any idea?
> Following is the exception trace.
> Thanks in advance.
> Sebastien
>
> javax.servlet.ServletException: L''exécution de la servlet a lancé une
> exception
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:269)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:260)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:386)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:530)
> at java.lang.Thread.run(Thread.java:536)
>
> cause mère
> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils
> at
> org.apache.commons.fileupload.FileUpload.getNewInstanceMethod(FileUpload.jav
> a:669)
> at org.apache.commons.fileupload.FileUpload.createItem(FileUpload.java:600)
> at
> org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:473)
> at
> org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:355)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Common
> sMultipartRequestHandler.java:233)
> at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1055)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
> ava:816)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at

RE: Struts and Portlets

2003-02-26 Thread Mete Kural
> JSR168 has not yet gone to community draft, so the
> only folks who would
> have such a document are EG members.  You can get
> the current status of
> the JSR at:
> http://jcp.org/en/jsr/detail?id=168

On this page, it says that the public draft is
scheduled for March 2003 and the final draft is
scheduled for May 2003. Is this still the case or have
the deadlines changed? I thought they did and maybe
they forgot the update the status page accordingly.

> Craig

-Mete

> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Decoupling custom Validators from Struts

2003-02-26 Thread otisg
Hello,

All the Validator examples that I have seen
seem to be tightly couples with Struts.
For instance, most validateXXX(...) methods
takes the following types as parameters:
  Object
  ValidatorAction
  Field
  ActionErrors
  HttpServletRequest

Because of presence of ActionErrors, this is
tightly coupled to Struts.
What happens when one day we decide to
replace Struts with XYZ? We have to rewrite
a piece of this Validator.

Because of presence of HttpServletRequest,
thi is usable only in the Web App context.
What happens if we want to use this
Validator in a desktop application?

I am wondering how one would create a custom
Validator that did not have these 2
dependencies (or at least not the Struts
dependency).

If I write a custom Validator with a method
such as:
  validateXXX(Object, Field)

How do I use this method in a Struts
application without passing it instances
Struts-specific classes, such as
ActionErrors, and still somehow end up with
error messages suitable for showing to the
user, etc.?

I have seen code such as the following, but
this would require that a developers
manually inserts error messages into an
instance of ActionErrors, etc.  Is there no
better way?

ValidatorResources resources = new
ValidatorResources();

InputStream rules = 
ValidateExample.class.getResourceAsStream("validator-rules.xml");
ValidatorResourcesInitializer.initialize(resources,
in);

InputStream forms = 
  
ValidateExample.class.getResourceAsStream("validation.xml");
ValidatorResourcesInitializer.initialize(resources,
forms);


// Suppose we already had a CheckoutForm
object created and populated
CheckoutForm form = new CheckoutForm();

// Create a validator with the checkoutForm
Validator validator = new
Validator(resources, "checkoutForm");

// Tell the validator which bean to validate
against.  
validator.addResource(Validator.BEAN_KEY, form);

// Validate the checkoutForm object and
store the validation results
ValidatorResults results = validator.validate();


Thanks.
Otis



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: checkbox and iterate problem

2003-02-26 Thread nkstruts
I have a Reset method, and I am calling  mFolders[i].setChecked(false) for
each item in my array. Is that what you mean by setting the default value
?
If so, it hasn't fixed my problem.

Thanx

> Have to set default value in reset method.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2003 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: checkbox and iterate problem
>
> Hi,
>  I'm having a problem with checkboxes and I was hoping someone could
> help.
>
>  The short version is:
>when using  over an array of checkboxes, the setter
> method is not called after submit
>
>  Long version
>I have class   CheckableString { String str; boolean checked = false;
> // etc.. };
>I have a Form
>HostForm extends ActionForm {
>  CheckableString[] mFolders = new CheckableString[100];
>   public CheckableString getFolder(int n) {
>   System.err.println("HostForm getFolder a " + mFolders[n]);
>   return mFolders[n];
>   }
>   public CheckableString[] getFolder() {
>   System.err.println("HostForm getFolder b " + this);
>   for (int i = 0; i != mFolders.length; i++) {
>   System.err.println("HostForm getFolder b " +
> mFolders[i]);
>   }
>   return mFolders;
>   }
>   public void setFolder(int n, CheckableString folders) {
>   System.err.println("HostForm setFolder a " + folders + " " +
> this);
>   mFolders[n] = folders;
>   }
>   public void setFolder(CheckableString[] folders) {
>   System.err.println("HostForm setFolder b " + this);
>   mFolders = folders;
>   }
>   public void reset(ActionMapping a, HttpServletRequest b) {
>   System.err.println("HostForm reset " + this);
>   flag = false;
>   for (int i = 0; i != mFolders.length; i++) {
>   System.err.println("HostForm reset "
> + mFolders[i]);
>   if (mFolders[i] != null)
>
> mFolders[i].setChecked(false);
>   }
>   }
>   }
>
>   I have an Action class setup the form, populating values from a
> database,
> it then forwards to a jsp page
> 
> ..
>  indexId="index">
> 
>   
> 
> name='quack' />
>   
> 
>   
> 
> 
> 
>
>
> The form is populated correctly, items marked as true are selected. And
> looking at the logs the getter function is called
> The problem is when I submit, the setter function is NEVER called, and
> the Form is not populated.
> note: If I have a simple non-indexed checkbox, then that works as
> expected and the setter is called
>
> I am using struts 1.1RC1
>
> Anyone got any ideas ??, I'm stumped
>
> Thanks
>
> Neal
>
>
>
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   >