Re: News about JavaServer Faces?

2003-02-05 Thread Craig R. McClanahan


On Thu, 6 Feb 2003, Rabih Yazbeck wrote:

> Long time since we heard about JavaServer Faces, anything new? Final
> Draft? Version 1.0 of the reference implementation? when/where or what
> is going on with JavaServer Faces and Struts?

Patience, Rabih, patience ... good things are happening :-).

Craig

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




Re: Struts Upload File Question

2003-02-05 Thread Martin Cooper

"VEDRE, RANAPRATAP REDDY" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to implement a feature that allows users to upload multiple
> files at the same time(Similar to Yahoo Mail attachments).
>
> user should be able to select upto a maximun of 5 files on a single page
and
> all the files are saved to the database on submitting the form.
>
> I am using FormFile in struts upload package for the purpose and storing
the
> FormFile objects in a vector.  what would be the best way to handle this?

Well, I'd use a List instead of a Vector, but otherwise you're on the right
track.

>
> Also,how can i show image and text(html markup) on the same page.
> if i set the content type for the response to image/gif and  return null
for
> ActionForward, them image shows up but i cannot display text on the page
if
> i write it to the output stream.

This is not a Struts-related question.

--
Martin Cooper


>
> dint find the solution to this in the mailing list archive.
>
> any comments/ideas are welcome.
>
> -Rana.




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




Re: Hi

2003-02-05 Thread Scott Barr

Unless you want to go to the trouble of building images dynamically.
Plenty of techniques for doing this, but possible load issue though,
generating images when your content like that can be so easily served by
the web server

Scott


On Thu, 2003-02-06 at 15:46, Thomas CORNET wrote:

> IMO, you'll have to create one image per language, and put image's path in 
> your ressource files...
> 
> Thomas
> 
> At 06:11 06/02/2003, you wrote:
> >Hello
> >
> >Please tell me whether we can change the label of a button which is an 
> >image, using internationaliztion in struts. Normal labels we can change. 
> >But if anybody has an idea to achieve this for BUTTONS(Note that, the 
> >button is image not the normal button), please help me.
> >
> >george
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



Re: Accessing struts datasource outside action servlet

2003-02-05 Thread David Graham
You can store the DataSource in JNDI.  An easier way is to configure some 
kind of service layer with the datasource.

David



From: "Dinesh Sampangi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Accessing struts datasource outside action servlet
Date: Thu, 6 Feb 2003 11:26:25 +0530

Hi All,
How can i access the datasource outside the action class. suppose 
i need a connection in a bean/other class where i need some  pre population 
of  data from the database..

any suggestion woul be a gr8 help.

rgds,
Dinesh






_
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]



Accessing struts datasource outside action servlet

2003-02-05 Thread Dinesh Sampangi
Hi All,
How can i access the datasource outside the action class. suppose i need a 
connection in a bean/other class where i need some  pre population of  data from the 
database..

any suggestion woul be a gr8 help.

rgds,
Dinesh


 




Re: Hi

2003-02-05 Thread Thomas CORNET

IMO, you'll have to create one image per language, and put image's path in 
your ressource files...

Thomas

At 06:11 06/02/2003, you wrote:
Hello

Please tell me whether we can change the label of a button which is an 
image, using internationaliztion in struts. Normal labels we can change. 
But if anybody has an idea to achieve this for BUTTONS(Note that, the 
button is image not the normal button), please help me.

george


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




Hi

2003-02-05 Thread George Jacob
Hello 

Please tell me whether we can change the label of a button which is an image, using 
internationaliztion in struts. Normal labels we can change. But if anybody has an idea 
to achieve this for BUTTONS(Note that, the button is image not the normal button), 
please help me.

george



Re: [OT] concurrent updates

2003-02-05 Thread Christopher Willingham
Right, that's textbook.  I meant optimistic as in we'll probably never have
a collision, so with such low odds, whoever wins, wins...  My clients have
never let me get away with that.

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 10:02 PM
Subject: Re: [OT] concurrent updates


> We not going any were but I am in a bad mood:
> - if you are using pessimistic locking, that means that you locked the
> row, no need for timestamp.
> - if you are using timestamp, then you are doing optimistic and
> protecting against dirty writes.
>
> .V
>
> Christopher Willingham wrote:
> > it's an answer.  my personal opinion, using timestamps is the easiest
and
> > fastest, having done both on many occasions.  optimistic style never was
> > acceptable unfortunately.
> >
> > - Original Message -
> > From: "Vic Cekvenich" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 05, 2003 9:39 PM
> > Subject: Re: [OT] concurrent updates
> >
> >
> >
> >>Hmmm 
> >>Not sure if you are asking a question or answering an answer.
> >>
> >>- Locking a row or a leaf page the row is on on a large system should be
> >>done only after careful consideration. Performance, Deadly embrace,
> >>other apps, user time out, dead sessions, etc.
> >>
> >>-Refresh of data has to do with row cache you do. Popular one is
> >>Poolman, where it needs to time out, but many others out there in use.
> >>Again, refresh is typically not done on large systems.
> >>(I think you are saying that when a DB changes a row, it should send a
> >>message to browsers and make it refresh the rows it's displaying and
> >>that you did this? OK if you say so.)
> >>
> >>
> >>If you are experienced SQL and know these topics well, then you can make
> >>a choice. Else, if you are not intimate, I suggest optimistic cache
> >>approach with a decent cache decay.
> >>
> >>.V
> >>
> >>Christopher Willingham wrote:
> >>
> >>>when user A retrieves data also get a last updated timestamp from
table.
> >>>When you go to update, use that in your where clause.  If row not
found,
> >>>someone else changed the row while user A went to get coffee.
> >>
> > Automatically
> >
> >>>refreshing with message in that event would be nice.
> >>>
> >>>- or -
> >>>
> >>>use a transaciton table to incorporate a checkout scheme, ie, when user
> >>
> > goes
> >
> >>>to modify a customer, add transaction row to check customer out.
Anyone
> >>>else attempting will find it already checked out and will be denied.
> >>>
> >>>I've done both in large systems
> >>>
> >>>- Original Message -
> >>>From: "Vic Cekvenich" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Wednesday, February 05, 2003 7:39 PM
> >>>Subject: Re: [OT] concurrent updates
> >>>
> >>>
> >>>
> >>>
> The answer is... what do you want it to be?
> 
> 
> I  You dao updates via reflection does update via the primary key.
> Last one wins.
> or
> II You dao updates via reflection for all the changed fields.
> Both could win or 2nd one fails.
> or
> III Your dao update via reflection for all the fields or via
data/time.
> It fails always if any changes.
> 
> If you did not understand this, just use choice I. This has nothing to
> do with patterns, and everything to do with SQL.
> 
> .V
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> 
> >pls excuse my struts-[OT] question, but I would appreciate to learn
how
> 
> >>>you
> >>>
> >>>
> >handle the situation of concurrent data update within your web
> >applications.
> >
> >think about the following situation:
> >1. user A fetches customer 007 and displays 007 within his browser
> >2. user B fetches customer 007 as well and displays 007 within his
> 
> >>>browser
> >>>
> >>>
> >3. user A updates customer 007
> >4. user B updates customer 007 as well...
> >
> >How do your systems react?
> >a) the last update wins?
> >b) trying to merge updates of user A and B?
> >c) sending a message to user B that customer 007 was changed since
> 
> >>>loading,
> >>>
> >>>
> >and that user B has to re-enter his update
> >or d) do you have a locking mechanism which prevents this
situation ->
> 
> >>>user
> >>>
> >>>
> >B has no "update" button if customer 007 is already in somebody
else's
> >update screen
> >or e) ???
> >
> >thanks for sharing your solutions to this common problem
> >rene
> 
> 
> 
> -
> 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]
> >>
> >>
> >
>
>
>
>

nest sytax.. looks cool but does it work? :)

2003-02-05 Thread Sundar Narasimhan
I finally gave up w/ 1.0 and moved to 1.1b2 (the one that comes w/
WSAD).

And the first thing I try w/ it doesn't work, so I must have the wrong
model again. So here goes;

I have a top level User -- who has a bunch of Preferences.
There is a UserForm, and a UserPrefForm.
The UserForm has a collection of UserPrefForm, and in addition has a
property called "selectedPref" which actions set to one of the
UserPrefForms.  (The reason I want to do this is simple: I want to
display a table with all the UserPrefForms in summary form, and when
the user clicks on a Preference to display the detail along with the
form). The trouble is how can I display a UserPrefForm's fields when
I'm displaying a User? So I think  can help.
1. I first try 

   Doesn't work -- PropertyUtils.throw an IllegalArgument exception --
   No bean specified.
2. I then try
   ...
   
   and
   ...
   
   nada .. 
3. Then I think.. hmm I did read something about "root" and maybe
that's needed to set the scoping right..

<...>   

Now I get "selectedPref" not found in any scope!

How is this supposed to work!!! 
Frustrated.

p.s. do I have the right model here.. that if I use the nested tag,
and invoke the action (say Save), the populate process in struts will
find the appropriate "selected" preference and save the nested fields
"in" the selected form. Note that this is what the document seems to
imply with all the discussion of bananas and monkeys.. does the code
not correspond to the documentation? (I was assuming that I'd get
bi-directional transfer.. i.e. from the forms to the jsp, and
vice-versa.. i.e. jsp to actions to the forms -- and that such
master-detail traversals are what nesting was designed for).

If I have this wrong, or if the implementation is just plain not
working yet, please could someone let me know. 

Thanks.




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




bean:write problem

2003-02-05 Thread George Jacob
Hi all.

How we can write a value in JspWriter using bean:write tag which is  embedded in an 
object that stored in a Vector. The vector is iterated by a logic:iterate tag. Pls 
help..


George



tag in the jsp

2003-02-05 Thread usha
Hi

i posted this question previously also but i didn't found any answer. if 
any body knows about this can u explain me.
my question is in the tiles.xml we are using inside the  tag  i 
am using the  tag . i want to use this tag on the JSP also. is 
this possible to use this  tag on the JSP. can anybody tell me how 
to use this on the jsp

Thanks
usha


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



RE: [OT] concurrent updates

2003-02-05 Thread Jacob Hookom
Another alternative to time stamping is auto incrementing a field in the
row, so when you "check out" an object, you set a long value in your object,
during an update, ask the DB for its current ID and if it's the same or not.

-Bocaj

| -Original Message-
| From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Vic Cekvenich
| Sent: Wednesday, February 05, 2003 9:03 PM
| To: [EMAIL PROTECTED]
| Subject: Re: [OT] concurrent updates
| 
| We not going any were but I am in a bad mood:
| - if you are using pessimistic locking, that means that you locked the
| row, no need for timestamp.
| - if you are using timestamp, then you are doing optimistic and
| protecting against dirty writes.
| 
| .V
| 
| Christopher Willingham wrote:
| > it's an answer.  my personal opinion, using timestamps is the easiest
| and
| > fastest, having done both on many occasions.  optimistic style never was
| > acceptable unfortunately.
| >
| > - Original Message -
| > From: "Vic Cekvenich" <[EMAIL PROTECTED]>
| > To: <[EMAIL PROTECTED]>
| > Sent: Wednesday, February 05, 2003 9:39 PM
| > Subject: Re: [OT] concurrent updates
| >
| >
| >
| >>Hmmm 
| >>Not sure if you are asking a question or answering an answer.
| >>
| >>- Locking a row or a leaf page the row is on on a large system should be
| >>done only after careful consideration. Performance, Deadly embrace,
| >>other apps, user time out, dead sessions, etc.
| >>
| >>-Refresh of data has to do with row cache you do. Popular one is
| >>Poolman, where it needs to time out, but many others out there in use.
| >>Again, refresh is typically not done on large systems.
| >>(I think you are saying that when a DB changes a row, it should send a
| >>message to browsers and make it refresh the rows it's displaying and
| >>that you did this? OK if you say so.)
| >>
| >>
| >>If you are experienced SQL and know these topics well, then you can make
| >>a choice. Else, if you are not intimate, I suggest optimistic cache
| >>approach with a decent cache decay.
| >>
| >>.V
| >>
| >>Christopher Willingham wrote:
| >>
| >>>when user A retrieves data also get a last updated timestamp from
| table.
| >>>When you go to update, use that in your where clause.  If row not
| found,
| >>>someone else changed the row while user A went to get coffee.
| >>
| > Automatically
| >
| >>>refreshing with message in that event would be nice.
| >>>
| >>>- or -
| >>>
| >>>use a transaciton table to incorporate a checkout scheme, ie, when user
| >>
| > goes
| >
| >>>to modify a customer, add transaction row to check customer out.
| Anyone
| >>>else attempting will find it already checked out and will be denied.
| >>>
| >>>I've done both in large systems
| >>>
| >>>- Original Message -
| >>>From: "Vic Cekvenich" <[EMAIL PROTECTED]>
| >>>To: <[EMAIL PROTECTED]>
| >>>Sent: Wednesday, February 05, 2003 7:39 PM
| >>>Subject: Re: [OT] concurrent updates
| >>>
| >>>
| >>>
| >>>
| The answer is... what do you want it to be?
| 
| 
| I  You dao updates via reflection does update via the primary key.
| Last one wins.
| or
| II You dao updates via reflection for all the changed fields.
| Both could win or 2nd one fails.
| or
| III Your dao update via reflection for all the fields or via
| data/time.
| It fails always if any changes.
| 
| If you did not understand this, just use choice I. This has nothing to
| do with patterns, and everything to do with SQL.
| 
| .V
| 
| 
| 
| [EMAIL PROTECTED] wrote:
| 
| 
| >pls excuse my struts-[OT] question, but I would appreciate to learn
| how
| 
| >>>you
| >>>
| >>>
| >handle the situation of concurrent data update within your web
| >applications.
| >
| >think about the following situation:
| >1. user A fetches customer 007 and displays 007 within his browser
| >2. user B fetches customer 007 as well and displays 007 within his
| 
| >>>browser
| >>>
| >>>
| >3. user A updates customer 007
| >4. user B updates customer 007 as well...
| >
| >How do your systems react?
| >a) the last update wins?
| >b) trying to merge updates of user A and B?
| >c) sending a message to user B that customer 007 was changed since
| 
| >>>loading,
| >>>
| >>>
| >and that user B has to re-enter his update
| >or d) do you have a locking mechanism which prevents this situation -
| >
| 
| >>>user
| >>>
| >>>
| >B has no "update" button if customer 007 is already in somebody
| else's
| >update screen
| >or e) ???
| >
| >thanks for sharing your solutions to this common problem
| >rene
| 
| 
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 
| >>>
| >>
| >>
| >>-
| >>To unsubscribe, e-m

Re: [OT] concurrent updates

2003-02-05 Thread Vic Cekvenich
We not going any were but I am in a bad mood:
- if you are using pessimistic locking, that means that you locked the 
row, no need for timestamp.
- if you are using timestamp, then you are doing optimistic and 
protecting against dirty writes.

.V

Christopher Willingham wrote:
it's an answer.  my personal opinion, using timestamps is the easiest and
fastest, having done both on many occasions.  optimistic style never was
acceptable unfortunately.

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 9:39 PM
Subject: Re: [OT] concurrent updates




Hmmm 
Not sure if you are asking a question or answering an answer.

- Locking a row or a leaf page the row is on on a large system should be
done only after careful consideration. Performance, Deadly embrace,
other apps, user time out, dead sessions, etc.

-Refresh of data has to do with row cache you do. Popular one is
Poolman, where it needs to time out, but many others out there in use.
Again, refresh is typically not done on large systems.
(I think you are saying that when a DB changes a row, it should send a
message to browsers and make it refresh the rows it's displaying and
that you did this? OK if you say so.)


If you are experienced SQL and know these topics well, then you can make
a choice. Else, if you are not intimate, I suggest optimistic cache
approach with a decent cache decay.

.V

Christopher Willingham wrote:


when user A retrieves data also get a last updated timestamp from table.
When you go to update, use that in your where clause.  If row not found,
someone else changed the row while user A went to get coffee.



Automatically


refreshing with message in that event would be nice.

- or -

use a transaciton table to incorporate a checkout scheme, ie, when user



goes


to modify a customer, add transaction row to check customer out.  Anyone
else attempting will find it already checked out and will be denied.

I've done both in large systems

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 7:39 PM
Subject: Re: [OT] concurrent updates





The answer is... what do you want it to be?


I  You dao updates via reflection does update via the primary key.
Last one wins.
or
II You dao updates via reflection for all the changed fields.
Both could win or 2nd one fails.
or
III Your dao update via reflection for all the fields or via data/time.
It fails always if any changes.

If you did not understand this, just use choice I. This has nothing to
do with patterns, and everything to do with SQL.

.V



[EMAIL PROTECTED] wrote:



pls excuse my struts-[OT] question, but I would appreciate to learn how



you



handle the situation of concurrent data update within your web
applications.

think about the following situation:
1. user A fetches customer 007 and displays 007 within his browser
2. user B fetches customer 007 as well and displays 007 within his



browser



3. user A updates customer 007
4. user B updates customer 007 as well...

How do your systems react?
a) the last update wins?
b) trying to merge updates of user A and B?
c) sending a message to user B that customer 007 was changed since



loading,



and that user B has to re-enter his update
or d) do you have a locking mechanism which prevents this situation ->



user



B has no "update" button if customer 007 is already in somebody else's
update screen
or e) ???

thanks for sharing your solutions to this common problem
rene




-
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] concurrent updates

2003-02-05 Thread Christopher Willingham
it's an answer.  my personal opinion, using timestamps is the easiest and
fastest, having done both on many occasions.  optimistic style never was
acceptable unfortunately.

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 9:39 PM
Subject: Re: [OT] concurrent updates


> Hmmm 
> Not sure if you are asking a question or answering an answer.
>
> - Locking a row or a leaf page the row is on on a large system should be
> done only after careful consideration. Performance, Deadly embrace,
> other apps, user time out, dead sessions, etc.
>
> -Refresh of data has to do with row cache you do. Popular one is
> Poolman, where it needs to time out, but many others out there in use.
> Again, refresh is typically not done on large systems.
> (I think you are saying that when a DB changes a row, it should send a
> message to browsers and make it refresh the rows it's displaying and
> that you did this? OK if you say so.)
>
>
> If you are experienced SQL and know these topics well, then you can make
> a choice. Else, if you are not intimate, I suggest optimistic cache
> approach with a decent cache decay.
>
> .V
>
> Christopher Willingham wrote:
> > when user A retrieves data also get a last updated timestamp from table.
> > When you go to update, use that in your where clause.  If row not found,
> > someone else changed the row while user A went to get coffee.
Automatically
> > refreshing with message in that event would be nice.
> >
> > - or -
> >
> > use a transaciton table to incorporate a checkout scheme, ie, when user
goes
> > to modify a customer, add transaction row to check customer out.  Anyone
> > else attempting will find it already checked out and will be denied.
> >
> > I've done both in large systems
> >
> > - Original Message -
> > From: "Vic Cekvenich" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 05, 2003 7:39 PM
> > Subject: Re: [OT] concurrent updates
> >
> >
> >
> >>The answer is... what do you want it to be?
> >>
> >>
> >>I  You dao updates via reflection does update via the primary key.
> >>Last one wins.
> >>or
> >>II You dao updates via reflection for all the changed fields.
> >>Both could win or 2nd one fails.
> >>or
> >>III Your dao update via reflection for all the fields or via data/time.
> >>It fails always if any changes.
> >>
> >>If you did not understand this, just use choice I. This has nothing to
> >>do with patterns, and everything to do with SQL.
> >>
> >>.V
> >>
> >>
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>>pls excuse my struts-[OT] question, but I would appreciate to learn how
> >>
> > you
> >
> >>>handle the situation of concurrent data update within your web
> >>>applications.
> >>>
> >>>think about the following situation:
> >>>1. user A fetches customer 007 and displays 007 within his browser
> >>>2. user B fetches customer 007 as well and displays 007 within his
> >>
> > browser
> >
> >>>3. user A updates customer 007
> >>>4. user B updates customer 007 as well...
> >>>
> >>>How do your systems react?
> >>>a) the last update wins?
> >>>b) trying to merge updates of user A and B?
> >>>c) sending a message to user B that customer 007 was changed since
> >>
> > loading,
> >
> >>>and that user B has to re-enter his update
> >>>or d) do you have a locking mechanism which prevents this situation ->
> >>
> > user
> >
> >>>B has no "update" button if customer 007 is already in somebody else's
> >>>update screen
> >>>or e) ???
> >>>
> >>>thanks for sharing your solutions to this common problem
> >>>rene
> >>
> >>
> >>
> >>-
> >>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] concurrent updates

2003-02-05 Thread Vic Cekvenich
Hmmm 
Not sure if you are asking a question or answering an answer.

- Locking a row or a leaf page the row is on on a large system should be 
done only after careful consideration. Performance, Deadly embrace, 
other apps, user time out, dead sessions, etc.

-Refresh of data has to do with row cache you do. Popular one is 
Poolman, where it needs to time out, but many others out there in use.
Again, refresh is typically not done on large systems.
(I think you are saying that when a DB changes a row, it should send a 
message to browsers and make it refresh the rows it's displaying and 
that you did this? OK if you say so.)


If you are experienced SQL and know these topics well, then you can make 
a choice. Else, if you are not intimate, I suggest optimistic cache 
approach with a decent cache decay.

.V

Christopher Willingham wrote:
when user A retrieves data also get a last updated timestamp from table.
When you go to update, use that in your where clause.  If row not found,
someone else changed the row while user A went to get coffee.  Automatically
refreshing with message in that event would be nice.

- or -

use a transaciton table to incorporate a checkout scheme, ie, when user goes
to modify a customer, add transaction row to check customer out.  Anyone
else attempting will find it already checked out and will be denied.

I've done both in large systems

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 7:39 PM
Subject: Re: [OT] concurrent updates




The answer is... what do you want it to be?


I  You dao updates via reflection does update via the primary key.
Last one wins.
or
II You dao updates via reflection for all the changed fields.
Both could win or 2nd one fails.
or
III Your dao update via reflection for all the fields or via data/time.
It fails always if any changes.

If you did not understand this, just use choice I. This has nothing to
do with patterns, and everything to do with SQL.

.V



[EMAIL PROTECTED] wrote:


pls excuse my struts-[OT] question, but I would appreciate to learn how



you


handle the situation of concurrent data update within your web
applications.

think about the following situation:
1. user A fetches customer 007 and displays 007 within his browser
2. user B fetches customer 007 as well and displays 007 within his



browser


3. user A updates customer 007
4. user B updates customer 007 as well...

How do your systems react?
a) the last update wins?
b) trying to merge updates of user A and B?
c) sending a message to user B that customer 007 was changed since



loading,


and that user B has to re-enter his update
or d) do you have a locking mechanism which prevents this situation ->



user


B has no "update" button if customer 007 is already in somebody else's
update screen
or e) ???

thanks for sharing your solutions to this common problem
rene




-
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]




a WebSphere Studio scenario, was: Struts Tools

2003-02-05 Thread Thomas L Roche
Thomas L Roche <[EMAIL PROTECTED]> Wed, 5 Feb 2003 18:37:04 -0500
>> [WSSD's Web Diagram Editor (WDE)] allows you to graphically design
>> a Struts application by drawing modules, actions, formbeans (and
>> regular javabeans), JSPs (and other web pages), etc and their
>> connections (kinda like your item 1). The items can be named at
>> "design-time," and you can then "realize" your design by launching
>> wizards from it.

ROSSEL Olivier Wednesday, February 05, 2003 12:58 PM
>> Does WSSD handle coordination between Action names in
>> struts-config.xml and in JSPs  ?

Yes. To illustrate:



here's a longer scenario. But first, 3 notes:

* The WSSD referenced is version 5.0 (not 4.x) with efix 1 (for an
  embarassingly self-inflicted bug. Not inflicted by _my_self,
  fortunately :-)

* This scenario uses Struts 1.0 for simplicity, but our tools also
  have 1.1 support.

* As previously mentioned,

Sri Sankaran Wed, 5 Feb 2003 13:04:18 -0500
> WSSD also has this "next generation wizard" that they call
> Cheatsheet. It literally walks you

  figuratively !-)

> through the process of building a Struts-based application.

  If you use the cheatsheet, it will automate (e.g. intelligently
  preset defaults for) even more of this. Use the cheatsheet by
  choosing, from the main menu,

  Help>Cheat Sheets>Create a Struts-based Web application

So here's another scenario to answer your question, from start
(blank workspace) to finish (test on server):

* Create a Struts project: launch the Web Project wizard (e.g. Ctrl-n,
  Web, Web Project), check "Add Struts support," give it a name (e.g.
  HelloWorld), hit Finish. (WPW allows you to choose Struts version,
  resource bundles, etc, copies your jars, sets classpaths, etc.
  For this, we take the defaults.)

  This will cause your workbench to go into Web perspective. If you're
  not there already, go to the J2EE Navigator view. (This is another
  thing that cheatsheet automates.)

* Create a web diagram (e.g. Ctrl-n, Web, Struts, Web Diagram): launch
  the Web Diagram wizard, give it a name, hit Finish. This creates a
  web diagram file (which is XML and works with the open Graphical
  Editor Framework, http://www.eclipse.org/gef) and puts you in its
  editor, WDE (which we do pronounce "woody," thank you, Sri :-)

In the WDE, add the following "blobs" (which represent not-yet-created
Struts artifacts). Note that adding is done by right-clicking on an
empty space, choosing New, and choosing kind of thing.

* Add a web page named /index.jsp

* Add a web page named /response.jsp

* Add an action mapping named /hello

* Add a form-bean named messageForm

Connect them: right-click on the source thingy>Connection and
draw to its target.

* Connect /index.jsp to /hello.

* Connect /hello to /response.jsp (and name the forward "success").

* Connect /response.jsp to /index.jsp.

* Connect /hello to messageForm.

* Connect messageForm to /response.jsp.

* Save the diagram (e.g. with C-s). This is good to do periodically :-)

Note that the icons are greyish and outlined: this indicates that they
are "unrealized," i.e. that you haven't created corresponding
artifacts. So let's create them now:

* Double-click /index.jsp: this launches the JSP Wizard to create it.
  Make sure the "Struts JSP" code generation model is selected, hit
  Finish. (If you're in the cheatsheet, it will take care of that, et
  al, for you.)

  This puts you in the file's editor (called Page Designer (PD)).
  Switch to the Source pane: you should see something like (minus
  citing)

> 
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> 
> 
> <%@ page 
> language="java"
> contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"
> %>
> 
> 
> 
>type="text/css">
> 
> 

> 
> 
> 
> 
> 

  Remember that you connected /index.jsp to /hello? WDE remembered,
  too: so there's the answer to your question.

But, since I'm "on a roll":

* Remaining in the Source pane, insert some code into the form. E.g.
  make it

+ 
+ Hello World Example
+ 
+ Enter your Name: 
+ Get the Message
+ 
+ 

* Switch to the Design pane to see it rendered nicely. Save and close
  the file.

* Double-click /response.jsp to launch the JSPW, remember to select
  the "Struts JSP" codegen model, hit "Finish". In PD you should see

> 
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> 
> 
> <%@ page 
> language="java"
> contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"
> %>
> 
> 
> 
>type="text/css">
> 
> 
> 
> Place response.jsp's content here.
> 
> 

* Replace "Place response.jsp's content here." with your code, e.g.

+ 
+ Hello World Sample Application Response
+ 
+ 
+ Message:
+ 
+ 
+ Click here to return to the Home Page
+ 

* Check the rendering in the Design pane, save and close the file.

* Double-click messageForm to launch the ActionForm wi

Re: [OT] concurrent updates

2003-02-05 Thread Christopher Willingham
when user A retrieves data also get a last updated timestamp from table.
When you go to update, use that in your where clause.  If row not found,
someone else changed the row while user A went to get coffee.  Automatically
refreshing with message in that event would be nice.

- or -

use a transaciton table to incorporate a checkout scheme, ie, when user goes
to modify a customer, add transaction row to check customer out.  Anyone
else attempting will find it already checked out and will be denied.

I've done both in large systems

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 7:39 PM
Subject: Re: [OT] concurrent updates


> The answer is... what do you want it to be?
>
>
> I  You dao updates via reflection does update via the primary key.
> Last one wins.
> or
> II You dao updates via reflection for all the changed fields.
> Both could win or 2nd one fails.
> or
> III Your dao update via reflection for all the fields or via data/time.
> It fails always if any changes.
>
> If you did not understand this, just use choice I. This has nothing to
> do with patterns, and everything to do with SQL.
>
> .V
>
>
>
> [EMAIL PROTECTED] wrote:
> > pls excuse my struts-[OT] question, but I would appreciate to learn how
you
> > handle the situation of concurrent data update within your web
> > applications.
> >
> > think about the following situation:
> > 1. user A fetches customer 007 and displays 007 within his browser
> > 2. user B fetches customer 007 as well and displays 007 within his
browser
> > 3. user A updates customer 007
> > 4. user B updates customer 007 as well...
> >
> > How do your systems react?
> > a) the last update wins?
> > b) trying to merge updates of user A and B?
> > c) sending a message to user B that customer 007 was changed since
loading,
> > and that user B has to re-enter his update
> > or d) do you have a locking mechanism which prevents this situation ->
user
> > B has no "update" button if customer 007 is already in somebody else's
> > update screen
> > or e) ???
> >
> > thanks for sharing your solutions to this common problem
> > rene
>
>
>
> -
> 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: logic:equal problem

2003-02-05 Thread rajiv ahuja
toString()  worked

Thanks David





_
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: Design and Datasource question

2003-02-05 Thread Christopher Willingham
subclass dispatch action.  in execute method store the results from your
jndi lookup in the servlet context then pass it to your data access objects
which will then get connections from container pool(or your own).  you only
want to do the lookup once.  if its ejb, you'll need to duplicate similar
arrangement in that container.


- Original Message -
From: "Tolle Krez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 8:42 PM
Subject: Re: Design and Datasource question


> I dont think it is good practice to pass datasource from Action class to
your business
> beans.
> http://marc.theaimsgroup.com/?l=struts-user&m=104333643909577&w=2
> http://marc.theaimsgroup.com/?l=struts-user&m=104182416102397&w=2
>
> I feel using JNDI to get datasource is the best choice. Others - i should
have searched
> the archives properly. i apologize.
>
> Thanks
>
> - Original Message -
> From: "Vic Cekvenich" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 7:44 PM
> Subject: Re: Design and Datasource question
>
>
> > Some people get a connection in Action, and pass it in many ways to DAO.
> >
> > I get a connection in DAO (via DBCP). Ex:
> >
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/src/b
asicWebLib/org
>
/apache/basicWebLib/DAO/BasicDAOImpl.java?rev=1.2&content-type=text/vnd.view
cvs-markup
> >
> > .V
> >
> > Tolle Krez wrote:
> > > I am a newbie to struts and started with the struts-example
application.  And modified
> it
> > > a bit and learning.. . It looks like there are no separate model
classes and all
> business
> > > logic exists in the Action classes itself. I am thinking of separate
them. The
> Datasource
> > > settings are in my struts-config file and they are obtained in the
Action class using
> > > servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY)) .
> > >
> > > My question is, if I separate the business logic and database access
away from Action
> > > classes, how to I do get access to the datasource and connection pool.
> > >
> > > PS: I am not using EJB and only plain java classes to access the
database and for
> > > business logics.
> > >
> > > Any help is appreciated
> > >
> > > T
> >
> >
> >
> > -
> > 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]




News about JavaServer Faces?

2003-02-05 Thread Rabih Yazbeck
Long time since we heard about JavaServer Faces, anything new? Final
Draft? Version 1.0 of the reference implementation? when/where or what
is going on with JavaServer Faces and Struts?




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




RE: Date format question

2003-02-05 Thread Garth Patil
if you are not using the jstl tags, you can also put a convenience method in 
your bean that looks something like this. refer to the java.text.DateFormat 
javadoc for how to format based on the parameters you pass to 
getDateTimeInstance.

public String getDateFormatted() {
  DateFormat df = 
DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.SHORT);
  return df.format(getDate());
}



From: "John Espey" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Date format question
Date: Wed, 5 Feb 2003 19:36:23 -0600

the JSTL format parseDate tag will do the trick for you

-Original Message-
From: Swish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 7:34 PM
To: Struts Users Mailing List
Subject: Date format question



Hello,

I was wondering if there is a way to use the  tag to convert a
string in sql time stamp format to a format of my choosing. I believe one
can write a Date object out using , but
can I convert a string "2002-12-25 00:00:00" to 12/25/2002.  Thanks in
advance for your suggestions!!!



-
Post your free ad now! Yahoo! Canada Personals


-
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: Design and Datasource question

2003-02-05 Thread Tolle Krez
I dont think it is good practice to pass datasource from Action class to your business
beans.
http://marc.theaimsgroup.com/?l=struts-user&m=104333643909577&w=2
http://marc.theaimsgroup.com/?l=struts-user&m=104182416102397&w=2

I feel using JNDI to get datasource is the best choice. Others - i should have searched
the archives properly. i apologize.

Thanks

- Original Message -
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 7:44 PM
Subject: Re: Design and Datasource question


> Some people get a connection in Action, and pass it in many ways to DAO.
>
> I get a connection in DAO (via DBCP). Ex:
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/src/basicWebLib/org
/apache/basicWebLib/DAO/BasicDAOImpl.java?rev=1.2&content-type=text/vnd.viewcvs-markup
>
> .V
>
> Tolle Krez wrote:
> > I am a newbie to struts and started with the struts-example application.  And 
>modified
it
> > a bit and learning.. . It looks like there are no separate model classes and all
business
> > logic exists in the Action classes itself. I am thinking of separate them. The
Datasource
> > settings are in my struts-config file and they are obtained in the Action class 
>using
> > servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY)) .
> >
> > My question is, if I separate the business logic and database access away from 
>Action
> > classes, how to I do get access to the datasource and connection pool.
> >
> > PS: I am not using EJB and only plain java classes to access the database and for
> > business logics.
> >
> > Any help is appreciated
> >
> > T
>
>
>
> -
> 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: Date format question

2003-02-05 Thread John Espey
the JSTL format parseDate tag will do the trick for you

-Original Message-
From: Swish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 7:34 PM
To: Struts Users Mailing List
Subject: Date format question



Hello,

I was wondering if there is a way to use the  tag to convert a
string in sql time stamp format to a format of my choosing. I believe one
can write a Date object out using , but
can I convert a string "2002-12-25 00:00:00" to 12/25/2002.  Thanks in
advance for your suggestions!!!



-
Post your free ad now! Yahoo! Canada Personals


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




Date format question

2003-02-05 Thread Swish

Hello,

I was wondering if there is a way to use the  tag to convert a string in 
sql time stamp format to a format of my choosing. I believe one can write a Date 
object out using , but can I convert a string 
"2002-12-25 00:00:00" to 12/25/2002.  Thanks in advance for your suggestions!!!



-
Post your free ad now! Yahoo! Canada Personals



Re: Design and Datasource question

2003-02-05 Thread Vic Cekvenich
Some people get a connection in Action, and pass it in many ways to DAO.

I get a connection in DAO (via DBCP). Ex:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/src/basicWebLib/org/apache/basicWebLib/DAO/BasicDAOImpl.java?rev=1.2&content-type=text/vnd.viewcvs-markup

.V

Tolle Krez wrote:

I am a newbie to struts and started with the struts-example application.  And modified it
a bit and learning.. . It looks like there are no separate model classes and all business
logic exists in the Action classes itself. I am thinking of separate them. The Datasource
settings are in my struts-config file and they are obtained in the Action class using
servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY)) .

My question is, if I separate the business logic and database access away from Action
classes, how to I do get access to the datasource and connection pool.

PS: I am not using EJB and only plain java classes to access the database and for
business logics.

Any help is appreciated

T




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




Re: [OT] concurrent updates

2003-02-05 Thread Vic Cekvenich
The answer is... what do you want it to be?


I  You dao updates via reflection does update via the primary key.
Last one wins.
or
II You dao updates via reflection for all the changed fields.
Both could win or 2nd one fails.
or
III Your dao update via reflection for all the fields or via data/time.
It fails always if any changes.

If you did not understand this, just use choice I. This has nothing to 
do with patterns, and everything to do with SQL.

.V



[EMAIL PROTECTED] wrote:
pls excuse my struts-[OT] question, but I would appreciate to learn how you
handle the situation of concurrent data update within your web
applications.

think about the following situation:
1. user A fetches customer 007 and displays 007 within his browser
2. user B fetches customer 007 as well and displays 007 within his browser
3. user A updates customer 007
4. user B updates customer 007 as well...

How do your systems react?
a) the last update wins?
b) trying to merge updates of user A and B?
c) sending a message to user B that customer 007 was changed since loading,
and that user B has to re-enter his update
or d) do you have a locking mechanism which prevents this situation -> user
B has no "update" button if customer 007 is already in somebody else's
update screen
or e) ???
 
thanks for sharing your solutions to this common problem
rene



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




RE: Struts menu not loading Help required

2003-02-05 Thread Raible, Matt
Make sure you have the latest version from
http://sf.net/projects/struts-menu and then add the following to
struts-config.xml:






HTH,

Matt

> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 5:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts menu not loading Help required
> 
> 
> You are possibly of track.
> 
> You just configure struts menu via XML and you are set, it 
> emits JavaScript.
> See the examples like baseBeans.com that uses struts menu (source in 
> basicPortal.com), and the example that comes with struts menu 
> war file.
> 
> .V
> 
> Souravmay Das wrote:
> > Hi ,
> >I am having a stable struts version in my machine but 
> wanted to go for struts-menu in order to 
> > have it up and running in my machine , I tried to change 
> the init() functionality of ActionServlet
> > with following codes:
> > 
> > String menuConfig = 
> this.getServletConfig().getInitParameter("menuConfig");
> > if (menuConfig != null) {
> >   MenuRepository repository = new MenuRepository();
> >   repository.setLoadParam(menuConfig);
> >   repository.setServlet(this);
> > 
> >   try {
> >   repository.load();
> >   this.getServletContext().
> >   
> setAttribute(MenuRepository.MENU_REPOSITORY_KEY, repository);
> >   } catch (LoadableResourceException lre) 
> > 
> > 
> > also gave the required init parameters{menuConfig} in the 
> web.xml file.
> > 
> > When i start the server , init function fails with 
> following errors.
> > java.lang.AbstractMethodError
> > at 
> org.apache.commons.digester.Digester.getXMLReader(Digester.java:607)
> > at 
> org.apache.commons.digester.Digester.parse(Digester.java:1302)
> > at com.fgm.web.menu.MenuRepository.load(Unknown Source)
> > at 
> tavant.webutil.struts.action.ActionServlet.init(ActionServlet.java:56
> > )
> > at 
> javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > 
> > Any idea how to load the repository , I donot mind hard 
> coding it .but I donot want to use 
> >  unstable builds as it may have effects on other applications.
> > 
> > Regards,
> > Souravmay Das
> > 
> > 
> 
> 
> 
> -
> 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]




Design and Datasource question

2003-02-05 Thread Tolle Krez
I am a newbie to struts and started with the struts-example application.  And modified 
it
a bit and learning.. . It looks like there are no separate model classes and all 
business
logic exists in the Action classes itself. I am thinking of separate them. The 
Datasource
settings are in my struts-config file and they are obtained in the Action class using
servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY)) .

My question is, if I separate the business logic and database access away from Action
classes, how to I do get access to the datasource and connection pool.

PS: I am not using EJB and only plain java classes to access the database and for
business logics.

Any help is appreciated

T



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




Re: Struts menu not loading Help required

2003-02-05 Thread Vic Cekvenich
You are possibly of track.

You just configure struts menu via XML and you are set, it emits JavaScript.
See the examples like baseBeans.com that uses struts menu (source in 
basicPortal.com), and the example that comes with struts menu war file.

.V

Souravmay Das wrote:
Hi ,
   I am having a stable struts version in my machine but wanted to go for struts-menu in order to 
have it up and running in my machine , I tried to change the init() functionality of ActionServlet
with following codes:

String menuConfig = this.getServletConfig().getInitParameter("menuConfig");
if (menuConfig != null) {
  MenuRepository repository = new MenuRepository();
  repository.setLoadParam(menuConfig);
  repository.setServlet(this);

  try {
  repository.load();
  this.getServletContext().
  setAttribute(MenuRepository.MENU_REPOSITORY_KEY, repository);
  } catch (LoadableResourceException lre) 


also gave the required init parameters{menuConfig} in the web.xml file.

When i start the server , init function fails with following errors.
java.lang.AbstractMethodError
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:607)
at org.apache.commons.digester.Digester.parse(Digester.java:1302)
at com.fgm.web.menu.MenuRepository.load(Unknown Source)
at tavant.webutil.struts.action.ActionServlet.init(ActionServlet.java:56
)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)

Any idea how to load the repository , I donot mind hard coding it .but I donot want to use 
 unstable builds as it may have effects on other applications.

Regards,
Souravmay Das





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




[ANNOUNCE] Easy Struts 0.6.3 for Eclipse is out

2003-02-05 Thread Emmanuel Boudrant
Hi, 

As promised, I just released Easy Struts 0.6.3 for Eclipse. This release has no new 
features, only
bug correction.

- Changes on 0.6.3
Fix root dir problem with Tomcat Sysdeo plugin
Fix roles generation in 
XML elements forward/form-property/exception/set-property respect DTD order

http://easystruts.sf.net

To be continued...

Thx,
-emmanuel

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




RE: logic:equal problem

2003-02-05 Thread Karr, David
> -Original Message-
> From: rajiv ahuja [mailto:[EMAIL PROTECTED]]
> 
> Hi
> 
> I am trying to use logic:equal tag to check whether a bean property is
> equal
> to another bean property or not. I am getting following error
> 
> cannot resolve the synmbol: setValue(currentVar) location EqualTag
> 
> Following is the code
> 
> 
> 
> 
> 
> 
> 
> 

Try "<%= currentVar.toString() %>".

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




Re: Struts Tools

2003-02-05 Thread Thomas L Roche
<[EMAIL PROTECTED]> Wednesday, February 05, 2003 11:35 AM
> I don´t know if I'm asking to the right list,

This would be it.

> I'd like to know what's the best IDE/tool to help construction web
> applications with Struts. I've seen some tools in the Struts
> resources page but I'm not impressed with them.

> In truth, I thought in a tool helping us to 

Let's make a list, and call this item 0:

> 'draw' pages with areas (tiles), buttons, input boxes, etc, in a way
> that we can access its properties and configure its name, validation
> rules, default values and so on.

item 1:

> After creating our 'views', we could make the sequence of pages,
> like forward and redirect pages; and all visually.

item 2:

> After all, the tool could generate my JSPs and the struts-config.xml
> file correctly. 

item 3:

> From the input boxes we could know what input fields the view need
> and generate the expected DynaBeans, with the respectives
> validations rules (previously setted). Following this idea, I thing
> we can generate our Views, FormBeans (DynaBeans) and Validations,
> and the ActionBean's skeleton; the user will just need to program
> the business rules

Take a look at the Struts tools in WebSphere Studio. The Struts Tools
are found in the Site Developer bundle (WSSD), and all above (e.g.
WSAD, WSED). (Basically all WS* are bundles of plugins for Eclipse,
and they form a sequence of subsets: WSSD < WSAD < WSED.)

It is not so full-functioned as your requirements (but we're still
working :-) Notably it does not have a "GUI builder" (item 0) yet.
However it has something else that's very cool: a Web Diagram Editor
(WDE).

WDE allows you to graphically design a Struts application by drawing
modules, actions, formbeans (and regular javabeans), JSPs (and other
web pages), etc and their connections (kinda like your item 1). The
items can be named at "design-time," and you can then "realize" your
design by launching wizards from it.

Consider the following micro-scenario:

* Right-click on the diagram>New>Action. Name it "/foo".

* Right-click on the diagram>New>Web Page. Name it "/index.jsp".

* Right-click on foo>Connection, connect it to index.jsp. Name the
  connection "success". (The diagram already knows that it's a
  forward.)

* Double-click on index.jsp: this launches the JSP wizard. In it you
  can choose many things (e.g. taglibs), but we'll just hit Finish:
  this generates a file with all the default cruft, and puts you in an
  editor. 

  The JSP editor has 3 panes. One is Source, which is a standard editor
  (but with code completion, syntax highlighting, etc). Another is
  Design: this allows you to do some (admittedly very limited) visual
  building. The more interesting thing about it is, if you enter your
  Struts tags in the Source pane, you can see them visually rendered
  in the Design pane, without having to deploy them to your webserver.

* Double-click on /foo: this launches the action mapping wizard. It
  already knows that your mapping's path=/foo, and it has a forward
  with name=success and path=/index.jsp. If you click Next to see its
  second page, you see that it assumes that you want to create an
  Action class: by default, /foo -> FooAction, superclass=
  o.a.s.a.Action. (Several more options, all of which can be
  overriden, are also preset.) Hit Finish to generate the class and
  the mapping.

Does this little scenario more-or-less resemble your items 1-3? It's
not "view-centric," but it does allow you to visually design and build
a Struts application. (WDE also has an analytic capability: you can
take an existing application, drag part of it into a diagram, and draw
the connections to or from it. If the part you drag in is a welcome
page, and you choose Draw All, you can see all the parts in the app,
and all their connections.)

Our tools have many more capabilities (and we're working on even
more), but I don't want to bore you. Feel free to ask more questions
about WSSD on its newsgroup

news://news.software.ibm.com:119/ibm.software.websphere.studio.application-site-developer

or your friendly local IBM marketing person. (They are everywhere, and
many speak Portuguese much better than I :-)

> Thanks all and sorry my bad english.

No problema, esperança este ajud,
Tom Roche <[EMAIL PROTECTED]> IBM WSSD Struts Tools

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




logic:equal problem

2003-02-05 Thread rajiv ahuja
Hi

I am trying to use logic:equal tag to check whether a bean property is equal 
to another bean property or not. I am getting following error

cannot resolve the synmbol: setValue(currentVar) location EqualTag


Following is the code




   
   
   


Thanks
Rajiv



_
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]



NPE problem when using both errors/messages tag.

2003-02-05 Thread Richard Mixon

I'm getting an NPE in the generated JSP/Java whenever I try to display both
an errors and messages queue on a JSP page.

I image it is something pretty embarrasingly simple, but I've been after it
for over a day. Thanks in advance

Here's the NPE:

  java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:389)
at
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:
229)
at
org.apache.struts.taglib.html.MessagesTag.doStartTag(MessagesTag.java:250)
at org.apache.jsp.ContactUs$jsp._jspService(ContactUs$jsp.java:873)
...

The generated JSP Java code fragment is:
   ...
   try {
 int _jspx_eval_html_messages_1 = _jspx_th_html_messages_1.doStartTag();
 if (_jspx_eval_html_messages_1 !=
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {, like
   ...

Here are the tags in my page (its the second " 


  

  

  


  

  

  


My action does a save on both the ActionErrors and ActionMessages objects,
though only one should actually end up with a message in it.
   ...
 messages.add(
   ActionMessages.GLOBAL_MESSAGE,
   new ActionMessage("msg.email.sent"));
 System.err.println("... Retrieved all fields from form");
   } catch (Exception e) {
 System.err.println("Error trying to send email");
 success = false;
 errors.add(
   ActionMessages.GLOBAL_MESSAGE,
 new ActionError("error.email.not.sent"));
   throw e;
   } finally {
 System.err.println("... Finished one way or the other.");
 saveMessages(request,messages);
 saveErrors(request,errors);
   }
   ...

Thanks again for any ideas -

Richard Mixon
email: [EMAIL PROTECTED]



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




RE: Lost in beans

2003-02-05 Thread Mike Ash
Thanks, at least your home, I'm still here ;(, I am going to try and
implement this, I'll let you know what happens.

-Original Message-
From: Matthew Meyer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 5:16 PM
To: Struts Users Mailing List
Subject: Re: Lost in beans


I was thinking about this more on my way home from work.. :)  As far as
doing it as a hack I would simply implement and register the converter as
anonymous class.


   


   


Then in your initServlet()...
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.beanutils.Converter;

ConvertUtils.register(new Converter(){
  public Object convert(Class type, Object value){
 return
DynaActionFormClass.getDynaActionFormClass((String)value).newInstance();
  }
   }, DynaActionForm.Class);

Then when the app initialized DynaActionFormClass.newInstance() is called
for a TestForm it looks for a converter for the class DynaActionForm to set
the initial value an passes it the name "NestedTestForm."

Like I said before though didn't have time to test this today you might run
into other problems, and it would be much better if there was a permanent
solution..

Matt,



- Original Message -
From: "Mike Ash" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 4:36 PM
Subject: RE: Lost in beans


> Now its getting interesting, I was starting to look at a converter
solution
> as well but didn't get anywhere, got some concrete example I could admire?
>
> -Original Message-
> From: Matthew Meyer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 4:29 PM
> To: Struts Users Mailing List
> Subject: Re: Lost in beans
>
>
> I was actually looking for an easy way to do just this
> (nest Dynas) for 4 hours today..
> The easiest hack(at least in my mind a hack) is to write a
> beanutils Converter to convert from a string to
> DynaActionFrom.
> Then when DynaActionFormClass.newInstance() sets the
> inital property values have your converter registered, and
> make sure the inital property in the XML for you nested
> DynaForm it set to the DynaForm you want to use. Then just
> implement the converter to do
>
> public Object convert(Class type, Object value){
> return
> DynaActionFormClass.getDynaActionFormClass((String)value).newInstance();
>
> }
>
> I have not tested this yet as I would like a better way
> but I would call it a decent 'HACK'.
>
> Matt,
>
> On Wed, 5 Feb 2003 15:32:03 -0600
>   Mike Ash <[EMAIL PROTECTED]> wrote:
> >Guess its time to look at contributing...geez more coding
> >outside of
> >work...wife is going to love it
> >
> >-Original Message-
> >From: J Beginner [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, February 05, 2003 3:31 PM
> >To: Struts Users Mailing List
> >Subject: RE: Lost in beans
> >
> >
> >Yes, I am back to extending ActionForm and
> >ValidatorForm.
> >I hope that nested DynaForms will be supported in the
> >near future.
> >
> >--- "Pani, Gourav" <[EMAIL PROTECTED]>
> >wrote:
> >> You can extend the ValidatorForm and use the
> >> validator framework.
> >>
> >> -Original Message-
> >> From: Mike Ash [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, February 05, 2003 4:25 PM
> >> To: 'Struts Users Mailing List'
> >> Subject: RE: Lost in beans
> >>
> >>
> >> So if your not using dynaforms are you back to
> >> extending actionform?  If so
> >> are you not using the validator framework either?
> >>
> >> -Original Message-
> >> From: J Beginner [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, February 05, 2003 3:19 PM
> >> To: Struts Users Mailing List
> >> Subject: Re: Lost in beans
> >>
> >>
> >> This is exactly the same as to what I am trying to
> >> do...no luck so far.
> >> I reverted back to using no DynaForms.
> >>
> >> --- Mike Ash <[EMAIL PROTECTED]> wrote:
> >> > Is it possible or is there a better way to do
> >> > something like
> >> >
> >> >
> >> >
> >> >>> > name="User"
> >> >
> >> >
> >>
> >type="org.apache.struts.validator.DynaValidatorForm">
> >> >   >> > type="java.lang.String" />
> >> >   >> > type="java.lang.String" />
> >> >  >> > name="Addredd"
> >> >
> >> >
> >> type="org.apache.struts.validator.DynaValidatorForm"
> >> > >
> >> >  >> > type="java.lang.String" />
> >> >  >> > type="java.lang.String" />
> >> >   
> >> > 
> >> > >> >
> >> >
> >> > Basically looking for a way to nest beans in the
> >> > struts config and use them
> >> > in forms/actions/validation.
> >> >
> >> > Thanks
> >> >
> >>
> >>
> >> __
> >> Do you Yahoo!?
> >> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> >> now.
> >> http://mailplus.yahoo.com
> >>
> >>
> >-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >>
> >>
> >-

Re: Lost in beans

2003-02-05 Thread Matthew Meyer
I was thinking about this more on my way home from work.. :)  As far as
doing it as a hack I would simply implement and register the converter as
anonymous class.


   


   


Then in your initServlet()...
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.beanutils.Converter;

ConvertUtils.register(new Converter(){
  public Object convert(Class type, Object value){
 return
DynaActionFormClass.getDynaActionFormClass((String)value).newInstance();
  }
   }, DynaActionForm.Class);

Then when the app initialized DynaActionFormClass.newInstance() is called
for a TestForm it looks for a converter for the class DynaActionForm to set
the initial value an passes it the name "NestedTestForm."

Like I said before though didn't have time to test this today you might run
into other problems, and it would be much better if there was a permanent
solution..

Matt,



- Original Message -
From: "Mike Ash" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 4:36 PM
Subject: RE: Lost in beans


> Now its getting interesting, I was starting to look at a converter
solution
> as well but didn't get anywhere, got some concrete example I could admire?
>
> -Original Message-
> From: Matthew Meyer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 4:29 PM
> To: Struts Users Mailing List
> Subject: Re: Lost in beans
>
>
> I was actually looking for an easy way to do just this
> (nest Dynas) for 4 hours today..
> The easiest hack(at least in my mind a hack) is to write a
> beanutils Converter to convert from a string to
> DynaActionFrom.
> Then when DynaActionFormClass.newInstance() sets the
> inital property values have your converter registered, and
> make sure the inital property in the XML for you nested
> DynaForm it set to the DynaForm you want to use. Then just
> implement the converter to do
>
> public Object convert(Class type, Object value){
> return
> DynaActionFormClass.getDynaActionFormClass((String)value).newInstance();
>
> }
>
> I have not tested this yet as I would like a better way
> but I would call it a decent 'HACK'.
>
> Matt,
>
> On Wed, 5 Feb 2003 15:32:03 -0600
>   Mike Ash <[EMAIL PROTECTED]> wrote:
> >Guess its time to look at contributing...geez more coding
> >outside of
> >work...wife is going to love it
> >
> >-Original Message-
> >From: J Beginner [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, February 05, 2003 3:31 PM
> >To: Struts Users Mailing List
> >Subject: RE: Lost in beans
> >
> >
> >Yes, I am back to extending ActionForm and
> >ValidatorForm.
> >I hope that nested DynaForms will be supported in the
> >near future.
> >
> >--- "Pani, Gourav" <[EMAIL PROTECTED]>
> >wrote:
> >> You can extend the ValidatorForm and use the
> >> validator framework.
> >>
> >> -Original Message-
> >> From: Mike Ash [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, February 05, 2003 4:25 PM
> >> To: 'Struts Users Mailing List'
> >> Subject: RE: Lost in beans
> >>
> >>
> >> So if your not using dynaforms are you back to
> >> extending actionform?  If so
> >> are you not using the validator framework either?
> >>
> >> -Original Message-
> >> From: J Beginner [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, February 05, 2003 3:19 PM
> >> To: Struts Users Mailing List
> >> Subject: Re: Lost in beans
> >>
> >>
> >> This is exactly the same as to what I am trying to
> >> do...no luck so far.
> >> I reverted back to using no DynaForms.
> >>
> >> --- Mike Ash <[EMAIL PROTECTED]> wrote:
> >> > Is it possible or is there a better way to do
> >> > something like
> >> >
> >> >
> >> >
> >> >>> > name="User"
> >> >
> >> >
> >>
> >type="org.apache.struts.validator.DynaValidatorForm">
> >> >   >> > type="java.lang.String" />
> >> >   >> > type="java.lang.String" />
> >> >  >> > name="Addredd"
> >> >
> >> >
> >> type="org.apache.struts.validator.DynaValidatorForm"
> >> > >
> >> >  >> > type="java.lang.String" />
> >> >  >> > type="java.lang.String" />
> >> >   
> >> > 
> >> > >> >
> >> >
> >> > Basically looking for a way to nest beans in the
> >> > struts config and use them
> >> > in forms/actions/validation.
> >> >
> >> > Thanks
> >> >
> >>
> >>
> >> __
> >> Do you Yahoo!?
> >> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> >> now.
> >> http://mailplus.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]
> >>
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Afforda

RE: Converting to DynaValidatorForm

2003-02-05 Thread Wendy Smoak
Craig wrote:
> The magic is there inside copyProperties() already :-).  It and nearly
> every other BeanUtils and PropertyUtils method already does the right
> thing when you use either a DynaBean or a standard JavaBean.  So, you
> should be able to switch your from bean to DynaValidatorForm and not have
> to modify the above statement.

I've broken a different part of the project now so I can't test this, but
does it seem reasonable that this would not work (it doesn't):

private void prepopulateForm( ActionForm form, Contact contact )
  throws ServletException
   {  
   BeanUtils.copyProperties( form, contact );
   
but that this might:

   DynaValidatorForm dvForm = (DynaValidatorForm) form;
   BeanUtils.copyProperties( dvForm, contact );

When I switched to DynaValidatorForm, the copyProperties stopped working.
Can BeanUtils be expected to "know" that my form really is a
DynaValidatorForm if I do not make the cast?  (It doesn't seem to...)

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



Re: How to access a valueObject inside a Map?

2003-02-05 Thread David Graham
You should use the jstl  tag to display bean info.

David




From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 22:31:38 +

Thanks. Which tag I should use? Bean tag?


From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 15:26:31 -0700

You can do this with something like this in either a jstl tag or struts 
tag:

myHashMap("key").myVOProperty

David



From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 22:17:30 +

No one is helping me out, or it's too easy a question? :)

I know how to do it through script. Just wondering can I use any struts 
bean tag to do it?

Thanks

From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 20:38:47 +

I have a bean which is a HashMap in the session. I want to access a 
specific valueObject in the map based on a Key. And then show the 
information inside the valueObject.

Should I define a bean for the valueObject? How?

_
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]
N

_
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]


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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]


_
The new MSN 8: smart spam 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: [Tiles] loses current url

2003-02-05 Thread Kevin Tung
A step back may be the best thing in this case..

The overall problem is, one of the tiles component in my app is a survey.
The survey form is mapped to an action "Poll.do".  When someone answers the
survey, the result is taken and they should end up on the same exact page,
except that the survey section now shows the result of the survey instead of
the form.  Essentially the survey form should post to an action that will
send the browser right back to the same URL, the survey component will
detect whether or not the user has responded and show the correct content
(form or result).

I'm currently doing this via a session var that stores the "correct" url for
the user (the var is set in a filter that handles all *.do urls), and using
that to foward the user back to the same page.  Just wondering if there were
some struts/tiles utility that could do this for me.

If Struts/Tiles is doing a "redirect" to get the browser to the layout.jsp
file.. couldn't it somehow save the original url in tilesContext or
something like that?  Might be helpful for other applications too.

Hope this is clearer than my previous posts.

Thanks,
Kevin


-Original Message-
From: Rob Kischuk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 5:26 PM
To: 'Struts Users Mailing List'
Subject: RE: [Tiles] loses current url


I think to solve your problem, you're going to need to define the problem in
broader terms.  A redirect is much like a forward, except the client doesn't
know about it.  Once the Action has executed and mapped to a page, a
redirect is executed (unless you specify a forward).  Either way, what this
means is that after Struts finds the URL to access after it processes your
action, the request is against that JSP, and the previous request URL is
gone from the HTTP headers.

What's the overall problem you're trying to solve?  That may be a better
approach, because given the parameters of the current problem, you're walled
in with nowhere to go.  It sounds like perhaps you're trying to solve some
sort of navigation or form population problem?

-Rob

-Original Message-
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 5:05 PM
To: Struts Users Mailing List
Subject: RE: [Tiles] loses current url


Ok.. I think I over-simplified my scenario :) sorry.

What I have in fact, is the following





in the tiles-defs.xml file. and



in the struts-config file

When I access the url http://myhost/Layout.do the request.getRequestURL()
call from both the layout.jsp and the header.jsp files return
"http://myhost/layout.jsp"; and not "http://myhost/Layout.do";

Is this by design? is there anyway to get the correct "original" url from
within these jsp pages?

Thanks,
Kevin

-Original Message-
From: Rob Kischuk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: [Tiles] loses current url


In the header file, try request.getRequestURL() - it should give you the
page that was called.  Tiles effectively does a jsp:insert, which means that
the request parameters are the same for any included tiles.

-Rob

-Original Message-
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:17 PM
To: Struts-user
Subject: [Tiles] loses current url


Is there anyway for a tiles component to detect the URL that was used to
call up the page in the first place?

For example,

http://myhost/mypage1.jsp
http://myhost/mypage2.jsp

may both contain a tiles:insert tag that points to /myheader.jsp

is there anyway for the header file to detect which of the two url's were
called by the user?  Without adding code in mypage1 & mypage2 to save the
url in the session/request/page/application scope.  And without adding
request parameters to the tiles:insert tag.

Is this possible with Struts 1.1b3?

Thanks,
Kevin



-
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: DynaValidatorForm exception.

2003-02-05 Thread Jay Wright

In looking at the stack trace, the exception is
java.lang.NoClassDefFoundError.  This means that the class definition could
not be found to instantiate the class.  For struts - does that mean it
cannot find DynaActionFormClass (from the stack trace) or that it cannot
find DynaValidatorForm as defined in the struts-config.xml file:



Interestingly enough, both of these classes are in the same jar file as the
class that is trying to instantiate it:
org.apache.struts.util.RequestUtils.createActionForm.

So is this a class loader problem?  My struts jar is in the WEB-INF/lib
directory.  

Is this a timing issue?  When does struts load the struts-config.xml and try
to create the form beans (such as verifyForm)?

--

SEVERE: Error creating form bean of class verifyForm
java.lang.NoClassDefFoundError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at
org.apache.struts.action.DynaActionFormClass.newInstance(DynaActionFormClass
.java:238)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:611)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:635)
at org.apache.jsp.verify$jsp._jspService(verify$jsp.java:97)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

> -Original Message-
> From: Jay Wright [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 4:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: DynaValidatorForm exception.
> 
> 
> 
> I've seen a number of postings regarding a ServletException 
> that is thrown
> when a struts tag can't create a DynaValidatorForm:
> 
> javax.servlet.ServletException: Exception creating bean of class
> org.apache.struts.validator.DynaValidatorForm: {1}
> 
> Basically, when we restart tomcat (4.0.4 on unix, struts 
> 1.1-b2) we are
> likely to see this error the first time we try to access our 
> webapp.  But
> then a second (sometimes third) restart of tomcat will clear 
> the problem and
> the webapps will function properly.  
> 
> Is there any reason for this?  Does it have to do with the 
> location of the
> struts jar file?  Does it need to be in the WEB-INF/lib or 
> the common/lib or
> other part of the path?
> 
> Has anyone been able to overcome this annoyance?
> 
> Jay
> 
> -
> 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 best pracice

2003-02-05 Thread Cory Newey
Naggi:

We're not using EJBs in our project, but we are writing data to a
database.  Here is how we are doing the conversion from form bean to
data bean (value bean in your case).

public abstract class BaseBean {
   public abstract String getQueryString();
   public abstract PreparedStatement getUpdateStatement(Connection
dbConn);

   public void populate(Connection dbConn) {
   ... read the database to fill out the bean fields ...
   }

   public void persist(Connection dbConn) {
  ... write bean fields to database ...
   }

   public void setFromForm(ActionForm form) {
  ... move fields from form to data bean ...
   }
}

All of our data beans extend BaseBean.  BaseBean then utilizes
Reflection to determine getters and setters and also any conversion that
needs to occur.  This has worked pretty well for us since it allows us
to keep our various data beans very simple with all of the heavy lifting
occurring in the BaseBean.

--Cory


>>> [EMAIL PROTECTED] 02/05/03 01:02PM >>>
These conversions have always worried me.  I've never done this on a
huge 
project so I don't know how performance is.  For what it's worth, it's

considered best practice to make these conversions.

David



>From: "Rao, Nagraj" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: Struts best pracice
>Date: Wed, 5 Feb 2003 14:57:41 -0500
>
>Hi all,
>We are planning the framwork for struts and the  genral opinion is hat
we
>have the following layers
>
>[Web]=(form beans)==>[Action class]=(conversion from form to Value
>Objects)=> [EJBs]
>and Vice-versa for results..
>
>But the above approach need a lot of conversions
>Example:
>getting stuff from "Forms" and setting it into Value Objects before we
call
>the EJB.
>* Is'nt this crumbsome given that there will be around 80-100 screens
>
>*Also is there a pattern to convert the Form bean attributes in to
some 
>sort
>of a generic "QueryObjects" and have the EJBs decipher the
QueryObjects and
>thus make it really generic.
>I was tring to design a QueryObject which was something like :
>
>
>public interface RequestSearchCriteria {
>   public  void addCondition(Condition condition);
>   public Vector getCriteria();
>}
>
>Where COndition is:
>public abstract class Condition {
>   /* list of Conditions */
>   EQUALTO =1
>   NOTEQUALTO =2
>   GREATERTHAN =3
>   LESSTHAN =4
>   SORTBY =5
>
>public Condition(String attribute, Object value, boolean needsValue,
int
>condition)
>   {
>   this.attribute = attribute;
>   this.value = value;
>   this.needsValue = needsValue;
>   this.condition = condition;
>
>   }
>}
>But it never really took me anywhere as each EJB seem to have
specific
>queries and the fear that we might not be able to make it generic
enough..
>
>I was wondering if anyone had some ideas or statergies which are
good.
>
>Much appreciated,
>Naggi
>
>
>
>-
>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] 


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




RE: How to access a valueObject inside a Map?

2003-02-05 Thread Derek Shen
Thanks. Understand what you mean. I think it's something about the design 
pattern. Since struts is new, we are all try to find some best 
practice/pattern.

Personally, I do not like to create too many Actions. It's hard to manage 
them. Routine operations, like get a value bean from map bean, should be 
able to be handled by the tag library.

From: Rob Kischuk <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: How to access a valueObject inside a Map?
Date: Wed, 5 Feb 2003 17:19:24 -0500

I think a shift in how you approach your JSPs and Actions will get you the
most mileage here.  It seems that by storing this map in session, you're
trying to get around ever creating any additional references to it.  What
I'd suggest is that you handle this in your Action.

In your action, fetch the object from the map using the key, then store 
that
valueObject in the request.  The page can then access the object using the
request-scoped bean.  I think you're trying to do too much through the
session/page combination, and not enough in your Action.

-Rob

-Original Message-
From: Derek Shen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 5:18 PM
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?


No one is helping me out, or it's too easy a question? :)

I know how to do it through script. Just wondering can I use any struts 
bean

tag to do it?

Thanks

>From: "Derek Shen" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How to access a valueObject inside a Map?
>Date: Wed, 05 Feb 2003 20:38:47 +
>
>I have a bean which is a HashMap in the session. I want to access a
>specific valueObject in the map based on a Key. And then show the
>information inside the valueObject.
>
>Should I define a bean for the valueObject? How?
>
>_
>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]
N

_
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]


_
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: Lost in beans

2003-02-05 Thread Mike Ash
Now its getting interesting, I was starting to look at a converter solution
as well but didn't get anywhere, got some concrete example I could admire?

-Original Message-
From: Matthew Meyer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: Lost in beans


I was actually looking for an easy way to do just this 
(nest Dynas) for 4 hours today..
The easiest hack(at least in my mind a hack) is to write a 
beanutils Converter to convert from a string to 
DynaActionFrom.
Then when DynaActionFormClass.newInstance() sets the 
inital property values have your converter registered, and 
make sure the inital property in the XML for you nested 
DynaForm it set to the DynaForm you want to use. Then just 
implement the converter to do

public Object convert(Class type, Object value){
return 
DynaActionFormClass.getDynaActionFormClass((String)value).newInstance();

}

I have not tested this yet as I would like a better way 
but I would call it a decent 'HACK'.

Matt,

On Wed, 5 Feb 2003 15:32:03 -0600 
  Mike Ash <[EMAIL PROTECTED]> wrote:
>Guess its time to look at contributing...geez more coding 
>outside of
>work...wife is going to love it
>
>-Original Message-
>From: J Beginner [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 05, 2003 3:31 PM
>To: Struts Users Mailing List
>Subject: RE: Lost in beans
>
>
>Yes, I am back to extending ActionForm and
>ValidatorForm.
>I hope that nested DynaForms will be supported in the
>near future.
>
>--- "Pani, Gourav" <[EMAIL PROTECTED]>
>wrote:
>> You can extend the ValidatorForm and use the
>> validator framework.
>> 
>> -Original Message-
>> From: Mike Ash [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, February 05, 2003 4:25 PM
>> To: 'Struts Users Mailing List'
>> Subject: RE: Lost in beans
>> 
>> 
>> So if your not using dynaforms are you back to
>> extending actionform?  If so
>> are you not using the validator framework either?
>> 
>> -Original Message-
>> From: J Beginner [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, February 05, 2003 3:19 PM
>> To: Struts Users Mailing List
>> Subject: Re: Lost in beans
>> 
>> 
>> This is exactly the same as to what I am trying to
>> do...no luck so far.
>> I reverted back to using no DynaForms.
>> 
>> --- Mike Ash <[EMAIL PROTECTED]> wrote:
>> > Is it possible or is there a better way to do
>> > something like
>> > 
>> > 
>> >
>> >   > > name="User" 
>> >
>> >
>>
>type="org.apache.struts.validator.DynaValidatorForm">
>> >  > > type="java.lang.String" />
>> >  > > type="java.lang.String" />
>> >> >name="Addredd"
>> >   
>> >
>> type="org.apache.struts.validator.DynaValidatorForm"
>> > >
>> >> > type="java.lang.String" />
>> >> > type="java.lang.String" />
>> >
>> > 
>> >> > 
>> > 
>> > Basically looking for a way to nest beans in the
>> > struts config and use them
>> > in forms/actions/validation.
>> > 
>> > Thanks
>> > 
>> 
>> 
>> __
>> Do you Yahoo!?
>> Yahoo! Mail Plus - Powerful. Affordable. Sign up
>> now.
>> http://mailplus.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]
>> 
>
>
>__
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.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: How to access a valueObject inside a Map?

2003-02-05 Thread Derek Shen
Thanks. Which tag I should use? Bean tag?


From: "David Graham" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 15:26:31 -0700

You can do this with something like this in either a jstl tag or struts 
tag:

myHashMap("key").myVOProperty

David



From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 22:17:30 +

No one is helping me out, or it's too easy a question? :)

I know how to do it through script. Just wondering can I use any struts 
bean tag to do it?

Thanks

From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 20:38:47 +

I have a bean which is a HashMap in the session. I want to access a 
specific valueObject in the map based on a Key. And then show the 
information inside the valueObject.

Should I define a bean for the valueObject? How?

_
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]
N

_
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]


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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: [Tiles] loses current url

2003-02-05 Thread Rob Kischuk
I think to solve your problem, you're going to need to define the problem in
broader terms.  A redirect is much like a forward, except the client doesn't
know about it.  Once the Action has executed and mapped to a page, a
redirect is executed (unless you specify a forward).  Either way, what this
means is that after Struts finds the URL to access after it processes your
action, the request is against that JSP, and the previous request URL is
gone from the HTTP headers.

What's the overall problem you're trying to solve?  That may be a better
approach, because given the parameters of the current problem, you're walled
in with nowhere to go.  It sounds like perhaps you're trying to solve some
sort of navigation or form population problem?

-Rob

-Original Message-
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 5:05 PM
To: Struts Users Mailing List
Subject: RE: [Tiles] loses current url


Ok.. I think I over-simplified my scenario :) sorry.

What I have in fact, is the following





in the tiles-defs.xml file. and



in the struts-config file

When I access the url http://myhost/Layout.do the request.getRequestURL()
call from both the layout.jsp and the header.jsp files return
"http://myhost/layout.jsp"; and not "http://myhost/Layout.do";

Is this by design? is there anyway to get the correct "original" url from
within these jsp pages?

Thanks,
Kevin

-Original Message-
From: Rob Kischuk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: [Tiles] loses current url


In the header file, try request.getRequestURL() - it should give you the
page that was called.  Tiles effectively does a jsp:insert, which means that
the request parameters are the same for any included tiles.

-Rob

-Original Message-
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:17 PM
To: Struts-user
Subject: [Tiles] loses current url


Is there anyway for a tiles component to detect the URL that was used to
call up the page in the first place?

For example,

http://myhost/mypage1.jsp
http://myhost/mypage2.jsp

may both contain a tiles:insert tag that points to /myheader.jsp

is there anyway for the header file to detect which of the two url's were
called by the user?  Without adding code in mypage1 & mypage2 to save the
url in the session/request/page/application scope.  And without adding
request parameters to the tiles:insert tag.

Is this possible with Struts 1.1b3?

Thanks,
Kevin



-
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: Lost in beans

2003-02-05 Thread Matthew Meyer
I was actually looking for an easy way to do just this 
(nest Dynas) for 4 hours today..
The easiest hack(at least in my mind a hack) is to write a 
beanutils Converter to convert from a string to 
DynaActionFrom.
Then when DynaActionFormClass.newInstance() sets the 
inital property values have your converter registered, and 
make sure the inital property in the XML for you nested 
DynaForm it set to the DynaForm you want to use. Then just 
implement the converter to do

public Object convert(Class type, Object value){
   return 
DynaActionFormClass.getDynaActionFormClass((String)value).newInstance();

}

I have not tested this yet as I would like a better way 
but I would call it a decent 'HACK'.

Matt,

On Wed, 5 Feb 2003 15:32:03 -0600 
 Mike Ash <[EMAIL PROTECTED]> wrote:
Guess its time to look at contributing...geez more coding 
outside of
work...wife is going to love it

-Original Message-
From: J Beginner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:31 PM
To: Struts Users Mailing List
Subject: RE: Lost in beans


Yes, I am back to extending ActionForm and
ValidatorForm.
I hope that nested DynaForms will be supported in the
near future.

--- "Pani, Gourav" <[EMAIL PROTECTED]>
wrote:
You can extend the ValidatorForm and use the
validator framework.

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 4:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost in beans


So if your not using dynaforms are you back to
extending actionform?  If so
are you not using the validator framework either?

-Original Message-
From: J Beginner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:19 PM
To: Struts Users Mailing List
Subject: Re: Lost in beans


This is exactly the same as to what I am trying to
do...no luck so far.
I reverted back to using no DynaForms.

--- Mike Ash <[EMAIL PROTECTED]> wrote:
> Is it possible or is there a better way to do
> something like
> 
> 
>
>name="User" 
>
>

type="org.apache.struts.validator.DynaValidatorForm">

>  
> type="java.lang.String" />
>  
> type="java.lang.String" />
> 	
> 	name="Addredd"
> 	   
>
type="org.apache.struts.validator.DynaValidatorForm"
> >
> 	
> type="java.lang.String" />
> 	
> type="java.lang.String" />
>   	
> 
>
> 
> 
> Basically looking for a way to nest beans in the
> struts config and use them
> in forms/actions/validation.
> 
> Thanks
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
now.
http://mailplus.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]




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: How to access a valueObject inside a Map?

2003-02-05 Thread David Graham
You can do this with something like this in either a jstl tag or struts tag:

myHashMap("key").myVOProperty

David




From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 22:17:30 +

No one is helping me out, or it's too easy a question? :)

I know how to do it through script. Just wondering can I use any struts 
bean tag to do it?

Thanks

From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 20:38:47 +

I have a bean which is a HashMap in the session. I want to access a 
specific valueObject in the map based on a Key. And then show the 
information inside the valueObject.

Should I define a bean for the valueObject? How?

_
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]
N

_
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]


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



RE: How to access a valueObject inside a Map?

2003-02-05 Thread Rob Kischuk
I think a shift in how you approach your JSPs and Actions will get you the
most mileage here.  It seems that by storing this map in session, you're
trying to get around ever creating any additional references to it.  What
I'd suggest is that you handle this in your Action.

In your action, fetch the object from the map using the key, then store that
valueObject in the request.  The page can then access the object using the
request-scoped bean.  I think you're trying to do too much through the
session/page combination, and not enough in your Action.

-Rob

-Original Message-
From: Derek Shen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 5:18 PM
To: [EMAIL PROTECTED]
Subject: Re: How to access a valueObject inside a Map?


No one is helping me out, or it's too easy a question? :)

I know how to do it through script. Just wondering can I use any struts bean

tag to do it?

Thanks

>From: "Derek Shen" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How to access a valueObject inside a Map?
>Date: Wed, 05 Feb 2003 20:38:47 +
>
>I have a bean which is a HashMap in the session. I want to access a 
>specific valueObject in the map based on a Key. And then show the 
>information inside the valueObject.
>
>Should I define a bean for the valueObject? How?
>
>_
>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]
N

_
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]




Struts 1.1b, Jboss 3.0.4 and Jetty.

2003-02-05 Thread Clark Wright

Couple of questions:

The first one is rather minor:

I am constantly getting messages of the following format in the jboss log file:

2003-02-05 17:14:43,686 ERROR [STDERR] Feb 5, 2003 5:14:43 PM 
org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', 
returnNull=true

How does one get struts to not dump to STDERR, but instead use log4j ?

The second question is much harder:

I'm moving from JBoss 3.0 to 3.0.4 and the new version of JBoss/Jetty 
appears to be completely refusing to serve content that is struts enabled.

In the log (set to debug), I see the successful deployment of the EAR, but 
when I go to the index page, I see several of the above messages, and then 
nothing.

No JSP init messages,
No Stacks, no errors, no nothing.

It doesn't even appear that the jsp's are being compiled.

Any suggestions or pointers to figure out why/where/how its failing would 
be appreciated.

thanks,

- clark.


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



Re: How to access a valueObject inside a Map?

2003-02-05 Thread Derek Shen
No one is helping me out, or it's too easy a question? :)

I know how to do it through script. Just wondering can I use any struts bean 
tag to do it?

Thanks

From: "Derek Shen" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to access a valueObject inside a Map?
Date: Wed, 05 Feb 2003 20:38:47 +

I have a bean which is a HashMap in the session. I want to access a 
specific valueObject in the map based on a Key. And then show the 
information inside the valueObject.

Should I define a bean for the valueObject? How?

_
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]
N

_
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]



Use of RequestActionForm

2003-02-05 Thread Brahme, Supriya (ENJ)
Hi,
Can we use RequestActionForm to define scope of the bean programmatically to Request? 
If yes then how? If not then where is this class used?
Thanks
Supriya
 
 
 



Re: Struts Tools

2003-02-05 Thread alexj
JDevelopper have a really good integration for oracle db developpement I had
bad experiences with integration for other db. (for buisness component
project
and wizard like that) But it's a good IDE (I prefere Eclipse rigth now :)

--
Alexandre Jaquet

- Original Message -
From: "P Dunham" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 8:40 PM
Subject: RE: Struts Tools


Oracle's Jdeveloper 9i has struts wizards.
BTW-
Do many people use JDeveloper 9i? I don't hear much about it. If so, what
opinions do you have on it?
-Philip

-Original Message-
From: Expedito Reinaldo da Silva Júnior
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 11:35 AM
To: [EMAIL PROTECTED]
Subject: Struts Tools

Hi, All!

I don´t know if I'm asking to the right list, but I have a question: I'd
like to know what's the best IDE/tool to help construction web applications
with Struts. I've seen some
tools in the Struts resources page but I'm not impressed with them. In
truth, I thought in a tool helping us to 'draw' pages with areas (tiles),
buttons,
input boxes, etc, in a way that we can access its properties and configure
its
name, validation rules, default values and so on. After creating our
'views', we could make the sequence of pages, like forward and redirect
pages; and all visually. After all, the tool could generate my JSPs and the
struts-config.xml
file correctly. From the input boxes we could know what input fields the
view need
and generate the expected DynaBeans, with the respectives validations
rules (previously setted). Following this idea, I thing we can generate our
Views, FormBeans (DynaBeans) and Validations, and the ActionBean's
skeleton; the user will just need to program the business rules
(ActionForm.execute()).

I've recently searched for drawing tools to create such 'framework' (or ide)
and I find that MS Visio and System Architect has features that could
produce this results. In truth, I want something like AllienFactory
(http://www.alien-factory.co.uk/struts/struts-index.html), but doing much
more things visually.

A few days ago, I've managed some training courses and I find that the big
problem about the Java Language and the technologies it involves are the
IDEs
we have! They are very poor (I don't know about JBuilder... I know it's very
good...)!!! How can we convince VB and Delphi programmers to migrate to
Java with such tools?? So, I was looking at ASP .NET and its IDE facilities
(I sugest you to know and you will undertand me) and that time I thougth
'why cannot we have something like this'?? I really don't like the
'DarkSide', but
its framework helps a lot its programmers.

Struts is the right framework,
because its MVC separation allow us to generate a tool to reach such
facilities. What do you think about it? Please help me make Java very
easy besides a great language!!! I know that good Java programmers are also
great experts in Design Patterns, architects and so on, but our language
(Java) can really grow substancially in the world with such programmer's
requisites??? Don't you think a great IDE could help?

Thanks all and sorry my bad english.

Expedito Jr.

-
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: [Tiles] loses current url

2003-02-05 Thread Kevin Tung
Ok.. I think I over-simplified my scenario :) sorry.

What I have in fact, is the following





in the tiles-defs.xml file. and



in the struts-config file

When I access the url http://myhost/Layout.do the request.getRequestURL()
call from both the layout.jsp and the header.jsp files return
"http://myhost/layout.jsp"; and not "http://myhost/Layout.do";

Is this by design? is there anyway to get the correct "original" url from
within these jsp pages?

Thanks,
Kevin

-Original Message-
From: Rob Kischuk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: [Tiles] loses current url


In the header file, try request.getRequestURL() - it should give you the
page that was called.  Tiles effectively does a jsp:insert, which means that
the request parameters are the same for any included tiles.

-Rob

-Original Message-
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:17 PM
To: Struts-user
Subject: [Tiles] loses current url


Is there anyway for a tiles component to detect the URL that was used to
call up the page in the first place?

For example,

http://myhost/mypage1.jsp
http://myhost/mypage2.jsp

may both contain a tiles:insert tag that points to /myheader.jsp

is there anyway for the header file to detect which of the two url's were
called by the user?  Without adding code in mypage1 & mypage2 to save the
url in the session/request/page/application scope.  And without adding
request parameters to the tiles:insert tag.

Is this possible with Struts 1.1b3?

Thanks,
Kevin



-
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: redirect="true" not working

2003-02-05 Thread David Graham



1. How do I verify the version of struts.jar I am using?  I am pretty >sure 
that I am using 1.0.2.  The date on my file in my project lib >directory is 
2/9/2002.  This matches the struts.jar on my harddrive >under the 
jakarta-struts-1.0.2 directory so I guess I am using the >right version.

You can look at the manifest file inside the jar.


2. Is there more to redirects that just putting redirect="true" into >the 
forward?

No.



3. A redirect should change the URL address to UserList.do as I expect, 
>correct?

Yes.



I would prefer this approach over tokens since it seems more simple.  
>Although if I  can't get this working correctly then I will have no 
>choice but to go with tokens.

Note that redirecting just makes it a little harder to submit the same form 
twice on accident.  Using tokens will completely prevent double submission 
regardless of redirects.  Tokens are *really* easy to use.

David


_
The new MSN 8: smart spam 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: [OT] [IDE War] Java IDE choices

2003-02-05 Thread David Graham


Jeez, how many times are you going to berate people for not doing something
which you yourself are not doing?!?


Vic probably didn't use [OT] in case the people he was directing his 
comments at filtered OT posts.

David

_
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]



Re: form naming

2003-02-05 Thread Vinay
Yes You'all are right . My mistake, I should have noticed that before..

Anyway

Thank you very much for the help

Vinay
- Original Message -
From: "Claude Betancourt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 4:21 PM
Subject: Re: form naming


> Vinay,
>
> Refer to the struts documentation for details on how to use the html tag.
> In short, the form name struts will plug in there is the same one you
> specify in the struts-config.xml file for the given action.
>
> -c
>
>
> - Original Message -
> From: "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 4:15 PM
> Subject: RE: form naming
>
>
> > struts names the form for you, did you try 'View Source'?  the form name
> > will be the same as the form-bean name in struts-config.xml, all you
need
> in
> > html:form is the action.
> >
> > --
> > Voytek Jarnot
> > Quidquid latine dictum sit, altum viditur.
> >
> >
> > > -Original Message-
> > > From: Vinay [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 05, 2003 3:06 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: form naming
> > >
> > >
> > > Yes I looked at the file struts-html.tld
> > > I did the following
> > >
> > > 
> > >
> > > I got the following error
> > >
> > > org.apache.jasper.JasperException: Must specify type
> > > attribute if name is
> > > specified
> > >
> > > Then I went ahead and did the following
> > >
> > >  > > type="com.mdp.Hold">
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > I got the following error
> > >
> > > org.apache.jasper.JasperException: Exception creating bean of class
> > > net.mdp.hold.HoldTrans: java.lang.ClassCastException:
> > > net.mdp.hold.HoldTrans
> > >
> > >
> > > This is just for JavaScript purposes, I don't know what it is
> > > looking for
> > >
> > > Thanks for any help
> > >
> > > Vinay
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Pani, Gourav" <[EMAIL PROTECTED]>
> > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, February 05, 2003 3:51 PM
> > > Subject: RE: form naming
> > >
> > >
> > > > Please consult the struts-html.tld file for syntax
> > > formatting issues.
> > > >
> > > > -Original Message-
> > > > From: Vinay [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, February 05, 2003 3:48 PM
> > > > To: Struts Users Mailing List
> > > > Subject: form naming
> > > >
> > > >
> > > > How can I name a
> > > >
> > > > 
> > > >
> > > >
> > > > 
> > > >
> > > > How can I do this using 
> > > >
> > > > I have to do JavaScript functions using that.
> > > >
> > > >
> > > > Thanks
> > > >
> > > > help appreciated
> > > >
> > > > Vinay
> > > >
> > > >
> > > >
> > > -
> > > > 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: Lost in beans

2003-02-05 Thread Mike Ash
True, not sure what I was thinking about that except that you can't nest the
dynaValidatorForm beans in the struts-config either , which is what I really
prefer.

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:29 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost in beans


You can extend the ValidatorForm and use the validator framework.

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 4:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost in beans


So if your not using dynaforms are you back to extending actionform?  If so
are you not using the validator framework either?

-Original Message-
From: J Beginner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:19 PM
To: Struts Users Mailing List
Subject: Re: Lost in beans


This is exactly the same as to what I am trying to
do...no luck so far.
I reverted back to using no DynaForms.

--- Mike Ash <[EMAIL PROTECTED]> wrote:
> Is it possible or is there a better way to do
> something like
> 
> 
>
>name="User" 
>
>
type="org.apache.struts.validator.DynaValidatorForm">
>   type="java.lang.String" />
>   type="java.lang.String" />
>  name="Addredd"
>  
> type="org.apache.struts.validator.DynaValidatorForm"
> >
>type="java.lang.String" />
>type="java.lang.String" />
>   
> 
> 
> 
> Basically looking for a way to nest beans in the
> struts config and use them
> in forms/actions/validation.
> 
> Thanks
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: Lost in beans

2003-02-05 Thread Craig R. McClanahan


On Wed, 5 Feb 2003, Mike Ash wrote:

>
> Guess its time to look at contributing...geez more coding outside of
> work...wife is going to love it
>

Trust me, wives really *can* be forgiving!

Craig McClanahan (who wrote the original draft of Struts on a Memorial Day
Weekend "vacation" trip to the beach :-)

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




[OT] RE: [Validator] indexed property validation

2003-02-05 Thread Guptill, Josh
Is your email program broken?  Or do you just like to send duplicate
messages?

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 5:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [Validator] indexed property validation


Yes!
Vic

"Brandon Goodin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Can Validator validate indexed properties.
>
> For example:
>
> 
> 
> 
>
> How could I make sure that element[0].value validates to an integer and
then
> validate element[1].value and make sure it contains an alpha-based entry.
> So, in other words... Can I validate different indexes of a property with
> different Validation rules? Can I even validate an indexed property?
>
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws




-
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: [Validator] indexed property validation

2003-02-05 Thread Vic Cekvenich
Yes!
Vic

"Brandon Goodin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Can Validator validate indexed properties.
>
> For example:
>
> 
> 
> 
>
> How could I make sure that element[0].value validates to an integer and
then
> validate element[1].value and make sure it contains an alpha-based entry.
> So, in other words... Can I validate different indexes of a property with
> different Validation rules? Can I even validate an indexed property?
>
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws




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




RE: Lost in beans

2003-02-05 Thread Mike Ash
Guess its time to look at contributing...geez more coding outside of
work...wife is going to love it

-Original Message-
From: J Beginner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:31 PM
To: Struts Users Mailing List
Subject: RE: Lost in beans


Yes, I am back to extending ActionForm and
ValidatorForm.
I hope that nested DynaForms will be supported in the
near future.

--- "Pani, Gourav" <[EMAIL PROTECTED]>
wrote:
> You can extend the ValidatorForm and use the
> validator framework.
> 
> -Original Message-
> From: Mike Ash [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Lost in beans
> 
> 
> So if your not using dynaforms are you back to
> extending actionform?  If so
> are you not using the validator framework either?
> 
> -Original Message-
> From: J Beginner [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: Lost in beans
> 
> 
> This is exactly the same as to what I am trying to
> do...no luck so far.
> I reverted back to using no DynaForms.
> 
> --- Mike Ash <[EMAIL PROTECTED]> wrote:
> > Is it possible or is there a better way to do
> > something like
> > 
> > 
> >
> >> name="User" 
> >
> >
>
type="org.apache.struts.validator.DynaValidatorForm">
> >   > type="java.lang.String" />
> >   > type="java.lang.String" />
> >  > name="Addredd"
> >
> >
> type="org.apache.struts.validator.DynaValidatorForm"
> > >
> >  > type="java.lang.String" />
> >  > type="java.lang.String" />
> > 
> > 
> > > 
> > 
> > Basically looking for a way to nest beans in the
> > struts config and use them
> > in forms/actions/validation.
> > 
> > Thanks
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.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]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



RE: Lost in beans

2003-02-05 Thread J Beginner
Yes, I am back to extending ActionForm and
ValidatorForm.
I hope that nested DynaForms will be supported in the
near future.

--- "Pani, Gourav" <[EMAIL PROTECTED]>
wrote:
> You can extend the ValidatorForm and use the
> validator framework.
> 
> -Original Message-
> From: Mike Ash [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Lost in beans
> 
> 
> So if your not using dynaforms are you back to
> extending actionform?  If so
> are you not using the validator framework either?
> 
> -Original Message-
> From: J Beginner [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: Lost in beans
> 
> 
> This is exactly the same as to what I am trying to
> do...no luck so far.
> I reverted back to using no DynaForms.
> 
> --- Mike Ash <[EMAIL PROTECTED]> wrote:
> > Is it possible or is there a better way to do
> > something like
> > 
> > 
> >
> >> name="User" 
> >
> >
>
type="org.apache.struts.validator.DynaValidatorForm">
> >   > type="java.lang.String" />
> >   > type="java.lang.String" />
> >  > name="Addredd"
> >
> >
> type="org.apache.struts.validator.DynaValidatorForm"
> > >
> >  > type="java.lang.String" />
> >  > type="java.lang.String" />
> > 
> > 
> > > 
> > 
> > Basically looking for a way to nest beans in the
> > struts config and use them
> > in forms/actions/validation.
> > 
> > Thanks
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.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]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Lost in beans

2003-02-05 Thread Pani, Gourav
You can extend the ValidatorForm and use the validator framework.

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 4:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost in beans


So if your not using dynaforms are you back to extending actionform?  If so
are you not using the validator framework either?

-Original Message-
From: J Beginner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:19 PM
To: Struts Users Mailing List
Subject: Re: Lost in beans


This is exactly the same as to what I am trying to
do...no luck so far.
I reverted back to using no DynaForms.

--- Mike Ash <[EMAIL PROTECTED]> wrote:
> Is it possible or is there a better way to do
> something like
> 
> 
>
>name="User" 
>
>
type="org.apache.struts.validator.DynaValidatorForm">
>   type="java.lang.String" />
>   type="java.lang.String" />
>  name="Addredd"
>  
> type="org.apache.struts.validator.DynaValidatorForm"
> >
>type="java.lang.String" />
>type="java.lang.String" />
>   
> 
> 
> 
> Basically looking for a way to nest beans in the
> struts config and use them
> in forms/actions/validation.
> 
> Thanks
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: Lost in beans

2003-02-05 Thread Mike Ash
So if your not using dynaforms are you back to extending actionform?  If so
are you not using the validator framework either?

-Original Message-
From: J Beginner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:19 PM
To: Struts Users Mailing List
Subject: Re: Lost in beans


This is exactly the same as to what I am trying to
do...no luck so far.
I reverted back to using no DynaForms.

--- Mike Ash <[EMAIL PROTECTED]> wrote:
> Is it possible or is there a better way to do
> something like
> 
> 
>
>name="User" 
>
>
type="org.apache.struts.validator.DynaValidatorForm">
>   type="java.lang.String" />
>   type="java.lang.String" />
>  name="Addredd"
>  
> type="org.apache.struts.validator.DynaValidatorForm"
> >
>type="java.lang.String" />
>type="java.lang.String" />
>   
> 
> 
> 
> Basically looking for a way to nest beans in the
> struts config and use them
> in forms/actions/validation.
> 
> Thanks
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



Announce: Live Internet based Intermediate Struts Training by "Best Training" as voted by Java Developers Journal.

2003-02-05 Thread Vic Cekvenich
Live Internet based Intermediate Struts Training by "Best Training" as voted
by Java Developers Journal. Learn good (best?) practices of web application
development!



-Multi row processing to DB

-Master/Detail processing

-Java Script Navigation

+ lots more, full agenda available, and It's all practical, no theory from
me!

Plus ask for a wish list to cover and ask questions!





Scared?  The labs are doable. Clients like BEA, Borland, Cisco, IBM, etc.
already did the hand on in person labs. That is how baseBeans.com got voted
for "Best Training" by Java Developers Journal. I am willing to put it on
the line! by teaching the class over the web via WebEx.com.  I really want
to be the teach of the year next year as well!

I also did Struts project recovery, and worked on 40,000 concurrent users
Struts site, I guess I did more Struts training than all others combined,
plus more.

I am cretified OO instructor, certified SQL performance and Tuning, J2EE
certified and Java Certified by 3 different J2EE vendors! You will enjoy the
class and learn, guranteed.



The title of the class is "Pretenders vs. Pros" used to be Best and Worst
Practices. This is version 3 of my intermediate advanced class.



You charges will be mostly for the WebEx + voice, so you can see my screen.
When you register early, you will get a CD mailed to you with the lab
materials. (International clients will have another way)

If you register earlier, you get a cheaper price, goes up every few days,
just like for seminars, the later your register, the more you pay.

Since the cost is low, you can only register via the web, no P.O. or checks.



To find the price, to discuss the class before hand, as well as lab
questions later, etc. sign up at

http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers

I will also publish the full agenda on that mail list shortly, as well as
the price for today!

Please use the MVC mail list! ( I was thinking to use Struts list for
training but not)



 WebEx charges me $0.55 per minute per Student. So 4 hours cost without much
else .,

if you register today, the price will be about half of what the final
registration price is!

Click here to register (link will be up later today f- or an online class)

http://www.basebeans.com/do/classReservation

(the price changes the closer you get to date so I will not publish, but I
am doing it for almost Free on the Open Source principles. Also, the charge
is per connection, so you can split the costs with several budies that can
see/hear the screen. No 2 way speaker phones for WebEx plz.)



The class will meet over 4 weeks, Saturdays at 10 AM Eastern on WebEx for
about an hour or a bit more or less. My goal is to start on the 2/22.

You should have a DSL or Cable connection, ( not sure how modem will work,
Web Ex says yeah, I say nay. Maybe you can go to work on Saturday?), and the
call in on a phone # to hear voice

You will have a mail list and newsgroup to ask questions on, I expect a lot
of questions on the labs.



This is NOT a intro to MVC, it is suitable for people that did one
Struts/MVC project or are very familiar with Servelts/JDBC/JSP/SQL. If you
are a Struts experienced, this is the class for you! If you are new to Java
/ Web, this is not class for you. It help if you have production web/mvc
experience.



This is NOT for hands off types, it is lab based, for each hour of lecture,
there is at least 8 hours of labs each week. I promise the labs will be
challenging.

If you cant or don't do the web labs, the next lesson will make no sense to
you. Not doing "home work" labs, you will be invited not to attend the rest.
I want to avoid pretenders, and nurturer pros.





Questions? Comments? On the MVC mail list or Struts list.



.V




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




Re: form naming

2003-02-05 Thread Claude Betancourt
Vinay,

Refer to the struts documentation for details on how to use the html tag.
In short, the form name struts will plug in there is the same one you
specify in the struts-config.xml file for the given action.

-c


- Original Message -
From: "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 4:15 PM
Subject: RE: form naming


> struts names the form for you, did you try 'View Source'?  the form name
> will be the same as the form-bean name in struts-config.xml, all you need
in
> html:form is the action.
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -Original Message-
> > From: Vinay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 05, 2003 3:06 PM
> > To: Struts Users Mailing List
> > Subject: Re: form naming
> >
> >
> > Yes I looked at the file struts-html.tld
> > I did the following
> >
> > 
> >
> > I got the following error
> >
> > org.apache.jasper.JasperException: Must specify type
> > attribute if name is
> > specified
> >
> > Then I went ahead and did the following
> >
> >  > type="com.mdp.Hold">
> > 
> >
> > 
> >
> > 
> >
> > I got the following error
> >
> > org.apache.jasper.JasperException: Exception creating bean of class
> > net.mdp.hold.HoldTrans: java.lang.ClassCastException:
> > net.mdp.hold.HoldTrans
> >
> >
> > This is just for JavaScript purposes, I don't know what it is
> > looking for
> >
> > Thanks for any help
> >
> > Vinay
> >
> >
> >
> > - Original Message -
> > From: "Pani, Gourav" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 05, 2003 3:51 PM
> > Subject: RE: form naming
> >
> >
> > > Please consult the struts-html.tld file for syntax
> > formatting issues.
> > >
> > > -Original Message-
> > > From: Vinay [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 05, 2003 3:48 PM
> > > To: Struts Users Mailing List
> > > Subject: form naming
> > >
> > >
> > > How can I name a
> > >
> > > 
> > >
> > >
> > > 
> > >
> > > How can I do this using 
> > >
> > > I have to do JavaScript functions using that.
> > >
> > >
> > > Thanks
> > >
> > > help appreciated
> > >
> > > Vinay
> > >
> > >
> > >
> > -
> > > 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: Lost in beans

2003-02-05 Thread J Beginner
This is exactly the same as to what I am trying to
do...no luck so far.
I reverted back to using no DynaForms.

--- Mike Ash <[EMAIL PROTECTED]> wrote:
> Is it possible or is there a better way to do
> something like
> 
> 
>
>name="User" 
>
>
type="org.apache.struts.validator.DynaValidatorForm">
>   type="java.lang.String" />
>   type="java.lang.String" />
>  name="Addredd"
>  
> type="org.apache.struts.validator.DynaValidatorForm"
> >
>type="java.lang.String" />
>type="java.lang.String" />
>   
> 
> 
> 
> Basically looking for a way to nest beans in the
> struts config and use them
> in forms/actions/validation.
> 
> Thanks
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: form naming

2003-02-05 Thread Jarnot Voytek Contr AU HQ/SC
struts names the form for you, did you try 'View Source'?  the form name
will be the same as the form-bean name in struts-config.xml, all you need in
html:form is the action.

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


> -Original Message-
> From: Vinay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 3:06 PM
> To: Struts Users Mailing List
> Subject: Re: form naming 
> 
> 
> Yes I looked at the file struts-html.tld
> I did the following
> 
> 
> 
> I got the following error
> 
> org.apache.jasper.JasperException: Must specify type 
> attribute if name is
> specified
> 
> Then I went ahead and did the following
> 
>  type="com.mdp.Hold">
> 
> 
> 
> 
> 
> 
> I got the following error
> 
> org.apache.jasper.JasperException: Exception creating bean of class
> net.mdp.hold.HoldTrans: java.lang.ClassCastException: 
> net.mdp.hold.HoldTrans
> 
> 
> This is just for JavaScript purposes, I don't know what it is 
> looking for
> 
> Thanks for any help
> 
> Vinay
> 
> 
> 
> - Original Message -
> From: "Pani, Gourav" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 3:51 PM
> Subject: RE: form naming
> 
> 
> > Please consult the struts-html.tld file for syntax 
> formatting issues.
> >
> > -Original Message-
> > From: Vinay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 05, 2003 3:48 PM
> > To: Struts Users Mailing List
> > Subject: form naming
> >
> >
> > How can I name a
> >
> > 
> >
> >
> > 
> >
> > How can I do this using 
> >
> > I have to do JavaScript functions using that.
> >
> >
> > Thanks
> >
> > help appreciated
> >
> > Vinay
> >
> >
> > 
> -
> > 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: example or tutorial for struts + mysql

2003-02-05 Thread Karr, David
> -Original Message-
> From: Rachel [mailto:[EMAIL PROTECTED]]
> 
> Hi
> 
> Does anyone have, or know of a simple example or tutorial for
accessing
> mysql data with Struts?
> 
> I'm building a simple application using Struts with Tiles and need to
be
> able to retrieve articles from mySQL. I'm an ASP developer and having
> difficulties with the actual logic of what I'm supposed to be doing
here,
> and could do with a gentle shove in the right direction!

One important step is learning about the "Web MVC" paradigm for
structuring web applications.  When you learn this, you'll realize that
all access to external data sources is done indirectly in your Action
subclasses.  No business logic is put into your view pages.  It might be
worthwhile to get one of the recent books about Struts.  The only one
I've read is "Struts in Action", which I found to be pretty good, and it
will cover the high and low level details of what you need to learn to
get past this.



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




Re: Approaches to security

2003-02-05 Thread Vic Cekvenich
Goo deal, good question.

See Craig's response on Security filter.
Then in action you can find the users role and pass it to your
formBean.poulate(id, getUserRole);

The explenation on row based security, but there is a free book in
basicPortal.com DOCO (click download, the book is the zip), page 180+
explain row based security.
If you read that and have a question, let me know.

.V

"David Bolsover" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all
>
> I am presently in the process of refactoring an existing struts
application for a new client.
>
> Because users will access the application following a redirect from the
clients main web site where the user will log in
> to access 'myAccount' information, my client is understandably reluctant
to have a secondary login to the struts
> application.  This restriction prohibits me from using container managed
security.  As a consequence, I have to use
> application managed security.  At present, I am considering the following:
>
> User is redirected from main web site to struts app with:
>
> http:///StrutsApp/login.do?username=
>
> I propose that the redirect have (at least) the following parameters:
>
> [EMAIL PROTECTED]
> time=
> validation=
>
> I will know the time off the request so I can reject any that are say more
than 24 hours old.
> I will also be able to calculate the validation hash value - (mechanism
known only to me and main web site server.)
> I would welcome any comments on the above - is it at least moderately
secure?
>
> Given that I can use the above (or a modification) to provide access to
the struts app I can then associate individual
> users with access privileges and, the customer accounts they are entitled
to view - but this raises another issue - are
> there any generally accepted patterns for enforcing security - 'Customer'
users should only be able to view accounts to
> which they have been granted access - but 'Admin' users should have rights
to all accounts.  Previously, using container
> managed security, I have been able to make use of the user 'role' to
manage some aspects of security - but can I do this
> with application managed security?
>
> Any advice, hints, tips would be most welcome.
>
> David Bolsover
> E: [EMAIL PROTECTED]




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




RE: Struts best pracice

2003-02-05 Thread Rao, Nagraj
OK agreed that PropertyUtils.copyProperties might work for conversions.
Now for the QueryObjects
Instead of having One off QueryObjects (params to EJBs to retrive data from
DB)
Has any one thought of a generic Query Object wich could be built right off
the Form bean
Example:

I was tring to design a QueryObject ..which was something like :


public interface RequestSearchCriteria {
public  void addCondition(Condition condition);
public Vector getCriteria();
}

Where COndition is:
public abstract class Condition {
/* list of Conditions */
EQUALTO =1
NOTEQUALTO =2
GREATERTHAN =3
LESSTHAN =4
SORTBY =5

public Condition(String attribute, Object value, boolean needsValue, int
condition)
{
this.attribute = attribute;
this.value = value;
this.needsValue = needsValue;
this.condition = condition;

}
}

And Call EJBS like 
GenericValueObjects GetResults(RequestSearchCriteria criterion)


Cheers,
Naggi
PS: This never really took me anywhere as each EJB seem to have specific
queries and the fear that we might not be able to make it generic enough..

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




RE: [OT] [IDE War] Java IDE choices

2003-02-05 Thread Jarnot Voytek Contr AU HQ/SC
Jeez, how many times are you going to berate people for not doing something
which you yourself are not doing?!?

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


> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [IDE War] Java IDE choices
> 
> 
> Please read the post by David in this thread.
> He asks that you please put OT: ahead of IDE topics.
> (some people filter out OT)
> 
> .V
> <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 
> You do not discuss ones likes and choice of colours
> 
> 
> 
> 
>   Emmanuel Boudrant
>   <[EMAIL PROTECTED]>  To:   Struts Users
> Mailing List
> 
> <[EMAIL PROTECTED]>
>   02/05/2003 02:57 cc:
>   PM   Subject:  [IDE 
> War] Java IDE
> choices
>   Please respond to
>   "Struts Users
>   Mailing List"
> 
> 
> 
> 
> 
> 
> 
> "Les gouts et les couleurs ne se discutent pas"
> 
> If somebody can translate this expression in English ;)
> 
> 
> 
> 
>  --- Mitchell Morris <[EMAIL PROTECTED]> a écrit : > 
> Having seen a few
> posts claiming that
> JBuilder is the "Worst.Tool.Ever!!!1!"
> > and knowing that my own opinion is that JBuilder suits me 
> quite well, I'm
> > curious to know what specific complaints people have about 
> it.For the
> sake
> > of level-setting, let me state that I paid for and use the 
> SE version, so
> > it's possible that things I think are wonderful and shiny 
> are missing
> from
> > the free-to-download versions that other people might be using.
> >
> > What (specifically, if you will) makes JBuilder so distasteful? Any
> answer
> > that involves not having "vi" key bindings will be personally
> unacceptable
> > to me, but may be useful for other readers.
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> **
> **
> **
> **
> *
> 
> This message is intended for the use of the individual or 
> entity to which
> it is addressed and may contain information that is confidential and
> privileged and exempt from disclosure under applicable law.  
> If the reader
> of this message is not the intended recipient, you are hereby 
> notified that
> any dissemination, distribution, or copying of this communication is
> strictly prohibited.  If you have received this communication 
> in error,
> please contact the sender immediately and delete it from your system.
> 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]




Re: form naming

2003-02-05 Thread Vinay
Yes I looked at the file struts-html.tld
I did the following



I got the following error

org.apache.jasper.JasperException: Must specify type attribute if name is
specified

Then I went ahead and did the following








I got the following error

org.apache.jasper.JasperException: Exception creating bean of class
net.mdp.hold.HoldTrans: java.lang.ClassCastException: net.mdp.hold.HoldTrans


This is just for JavaScript purposes, I don't know what it is looking for

Thanks for any help

Vinay



- Original Message -
From: "Pani, Gourav" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 3:51 PM
Subject: RE: form naming


> Please consult the struts-html.tld file for syntax formatting issues.
>
> -Original Message-
> From: Vinay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 3:48 PM
> To: Struts Users Mailing List
> Subject: form naming
>
>
> How can I name a
>
> 
>
>
> 
>
> How can I do this using 
>
> I have to do JavaScript functions using that.
>
>
> Thanks
>
> help appreciated
>
> Vinay
>
>
> -
> 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]




example or tutorial for struts + mysql

2003-02-05 Thread Rachel
Hi

Does anyone have, or know of a simple example or tutorial for accessing 
mysql data with Struts?

I'm building a simple application using Struts with Tiles and need to be 
able to retrieve articles from mySQL. I'm an ASP developer and having 
difficulties with the actual logic of what I'm supposed to be doing here, 
and could do with a gentle shove in the right direction!

I have got as far as creating a datasource in struts-config (using the 
mm.mysql driver), I'm deploying my application on JBoss 3 with Tomcat 4

TIA

Rachel


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



RE: form naming

2003-02-05 Thread John Espey
Vinay,
The name will appear as the name specified in struts-config.xml for the
action to which your form is submitting.
ie-



in your struts-config file and in your JSP:



Means that your html will appear like so:




So you can write javascript that accesses the form by the name that is
specified in struts-config.xml


Hope this helps.

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 2:52 PM
To: 'Struts Users Mailing List'
Subject: RE: form naming


Please consult the struts-html.tld file for syntax formatting issues.

-Original Message-
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:48 PM
To: Struts Users Mailing List
Subject: form naming


How can I name a






How can I do this using 

I have to do JavaScript functions using that.


Thanks

help appreciated

Vinay


-
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: [IDE War] Java IDE choices

2003-02-05 Thread Vic Cekvenich
Please read the post by David in this thread.
He asks that you please put OT: ahead of IDE topics.
(some people filter out OT)

.V
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

You do not discuss ones likes and choice of colours




  Emmanuel Boudrant
  <[EMAIL PROTECTED]>  To:   Struts Users
Mailing List

<[EMAIL PROTECTED]>
  02/05/2003 02:57 cc:
  PM   Subject:  [IDE War] Java IDE
choices
  Please respond to
  "Struts Users
  Mailing List"







"Les gouts et les couleurs ne se discutent pas"

If somebody can translate this expression in English ;)




 --- Mitchell Morris <[EMAIL PROTECTED]> a écrit : > Having seen a few
posts claiming that
JBuilder is the "Worst.Tool.Ever!!!1!"
> and knowing that my own opinion is that JBuilder suits me quite well, I'm
> curious to know what specific complaints people have about it.For the
sake
> of level-setting, let me state that I paid for and use the SE version, so
> it's possible that things I think are wonderful and shiny are missing
from
> the free-to-download versions that other people might be using.
>
> What (specifically, if you will) makes JBuilder so distasteful? Any
answer
> that involves not having "vi" key bindings will be personally
unacceptable
> to me, but may be useful for other readers.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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






*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you


*
=




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




Re: [Validator] indexed property validation

2003-02-05 Thread Vic Cekvenich
Yes!
Vic


Brandon Goodin wrote:

Can Validator validate indexed properties.

For example:





How could I make sure that element[0].value validates to an integer and then
validate element[1].value and make sure it contains an alpha-based entry.
So, in other words... Can I validate different indexes of a property with
different Validation rules? Can I even validate an indexed property?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws




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




Re: [OT] Re: [IDE War] Java IDE choices

2003-02-05 Thread Claude Betancourt
The tastes and colors are not discussed

- Original Message -
From: "Pani, Gourav" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 3:04 PM
Subject: RE: [OT] Re: [IDE War] Java IDE choices


Ditto David.

Translation:  There is no accounting for taste or color.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:00 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [OT] Re: [IDE War] Java IDE choices


If we must have this debate every week, at least prefix the posts with [OT].

Thanks,
David



>From: Emmanuel Boudrant <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: [IDE War] Java IDE choices
>Date: Wed, 5 Feb 2003 20:57:39 +0100 (CET)
>
>
>"Les gouts et les couleurs ne se discutent pas"
>
>If somebody can translate this expression in English ;)
>
>
>
>
>  --- Mitchell Morris <[EMAIL PROTECTED]> a écrit : > Having seen a
>few posts claiming that
>JBuilder is the "Worst.Tool.Ever!!!1!"
> > and knowing that my own opinion is that JBuilder suits me quite well,
>I'm
> > curious to know what specific complaints people have about it.For the
>sake
> > of level-setting, let me state that I paid for and use the SE version,
>so
> > it's possible that things I think are wonderful and shiny are missing
>from
> > the free-to-download versions that other people might be using.
> >
> > What (specifically, if you will) makes JBuilder so distasteful? Any
>answer
> > that involves not having "vi" key bindings will be personally
>unacceptable
> > to me, but may be useful for other readers.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>-
>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]

-
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: form naming

2003-02-05 Thread Rob Kischuk
In fairness, I don't think it's clear from the documentation.

However, a google search yields:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg52038.html,
which indicates someone looked at the source to find the answer.

Also in fairness, searching the list is not an easy task - searching through
the links from the struts site yields "Text search not available for this
list".

-Rob

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:52 PM
To: 'Struts Users Mailing List'
Subject: RE: form naming 


Please consult the struts-html.tld file for syntax formatting issues.

-Original Message-
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:48 PM
To: Struts Users Mailing List
Subject: form naming 


How can I name a 






How can I do this using 

I have to do JavaScript functions using that.


Thanks

help appreciated

Vinay


-
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]




Lost in beans

2003-02-05 Thread Mike Ash
Is it possible or is there a better way to do something like


   
  
 
 





   


Re: Benchmark on Struts - Struts support and maintenance

2003-02-05 Thread Vic Cekvenich
http://strutsplus.com/ sells support for Struts.

Also about 1000-2000+ concurrent users + with DB transactions per CPU.

.V

[EMAIL PROTECTED] wrote:

Hi,
 
I have 2 questions...
Is it possible to buy Struts support and maintenance from any enterprise? (do you know any which deal with that?)
Do you know how to get benchmark on performance issues with Struts (relative to samples)?
 
Thanks and regards.
lsa.
 




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




Re: Benchmark on Struts - Struts support and maintenance

2003-02-05 Thread Vic Cekvenich
http://strutsplus.com/ sells support for Struts.

Also about 1000-2000+ concurrent users + with DB transactions per CPU.

.V

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,

I have 2 questions...
Is it possible to buy Struts support and maintenance from any enterprise?
(do you know any which deal with that?)
Do you know how to get benchmark on performance issues with Struts (relative
to samples)?

Thanks and regards.
lsa.





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




RE: form naming

2003-02-05 Thread Pani, Gourav
Please consult the struts-html.tld file for syntax formatting issues.

-Original Message-
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:48 PM
To: Struts Users Mailing List
Subject: form naming 


How can I name a 






How can I do this using 

I have to do JavaScript functions using that.


Thanks

help appreciated

Vinay


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




form naming

2003-02-05 Thread Vinay
How can I name a 






How can I do this using 

I have to do JavaScript functions using that.


Thanks

help appreciated

Vinay




RE: [Tiles] loses current url

2003-02-05 Thread Rob Kischuk
In the header file, try request.getRequestURL() - it should give you the
page that was called.  Tiles effectively does a jsp:insert, which means that
the request parameters are the same for any included tiles.

-Rob

-Original Message-
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:17 PM
To: Struts-user
Subject: [Tiles] loses current url


Is there anyway for a tiles component to detect the URL that was used to
call up the page in the first place?

For example,

http://myhost/mypage1.jsp
http://myhost/mypage2.jsp

may both contain a tiles:insert tag that points to /myheader.jsp

is there anyway for the header file to detect which of the two url's were
called by the user?  Without adding code in mypage1 & mypage2 to save the
url in the session/request/page/application scope.  And without adding
request parameters to the tiles:insert tag.

Is this possible with Struts 1.1b3?

Thanks,
Kevin



-
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: [IDE War] Java IDE choices

2003-02-05 Thread Vic Cekvenich
Please read the post by David in this thread.
He asks that you please put OT: ahead of IDE topics.
(some people filter out OT)

.V

[EMAIL PROTECTED] wrote:

You do not discuss ones likes and choice of colours



   
  Emmanuel Boudrant
  <[EMAIL PROTECTED]>  To:   Struts Users Mailing List 
<[EMAIL PROTECTED]>   
  02/05/2003 02:57 cc: 
  PM   Subject:  [IDE War] Java IDE choices
  Please respond to
  "Struts Users
  Mailing List"
   
   





"Les gouts et les couleurs ne se discutent pas"

If somebody can translate this expression in English ;)




 --- Mitchell Morris <[EMAIL PROTECTED]> a écrit : > Having seen a few
posts claiming that
JBuilder is the "Worst.Tool.Ever!!!1!"

and knowing that my own opinion is that JBuilder suits me quite well, I'm
curious to know what specific complaints people have about it.For the


sake


of level-setting, let me state that I paid for and use the SE version, so
it's possible that things I think are wonderful and shiny are missing


from


the free-to-download versions that other people might be using.

What (specifically, if you will) makes JBuilder so distasteful? Any


answer


that involves not having "vi" key bindings will be personally


unacceptable


to me, but may be useful for other readers.



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




___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you
*




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




Re: Approaches to security

2003-02-05 Thread Vic Cekvenich
Goo deal, good question.

See Craig's response on Security filter.
Then in action you can find the users role and pass it to your
formBean.poulate(id, getUserRole);

The explenation on row based security, but there is a free book in
basicPortal.com DOCO (click download, the book is the zip), page 180+
explain row based security.
If you read that and have a question, let me know.

.V


David Bolsover wrote:

Hi all

I am presently in the process of refactoring an existing struts application for a new client.

Because users will access the application following a redirect from the clients main web site where the user will log in
to access 'myAccount' information, my client is understandably reluctant to have a secondary login to the struts
application.  This restriction prohibits me from using container managed security.  As a consequence, I have to use
application managed security.  At present, I am considering the following:

User is redirected from main web site to struts app with:

http:///StrutsApp/login.do?username=

I propose that the redirect have (at least) the following parameters:

[EMAIL PROTECTED]
time=
validation=

I will know the time off the request so I can reject any that are say more than 24 hours old.
I will also be able to calculate the validation hash value - (mechanism known only to me and main web site server.)
I would welcome any comments on the above - is it at least moderately secure?

Given that I can use the above (or a modification) to provide access to the struts app I can then associate individual
users with access privileges and, the customer accounts they are entitled to view - but this raises another issue - are
there any generally accepted patterns for enforcing security - 'Customer' users should only be able to view accounts to
which they have been granted access - but 'Admin' users should have rights to all accounts.  Previously, using container
managed security, I have been able to make use of the user 'role' to manage some aspects of security - but can I do this
with application managed security?

Any advice, hints, tips would be most welcome.

David Bolsover
E: [EMAIL PROTECTED]




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




RE: redirect="true" not working

2003-02-05 Thread Sri Sankaran
What *are* your symptoms?

Do you know if the action at UserList is executing?

What is the URL read after the page loads?

Sri

-Original Message-
From: Campbell, Kevin [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 05, 2003 3:37 PM
To: Struts Users Mailing List
Subject: RE: redirect="true" not working


If this works in Struts 1.0.2 then either I am using an older version that doesn't 
work (if there are older versions that didn't have this working), there is something I 
am missing, or I am misunderstanding how this should work.

1. How do I verify the version of struts.jar I am using?  I am pretty sure that I am 
using 1.0.2.  The date on my file in my project lib directory is 2/9/2002.  This 
matches the struts.jar on my harddrive under the jakarta-struts-1.0.2 directory so I 
guess I am using the right version.

2. Is there more to redirects that just putting redirect="true" into the forward?

3. A redirect should change the URL address to UserList.do as I expect, correct?

I would prefer this approach over tokens since it seems more simple.  Although if I  
can't get this working correctly then I will have no choice but to go with tokens.

Thanks!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: redirect="true" not working


Redirects do work in 1.0.2 so it must be something else.  You could also use 
tokens to prevent the user from submitting the form twice.  See the Action 
class' javadoc and the struts-example app for token details.

David



>From: "Campbell, Kevin" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: redirect="true" not working
>Date: Wed, 5 Feb 2003 13:59:16 -0600
>
>The following forward doesn't redirect it forwards instead.  Is there a 
>bug
>in struts 1.0.2 that prevents the redirect from working?  Are there any 
>work arounds?  I attempted to search the struts bug database, but wasn't 
>successful finding any references to this problem.  Is there something I am 
>missing?
>
>   
>
>Here is action that the forward is used with.
>
>  type="com.medtronic.pfi.UserSaveAction"
>   validate="true"
>   input="/user_edit.jsp"
>   name="userForm"
>   scope="request">
>   
>   
>   
>   
>   
>
>I am trying to get the UserList.do to be in the URL address instead of
>UserSave.do so when the user refreshes the screen the save doesn't run 
>again.  Any other suggestions on this?
>
>Thanks!
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_
The new MSN 8: smart spam 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]


-
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]




How to access a valueObject inside a Map?

2003-02-05 Thread Derek Shen
I have a bean which is a HashMap in the session. I want to access a specific 
valueObject in the map based on a Key. And then show the information inside 
the valueObject.

Should I define a bean for the valueObject? How?

_
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]



RE: Struts best pracice

2003-02-05 Thread Kris Schneider
BeanUtils.copyProperties should work just fine on DynaBeans, as will
PropertyUtils.copyProperties.

Quoting Wendy Smoak <[EMAIL PROTECTED]>:

> > getting stuff from "Forms" and setting it into Value Objects 
> > before we call the EJB.
> > * Is'nt this crumbsome given that there will be around 80-100 screens
> 
> It can be as simple as: 
>  BeanUtils.copyProperties( formBean, valueObject );
> if you set up all the methods correctly.
> 
> Of course... this just fell apart in my own project when formBean turned
> into a DynaActionForm.  Now there aren't get/set methods in the formBean!
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
> 


-- 
Kris Schneider 
D.O.Tech   

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




RE: redirect="true" not working

2003-02-05 Thread Campbell, Kevin
If this works in Struts 1.0.2 then either I am using an older version that doesn't 
work (if there are older versions that didn't have this working), there is something I 
am missing, or I am misunderstanding how this should work.

1. How do I verify the version of struts.jar I am using?  I am pretty sure that I am 
using 1.0.2.  The date on my file in my project lib directory is 2/9/2002.  This 
matches the struts.jar on my harddrive under the jakarta-struts-1.0.2 directory so I 
guess I am using the right version.

2. Is there more to redirects that just putting redirect="true" into the forward?

3. A redirect should change the URL address to UserList.do as I expect, correct?

I would prefer this approach over tokens since it seems more simple.  Although if I  
can't get this working correctly then I will have no choice but to go with tokens.

Thanks!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: redirect="true" not working


Redirects do work in 1.0.2 so it must be something else.  You could also use 
tokens to prevent the user from submitting the form twice.  See the Action 
class' javadoc and the struts-example app for token details.

David



>From: "Campbell, Kevin" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: redirect="true" not working
>Date: Wed, 5 Feb 2003 13:59:16 -0600
>
>The following forward doesn't redirect it forwards instead.  Is there a bug 
>in struts 1.0.2 that prevents the redirect from working?  Are there any 
>work arounds?  I attempted to search the struts bug database, but wasn't 
>successful finding any references to this problem.  Is there something I am 
>missing?
>
>   
>
>Here is action that the forward is used with.
>
>  type="com.medtronic.pfi.UserSaveAction"
>   validate="true"
>   input="/user_edit.jsp"
>   name="userForm"
>   scope="request">
>   
>   
>   
>   
>   
>
>I am trying to get the UserList.do to be in the URL address instead of 
>UserSave.do so when the user refreshes the screen the save doesn't run 
>again.  Any other suggestions on this?
>
>Thanks!
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_
The new MSN 8: smart spam 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]


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




Re: Converting to DynaValidatorForm

2003-02-05 Thread Craig R. McClanahan


On Wed, 5 Feb 2003, Wendy Smoak wrote:

> Date: Wed, 05 Feb 2003 10:47:53 -0700
> From: Wendy Smoak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: Converting to DynaValidatorForm
>
>
> I used to use this code (probably lifted from struts-example) to populate my
> form bean from a data transport object:
>
>   BeanUtils.copyProperties( form, contact );
>
> but now the form is a DynaValidatorForm.  I'm looking in the Commons
> BeanUtils project, and I was hoping for 'DynaBeanUtils' but I don't see it.
> Is there a bit of magic that will call the getters on my DTO (bean) and then
> call the set(name,value) method on the DynaValidatorForm?
>

The magic is there inside copyProperties() already :-).  It and nearly
every other BeanUtils and PropertyUtils method already does the right
thing when you use either a DynaBean or a standard JavaBean.  So, you
should be able to switch your from bean to DynaValidatorForm and not have
to modify the above statement.

> Thanks,
>
> --
> Wendy Smoak

Craig

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




RE: Struts best pracice

2003-02-05 Thread Wendy Smoak
> getting stuff from "Forms" and setting it into Value Objects 
> before we call the EJB.
> * Is'nt this crumbsome given that there will be around 80-100 screens

It can be as simple as: 
 BeanUtils.copyProperties( formBean, valueObject );
if you set up all the methods correctly.

Of course... this just fell apart in my own project when formBean turned
into a DynaActionForm.  Now there aren't get/set methods in the formBean!

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



Struts x WSAD

2003-02-05 Thread Daniel Viveiros
Hi all,

I'm trying to configure STRUTS with WSAD 4.0.3 but i'm facing some problems. Every 
time I access a JSP that uses the tag  an exception is raised with the 
following message "Cannot retrieve mapping for action /getuser". I thought the problem 
was in the struts-config.xml file, but I tried to execute the same code with the same 
XML file using JBoss and it succeeds.
Does anybody have any ideia?

Thanks,
Daniel



[Tiles] loses current url

2003-02-05 Thread Kevin Tung
Is there anyway for a tiles component to detect the URL that was used to
call up the page in the first place?

For example,

http://myhost/mypage1.jsp
http://myhost/mypage2.jsp

may both contain a tiles:insert tag that points to /myheader.jsp

is there anyway for the header file to detect which of the two url's were
called by the user?  Without adding code in mypage1 & mypage2 to save the
url in the session/request/page/application scope.  And without adding
request parameters to the tiles:insert tag.

Is this possible with Struts 1.1b3?

Thanks,
Kevin



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




Re: [IDE War] Java IDE choices

2003-02-05 Thread jmattucci

You do not discuss ones likes and choice of colours



   

  Emmanuel Boudrant

  <[EMAIL PROTECTED]>  To:   Struts Users Mailing List 

<[EMAIL PROTECTED]>   

  02/05/2003 02:57 cc: 

  PM   Subject:  [IDE War] Java IDE choices

  Please respond to

  "Struts Users

  Mailing List"

   

   






"Les gouts et les couleurs ne se discutent pas"

If somebody can translate this expression in English ;)




 --- Mitchell Morris <[EMAIL PROTECTED]> a écrit : > Having seen a few
posts claiming that
JBuilder is the "Worst.Tool.Ever!!!1!"
> and knowing that my own opinion is that JBuilder suits me quite well, I'm
> curious to know what specific complaints people have about it.For the
sake
> of level-setting, let me state that I paid for and use the SE version, so
> it's possible that things I think are wonderful and shiny are missing
from
> the free-to-download versions that other people might be using.
>
> What (specifically, if you will) makes JBuilder so distasteful? Any
answer
> that involves not having "vi" key bindings will be personally
unacceptable
> to me, but may be useful for other readers.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you
*



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




Re: Java IDE choices

2003-02-05 Thread Robert McIntosh
I used JBuilder from 2.0 to 6.0 and loved it. I have also used VAJ 4 and 
absolutely hated it. I now use Eclipse 2 and it is as close to the 
JBuilder 'experience' as I have currently found and not have to pay for 
it :-)

I haven't used the new JBs since I work for a different company now, but 
I have friends that still use and love it. I was never into most of 
their wizards and deploy tools, but used it more as a project 
management, source code tool. Their code insight is still my favorite...

Robert

Mitchell Morris wrote:

Having seen a few posts claiming that JBuilder is the "Worst.Tool.Ever!!!1!"
and knowing that my own opinion is that JBuilder suits me quite well, I'm
curious to know what specific complaints people have about it.For the sake
of level-setting, let me state that I paid for and use the SE version, so
it's possible that things I think are wonderful and shiny are missing from
the free-to-download versions that other people might be using.

What (specifically, if you will) makes JBuilder so distasteful? Any answer
that involves not having "vi" key bindings will be personally unacceptable
to me, but may be useful for other readers.



-
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 best pracice

2003-02-05 Thread David Graham
These conversions have always worried me.  I've never done this on a huge 
project so I don't know how performance is.  For what it's worth, it's 
considered best practice to make these conversions.

David



From: "Rao, Nagraj" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: Struts best pracice
Date: Wed, 5 Feb 2003 14:57:41 -0500

Hi all,
We are planning the framwork for struts and the  genral opinion is hat we
have the following layers

[Web]=(form beans)==>[Action class]=(conversion from form to Value
Objects)=> [EJBs]
and Vice-versa for results..

But the above approach need a lot of conversions
Example:
getting stuff from "Forms" and setting it into Value Objects before we call
the EJB.
* Is'nt this crumbsome given that there will be around 80-100 screens

*Also is there a pattern to convert the Form bean attributes in to some 
sort
of a generic "QueryObjects" and have the EJBs decipher the QueryObjects and
thus make it really generic.
I was tring to design a QueryObject which was something like :


public interface RequestSearchCriteria {
	public  void addCondition(Condition condition);
	public Vector getCriteria();
}

Where COndition is:
public abstract class Condition {
	/* list of Conditions */
	EQUALTO =1
	NOTEQUALTO =2
	GREATERTHAN =3
	LESSTHAN =4
	SORTBY =5

public Condition(String attribute, Object value, boolean needsValue, int
condition)
	{
		this.attribute = attribute;
		this.value = value;
		this.needsValue = needsValue;
		this.condition = condition;

	}
}
But it never really took me anywhere as each EJB seem to have specific
queries and the fear that we might not be able to make it generic enough..

I was wondering if anyone had some ideas or statergies which are good.

Much appreciated,
Naggi



-
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: redirect="true" not working

2003-02-05 Thread David Graham
Redirects do work in 1.0.2 so it must be something else.  You could also use 
tokens to prevent the user from submitting the form twice.  See the Action 
class' javadoc and the struts-example app for token details.

David



From: "Campbell, Kevin" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: redirect="true" not working
Date: Wed, 5 Feb 2003 13:59:16 -0600

The following forward doesn't redirect it forwards instead.  Is there a bug 
in struts 1.0.2 that prevents the redirect from working?  Are there any 
work arounds?  I attempted to search the struts bug database, but wasn't 
successful finding any references to this problem.  Is there something I am 
missing?

	

Here is action that the forward is used with.

	
		type="com.medtronic.pfi.UserSaveAction"
		validate="true"
		input="/user_edit.jsp"
		name="userForm"
		scope="request">
		
		
		
		
	

I am trying to get the UserList.do to be in the URL address instead of 
UserSave.do so when the user refreshes the screen the save doesn't run 
again.  Any other suggestions on this?

Thanks!

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


_
The new MSN 8: smart spam 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: [OT] Re: [IDE War] Java IDE choices

2003-02-05 Thread Pani, Gourav
Ditto David.

Translation:  There is no accounting for taste or color.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:00 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [OT] Re: [IDE War] Java IDE choices


If we must have this debate every week, at least prefix the posts with [OT].

Thanks,
David



>From: Emmanuel Boudrant <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: [IDE War] Java IDE choices
>Date: Wed, 5 Feb 2003 20:57:39 +0100 (CET)
>
>
>"Les gouts et les couleurs ne se discutent pas"
>
>If somebody can translate this expression in English ;)
>
>
>
>
>  --- Mitchell Morris <[EMAIL PROTECTED]> a écrit : > Having seen a 
>few posts claiming that
>JBuilder is the "Worst.Tool.Ever!!!1!"
> > and knowing that my own opinion is that JBuilder suits me quite well, 
>I'm
> > curious to know what specific complaints people have about it.For the 
>sake
> > of level-setting, let me state that I paid for and use the SE version, 
>so
> > it's possible that things I think are wonderful and shiny are missing 
>from
> > the free-to-download versions that other people might be using.
> >
> > What (specifically, if you will) makes JBuilder so distasteful? Any 
>answer
> > that involves not having "vi" key bindings will be personally 
>unacceptable
> > to me, but may be useful for other readers.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>___
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
>Yahoo! Mail : http://fr.mail.yahoo.com
>
>-
>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]

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




  1   2   3   >