Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Dietmar Krause
Return Receipt
   
   
   Your document: Re: Is there any free Application for Bug Tracking Software 
in Java or JSP  
   
   
   was received by:   Dietmar Krause/NRL/DE/Draeger
   
   
   
   at:09/22/2004 08:39:27 AM   
   
   
   




Important Note 
This email and any attachment hereto are confidential and may contain trade secrets or 
may be otherwise protected from disclosure. If you have received it in error you are 
in 
notice of this fact. Please notify us immediately by reply email and then delete this 
email and any attachment from your system. Please understand that you are not allowed 
to 
copy this email or any attachment hereto or disclose its contents to any other person. 
Thank you.

Wichtiger Hinweis 
Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder 
sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich 
erhalten
haben, ist Ihnen dieser Umstand hiermit bekannt. Bitte benachrichtigen Sie uns in 
diesem Fall umgehend durch Ruecksendung der E-Mail und loeschen Sie diese E-Mail 
einschließ-
lich etwaiger Anlagen von Ihrem System. Diese E-Mail und ihre Anlagen duerfen 
weiterhin nicht kopiert oder an Dritte weitergegeben werden. Vielen Dank.

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

Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Jitender K Chukkavenkata

Return Receipt
   
Your  Re: Is there any free Application for Bug Tracking Software  
document  in Java or JSP   
:  
   
was   Jitender K Chukkavenkata/India/IBM   
received   
by:
   
at:   09/22/2004 11:48:01  
   





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



Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Dietmar Krause
Return Receipt
   
   
   Your document: Re: Is there any free Application for Bug Tracking Software 
in Java or JSP  
   
   
   was received by:   Dietmar Krause/NRL/DE/Draeger
   
   
   
   at:09/22/2004 08:03:54 AM   
   
   
   




Important Note 
This email and any attachment hereto are confidential and may contain trade secrets or 
may be otherwise protected from disclosure. If you have received it in error you are 
in 
notice of this fact. Please notify us immediately by reply email and then delete this 
email and any attachment from your system. Please understand that you are not allowed 
to 
copy this email or any attachment hereto or disclose its contents to any other person. 
Thank you.

Wichtiger Hinweis 
Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder 
sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich 
erhalten
haben, ist Ihnen dieser Umstand hiermit bekannt. Bitte benachrichtigen Sie uns in 
diesem Fall umgehend durch Ruecksendung der E-Mail und loeschen Sie diese E-Mail 
einschließ-
lich etwaiger Anlagen von Ihrem System. Diese E-Mail und ihre Anlagen duerfen 
weiterhin nicht kopiert oder an Dritte weitergegeben werden. Vielen Dank.

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

Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Amit Gupta
I am using mantis. Its fine. You can run it with JSP environment if your JSP
environment is  PHP enabled.

Amit Gupta
9891062552
[EMAIL PROTECTED]


- Original Message -
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 10:53 PM
Subject: Re: Is there any free Application for Bug Tracking Software in Java
or JSP


> On Wed, 22 Sep 2004 10:52:06 -0700, Amit Gupta
> <[EMAIL PROTECTED]> wrote:
> > Hi Ravi,
> >
> > I think you will like 'bugzilla'.
>
> I must admit I was initially pretty confused by bugzilla, but scarab
> may suit  Rajesh needs. Maybe he wants to have a look at Manits as
> well (php based though) ?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.756 / Virus Database: 506 - Release Date: 9/8/2004


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



Doubt on Struts+JSF Integration

2004-09-21 Thread babloosony
Hi All,

what is preferred and in what scenarios out the below two when
integrating jsf and struts:

a. accessing a struts form bean(used for populating jsf+jsp page) from
a struts action class
b. accessing a jsf managed bean(used for populating jsf+jsp page) from
a struts action class

in jsf and struts integration, should we use jsf just for view tier
and struts for all client and server side validation+exception
handling+internationalization+tiles integration ?

Thanks & Regards,
Kumar.

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



Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread dangmp

Return Receipt
   
Your  Re: Is there any free Application for Bug Tracking Software  
document  in Java or JSP   
:  
   
was   Dang Minh Phuong/MIS/MECS/SG 
received   
by:
   
at:   09/22/2004 02:02:01 PM   
   






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



Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Peng Tuck Kwok
On Wed, 22 Sep 2004 10:52:06 -0700, Amit Gupta
<[EMAIL PROTECTED]> wrote:
> Hi Ravi,
> 
> I think you will like 'bugzilla'.

I must admit I was initially pretty confused by bugzilla, but scarab
may suit  Rajesh needs. Maybe he wants to have a look at Manits as
well (php based though) ?

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



Re: [OT] GMail invites

2004-09-21 Thread Ivan Pechorin
I have 5 invites available.
Please, send me requests off list.

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



Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Jitender K Chukkavenkata

Return Receipt
   
Your  Re: Is there any free Application for Bug Tracking Software  
document  in Java or JSP   
:  
   
was   Jitender K Chukkavenkata/India/IBM   
received   
by:
   
at:   09/22/2004 11:24:23  
   





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



Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Amit Gupta
Hi Ravi,

I think you will like 'bugzilla'.

Amit Gupta
9891062552
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 10:10 PM
Subject: RE: Is there any free Application for Bug Tracking Software in Java
or JSP



Try in Sourceforge.net i don't remember now but there used to be some.

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:23 AM
To: Struts Users Mailing List
Subject: Is there any free Application for Bug Tracking Software in Java or
JSP


Hai all

is there any good Freeware/Opensource of Bug Tracking/project management
software written in java or JSP ??


please help me

Rajesh



Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

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




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.756 / Virus Database: 506 - Release Date: 9/8/2004


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



RE: [OT] RE: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Rajesh
 Hai Kailash

Before asking i searched google,yahoo and sourceforge but i cant fine a very
good reliable software so i tried to post it here so i can access info form
developers list



Regards,
 
Rajmahendra R. Hegde
Web Developer
GK Bharani Software Pvt. Ltd.

-Original Message-
From: Kailash Vasani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 22, 2004 10:38 AM
To: 'Struts Users Mailing List'
Subject: [OT] RE: Is there any free Application for Bug Tracking Software in
Java or JSP

Hi Rajesh,

U have asked this question in wrong forum.

BTW, search in http://www.sourceforge.net, there are couple of project
management type of projects there.

Kailash

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:23 AM
To: Struts Users Mailing List
Subject: Is there any free Application for Bug Tracking Software in Java or
JSP


Hai all
 
is there any good Freeware/Opensource of Bug Tracking/project management
software written in java or JSP ??
 

please help me
 
Rajesh
"Quinnox is an Award Winning IT services organisation, accredited to CMM
Level 5. We are successfully delivering Application Development,
Integration, Support and Testing services to clients in the Finance,
Manufacturing, Retail and Telecom sectors. Particular focus areas include
e-Business and ERP (notably SAP) solutions."

-
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] RE: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Rajesh
 Hai Kailash

Before asking i searched google,yahoo and sourceforge but i cant fine a very
good reliable software so i tried to post it here so i can access info form
developers list



Regards,
 
Rajmahendra R. Hegde
Web Developer
GK Bharani Software Pvt. Ltd.

-Original Message-
From: Kailash Vasani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 22, 2004 10:38 AM
To: 'Struts Users Mailing List'
Subject: [OT] RE: Is there any free Application for Bug Tracking Software in
Java or JSP

Hi Rajesh,

U have asked this question in wrong forum.

BTW, search in http://www.sourceforge.net, there are couple of project
management type of projects there.

Kailash

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:23 AM
To: Struts Users Mailing List
Subject: Is there any free Application for Bug Tracking Software in Java or
JSP


Hai all
 
is there any good Freeware/Opensource of Bug Tracking/project management
software written in java or JSP ??
 

please help me
 
Rajesh
"Quinnox is an Award Winning IT services organisation, accredited to CMM
Level 5. We are successfully delivering Application Development,
Integration, Support and Testing services to clients in the Finance,
Manufacturing, Retail and Telecom sectors. Particular focus areas include
e-Business and ERP (notably SAP) solutions."

-
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: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread ravi.vedala

Try in Sourceforge.net i don't remember now but there used to be some.

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:23 AM
To: Struts Users Mailing List
Subject: Is there any free Application for Bug Tracking Software in Java or JSP


Hai all

is there any good Freeware/Opensource of Bug Tracking/project management software 
written in java or JSP ??


please help me

Rajesh



Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



Re: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Hari Haran
http://scarab.tigris.org/


On Wed, 22 Sep 2004 10:23:14 +0530, Rajesh <[EMAIL PROTECTED]> wrote:
> Hai all
> 
> is there any good Freeware/Opensource of Bug Tracking/project management
> software written in java or JSP ??
> 
> please help me
> 
> Rajesh
> 
> 



-- 
-Hari Haran

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



[OT] RE: Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Kailash Vasani
Hi Rajesh,

U have asked this question in wrong forum.

BTW, search in http://www.sourceforge.net, there are couple of project
management type of projects there.

Kailash

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:23 AM
To: Struts Users Mailing List
Subject: Is there any free Application for Bug Tracking Software in Java
or JSP


Hai all
 
is there any good Freeware/Opensource of Bug Tracking/project management
software written in java or JSP ??
 

please help me
 
Rajesh
"Quinnox is an Award Winning IT services organisation, accredited to CMM
Level 5. We are successfully delivering Application Development,
Integration, Support and Testing services to clients in the Finance,
Manufacturing, Retail and Telecom sectors. Particular focus areas include
e-Business and ERP (notably SAP) solutions."

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



Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Rajesh
Hai all
 
is there any good Freeware/Opensource of Bug Tracking/project management
software written in java or JSP ??
 

please help me
 
Rajesh


Is there any free Application for Bug Tracking Software in Java or JSP

2004-09-21 Thread Rajesh
Hai all
 
is there any good Freeware/Opensource of Bug Tracking/project management
software written in java or JSP ??
 

please help me
 
Rajesh


Re: Multiple modules with multiple tile definition files

2004-09-21 Thread Hari Haran
Even I had problems using tiles with struts multi module feature.
I had to drop the idea of using tiles , lets see if we get any +ve
reply for this post.



On Tue, 21 Sep 2004 14:26:21 -0400, Lajoie Chad <[EMAIL PROTECTED]> wrote:
> I'm having an issue getting Tiles to work with Struts 1.1 in a modular
> application setup.  Here is what I'm trying to do.  In each module I
> want a module specific Tiles definition file and a global definitions
> file.  In each module the Struts config file for that module has
> something like the following Tiles plugin configuration:
> 
> 
>  value="/WEB-INF/tiles-def/global.xml, /WEB-INF/tiles-def/sysadmin.xml"/>
> 
> 
> 
> 
> 
> What I expected to see is that as Struts configured each module it would
> read the plugin definition and load the global Tiles file and then load
> the module specific one.  Thus each module would have access to it's
> page definitions but no other ones (unless they were in the global.xml
> file).
> 
> Instead, what I am seeing is that only the Tiles files listed in the
> TilesPlugin configuration of the first module Struts configures gets
> used in every module.  Thus all the other modules can't find their page
> definitions.
> 
> Can I do what I want and if so what I am missing to make this work?
> --
> Chad La Joie
> Booz | Allen | Hamilton  (703) 377-1300
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
-Hari Haran

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



Re: Struts Bloat: Framework

2004-09-21 Thread Andrew Hill

Under your philosophy Struts would end up being just one ActionServlet, 
a config file, a RequestProcessor, one Action and one ActionForm. Then 
you'd be on your own to find validation, web layout, dispatch, and tag 
solutions


Now that you come to mention it, this rather seems to be how I use it 
anyhow!

Hehe, guess Im a 'classic struts' fan. Dont need no darn newfangled 
Dynavalidatedchainedreptileslookerupperprocessedispatchythinghys 
nosireee...

Not that having a few kb of other stuff in the jars really bothers me, 
and its nice to know its there should I need it ...

Rick Reumann wrote:
Michael McGrady wrote the following on 9/21/2004 9:37 AM:
What do you do with classes like DispatchAction and ImageButtonBean 
(which solve the same problem in different ways) when someone comes up 
with something better?   

You need to include some flavors of DispatchAction in the core of Struts 
and although I don't use Tiles (I use Sitemesh) and I no longer use 
DynaForms of any flavor, I think there is no problem including them. 
Now, if you included SiteMesh as 'part' of Struts that would be dumb 
since it is completely stand alone, but Tiles (from what I remember, 
relies on Struts, but I could be wrong there).

Granted there is a fine line sometimes between bloat and necessary, but 
I only see major bloat when I'm 'required' to extend a bunch of classes 
that I don't really need.

One of the nice things about Struts is it comes with a bunch of stuff to 
make your job easier. You don't have to go google around to find some 
Dispatch implementation or even for a solution for web layout or dynamic 
beans. (It doesn't mean you can't go find other solutions.) Having this 
stuff easily available is a huge plus especially for new developers.

Under your philosophy Struts would end up being just one ActionServlet, 
a config file, a RequestProcessor, one Action and one ActionForm. Then 
you'd be on your own to find validation, web layout, dispatch, and tag 
solutions.


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


trying to implement 2 resource bundles and getting odd errors

2004-09-21 Thread Janice
So, yes, I waited until the very last minute to split my resource bundle
into 2 in order to keep maintenance simpler.  But some pages in my app are
now spitting the dreaded:
Cannot find message resources under key org.apache.struts.action.MESSAGE
at me.  Most of the pages are fine, and all of my .jsps are using
, so I'm thinking I've got things set up correctly for the
most part.

Has anyone else run into this?  What on earth am I missing?

Here's a bit from struts-config.xml:
  
  

I had previously been using just the first one, so I added
'bundle="default"' or 'bundle="reports"' to everywhere I was using
.  I'm thinking that there's some implicit stuff happening
now that I don't understand.

Here's an example of a spot that chokes:

Here's the reference to the code in the error:

at _jsp._admin._persorg._org__list._jspService(_org__list.java:251)
[SRC:/jsp/admin/persOrg/org_list.jsp:43]

Here's lines 42/3 from the .jsp:
42: bgcolor =
""; <% } %>>
43: " onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image<%=rowcount
%>','','../../images/app/icon_arrow_rtcol1.gif',1)">

And here's lines 251/2 in the .java:

__jsp_taghandler_12.setBundle("default");
__jsp_taghandler_12.setKey("style.altColour");

That key does exist in ApplicationResources and it is successfully used by
several other .jsp pages.  Line 42 in the .jsp is used several times in
different files.

I don't know whether I've provided the correct information.  I'd be happy to
provide some more if I thought it might help me fix it.  I'm just about
ready to go with one file again, but I'd like to solve this first!

Oh, I'm using struts 1.1.

Thanks in advance!

Janice


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



Re: [FRIDAY] GMail invites

2004-09-21 Thread dangmp

Return Receipt
   
Your  Re: [FRIDAY] GMail invites   
document   
:  
   
was   Dang Minh Phuong/MIS/MECS/SG 
received   
by:
   
at:   09/22/2004 08:45:49 AM   
   






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



The Origin of ImageButtonBean

2004-09-21 Thread Michael McGrady
I believe that the original work on ImageButtonBean came from Antonio 
Lagnada, cf. /http://j2ee-01.lagnada.com/struts/html-buttons.htm (this 
code does not quite work, but you get the idea: 
http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript?action=recall&date=1083359181 
.

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


RE: Where to put the business logics?

2004-09-21 Thread Matthew Ryan
Don't forget Darren Broemmer's :

J2EE Best Practices
Publisher: Wiley; 1 edition (November 8, 2002)
ISBN: 0471228850

Book well worth reading and having in the shelf.


Matt

Quoting sridhar ramalingam <[EMAIL PROTECTED]>:

> Mastering Enterprise JavaBeans by Ed Roman, Scott W. Ambler and Tyler
> Jewell.
> I have been reading this book, it is a good book for beginners.
>
> Sridhar
>
> -Original Message-
> From: PC Leung [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 21, 2004 7:04 AM
> To: Struts Users Mailing List
> Subject: Re: Where to put the business logics?
>
>
> Lots of people support the use of EJB.
> I have not touched EJB before.
> I have a book about EJB which is quite difficult.
> I am afraid of being too old to learn.
> Any other simpler methods for oldies (nearly 41)?
>
> -
> 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: converters

2004-09-21 Thread Robert Taylor
Struts uses BeanUtils under the covers to facilitate copying and converting simple 
data.
(String ==> int, String ==> long, etc...). 

robert

> -Original Message-
> From: Jesse Vitrone [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 21, 2004 3:53 PM
> To: [EMAIL PROTECTED]
> Subject: converters
> 
> 
> Hi all - 
>JSF has the concept of a converter, does struts have anything like that?
> 
> Thanks,
> Jesse
> 
> -
> 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: Cannot retrieve mapping for action /content/AddLinks

2004-09-21 Thread Caroline Jen
Thanks for helping me again.  Yeah, the problem is
that I did not re-start the Tomcat after those changes
are made.

Now, everything displays as expected.
--- Matt Bathje <[EMAIL PROTECTED]> wrote:

> Caroline Jen wrote:
> > This is the error message that I got in the
> browser:
> > 'Cannot retrieve mapping for action
> /content/AddLinks'
> > 
> > 
> > What would be the cause of this error message?  My
> > eyes do not see the problem.  Your experience and
> help
> > are much needed.
> > 
> > I have the action mapping in the struts-config.xml
> > like:
> > 
> >  > path="/content/AddLinks" 
> > type="org.dhsinfo.content.doSomething3"
> > name="addLinkForm"
> > scope="request"
> > validate="false"
> > input=".frame.content">
> >>name="success"
> >path=".link.Confirmation"/>
> > 
> > 
> > and the form that invokes this action is like:
> > 
> > 
> 
> Everything seems to look good here. Make sure that
> the class 
> org.dhsinfo.content.doSomething3 actually exists in
> the webapp's classpath.
> 
> Also, you may try taking making the html:form action
> be 
> "content/AddLinks" instead of "/content/AddLinks" -
> it shouldn't help, 
> but just in case...
> 
> If neither of those helps..are you sure you
> restarted your webapp after 
> adding the action to struts-config.xml :)
> 
> Matt
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



converters

2004-09-21 Thread Jesse Vitrone
Hi all - 
   JSF has the concept of a converter, does struts have anything like that?

Thanks,
Jesse

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



Re: Cannot retrieve mapping for action /content/AddLinks

2004-09-21 Thread Matt Bathje
Caroline Jen wrote:
This is the error message that I got in the browser:
'Cannot retrieve mapping for action /content/AddLinks'
What would be the cause of this error message?  My
eyes do not see the problem.  Your experience and help
are much needed.
I have the action mapping in the struts-config.xml
like:

path="/content/AddLinks" 
type="org.dhsinfo.content.doSomething3"
name="addLinkForm"
scope="request"
validate="false"
input=".frame.content">
  
   path=".link.Confirmation"/>


and the form that invokes this action is like:

Everything seems to look good here. Make sure that the class 
org.dhsinfo.content.doSomething3 actually exists in the webapp's classpath.

Also, you may try taking making the html:form action be 
"content/AddLinks" instead of "/content/AddLinks" - it shouldn't help, 
but just in case...

If neither of those helps..are you sure you restarted your webapp after 
adding the action to struts-config.xml :)

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


Re: how to access JSF Managed Bean in Struts Action class

2004-09-21 Thread BaTien Duong
Craig McClanahan wrote:
On Mon, 20 Sep 2004 08:41:55 -0600, BaTien Duong
<[EMAIL PROTECTED]> wrote:
 

Just 2 quick questions from expert advise. Assuming FooBean is
initialized by Faces in the session:
   

 

1) Under what cirscunstances we shoud use Faces or directly
accessing the component under user session, assuming that you also use
faces with other framework such as Tiles?
   

I'm not quite sure what you are referring to, but it's quite
straightforward to reference properties from a session-scoped bean. 
For example, assume "user" is a UserProfileBean and has a name
property.  You can use expressions like this:

   Hello 
Note that it doesn't matter whether the bean was created by the
managed beans facility or via programmatic logic (say, being placed
there by an Action), so it is very straightforward to interoperate.
 

   2) If FooBean is a default user profile bean, does faces have some
kind of caching so it can just replicate the default configuration of
the user profile for every created user session? If the caching is not a
part of spec then which implementation (RI or myfaces) has it?
   

You can specify initial values for the properties of a managed bean by
using  elements nested inside:
 
   user
   com.mycompany.UserProfileBean
   session
   
 userType
 java.lang.String
 Standard
   
 
The content of the  element can be either a literal value or a
value binding expression, so you can have your initialization grab
dynamically calculated values if you need them.
Craig
 

Thank Craig. I am fully aware of these features, but found the loading 
is slow. I have not investigated whether faces implementations have some 
caching mechanism so it does not need to create the session managed 
beans from the scratch for every new user.

My question is whether the RI and/or my faces have some caching 
mechanism to speed up the process. If it does not then it is worth while 
to programmatically create these beans from our own cache 
implementation. Once the beans with identical attribute names are 
available in the session then faces does not have to create them. I am 
trying to decide which approach we should take.

Your further insight information may save us some time.
Thank again
BaTien
DBGROUPS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
 


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


Re: Action Granularity

2004-09-21 Thread Andrew Close
Frank,

On Tue, 21 Sep 2004 15:03:32 -0400 (EDT), Frank W. Zammetti (MLists)
<[EMAIL PROTECTED]> wrote:


> I find the bigger debate, which there was a thread about a day or two ago,
> is how you actually package it... Do you just have a single package for
> all your actions or do you sub-group the Actions into individual packages?
>  Even with the 400 Action project, I like seeing them all in one package
> myself, but it's certainly a debatable point.

i was following that thread.  i'm surprised it didn't carry.  i was
curious to see how it played out as well.  i'm currently packaging via
functionality.  so:
com.company.project.inventory.action
com.company.project.inventory.forms
etc.

but at the moment i'm just trying to convert this app over to Struts
and i'm working on one functional area at a time.  once i get one
completed we'll re-evalute and determine if the rest of the team will
join in and Strutify the rest of the app.  i currently have four
packages within my functional package.  rough guess there are about 10
functional areas in the app. (User, Customer, Inventory...)
if i was building this app from scratch using Struts i'm not sure if i
would have packaged it the same way.  but this method works well for
adaption.

andy

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



Cannot retrieve mapping for action /content/AddLinks

2004-09-21 Thread Caroline Jen
This is the error message that I got in the browser:
'Cannot retrieve mapping for action /content/AddLinks'


What would be the cause of this error message?  My
eyes do not see the problem.  Your experience and help
are much needed.

I have the action mapping in the struts-config.xml
like:


  


and the form that invokes this action is like:



  

  
Select Page to Add Links:
  
  


  

  


  
Type in Link Name or Title:
  
  

  


  
Type or Paste in Link Location:
  
  
http://"; size="60" />
  


  

  
  
Submit Updates
Reset Form
  



  

  


  
 Links History
  
  
 
  
  

  List History

  


  

  

  








__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
Durham David R Jr Contr 805 CSPTS/SCE wrote:
I think what he's saying is that you'll never need to cross post.  As
in, there isn't a single good reason to cross post to 'user' and
 

'dev'.
 

 

Yah, Dave, I got dat.  And, I tink his reasons were gut.  I have to
admit that I blew it and did not tink about most dev people being on
user.  I just was tinking about user people not being on dev.  Slipped
   

a
 

hitch in my gettiup there.
   

Ok, I wasn't sure.  I intended to get some feedback regarding if there
was a situation where it's appropriate to cross post, but I didn't
really open the door for that kind of response.
Anyway, I think I've seen things like [announcement] cross posted with
out complaint.
- Dave
Yah, they do it all the time.  No problem.  It all depends on whose ox 
is being gored.  Some take five posts to complain about the one.  It is 
all good fun and just part of talking to the folks.

Michael McGrady


using map-backed ActionForm with velocity

2004-09-21 Thread Shankar Banerjee
Hi Folks,

I am a struts-velocity newbie. I have downloaded the struts-velocity framework 
and make the basic Static ActionForm work with a velocity module which defines 
the form. Now, I am trying to use a map-backed ActionForm with the same 
velocity module and I have doen the various steps:
Defined a DynamicActionForm with a map field and getValue , setValue
configured the ActionForm in struts-config.xml using 

Re: Action Granularity

2004-09-21 Thread Frank W. Zammetti (MLists)
I've MOSTLY fell on the side of the one Action per use case way of
thinking.  There have been instances where I did the multiple functions in
a single Action, but generally not.

One production app I did here has something on the order of 400 Actions. 
Kind of a lot I think :)  I'm not sure if it makes it easier or harder on
people to wrap their brains around, especially upon first exposure, but I
think isolating the pieces of a system as much as possible is better in
keeping with the whole idea of loose coupling.  This is along those lines.
 Certainly makes it easier to farm out work to underlings this way.

I find the bigger debate, which there was a thread about a day or two ago,
is how you actually package it... Do you just have a single package for
all your actions or do you sub-group the Actions into individual packages?
 Even with the 400 Action project, I like seeing them all in one package
myself, but it's certainly a debatable point.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Tue, September 21, 2004 2:49 pm, Felipe Victolla said:
>
> Hi,
>
> I want to know the opinion of the another developers of this list with
> your
> experience in modelling the struts Action classes. What's the ideal point
> of
> Action classes granularity?
>
> One approach is building one Action for each Use Case. Example:
> NewUserAction, EditUserAction, ListUserAction (for dealing with creation,
> listing and update of user data in an application). I like this approach
> because of the direct mapping from the use case models to java classes.
> Another approach is to build one class for each "operation": UserAction,
> for
> example. This action will be more complex than in the first approach, but
> we
> will have fewer action classes.
>
> What is your experience in this topic? Any other approaches for dealing
> with
> this?
>
> Thanks in advance,
> Victolla
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Action Granularity

2004-09-21 Thread Andrew Close
Hi,

i'm pretty new to the Struts arena, but since you're looking for
general info i can lend my .02. ;)


On Tue, 21 Sep 2004 15:49:34 -0300, Felipe Victolla
<[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I want to know the opinion of the another developers of this list with your
> experience in modelling the struts Action classes. What's the ideal point of
> Action classes granularity?
> 
> One approach is building one Action for each Use Case. Example:
> NewUserAction, EditUserAction, ListUserAction (for dealing with creation,
> listing and update of user data in an application). I like this approach
> because of the direct mapping from the use case models to java classes.
> Another approach is to build one class for each "operation": UserAction, for
> example. This action will be more complex than in the first approach, but we
> will have fewer action classes.
> 

i have been going with the first approach you mentioned.  to create a
separate action for each use case.  you do end up with quite a few
action classes following this approach (depending on your
application).  but they are always simple classes and easy to work
with.  i think (hope) this will make maintenance easier in the future.
i think i've only come across a couple posts that have mentioned it is
ok to put multiple actions in one class.  but these are usually
related actions (i.e. CRUD - create, read, update, delete) or actions
that have a lot of functionality in common.
but i don't really think there is a 'right' way or 'wrong' way.

HTH,
andy

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



Action Granularity

2004-09-21 Thread Felipe Victolla

Hi,

I want to know the opinion of the another developers of this list with your
experience in modelling the struts Action classes. What's the ideal point of
Action classes granularity? 

One approach is building one Action for each Use Case. Example:
NewUserAction, EditUserAction, ListUserAction (for dealing with creation,
listing and update of user data in an application). I like this approach
because of the direct mapping from the use case models to java classes.
Another approach is to build one class for each "operation": UserAction, for
example. This action will be more complex than in the first approach, but we
will have fewer action classes.

What is your experience in this topic? Any other approaches for dealing with
this?

Thanks in advance,
Victolla




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



Re: [solved] array of indexed html:text values not submitting

2004-09-21 Thread bradyh
Thanks very much, this was the problem.  I didn't realize that (if I
understand the problem correctly) setting name="item" in the html:text tag
would tell it to put the result in a form-bean called "item" instead of
the correct one which was "items".

Brady

> I really think the inconsistent usage of item/items is your problem
> here. Try changing the c:forEach var="item" to be var="items" and then
> change your html:text name="item" to have name="items".
>
> The name for the html:text needs to generate the form-property from your
> form bean definition for this to work correctly.
>
> Matt
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
>> I caught the DynaValidatorActionForm/DynaValidatorForm problem too after
>> I
>> sent out the email and corrected it but it didn't help.
>>
>> Here are a few lines of my JSP (which should explain the item/items
>> question):
>>
>> 
>>   
>> 
>> 
>>   
>> 
>>
>> and here's the resulting html:
>>
>> 
>>   
>>   
>>   
>>   
>> 
>>
>> BTW: I tried updating my struts libs to 1.2.4 but that didn't help.  I
>> also put a String into the Items formbean and a corresponding textfield
>> on
>> the page and that data passes through just fine.  It's only the item[x]
>> changes that fail.
>>
>> Thanks,
>> Brady
>>
>>
>>>I see 2 things wrong right now - first is that you are using a
>>>DynaValidatorActionForm in your form-bean definition, but a
>>>DynaValidatorForm to cast the form in your loader and action code. This
>>>is not the cause of your problem I think, just something to watch out
>>> for.
>>>
>>>The second is that I'm not entirely sure how those form variables got
>>>generated - based on what I see in your form-bean definition and in your
>>>  java code, the form property you are loading with this data is called
>>>"items" - the form is apparently generating input tags with "item[x].ID"
>>>(etc.) as the name, instead of "items[x].ID" (etc.) as the name. This
>>>would most explain why when you read the form data it is just reading
>>>the default instead of what you changed it to in the form.
>>>
>>>If neither of these helped, I would say that we also need to see a
>>>cut/paste of the JSP for the form, and a cut/paste of what gets
>>>generated to the brower.
>>>
>>>Matt
>>>
>>>
>>>
>>>
>>>
>>>
>>>[EMAIL PROTECTED] wrote:
>>>
>>>
Thanks for the reply.  Here are the relevant sections of LoadAction and
PersistAction:

LoadAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

DynaValidatorForm passForm = (DynaValidatorForm)form;

SimpleItem[] itemsArray = new SimpleItem[2];

itemsArray[0] = new SimpleItem();
itemsArray[0].setQuantity("10");
itemsArray[0].setPrice("45.0");

itemsArray[1] = new SimpleItem();
itemsArray[1].setQuantity("");
itemsArray[1].setPrice("225.0");

passForm.set( "items", itemsArray );

return mapping.findForward( "success" );
}


PersistAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

DynaValidatorForm passForm = (DynaValidatorForm) form;

SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");

return mapping.findForward(forward);
}



>>I'm working from the examples here:
>>http://www.developer.com/java/ejb/article.php/3321521
>>
>>I have an array of values that are sent to a page for editing.  The
>>page
>>is coming up ok with the correct text box values as seen below
>>(item[0].xxx, etc).  But when the form is submitted the changes don't
>>show up in PersistEditAction.  The form contains the original data
>> just
>>as it was before the forward from LoadEditAction.
>>
>>Thanks for any help,
>>Brady
>>
>>
>>
>>
>>
>>
>>
>>
>>>   name="Items"
>>   type="org.apache.struts.validator.DynaValidatorActionForm">
>>   >   type="com.litriusgroup.cart.hibernate.SimpleItem[]" />
>>
>>
>>>   type="com.stuff.struts.LoadEditAction"
>>   name="Items"
>>   scope="session"
>>   validate="false">
>>   
>>
>>>   type="com.stuff.struts.PersistEditAction"
>>   name="Items"
>>   scope="session"
>>   validate="false">
>>   
>>   
>>
>>
>Is it possible you can post the relevant parts of LoadEditAction and
>PersistEditAction? Without those I don't think anybody will be able to
>help.
>
>Matt
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 

Multiple modules with multiple tile definition files

2004-09-21 Thread Lajoie Chad
I'm having an issue getting Tiles to work with Struts 1.1 in a modular 
application setup.  Here is what I'm trying to do.  In each module I 
want a module specific Tiles definition file and a global definitions 
file.  In each module the Struts config file for that module has 
something like the following Tiles plugin configuration:


   
   
   
   


What I expected to see is that as Struts configured each module it would 
read the plugin definition and load the global Tiles file and then load 
the module specific one.  Thus each module would have access to it's 
page definitions but no other ones (unless they were in the global.xml 
file).

Instead, what I am seeing is that only the Tiles files listed in the 
TilesPlugin configuration of the first module Struts configures gets 
used in every module.  Thus all the other modules can't find their page 
definitions.

Can I do what I want and if so what I am missing to make this work?
--
Chad La Joie
Booz | Allen | Hamilton  (703) 377-1300

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

RE: Struts Bloat: Framework

2004-09-21 Thread Durham David R Jr Contr 805 CSPTS/SCE
> >I think what he's saying is that you'll never need to cross post.  As
> >in, there isn't a single good reason to cross post to 'user' and
'dev'.
> >
> >
> Yah, Dave, I got dat.  And, I tink his reasons were gut.  I have to
> admit that I blew it and did not tink about most dev people being on
> user.  I just was tinking about user people not being on dev.  Slipped
a
> hitch in my gettiup there.

Ok, I wasn't sure.  I intended to get some feedback regarding if there
was a situation where it's appropriate to cross post, but I didn't
really open the door for that kind of response.

Anyway, I think I've seen things like [announcement] cross posted with
out complaint.


- Dave

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



Re: newbie Question, creating buttons

2004-09-21 Thread Michael McGrady
Nadia Kunkov wrote:
I'm still figuring out how to  use struts tags.  I'm trying to have three buttons ( add, edit ,delete) with a property called method so that I can use DispatchAction.  Here is a snippet of my jsp.  When I look at it in the browser I don't see the buttons.  What am I doing wrong? 
Also, is DispatchAction a good way to go? I'm going to have a lot of add, edit, delete screens.

Thanks in advance

 
   
 
 
 
 
 
 
   
 

Nadia 


Hello, Nadia,
I think your buttons did not come up because you omitted to put the  <%@ 
taglib uri='struts-html'prefix='html' %> or, whatever you use to 
allow your page to find the tags, on the page.  David is right about the 
wiki reference:

Here are five solutions. 
http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions  
Four of these solutions are better than DispatchAction and its progeny, 
in my opinion.  In order to see what

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


Re: newbie Question, creating buttons

2004-09-21 Thread DGraham

Wiki reference in 5432...







"Nadia Kunkov"
<[EMAIL PROTECTED]> 
09/21/2004 01:54 PM



Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
"Struts help (E-mail)"
<[EMAIL PROTECTED]>


cc



Subject
newbie Question, creating
buttons








I'm still figuring out how to  use struts tags.
 I'm trying to have three buttons ( add, edit ,delete) with a property
called method so that I can use DispatchAction.  Here is a snippet
of my jsp.  When I look at it in the browser I don't see the buttons.
 What am I doing wrong? 
Also, is DispatchAction a good way to go? I'm going to have a lot of add,
edit, delete screens.

Thanks in advance


 style="text-align: left; width: 50%;">
  
    
      
                


      
                


      
                


    
  


Nadia 


-
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: newbie Question, creating buttons

2004-09-21 Thread Matt Bathje
Nadia Kunkov wrote:
I'm still figuring out how to  use struts tags.  I'm trying to have three buttons ( add, edit ,delete) with a property called method so that I can use DispatchAction.  Here is a snippet of my jsp.  When I look at it in the browser I don't see the buttons.  What am I doing wrong? 
Also, is DispatchAction a good way to go? I'm going to have a lot of add, edit, delete screens.

Thanks in advance

  

  
 
  
 
  
 

  

Nadia 



If this is your whole page, you are missing some stuff. Specifically, 
the taglib declaration at the top of the page:
<%@ taglib uri="/tags/struts-html" prefix="html" %>

and an html:form surrounding your html:submit buttons. That html:form 
needs to also be linked up to a form bean definition in your 
struts-config file (which has a form-property called method).

I'll leave the arugment about dispatch action to those that are already 
arguing about it :)

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


newbie Question, creating buttons

2004-09-21 Thread Nadia Kunkov
I'm still figuring out how to  use struts tags.  I'm trying to have three buttons ( 
add, edit ,delete) with a property called method so that I can use DispatchAction.  
Here is a snippet of my jsp.  When I look at it in the browser I don't see the 
buttons.  What am I doing wrong? 
Also, is DispatchAction a good way to go? I'm going to have a lot of add, edit, delete 
screens.

Thanks in advance


  

  
 
  
 
  
 

  


Nadia 


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



Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
Vic wrote:
http://theserverside.com/news/thread.tss?thread_id=28894
This thread picked up on "tss".
.V

Thanks for your reference to Struts chain, Vic.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts Bloat: Framework

2004-09-21 Thread Vic
http://theserverside.com/news/thread.tss?thread_id=28894
This thread picked up on "tss".
.V

--
Please post on Rich Internet Applications User Interface (RiA/SoA)

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


Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
Rick Reumann wrote:
Niall Pemberton wrote the following on 9/21/2004 12:23 PM:
Were there other "recent additions" that you had in mind other than
ImageButtonBean?

That's exactly what I was wondering:) and goes back to my first point 
that Struts really hasn't changed 'that' much over the years so I'm 
confused about what all this new bloat is and bloat that is supposed 
to be being added? From what I can gather, it's difficult enough 
getting people to step up to the plate to help out making 'any' 
changes, so the addition of bloat seems non-existent. I'd still like 
to know what all the 'bloat plans' are that you see for struts Michael?

I think I answered this earlier, Rick.  If I did not, please let me 
know.  Michael McGrady

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


Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
Niall Pemberton wrote:
I don't agree with you calling Ted Husted's ImageButtonBean crap - maybe
more elegant solutions will come along, but it still doesn't mean this isn't
a perfectly good workable solution to the image button problem.
http://www.husted.com/struts/tips/001.html
Also I don't understand which "recent additions" you're talking about -
ImageButtonBean was added to Struts two years ago according to the CVS log
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/util/ImageButtonBean.java
Were there other "recent additions" that you had in mind other than
ImageButtonBean?
Niall
Well, I certainly do not intend to impune anyone.  I merely mean that 
when this was included, there were better options available.  When I put 
this bean up on the wiki, Ted was saying that you had to use JavaScript 
for this problem.  That is why I originally called it a solution without 
JavaScript. 

Everything Newton said was false.  Newton is still a great man.  To 
adapt his ideas today would be to adapt crap.  That is not a reflection 
on Newton.  That is a reflection on those who do not keep up.  I am sure 
Ted knows I respect him.  And, I do.

The main point was that such solutions do not belong in the framework.  
If we could get off personalities and get to principles, that would be good.

Michael McGrady

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


Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
Durham David R Jr Contr 805 CSPTS/SCE wrote:
James Mitchell wrote:
   

Please do not cross post to both lists.  Most of us on dev are also
 

on user.
 

If I choose to reply or ignore you on dev, I'll do the same on user.
Thanks.
 

I explained my reasons for doing it in the post\.
   

I think what he's saying is that you'll never need to cross post.  As
in, there isn't a single good reason to cross post to 'user' and 'dev'.
- Dave
Yah, Dave, I got dat.  And, I tink his reasons were gut.  I have to 
admit that I blew it and did not tink about most dev people being on 
user.  I just was tinking about user people not being on dev.  Slipped a 
hitch in my gettiup there.

Michael McGrady
 




Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
I've never looked at the DynaForm code too closely, but it must do this, 
because I use DynaForms with indexed properties all over the place.

Matt
[EMAIL PROTECTED] wrote:
Not sure how the dyna forms work, but you will need to check it generates a
getItem(int num) method - this will be called when populating
item[0].quantity ie getItem(0).setQuantity(value).
cheers,
David

|-+>
| |   [EMAIL PROTECTED]|
| |   net  |
| ||
| |   09/21/2004 12:50 |
| |   PM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>|
  |
|
  |   To:   [EMAIL PROTECTED]  
   |
  |   cc:  
|
  |   Subject:  Re: array of indexed html:text values not submitting   
|
  
>|

I caught the DynaValidatorActionForm/DynaValidatorForm problem too after I
sent out the email and corrected it but it didn't help.
Here are a few lines of my JSP (which should explain the item/items
question):

  


  

and here's the resulting html:

  
  
  
  

BTW: I tried updating my struts libs to 1.2.4 but that didn't help.  I
also put a String into the Items formbean and a corresponding textfield on
the page and that data passes through just fine.  It's only the item[x]
changes that fail.
Thanks,
Brady

I see 2 things wrong right now - first is that you are using a
DynaValidatorActionForm in your form-bean definition, but a
DynaValidatorForm to cast the form in your loader and action code. This
is not the cause of your problem I think, just something to watch out
for.
The second is that I'm not entirely sure how those form variables got
generated - based on what I see in your form-bean definition and in your
 java code, the form property you are loading with this data is called
"items" - the form is apparently generating input tags with "item[x].ID"
(etc.) as the name, instead of "items[x].ID" (etc.) as the name. This
would most explain why when you read the form data it is just reading
the default instead of what you changed it to in the form.
If neither of these helped, I would say that we also need to see a
cut/paste of the JSP for the form, and a cut/paste of what gets
generated to the brower.
Matt


[EMAIL PROTECTED] wrote:

Thanks for the reply.  Here are the relevant sections of LoadAction and
PersistAction:
LoadAction:
public ActionForward execute( >>   ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception {
  DynaValidatorForm passForm = (DynaValidatorForm)form;
  SimpleItem[] itemsArray = new SimpleItem[2];
  itemsArray[0] = new SimpleItem();
  itemsArray[0].setQuantity("10");
  itemsArray[0].setPrice("45.0");
  itemsArray[1] = new SimpleItem();
  itemsArray[1].setQuantity("");
  itemsArray[1].setPrice("225.0");
  passForm.set( "items", itemsArray );
  return mapping.findForward( "success" );
}
PersistAction:
public ActionForward execute( >>   ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception {
  DynaValidatorForm passForm = (DynaValidatorForm) form;
  SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");
  return mapping.findForward(forward);
}

I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521
I have an array of values that are sent to a page for editing.  The
page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc).  But when the form is submitted the changes don't
show up in PersistEditAction.  The form contains the original data just
as it was before the forward from LoadEditAction.
Thanks for any help,
Brady





  


  


  
  

Is it possible you can post the relevant parts of LoadEditAction and
PersistEditAction? Without those I don't think anybody will be able to
help.
Matt

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

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

Re: array of indexed html:text values not submitting

2004-09-21 Thread dhay

Not sure how the dyna forms work, but you will need to check it generates a
getItem(int num) method - this will be called when populating
item[0].quantity ie getItem(0).setQuantity(value).

cheers,

David



|-+>
| |   [EMAIL PROTECTED]|
| |   net  |
| ||
| |   09/21/2004 12:50 |
| |   PM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>|
  |
|
  |   To:   [EMAIL PROTECTED]  
   |
  |   cc:  
|
  |   Subject:  Re: array of indexed html:text values not submitting   
|
  
>|




I caught the DynaValidatorActionForm/DynaValidatorForm problem too after I
sent out the email and corrected it but it didn't help.

Here are a few lines of my JSP (which should explain the item/items
question):


  


  


and here's the resulting html:


  
  
  
  


BTW: I tried updating my struts libs to 1.2.4 but that didn't help.  I
also put a String into the Items formbean and a corresponding textfield on
the page and that data passes through just fine.  It's only the item[x]
changes that fail.

Thanks,
Brady

> I see 2 things wrong right now - first is that you are using a
> DynaValidatorActionForm in your form-bean definition, but a
> DynaValidatorForm to cast the form in your loader and action code. This
> is not the cause of your problem I think, just something to watch out
for.
>
> The second is that I'm not entirely sure how those form variables got
> generated - based on what I see in your form-bean definition and in your
>   java code, the form property you are loading with this data is called
> "items" - the form is apparently generating input tags with "item[x].ID"
> (etc.) as the name, instead of "items[x].ID" (etc.) as the name. This
> would most explain why when you read the form data it is just reading
> the default instead of what you changed it to in the form.
>
> If neither of these helped, I would say that we also need to see a
> cut/paste of the JSP for the form, and a cut/paste of what gets
> generated to the brower.
>
> Matt
>
>
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
>> Thanks for the reply.  Here are the relevant sections of LoadAction and
>> PersistAction:
>>
>> LoadAction:
>> public ActionForward execute(>>   ActionMapping mapping,
>>ActionForm form,
>>HttpServletRequest request,
>>HttpServletResponse response)
>>throws Exception {
>>
>>DynaValidatorForm passForm = (DynaValidatorForm)form;
>>
>>SimpleItem[] itemsArray = new SimpleItem[2];
>>
>>itemsArray[0] = new SimpleItem();
>>itemsArray[0].setQuantity("10");
>>itemsArray[0].setPrice("45.0");
>>
>>itemsArray[1] = new SimpleItem();
>>itemsArray[1].setQuantity("");
>>itemsArray[1].setPrice("225.0");
>>
>>passForm.set( "items", itemsArray );
>>
>>return mapping.findForward( "success" );
>> }
>>
>>
>> PersistAction:
>> public ActionForward execute(>>   ActionMapping mapping,
>>ActionForm form,
>>HttpServletRequest request,
>>HttpServletResponse response)
>>throws Exception {
>>
>>DynaValidatorForm passForm = (DynaValidatorForm) form;
>>
>>SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");
>>
>>return mapping.findForward(forward);
>> }
>>
>>
I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521

I have an array of values that are sent to a page for editing.  The
 page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc).  But when the form is submitted the changes don't
show up in PersistEditAction.  The form contains the original data just
as it was before the forward from LoadEditAction.

Thanks for any help,
Brady








>>>name="Items"
type="org.apache.struts.validator.DynaValidatorActionForm">
>>>type="com.litriusgroup.cart.hibernate.SimpleItem[]" />


>>>type="com.stuff.struts.LoadEditAction"
name="Items"
scope="session"
validate="false">


>>>type="

Struts1.1 and java.lang.reflect.InvocationTargetException

2004-09-21 Thread Anand M S
Hi All
I have updated struts1.1_rc1 to struts1.1 and i'm i'm getting the following 
error on form validation (I'm using validation frame work). Any help will be 
greately appriciated

- reflection: null
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:454)
	at org.apache.commons.validator.Validator.validateField(Validator.java:544)
	at org.apache.commons.validator.Validator.validate(Validator.java:582)
	at 
org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:151)

Thanks,
Anand
_
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: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
Matt Bathje wrote:
I really think the inconsistent usage of item/items is your problem 
here. Try changing the c:forEach var="item" to be var="items" and then 
change your html:text name="item" to have name="items".

The name for the html:text needs to generate the form-property from your 
form bean definition for this to work correctly.
I just realized this sentence makes no sense...so...The name for the 
html:text needs to match what is in the form-property from your form 
bean definition for this to work correctly.

Matt

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


RE: Where to put the business logics?

2004-09-21 Thread sridhar ramalingam
Mastering Enterprise JavaBeans by Ed Roman, Scott W. Ambler and Tyler
Jewell.
I have been reading this book, it is a good book for beginners.

Sridhar

-Original Message-
From: PC Leung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 7:04 AM
To: Struts Users Mailing List
Subject: Re: Where to put the business logics?


Lots of people support the use of EJB.
I have not touched EJB before. 
I have a book about EJB which is quite difficult.
I am afraid of being too old to learn.
Any other simpler methods for oldies (nearly 41)?

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



JSTL, maps and type safe enum

2004-09-21 Thread andy wix
Hi,
A bit of an obscure one this, but if you'll indulge me...
I am iterating through an Arraylist of HashMap objects that are in the 
session so I have:


 

The problem is that I get no output.  The issue is with the fact that the 
map is keyed on a typesafe enum pattern (e.g.,):

public final class MessageType
{
  public static final MessageType MSG1 =  new MessageType();
  public static final MessageType MSG2 = new MessageType();
}
If I set up test data with Strings as the keys then it's all ok.
Any ideas? (unfortunately, I have to keep the typesafe enum pattern!).
Thanks,
Andy
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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


Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
I really think the inconsistent usage of item/items is your problem 
here. Try changing the c:forEach var="item" to be var="items" and then 
change your html:text name="item" to have name="items".

The name for the html:text needs to generate the form-property from your 
form bean definition for this to work correctly.

Matt

[EMAIL PROTECTED] wrote:
I caught the DynaValidatorActionForm/DynaValidatorForm problem too after I
sent out the email and corrected it but it didn't help.
Here are a few lines of my JSP (which should explain the item/items
question):

  


  

and here's the resulting html:

  
  
  
  

BTW: I tried updating my struts libs to 1.2.4 but that didn't help.  I
also put a String into the Items formbean and a corresponding textfield on
the page and that data passes through just fine.  It's only the item[x]
changes that fail.
Thanks,
Brady

I see 2 things wrong right now - first is that you are using a
DynaValidatorActionForm in your form-bean definition, but a
DynaValidatorForm to cast the form in your loader and action code. This
is not the cause of your problem I think, just something to watch out for.
The second is that I'm not entirely sure how those form variables got
generated - based on what I see in your form-bean definition and in your
 java code, the form property you are loading with this data is called
"items" - the form is apparently generating input tags with "item[x].ID"
(etc.) as the name, instead of "items[x].ID" (etc.) as the name. This
would most explain why when you read the form data it is just reading
the default instead of what you changed it to in the form.
If neither of these helped, I would say that we also need to see a
cut/paste of the JSP for the form, and a cut/paste of what gets
generated to the brower.
Matt


[EMAIL PROTECTED] wrote:

Thanks for the reply.  Here are the relevant sections of LoadAction and
PersistAction:
LoadAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
DynaValidatorForm passForm = (DynaValidatorForm)form;
SimpleItem[] itemsArray = new SimpleItem[2];
itemsArray[0] = new SimpleItem();
itemsArray[0].setQuantity("10");
itemsArray[0].setPrice("45.0");
itemsArray[1] = new SimpleItem();
itemsArray[1].setQuantity("");
itemsArray[1].setPrice("225.0");
passForm.set( "items", itemsArray );
return mapping.findForward( "success" );
}
PersistAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
DynaValidatorForm passForm = (DynaValidatorForm) form;
SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");
return mapping.findForward(forward);
}

I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521
I have an array of values that are sent to a page for editing.  The
page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc).  But when the form is submitted the changes don't
show up in PersistEditAction.  The form contains the original data just
as it was before the forward from LoadEditAction.
Thanks for any help,
Brady





  


  


  
  

Is it possible you can post the relevant parts of LoadEditAction and
PersistEditAction? Without those I don't think anybody will be able to
help.
Matt

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


Re: array of indexed html:text values not submitting

2004-09-21 Thread bradyh
I caught the DynaValidatorActionForm/DynaValidatorForm problem too after I
sent out the email and corrected it but it didn't help.

Here are a few lines of my JSP (which should explain the item/items
question):


  


  


and here's the resulting html:


  
  
  
  


BTW: I tried updating my struts libs to 1.2.4 but that didn't help.  I
also put a String into the Items formbean and a corresponding textfield on
the page and that data passes through just fine.  It's only the item[x]
changes that fail.

Thanks,
Brady

> I see 2 things wrong right now - first is that you are using a
> DynaValidatorActionForm in your form-bean definition, but a
> DynaValidatorForm to cast the form in your loader and action code. This
> is not the cause of your problem I think, just something to watch out for.
>
> The second is that I'm not entirely sure how those form variables got
> generated - based on what I see in your form-bean definition and in your
>   java code, the form property you are loading with this data is called
> "items" - the form is apparently generating input tags with "item[x].ID"
> (etc.) as the name, instead of "items[x].ID" (etc.) as the name. This
> would most explain why when you read the form data it is just reading
> the default instead of what you changed it to in the form.
>
> If neither of these helped, I would say that we also need to see a
> cut/paste of the JSP for the form, and a cut/paste of what gets
> generated to the brower.
>
> Matt
>
>
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
>> Thanks for the reply.  Here are the relevant sections of LoadAction and
>> PersistAction:
>>
>> LoadAction:
>> public ActionForward execute(
>>  ActionMapping mapping,
>>  ActionForm form,
>>  HttpServletRequest request,
>>  HttpServletResponse response)
>>  throws Exception {
>>
>>  DynaValidatorForm passForm = (DynaValidatorForm)form;
>>
>>  SimpleItem[] itemsArray = new SimpleItem[2];
>>
>>  itemsArray[0] = new SimpleItem();
>>  itemsArray[0].setQuantity("10");
>>  itemsArray[0].setPrice("45.0");
>>
>>  itemsArray[1] = new SimpleItem();
>>  itemsArray[1].setQuantity("");
>>  itemsArray[1].setPrice("225.0");
>>
>>  passForm.set( "items", itemsArray );
>>
>>  return mapping.findForward( "success" );
>> }
>>
>>
>> PersistAction:
>> public ActionForward execute(
>>  ActionMapping mapping,
>>  ActionForm form,
>>  HttpServletRequest request,
>>  HttpServletResponse response)
>>  throws Exception {
>>
>>  DynaValidatorForm passForm = (DynaValidatorForm) form;
>>
>>  SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");
>>
>>  return mapping.findForward(forward);
>> }
>>
>>
I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521

I have an array of values that are sent to a page for editing.  The
 page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc).  But when the form is submitted the changes don't
show up in PersistEditAction.  The form contains the original data just
as it was before the forward from LoadEditAction.

Thanks for any help,
Brady








>>>name="Items"
type="org.apache.struts.validator.DynaValidatorActionForm">
>>>type="com.litriusgroup.cart.hibernate.SimpleItem[]" />


>>>type="com.stuff.struts.LoadEditAction"
name="Items"
scope="session"
validate="false">


>>>type="com.stuff.struts.PersistEditAction"
name="Items"
scope="session"
validate="false">




>>>
>>>Is it possible you can post the relevant parts of LoadEditAction and
>>>PersistEditAction? Without those I don't think anybody will be able to
>>>help.
>>>
>>>Matt
>>>
>>>
>>>
>>>-
>>>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: Struts Bloat: Framework

2004-09-21 Thread Rick Reumann
Niall Pemberton wrote the following on 9/21/2004 12:23 PM:
Were there other "recent additions" that you had in mind other than
ImageButtonBean?
That's exactly what I was wondering:) and goes back to my first point 
that Struts really hasn't changed 'that' much over the years so I'm 
confused about what all this new bloat is and bloat that is supposed to 
be being added? From what I can gather, it's difficult enough getting 
people to step up to the plate to help out making 'any' changes, so the 
addition of bloat seems non-existent. I'd still like to know what all 
the 'bloat plans' are that you see for struts Michael?

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


validator going to blank page/scaffold

2004-09-21 Thread Kirby Vandivort
I'm using struts 1.2.4, tomcat 5.0.28, and scaffold.  I've got the
validator set up, but it isn't working correctly.  It is returning me
to a blank page instead of returning me back to the input form.  It
only does this on the ProcessAction side of things, though.  With my
own action it works as it should.  Some info:

This is with javascript turned off.  With javascript on, the little
error boxes pop up like they should.




The one that doesn't work:

logging output:


2004-09-21 11:08:49,613 DEBUG
org.apache.struts.action.RequestProcessor- Validating input form
properties
2004-09-21 11:08:49,701 DEBUG
org.apache.struts.util.PropertyMessageResources   
-getMessage(en,changePassword.oldText)
2004-09-21 11:08:49,701 DEBUG
org.apache.struts.util.PropertyMessageResources-loadLocale(en)
2004-09-21 11:08:49,732 DEBUG
org.apache.struts.util.PropertyMessageResources   
-getMessage(en,changePassword.newText)
2004-09-21 11:08:49,733 DEBUG
org.apache.struts.util.PropertyMessageResources-loadLocale(en)
2004-09-21 11:08:49,733 DEBUG
org.apache.struts.util.PropertyMessageResources   
-getMessage(en,changePassword.newTextConfirm)
2004-09-21 11:08:49,733 DEBUG
org.apache.struts.util.PropertyMessageResources-loadLocale(en)
2004-09-21 11:08:49,733 DEBUG
org.apache.struts.action.RequestProcessor- Validation failed,
returning to '/secure/util/changePassword.do'


action mapping:


   


(I've tried setting a 'failure' forward in the action, and changing
the input to 'failure'.. same result)






form definition:









maxlength
16


minlength
1


   < with the field repeated twice again for new password, and new
password2 >




The form that I've got that DOES work is virtually identical to the
above, except the relevant action mappings are:



   
   







Any clue what I'm missing?   I've tried about every incantation I can
think of (except the one that works correctly, of course)

Thanks in advance,
-- 

Kirby Vandivort

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



Re: Where to put the business logics?

2004-09-21 Thread Rick Reumann
[EMAIL PROTECTED] wrote the following on 9/21/2004 11:51 AM:
Take a look at the Spring framework - it helps use POJO's rather than EJB's
I think everyone is making this more difficult than it needs to be. I 
think as start just have your actions call some delegate or service 
class or whatever the patterns flavor of the week is calling these thing 
( I admit I get confused by all of them :), but anyway something like...

//in your action:
//covnert you form data into a value object (BeanUtils makes it easy - 
most of the time:)

serviceObject.updateEmployee( employeeValueObject )
Then in your serviceObject do whatever business you want... Daos with 
JDBC, iBatis, hibernate, EJBs, whatever. The point is you can swap out 
that implmentation at any time and not effect what Struts is doing.

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


RE: a re-deploy does not refresh ApplicationResources in Apache

2004-09-21 Thread Hollaway, Shedrick CIV (TRFKB C600)
Thomas, 

You will need to make the Tomcat context reloadable. Open the project
properties and select Tomcat (if not present install Sysdeo Eclipse Tomcat
Launcher plugin). In the 'General' tab, check the both 'Can update
server.xml file' and 'Mark this context as reloadable (reloadable=true).'

Shed.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 20, 2004 6:11 PM
> To: [EMAIL PROTECTED]
> Subject: a re-deploy does not refresh ApplicationResources in Apache
> 
> 
> 
> 
> 
> 
> 
> I'm running eclipse 3.0, myeclipse 30b2, apache 5.0.27 and struts 1.1
> 
> if I change the ApplicationResources.properties file then 
> redeploy it to
> tomcat, my struts web app does not see
> the change.  I need to stop/start tomcat to see a change in 
> the properties
> file.
> 
> My question, is there a struts or tomcat configuration value 
> that will make
> the properties file active without
> recycling tomcat?
> 
> Thanks for your help
> 
> Tom Perry
> 
> 
> 
>  
> This message is intended for the recipient only and is not 
> meant to be forwarded or distributed in any other format. 
> This communication is for informational purposes only.  It is 
> not intended as an offer or solicitation for the purchase or 
> sale of any financial instrument, or security, or as an 
> official confirmation of any transaction.  Putnam does not 
> accept purchase or redemptions of securities, instructions, 
> or authorizations that are sent via e-mail.   All market 
> prices, data and other information are not warranted as to 
> completeness or accuracy and are subject to change without 
> notice.  Any comments or statements made herein do not 
> necessarily reflect those of Putnam, LLC (DBA Putnam 
> Investments) and its subsidiaries and affiliates.  If you are 
> not the intended recipient of this e-mail, please delete the e-mail.
> 
> -
> 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 Bloat: Framework

2004-09-21 Thread Niall Pemberton
I don't agree with you calling Ted Husted's ImageButtonBean crap - maybe
more elegant solutions will come along, but it still doesn't mean this isn't
a perfectly good workable solution to the image button problem.

http://www.husted.com/struts/tips/001.html

Also I don't understand which "recent additions" you're talking about -
ImageButtonBean was added to Struts two years ago according to the CVS log

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/util/ImageButtonBean.java


Were there other "recent additions" that you had in mind other than
ImageButtonBean?

Niall

- Original Message - 
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 3:40 PM
Subject: Re: Struts Bloat: Framework


> Rick Reumann wrote:
>
> > Michael McGrady wrote the following on 9/21/2004 9:37 AM:
> >
> >> What do you do with classes like DispatchAction and ImageButtonBean
> >> (which solve the same problem in different ways) when someone comes
> >> up with something better?
> >
> >
> > You need to include some flavors of DispatchAction in the core of
> > Struts and although I don't use Tiles (I use Sitemesh) and I no longer
> > use DynaForms of any flavor, I think there is no problem including
> > them. Now, if you included SiteMesh as 'part' of Struts that would be
> > dumb since it is completely stand alone, but Tiles (from what I
> > remember, relies on Struts, but I could be wrong there).
> >
> > Granted there is a fine line sometimes between bloat and necessary,
> > but I only see major bloat when I'm 'required' to extend a bunch of
> > classes that I don't really need.
> >
> > One of the nice things about Struts is it comes with a bunch of stuff
> > to make your job easier. You don't have to go google around to find
> > some Dispatch implementation or even for a solution for web layout or
> > dynamic beans. (It doesn't mean you can't go find other solutions.)
> > Having this stuff easily available is a huge plus especially for new
> > developers.
> >
> > Under your philosophy Struts would end up being just one
> > ActionServlet, a config file, a RequestProcessor, one Action and one
> > ActionForm. Then you'd be on your own to find validation, web layout,
> > dispatch, and tag solutions.
> >
> Hi, Rick,
>
> You are reading me too severly.  I am seeing second class work being put
> into the framework and it will be very hard to get out.  It is not
> helping users but is encouraging them to use Struts oafishly.  I am not
> saying this is rampant.  I am saying that doing something about the
> present tendancy to put crap code that is unrelated to the mission into
> Struts should be addressed.
>
> I certainly think that the tags that are tied to forms are part of the
> framework.  I think there are distinctions here that are more finely put
> than the present division you see in our discussion.
>
> I am all for people being assisted with using the framework.  Why
> wouldn't I be?  The point is that Struts is getting to that point in its
> maturity where it needs to carefully consider what additions are
> worthwhile.  The newer additions are quite suspicious.  I think that
> ImageButtonBean, which I advocated in the early stages of that problem,
> is a rather shocking addition to the framework.  When the canaries start
> dying, then we need to look at these issues.  We can wait until Struts
> is full of crap like ImageButtonBean, or we can address the issues
> early.  That is my only point.  When a framework is essentially done,
> the real innovators will go off to other things and the remaining
> caretakers can easily blotch the whole deal if they are not reminded of
> the mission.
>
>
> -
> 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: Where to put the business logics?

2004-09-21 Thread dhay

Take a look at the Spring framework - it helps use POJO's rather than EJB's


|-+>
| |   [EMAIL PROTECTED]|
| |   stments.com  |
| ||
| |   09/21/2004 10:47 AM  |
| |   Please respond to|
| |   "Struts Users Mailing|
| |   List"|
| ||
|-+>
  
>|
  |
|
  |   To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
   |
  |   cc:  
|
  |   Subject:  Re: Where to put the business logics?  
|
  
>|




I don't know how to answer this other than:

class HelloWorld {
   public static void main(String[] args) {
  System.out.println("Hello World!");
   }
   public businessMethodA() {
  // Implement some business logic
   }
}





PC Leung <[EMAIL PROTECTED]>
09/21/2004 10:38 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


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

Subject
Re: Where to put the business logics?






Any suggested POJO web sites so that I can have a glance?



- Original Message -
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tue, 21 Sep 2004 10:12:16 -0400
Subject: Re: Where to put the business logics?
To: Struts Users Mailing List <[EMAIL PROTECTED]>


Depending on your needs, a POJO (Plain Ole Java Object) implementing
your business may be sufficient.  BTW, you might be interested in Rod
Johnsons "Expert J2EE w/o EJB" book:
http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315

Dennis




PC Leung <[EMAIL PROTECTED]>

09/21/2004 10:03 AM

Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


ToStruts Users Mailing List <[EMAIL PROTECTED]>

cc

SubjectRe: Where to put the business logics?











Lots of people support the use of EJB.
I have not touched EJB before.
I have a book about EJB which is quite difficult.
I am afraid of being too old to learn.
Any other simpler methods for oldies (nearly 41)?

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



(See attached file: C.htm)
-
 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: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
I see 2 things wrong right now - first is that you are using a 
DynaValidatorActionForm in your form-bean definition, but a 
DynaValidatorForm to cast the form in your loader and action code. This 
is not the cause of your problem I think, just something to watch out for.

The second is that I'm not entirely sure how those form variables got 
generated - based on what I see in your form-bean definition and in your 
 java code, the form property you are loading with this data is called 
"items" - the form is apparently generating input tags with "item[x].ID" 
(etc.) as the name, instead of "items[x].ID" (etc.) as the name. This 
would most explain why when you read the form data it is just reading 
the default instead of what you changed it to in the form.

If neither of these helped, I would say that we also need to see a 
cut/paste of the JSP for the form, and a cut/paste of what gets 
generated to the brower.

Matt


[EMAIL PROTECTED] wrote:
Thanks for the reply.  Here are the relevant sections of LoadAction and
PersistAction:
LoadAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
DynaValidatorForm passForm = (DynaValidatorForm)form;
SimpleItem[] itemsArray = new SimpleItem[2];
itemsArray[0] = new SimpleItem();
itemsArray[0].setQuantity("10");
itemsArray[0].setPrice("45.0");
itemsArray[1] = new SimpleItem();
itemsArray[1].setQuantity("");
itemsArray[1].setPrice("225.0");
passForm.set( "items", itemsArray );
return mapping.findForward( "success" );
}
PersistAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
DynaValidatorForm passForm = (DynaValidatorForm) form;
SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");
return mapping.findForward(forward);
}

I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521
I have an array of values that are sent to a page for editing.  The page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc).  But when the form is submitted the changes don't
show up in PersistEditAction.  The form contains the original data just
as it was before the forward from LoadEditAction.
Thanks for any help,
Brady





   


   


   
   

Is it possible you can post the relevant parts of LoadEditAction and
PersistEditAction? Without those I don't think anybody will be able to
help.
Matt

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

2004-09-21 Thread anuj . upadhyay


FYI, here is my list:


Bergdahl, Carin <[EMAIL PROTECTED]>

McCormack, Chris <[EMAIL PROTECTED]>

Christoph Kutzinski <[EMAIL PROTECTED]>

Jitender K Chukkavenkata <[EMAIL PROTECTED]>

Nicolas De Loof <[EMAIL PROTECTED]>

Kailash Vasani <[EMAIL PROTECTED]>



If the above have already got an invite then let me know.


Anuj









[EMAIL PROTECTED] on 09/21/2004 03:43:15 PM

Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)

Subject:  [OT] GMail invites





Since GMail invites are still in demand, I plan not to wait till Friday to send
this mail.

I have 6 invites; send me a mail OFF LIST and the first 6 will get them.

Anuj


__

NOTICE:  This communication and any files transmitted with it ("communication")
may contain privileged or other confidential information. This communication is
intended solely for the individual or entity to whom it is addressed. If you are
not the intended recipient, or believe that you have received this communication
in error, please do not print, copy, retransmit, disseminate, or otherwise use
this communication.  Also, please indicate to the sender that you have received
this communication in error, and then delete this communication and any copies.
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: Struts Bloat: Framework

2004-09-21 Thread Durham David R Jr Contr 805 CSPTS/SCE
> James Mitchell wrote:
> 
> >Please do not cross post to both lists.  Most of us on dev are also
on user.
> >If I choose to reply or ignore you on dev, I'll do the same on user.
> >
> >Thanks.
>
> I explained my reasons for doing it in the post\.

I think what he's saying is that you'll never need to cross post.  As
in, there isn't a single good reason to cross post to 'user' and 'dev'.


- Dave

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



Problem With Using the Tags To Display Drop-Down Menu

2004-09-21 Thread Caroline Jen
I am able to disply the drop-down menu in the
conventinal way:







I have only one property in my JavaBean and that
property is 'name'.  Therefore, I do not have a label
for it.

1. how do I show -Select- in this drop-down menu?

2. I tried to convert the code and use  tags,
but I have a number of problems:


   
  selected>
 

  
   


and the other way:



${item.name}


http://promotions.yahoo.com/new_mail 

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



Re: doubleRange validation check?

2004-09-21 Thread Muhammad Momin Rashid
Thanks for your detailed reply, for the time being, I have decided to use 
the floatRange.  doubleRange for our specific case was an overkill anyways.

The only reason I had to coup with double was that one perticular member of 
our development team insisted on using double instead of float for amount. 
Whereas, in reality there is no need for that, the capacity of float is lot 
more than the amount a user will ever be entering into our system anyways. 
It should've never been a double in the first place.

Thanks for you time, and I really appreciate all the details you have 
provided.

Regards,
Muhammad Momin Rashid.

"Matt Bathje" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Muhammad Momin Rashid wrote:
>
>> Hello,
>>
>> I've just migrated our application from strtus 1.1 to 1.2.4.
>>
>> I wanted to add a doubleRange check on one of the fields in my jsp. 
>> After much hassle I found out that doubleRange validation is not defined 
>> in the validation-rules file.  Whereas, according to the documentation it 
>> is a standard built in validtion.
>>
>> Can anyone shed some light on this?
>>
>> Regards,
>> Muhammad Momin Rashid.
>
> There are already 2 bugzilla reports regarding this. #20883 and 27089.
>
> The code you can use in your validator-rules until this gets fixed in a 
> struts version is:
>
>classname="org.apache.struts.validator.FieldChecks"
>method="validateDoubleRange"
>  methodParams="java.lang.Object,
>org.apache.commons.validator.ValidatorAction,
>org.apache.commons.validator.Field,
>org.apache.struts.action.ActionMessages,
>javax.servlet.http.HttpServletRequest"
>   depends="double"
>   msg="errors.range" />
>
>
> This will not do javascript validation of the doublerange though. I 
> thought that this code:
>classname="org.apache.struts.validator.FieldChecks"
>method="validateDoubleRange"
>  methodParams="java.lang.Object,
>org.apache.commons.validator.ValidatorAction,
>org.apache.commons.validator.Field,
>org.apache.struts.action.ActionMessages,
>javax.servlet.http.HttpServletRequest"
>   depends="double"
>   msg="errors.range"
> jsFunction="org.apache.commons.validator.javascript.validateFloatRange"/>
>
> would allow the doublerange, but it doesn't seem to be working for me. If 
> I figure it out I will let you know.
>
>
> Matt 




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



Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
James Mitchell wrote:
In a small way I agree with you, but in a another way I do not.
What do you think will happen in 2 months, or 2 weeks, when someone is
searching the mail archives and sees statements like "it brings more
problems than it solves"?  And as they read on, there is no rebuttal.  One
might assume the author is knowledgeable and accurate.
It is frustrating when people who don't understand something bash it on
public forums.  Look at what happened as JSF was being created.  You had a
bunch of nay-sayers whining about how JSF is competitor to Struts, etc, etc.
I mean, come on.  That's like saying OJB or Hibernate is competing with
JDO.that just cracks me up.
Anyway, I'm signing off this thread, and since you seem to love to have the
'last word', I'll politely let you have it.
See ya on another thread.
Now, about the substance of your comments.  I really don't think there 
is a danger of people jumping to conclusions about Tiles based on this 
offhand remark about whehter it should be outside the framework.

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


Re: ActionErrors and ActionMessages struts 1.2.4 confusion

2004-09-21 Thread Muhammad Momin Rashid
Thanks, that certainly seems helpful, I'll try to follow the guidlines given 
in the URL you've provided.  Hopefully that is enough information I will 
need to end the initial confusion.  I'll bug you guys again if I get stuck 
again.

Once again thanks for your help.

Regards,
Muhammad Momin Rashid.

"Matt Bathje" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Muhammad Momin Rashid wrote:
>
>> Hello All,
>>
>> I have recently migrated our application from struts 1.1 to 1.2.4.  There 
>> is some confusion in my mind over use of ActionErrors and ActionMessages.
>>
>> 1. Since ActionError is depricated, I have changed ActionError to 
>> ActionMessage in my code as recommended.
>>
>> 2. ActionErrors is still being used to propogate error to the front end 
>> using ActionErrors.add(String, new ActionMessage())
>>
>> 3. saveErrors(HttpServletRequest request, ActionErrors errors) is 
>> depricated and its recommended that we use saveErrors(HttpServletRequest 
>> request, ActionMessages errors).  How do I fit this in?  as my errors are 
>> still being reported as ActionErrors.  Do I need to change from 
>> ActionErrors to ActionMessages now?  If so how will that effect the 
>> validations (i have some custom validations put in Form.validate method 
>> as well).
>>
>> 4. If I need to use saveMessages then how do I distinguish between errors 
>> and messages.
>>
>> 5. Currently I am using  at the appropriate places in my 
>> jsp pages, how will that be effected, and what is the desired tags and 
>> their usage given the change of things.
>>
>>
>> Regards,
>> Muhammad Momin Rashid.
>
>
> Perhaps this will be of help to you:
>
> http://wiki.apache.org/struts/StrutsDeprecatedActionErrors
>
>
> Matt 




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



Re: [FRIDAY] GMail invites

2004-09-21 Thread PC Leung
invitation sent.


On Tue, 21 Sep 2004 14:19:20 +0100, James Neville
<[EMAIL PROTECTED]> wrote:
> Shailesh Patel wrote:
> 
> >I've got several more if anyone needs em.
> >- Shailesh
> >
> 
> Love one if you're still handing out ;)
> 
> Cheers
> 
> James.
> 
> This e-mail is confidential. If you have received it in error, you are on notice of 
> its status. Please notify us immediately by reply e-mail and then delete this 
> message from your system. Please do not copy it or use it for any purposes, or 
> disclose its contents to any other person; to do so could be a breach of confidence. 
> Thank you for your cooperation. Please contact +44 (0) 20 72037300 or email [EMAIL 
> PROTECTED] if you need assistance.
> 
> 
> 
> -
> 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: [ANNOUNCE] Struts 1.2.4 (General Availability) Released

2004-09-21 Thread Joe Germuska
At 4:41 PM +0800 9/21/04, Nathan Coast wrote:
Hi,
will the 1.2.4 jars & tlds be uploaded to the maven repos some time soon?
where do they go?
http://www.apache.org/dist/java-repository/struts/jars/
or
http://www.ibiblio.org/maven/struts/jars/
iBiblio mirrors http://www.apache.org/dist/java-repository
I am pretty sure that Apache would prefer that you use the iBiblio 
repository.  The only Apache repository that should generally be used 
is the one for non-GA packages: http://cvs.apache.org/repository

I'm pretty busy at work this week, but if no one else has time to put 
the files in the mirror directories, I will try to do it as soon as I 
can.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
   - Carlos Santana

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


Re: Where to put the business logics?

2004-09-21 Thread DGraham

I don't know how to answer this other
than:

class HelloWorld {   
   public static void main(String[]
args) {
      System.out.println("Hello
World!");
   }    
   public businessMethodA()
{
      // Implement some
business logic      
   }
}







PC Leung <[EMAIL PROTECTED]>

09/21/2004 10:38 AM



Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
Struts Users Mailing List
<[EMAIL PROTECTED]>


cc



Subject
Re: Where to put the business
logics?








Any suggested POJO web sites so that I can have a
glance?



- Original Message -
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tue, 21 Sep 2004 10:12:16 -0400
Subject: Re: Where to put the business logics?
To: Struts Users Mailing List <[EMAIL PROTECTED]>


Depending on your needs, a POJO (Plain Ole Java Object) implementing
your business may be sufficient.  BTW, you might be interested in
Rod
Johnsons "Expert J2EE w/o EJB" book:
http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315

Dennis 




PC Leung <[EMAIL PROTECTED]> 

09/21/2004 10:03 AM 

Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


ToStruts Users Mailing List <[EMAIL PROTECTED]> 

cc

SubjectRe: Where to put the business logics?











Lots of people support the use of EJB.
I have not touched EJB before. 
I have a book about EJB which is quite difficult.
I am afraid of being too old to learn.
Any other simpler methods for oldies (nearly 41)?

-
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: array of indexed html:text values not submitting

2004-09-21 Thread bradyh
Thanks for the reply.  Here are the relevant sections of LoadAction and
PersistAction:

LoadAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

DynaValidatorForm passForm = (DynaValidatorForm)form;

SimpleItem[] itemsArray = new SimpleItem[2];

itemsArray[0] = new SimpleItem();
itemsArray[0].setQuantity("10");
itemsArray[0].setPrice("45.0");

itemsArray[1] = new SimpleItem();
itemsArray[1].setQuantity("");
itemsArray[1].setPrice("225.0");

passForm.set( "items", itemsArray );

return mapping.findForward( "success" );
}


PersistAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

DynaValidatorForm passForm = (DynaValidatorForm) form;

SimpleItem[] itemArray = (SimpleItem[])passForm.get("items");

return mapping.findForward(forward);
}

>> I'm working from the examples here:
>> http://www.developer.com/java/ejb/article.php/3321521
>>
>> I have an array of values that are sent to a page for editing.  The page
>> is coming up ok with the correct text box values as seen below
>> (item[0].xxx, etc).  But when the form is submitted the changes don't
>> show up in PersistEditAction.  The form contains the original data just
>> as it was before the forward from LoadEditAction.
>>
>> Thanks for any help,
>> Brady
>>
>> 
>> 
>>
>> 
>> 
>>
>>
>> > name="Items"
>> type="org.apache.struts.validator.DynaValidatorActionForm">
>> > type="com.litriusgroup.cart.hibernate.SimpleItem[]" />
>> 
>>
>> > type="com.stuff.struts.LoadEditAction"
>> name="Items"
>> scope="session"
>> validate="false">
>> 
>> 
>> > type="com.stuff.struts.PersistEditAction"
>> name="Items"
>> scope="session"
>> validate="false">
>> 
>> 
>> 
>>
>
>
> Is it possible you can post the relevant parts of LoadEditAction and
> PersistEditAction? Without those I don't think anybody will be able to
> help.
>
> Matt
>
>
>
> -
> 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: Where to put the business logics?

2004-09-21 Thread Nicolas De Loof

I don't agree :
- My app will NEVER be anything else than a webapp
- We are 3 developpers working both on business and web

BUT we defined a business API using interfaces for business logic

Using this, we can change business tier for a mock one for application demo or testing 
cases that may be difficult to
get using real app.

Notice we use spring to link webapp with business model.

Nico.


> That's a good point...
>
> If you KNOW your application is NEVER going to be anything other than a
> web-based application, and if you KNOW you won't need to re-use your
> business logic (or expose it in any way outside the application), and if
> your development team is not really separated (especially if your the only
> developer!) then there's probably not too many good arguments for using
> delegates at all.  Might as well save the time and effort and just put
> everything in the Actions.
>
> The decision has to be based on what you know about the project.  I think
> it's fair to say that the majority of people will tell you that separating
> your business logic from your Actions is a good architectural approach,
> but there are some valid reasons for not bothering with the extra effort,
> and only you can decide.
>
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
> On Tue, September 21, 2004 10:23 am, Michael McGrady said:
> > PC Leung wrote:
> >
> >>In the mailing list, I have read some people suggesting not to put
> >>business logics in Action class. Certainly, business logics should not
> >>be in JSP or Form class. Then where should the business logics be put?
> >>
> >>Thanks
> >>
> > A good answer to this question is impossible to give, PC, without
> > knowing your requirements.  There are some cases where the logic should
> > just be put in the Action class.  The important thing is to know the
> > issues and to do the right thing in your case.  The biggest issue,
> > determining whether you need to get outside your Action class, is
> > whether or not you need to decouple your business logic from your Action
> > class.
> >
> > If so, and this also depends upon what growth you envision, then you
> > need to do the sorts of things that people will recommend on this list.
> > But, you always have to know what the tune is as well as the lyrics, the
> > actual needs versus the technical options.
> >
> > Michael McGrady
> >
> >
> > -
> > 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]


This message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it is 
addressed. If you are not the intended recipient,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


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



Re: Definite Cookie Weirdness (logic:notPresent help)

2004-09-21 Thread Bill Siggelkow
Use 'cookie' not 'name'

 COOKIE Not FOUND


Also, remember that you will be looking at the cookies in the request -- 
not any that have been set in the response.

One other thing, if you truly want to comment out JSP tags so they are 
not translated you must use the JSP comment markers  (<%-- this will not 
be translated --%>).

- Bill Siggelkow
CCNY wrote:
Alright, I'm definitely in need of help now. I'm SURE I'm setting the
cookie in the response, but I cant get  to work as I
expect.
Help! What am I doing wrong?
-JSP-
 
 	 COOKIE Not FOUND
	
   

JAVA in Action Class
if(authUser(userName,password)){
String cookieValue = new java.util.Date().toString();
System.out.println("Set cookie for "+userName+ " as "+cookieValue);
Cookie c = new Cookie ("validUser", cookieValue);
  	c.setMaxAge(3600*24); 
response.addCookie(c);
return (mapping.findForward("success"));
}else{
return (mapping.findForward("failure"));
}

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


Re: Struts Bloat: Framework

2004-09-21 Thread James Mitchell
In a small way I agree with you, but in a another way I do not.

What do you think will happen in 2 months, or 2 weeks, when someone is
searching the mail archives and sees statements like "it brings more
problems than it solves"?  And as they read on, there is no rebuttal.  One
might assume the author is knowledgeable and accurate.

It is frustrating when people who don't understand something bash it on
public forums.  Look at what happened as JSF was being created.  You had a
bunch of nay-sayers whining about how JSF is competitor to Struts, etc, etc.
I mean, come on.  That's like saying OJB or Hibernate is competing with
JDO.that just cracks me up.

Anyway, I'm signing off this thread, and since you seem to love to have the
'last word', I'll politely let you have it.

See ya on another thread.


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 10:17 AM
Subject: Re: Struts Bloat: Framework


> I think the reference to Tiles was rather offhand and incidental and
> made solely in relation to another isssue which you are on record as not
> interested in, Jim.   Missing the point is, of course, forgiveable.  We
> all do that.  When you do so /and/ call someone's thought "ignorant",
> that is unfortunate.  The main point, that Tiles should be moved,
> whether you like it or not, is, I think, valid.  I like (love) Tiles and
> agree with the gentleman's real point.
>
> Michael McGrady
>
> James Mitchell wrote:
>
> >>I think it brings more problems than it solves.
> >>
> >>
> >
> >That's a pretty ignorant statement.
> >
> >Why would you say such a thing?  How
> >many people or projects are using Tiles (whether successfully or not)?
How
> >could you possibly know?  So how could you know how many problems it
brings?
> >
> >With any product or feature of any software, the more popular something
is,
> >the more visibility (and critics) it generally has.  Look at Validator.
It
> >has many critics and many enthusiasts.  I have used Tiles on many
projects,
> >and despite the slight extra memory consumption, the pros far outweigh
the
> >cons.
> >
> >Just because some feature of some product is complex (and maybe poorly
> >documented) does not mean "it brings more problems than it solves".
> >
> >If you don't like the way something is, change it.  If enough people like
> >your changes, submit them and they will likely be committed.  But
comments
> >like these do not help in making anything better.
> >
>
>


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



Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
Rick Reumann wrote:
Michael McGrady wrote the following on 9/21/2004 9:37 AM:
What do you do with classes like DispatchAction and ImageButtonBean 
(which solve the same problem in different ways) when someone comes 
up with something better?   

You need to include some flavors of DispatchAction in the core of 
Struts and although I don't use Tiles (I use Sitemesh) and I no longer 
use DynaForms of any flavor, I think there is no problem including 
them. Now, if you included SiteMesh as 'part' of Struts that would be 
dumb since it is completely stand alone, but Tiles (from what I 
remember, relies on Struts, but I could be wrong there).

Granted there is a fine line sometimes between bloat and necessary, 
but I only see major bloat when I'm 'required' to extend a bunch of 
classes that I don't really need.

One of the nice things about Struts is it comes with a bunch of stuff 
to make your job easier. You don't have to go google around to find 
some Dispatch implementation or even for a solution for web layout or 
dynamic beans. (It doesn't mean you can't go find other solutions.) 
Having this stuff easily available is a huge plus especially for new 
developers.

Under your philosophy Struts would end up being just one 
ActionServlet, a config file, a RequestProcessor, one Action and one 
ActionForm. Then you'd be on your own to find validation, web layout, 
dispatch, and tag solutions.

Hi, Rick,
You are reading me too severly.  I am seeing second class work being put 
into the framework and it will be very hard to get out.  It is not 
helping users but is encouraging them to use Struts oafishly.  I am not 
saying this is rampant.  I am saying that doing something about the 
present tendancy to put crap code that is unrelated to the mission into 
Struts should be addressed.

I certainly think that the tags that are tied to forms are part of the 
framework.  I think there are distinctions here that are more finely put 
than the present division you see in our discussion. 

I am all for people being assisted with using the framework.  Why 
wouldn't I be?  The point is that Struts is getting to that point in its 
maturity where it needs to carefully consider what additions are 
worthwhile.  The newer additions are quite suspicious.  I think that 
ImageButtonBean, which I advocated in the early stages of that problem, 
is a rather shocking addition to the framework.  When the canaries start 
dying, then we need to look at these issues.  We can wait until Struts 
is full of crap like ImageButtonBean, or we can address the issues 
early.  That is my only point.  When a framework is essentially done, 
the real innovators will go off to other things and the remaining 
caretakers can easily blotch the whole deal if they are not reminded of 
the mission. 

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


Re: Where to put the business logics?

2004-09-21 Thread PC Leung
Any suggested POJO web sites so that I can have a glance?



- Original Message -
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tue, 21 Sep 2004 10:12:16 -0400
Subject: Re: Where to put the business logics?
To: Struts Users Mailing List <[EMAIL PROTECTED]>


Depending on your needs, a POJO (Plain Ole Java Object) implementing
your business may be sufficient.  BTW, you might be interested in Rod
Johnsons "Expert J2EE w/o EJB" book:
http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315

Dennis 




PC Leung <[EMAIL PROTECTED]> 

09/21/2004 10:03 AM 

Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


ToStruts Users Mailing List <[EMAIL PROTECTED]> 

cc

SubjectRe: Where to put the business logics?











Lots of people support the use of EJB.
I have not touched EJB before. 
I have a book about EJB which is quite difficult.
I am afraid of being too old to learn.
Any other simpler methods for oldies (nearly 41)?

-
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: [FRIDAY] GMail invites

2004-09-21 Thread Prashanth.S
I have 6Send me ur official idsFCFS

Amit Gupta <[EMAIL PROTECTED]> wrote:can i have one too

amit gupta
india

- Original Message -
From: "Amjad Shahrour" 
To: "'Struts Users Mailing List'" 
Sent: Tuesday, September 21, 2004 4:05 AM
Subject: RE: [FRIDAY] GMail invites


Can I have one please!

Regards,
Amjad

-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
Sent: 26 ÑÌÈ, 1425 06:54 ã
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] GMail invites



I've got 6 invites available to whoever wants them.

Wiebe de Jong


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

style=ont-size:13.5px" sans-serif? 
Helvetica,>_
__
Labbaik - The Integrated Solution
Provider for the Hospitality Industry



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




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.756 / Virus Database: 506 - Release Date: 9/8/2004


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




-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

R: Where to put the business logics?

2004-09-21 Thread Amleto Di Salle
For POJO see http://c2.com/cgi/wiki?PlainOldJavaObject

Anyway POJO stands for "Plain Old Java Object". :-)

BR
/Amleto


-Messaggio originale-
Da: Onur Tokan [mailto:[EMAIL PROTECTED] 
Inviato: martedì 21 settembre 2004 16.24
A: Struts Users Mailing List; [EMAIL PROTECTED]
Oggetto: Re: Where to put the business logics?


What is POJO anyway? Why differs from other J2EE technologies? Is it
requires AS?
-- 
Regards,
M. Onur Tokan

On Tue, 21 Sep 2004 10:18:38 -0400 (EDT), Frank W. Zammetti (MLists)
<[EMAIL PROTECTED]> wrote:
> Thanks for defining POJO Dennis!  I've seen that floating around 
> lately and wasn't sure what it meant.  Glad it's not something new 
> I'll have to learn :)
> 
> (Leave it to the tech industry to invent an acronym for something that

> doesn't need an acronym at all! :) )
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
> 
> On Tue, September 21, 2004 10:12 am, [EMAIL PROTECTED] 
> said:
> > Depending on your needs, a POJO (Plain Ole Java Object) implementing

> > your business may be sufficient.  BTW, you might be interested in 
> > Rod Johnsons "Expert J2EE w/o EJB" book: 
> > http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315
> >
> > Dennis
> >
> >
> >
> >
> > PC Leung <[EMAIL PROTECTED]>
> > 09/21/2004 10:03 AM
> > Please respond to
> > "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >
> >
> > To
> > Struts Users Mailing List <[EMAIL PROTECTED]>
> > cc
> >
> > Subject
> > Re: Where to put the business logics?
> >
> >
> >
> >
> >
> >
> > Lots of people support the use of EJB.
> > I have not touched EJB before.
> > I have a book about EJB which is quite difficult.
> > I am afraid of being too old to learn.
> > Any other simpler methods for oldies (nearly 41)?
> >
> > 
> > -
> > 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: Where to put the business logics?

2004-09-21 Thread PC Leung
I strongly agree with you of decoupling business logic and action class.
If ejb is the right way, any easy tutorial online?


On Tue, 21 Sep 2004 07:23:32 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> 
> 
> PC Leung wrote:
> 
> >In the mailing list, I have read some people suggesting not to put
> >business logics in Action class. Certainly, business logics should not
> >be in JSP or Form class. Then where should the business logics be put?
> >
> >Thanks
> >
> A good answer to this question is impossible to give, PC, without
> knowing your requirements.  There are some cases where the logic should
> just be put in the Action class.  The important thing is to know the
> issues and to do the right thing in your case.  The biggest issue,
> determining whether you need to get outside your Action class, is
> whether or not you need to decouple your business logic from your Action
> class.
> 
> If so, and this also depends upon what growth you envision, then you
> need to do the sorts of things that people will recommend on this list.
> But, you always have to know what the tune is as well as the lyrics, the
> actual needs versus the technical options.
> 
> Michael McGrady
> 
> 
> 
> 
> -
> 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: pre-filled form values no longer work with struts 1.2.4

2004-09-21 Thread Ralf Hauser
Niall,

Ok, I changed the form scope to "session" in all action mappings in my
struts-config.xml and that seems to work.
Thx a lot!

Ralf

P.S.: This was easier than going through all my java action classes since it
was only in one file. I hope this won't cause other side-effects!
> -Original Message-
...
> 
> My guess is that the scope on the mapping for your "login" mapping is
> "request" - Struts  tag now will check if that form exists in
> "request" scope - if it doesn't it will create a new one - ignoring the
> one
> you stored in the session. Either change the action mapping to "session"
> or
> store the pre-filled loginForm in request scope instead.



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



RE: pre-filled form values no longer work with struts 1.2.4

2004-09-21 Thread Ralf Hauser
Niall,

Ok, I changed the form scope to "session" in all action mappings in my
struts-config.xml and that seems to work.
Thx a lot!

Ralf

P.S.: This was easier than going through all my java action classes since it
was only in one file. I hope this won't cause other side-effects!
> -Original Message-
...
> 
> My guess is that the scope on the mapping for your "login" mapping is
> "request" - Struts  tag now will check if that form exists in
> "request" scope - if it doesn't it will create a new one - ignoring the
> one
> you stored in the session. Either change the action mapping to "session"
> or
> store the pre-filled loginForm in request scope instead.



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



Re: Where to put the business logics?

2004-09-21 Thread Frank W. Zammetti (MLists)
That's a good point...

If you KNOW your application is NEVER going to be anything other than a
web-based application, and if you KNOW you won't need to re-use your
business logic (or expose it in any way outside the application), and if
your development team is not really separated (especially if your the only
developer!) then there's probably not too many good arguments for using
delegates at all.  Might as well save the time and effort and just put
everything in the Actions.

The decision has to be based on what you know about the project.  I think
it's fair to say that the majority of people will tell you that separating
your business logic from your Actions is a good architectural approach,
but there are some valid reasons for not bothering with the extra effort,
and only you can decide.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Tue, September 21, 2004 10:23 am, Michael McGrady said:
> PC Leung wrote:
>
>>In the mailing list, I have read some people suggesting not to put
>>business logics in Action class. Certainly, business logics should not
>>be in JSP or Form class. Then where should the business logics be put?
>>
>>Thanks
>>
> A good answer to this question is impossible to give, PC, without
> knowing your requirements.  There are some cases where the logic should
> just be put in the Action class.  The important thing is to know the
> issues and to do the right thing in your case.  The biggest issue,
> determining whether you need to get outside your Action class, is
> whether or not you need to decouple your business logic from your Action
> class.
>
> If so, and this also depends upon what growth you envision, then you
> need to do the sorts of things that people will recommend on this list.
> But, you always have to know what the tune is as well as the lyrics, the
> actual needs versus the technical options.
>
> Michael McGrady
>
>
> -
> 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]



Definite Cookie Weirdness (logic:notPresent help)

2004-09-21 Thread CCNY
Alright, I'm definitely in need of help now. I'm SURE I'm setting the
cookie in the response, but I cant get  to work as I
expect.

Help! What am I doing wrong?

-JSP-
 
 COOKIE Not FOUND

   

JAVA in Action Class
if(authUser(userName,password)){
String cookieValue = new java.util.Date().toString();
System.out.println("Set cookie for "+userName+ " as "+cookieValue);
Cookie c = new Cookie ("validUser", cookieValue);
c.setMaxAge(3600*24); 
response.addCookie(c);
return (mapping.findForward("success"));
}else{
return (mapping.findForward("failure"));
}

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



Re: Where to put the business logics?

2004-09-21 Thread Onur Tokan
What is POJO anyway? Why differs from other J2EE technologies? Is it
requires AS?
-- 
Regards,
M. Onur Tokan

On Tue, 21 Sep 2004 10:18:38 -0400 (EDT), Frank W. Zammetti (MLists)
<[EMAIL PROTECTED]> wrote:
> Thanks for defining POJO Dennis!  I've seen that floating around lately
> and wasn't sure what it meant.  Glad it's not something new I'll have to
> learn :)
> 
> (Leave it to the tech industry to invent an acronym for something that
> doesn't need an acronym at all! :) )
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
> 
> On Tue, September 21, 2004 10:12 am, [EMAIL PROTECTED] said:
> > Depending on your needs, a POJO (Plain Ole Java Object) implementing your
> > business may be sufficient.  BTW, you might be interested in Rod Johnsons
> > "Expert J2EE w/o EJB" book:
> > http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315
> >
> > Dennis
> >
> >
> >
> >
> > PC Leung <[EMAIL PROTECTED]>
> > 09/21/2004 10:03 AM
> > Please respond to
> > "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >
> >
> > To
> > Struts Users Mailing List <[EMAIL PROTECTED]>
> > cc
> >
> > Subject
> > Re: Where to put the business logics?
> >
> >
> >
> >
> >
> >
> > Lots of people support the use of EJB.
> > I have not touched EJB before.
> > I have a book about EJB which is quite difficult.
> > I am afraid of being too old to learn.
> > Any other simpler methods for oldies (nearly 41)?
> >
> > -
> > 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: Where to put the business logics?

2004-09-21 Thread Michael McGrady
PC Leung wrote:
In the mailing list, I have read some people suggesting not to put
business logics in Action class. Certainly, business logics should not
be in JSP or Form class. Then where should the business logics be put?
Thanks
A good answer to this question is impossible to give, PC, without 
knowing your requirements.  There are some cases where the logic should 
just be put in the Action class.  The important thing is to know the 
issues and to do the right thing in your case.  The biggest issue, 
determining whether you need to get outside your Action class, is 
whether or not you need to decouple your business logic from your Action 
class. 

If so, and this also depends upon what growth you envision, then you 
need to do the sorts of things that people will recommend on this list.  
But, you always have to know what the tune is as well as the lyrics, the 
actual needs versus the technical options. 

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


Re: Checking a cookie or redirecting - best way? (Getting ERROR, Help!)

2004-09-21 Thread CCNY
Daniel

I'm following this example : http://j2ee.masslight.com/Chapter5.html
and it seems to have the /> at the end.

I think I must be confused. Could I have a bad TLD?

Also, the  tag is telling me the cookie isn't there.
(I see the notpresent=true message below.

JSP:
 
 NO COOKIE FOUND NOTPRESENT=true

   


On Tue, 21 Sep 2004 14:31:01 +0100, Daniel Perry <[EMAIL PROTECTED]> wrote:
> It is saying that bean:cookie should be an empty tag. As you havnt closed
> the tag, it isnt empty!
> 
> So, should be:
> 
> 
> Notice the slash on the end!
> 
> Daniel.
> 
> 
> 
> > -Original Message-
> > From: CCNY [mailto:[EMAIL PROTECTED]
> > Sent: 21 September 2004 14:04
> > To: Struts Users Mailing List
> > Subject: Fwd: Checking a cookie or redirecting - best way? (Getting
> > ERROR, Help!)
> >
> >
> > So when I run the jsp below (ironically named "success.jsp") I get the
> > following error
> >
> > org.apache.jasper.JasperException: /pages/success.jsp(4,0) According
> > to TLD, tag bean:cookie must be empty, but is not
> >
> > Huh?
> >
> > I also tried  in the JSP, sme error.
> >
> > Can anyone help? am i useing bean:cookie wrong?
> >
> >
> > -- Forwarded message --
> > From: Dave Johnson <[EMAIL PROTECTED]>
> > Date: Tue, 21 Sep 2004 08:41:47 -0400
> > Subject: Checking a cookie or redirecting - best way?
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >
> > hi all
> >
> > Well now I've got this cookie that I need to check for, and if it
> > exists, lovely. Nothing else needs to be done.
> >
> > if NOT, I need to send the user to a specific page (/error.jsp).
> >
> > I was thinking of using  to check for the bean, but I
> > dont want to wrap all my jsp code with that tag, what I really want is
> > something simple at the beginning that checks if the bean is there
> > then does a redirect if there's an error.
> >
> > should I be using a struts tag or scriptlet?
> >
> > what about if I need to include something like that in HTML (using
> > javascript) has anyone done that?
> >
> > Thanks
> >
> > D
> >
> > -
> > 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: [FRIDAY] GMail invites

2004-09-21 Thread Dietmar Krause
Return Receipt
   
   
   Your document: Re: [FRIDAY] GMail invites   
   
   
   
   was received by:   Dietmar Krause/NRL/DE/Draeger
   
   
   
   at:09/21/2004 03:23:21 PM   
   
   
   




Important Note 
This email and any attachment hereto are confidential and may contain trade secrets or 
may be otherwise protected from disclosure. If you have received it in error you are 
in 
notice of this fact. Please notify us immediately by reply email and then delete this 
email and any attachment from your system. Please understand that you are not allowed 
to 
copy this email or any attachment hereto or disclose its contents to any other person. 
Thank you.

Wichtiger Hinweis 
Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder 
sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich 
erhalten
haben, ist Ihnen dieser Umstand hiermit bekannt. Bitte benachrichtigen Sie uns in 
diesem Fall umgehend durch Ruecksendung der E-Mail und loeschen Sie diese E-Mail 
einschließ-
lich etwaiger Anlagen von Ihrem System. Diese E-Mail und ihre Anlagen duerfen 
weiterhin nicht kopiert oder an Dritte weitergegeben werden. Vielen Dank.

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

Re: Where to put the business logics?

2004-09-21 Thread Frank W. Zammetti (MLists)
Thanks for defining POJO Dennis!  I've seen that floating around lately
and wasn't sure what it meant.  Glad it's not something new I'll have to
learn :)

(Leave it to the tech industry to invent an acronym for something that
doesn't need an acronym at all! :) )

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Tue, September 21, 2004 10:12 am, [EMAIL PROTECTED] said:
> Depending on your needs, a POJO (Plain Ole Java Object) implementing your
> business may be sufficient.  BTW, you might be interested in Rod Johnsons
> "Expert J2EE w/o EJB" book:
> http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315
>
> Dennis
>
>
>
>
> PC Leung <[EMAIL PROTECTED]>
> 09/21/2004 10:03 AM
> Please respond to
> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>
> To
> Struts Users Mailing List <[EMAIL PROTECTED]>
> cc
>
> Subject
> Re: Where to put the business logics?
>
>
>
>
>
>
> Lots of people support the use of EJB.
> I have not touched EJB before.
> I have a book about EJB which is quite difficult.
> I am afraid of being too old to learn.
> Any other simpler methods for oldies (nearly 41)?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Struts Bloat: Framework

2004-09-21 Thread Rick Reumann
Michael McGrady wrote the following on 9/21/2004 9:37 AM:
What do you do with classes like 
DispatchAction and ImageButtonBean (which solve the same problem in 
different ways) when someone comes up with something better?   
You need to include some flavors of DispatchAction in the core of Struts 
and although I don't use Tiles (I use Sitemesh) and I no longer use 
DynaForms of any flavor, I think there is no problem including them. 
Now, if you included SiteMesh as 'part' of Struts that would be dumb 
since it is completely stand alone, but Tiles (from what I remember, 
relies on Struts, but I could be wrong there).

Granted there is a fine line sometimes between bloat and necessary, but 
I only see major bloat when I'm 'required' to extend a bunch of classes 
that I don't really need.

One of the nice things about Struts is it comes with a bunch of stuff to 
make your job easier. You don't have to go google around to find some 
Dispatch implementation or even for a solution for web layout or dynamic 
beans. (It doesn't mean you can't go find other solutions.) Having this 
stuff easily available is a huge plus especially for new developers.

Under your philosophy Struts would end up being just one ActionServlet, 
a config file, a RequestProcessor, one Action and one ActionForm. Then 
you'd be on your own to find validation, web layout, dispatch, and tag 
solutions.

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


Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
I think the reference to Tiles was rather offhand and incidental and 
made solely in relation to another isssue which you are on record as not 
interested in, Jim.   Missing the point is, of course, forgiveable.  We 
all do that.  When you do so /and/ call someone's thought "ignorant", 
that is unfortunate.  The main point, that Tiles should be moved, 
whether you like it or not, is, I think, valid.  I like (love) Tiles and 
agree with the gentleman's real point.

Michael McGrady
James Mitchell wrote:
I think it brings more problems than it solves.
   

That's a pretty ignorant statement.  

Why would you say such a thing?  How
many people or projects are using Tiles (whether successfully or not)?  How
could you possibly know?  So how could you know how many problems it brings?
With any product or feature of any software, the more popular something is,
the more visibility (and critics) it generally has.  Look at Validator.  It
has many critics and many enthusiasts.  I have used Tiles on many projects,
and despite the slight extra memory consumption, the pros far outweigh the
cons.
Just because some feature of some product is complex (and maybe poorly
documented) does not mean "it brings more problems than it solves".
If you don't like the way something is, change it.  If enough people like
your changes, submit them and they will likely be committed.  But comments
like these do not help in making anything better.



Re: Where to put the business logics?

2004-09-21 Thread DGraham

Depending on your needs, a POJO (Plain
Ole Java Object) implementing your business may be sufficient.  BTW,
you might be interested in Rod Johnsons "Expert J2EE w/o EJB"
book: http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315

Dennis






PC Leung <[EMAIL PROTECTED]>

09/21/2004 10:03 AM



Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
Struts Users Mailing List
<[EMAIL PROTECTED]>


cc



Subject
Re: Where to put the business
logics?








Lots of people support the use of EJB.
I have not touched EJB before. 
I have a book about EJB which is quite difficult.
I am afraid of being too old to learn.
Any other simpler methods for oldies (nearly 41)?

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


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

[OT] More gmail invites

2004-09-21 Thread Durham David R Jr Contr 805 CSPTS/SCE
I've got quite a few.  Send an e-mail to [EMAIL PROTECTED] or
[EMAIL PROTECTED] and I'll send an invite to not necessarily the
first requests.

 

 

- Dave



Re: Redirect error: Browser or my code?

2004-09-21 Thread Doug
Bill Siggelkow wrote:
Cool -- I got this error the other day when I created a filter -- mapped 
to /* -- that did a redirect to another page in my app -- can you guess 
the result?  An HTTP Infinite Loop!

Håkon T Sønderland wrote:
I'm getting a curious error when I try to navigate
in the browser (firefox 1.0RC) from the normal user interface
to the administrative login of my struts application.
The whole application is running under https.
I keep getting this error message (in a modal pop-up window):
"Redirection limit for this URL exceeded.  Unable to load the 
requested page. This may be caused by cookies that are blocked."

(Cookies are fully allowed in my browser btw).
I have no idea where this is coming from, can't see anything in the
application logs either.
So is this the browser?  Or my application?
Any ideas appreciated as I'm a bit nervous this will happen in
the wild.
Håkon
Yep.  Redirection limit has always been an infinite loop every time I've seen 
it.  Also, since you're using Firefox, add the excellent LiveHttpHeaders 
plugin.  I've found it quite useful in looking at redirection issues.

http://livehttpheaders.mozdev.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [tiles] Potential bug with InsertTag

2004-09-21 Thread Niall Pemberton
Looks to me like this is related to this bug...

http://issues.apache.org/bugzilla/show_bug.cgi?id=13279

This was implemented in Revision 1.20 of InsertTag

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/taglib/tiles/InsertTag.java

I realize this doesn't resolve the issue, but might point you in the right
direction.

Niall

- Original Message - 
From: "Sean Schofield" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 6:55 PM
Subject: [tiles] Potential bug with InsertTag


> Now that I've upgraded to Struts 1.2, I've noticed a difference in how
> my application is handled.  It seems that  I can no longer redirect to
> an error page when there is a bug in the JSP.
>
> I used to get the Tomcat 500 error page but its no longer coming up.  I
> also get an error logged to the commons log from InsertTag.  I tried
> catching exceptions in my servlet filter and redirecting to an error
> page but I get  an exception ("Cannot forward after response has been
> committed." )  I do not believe the code on my end is the cause of the
> problem (although it's certainly possible.)
>
> My theory is that either changes to the InsertTag or somewhere else is
> causing the response to be committed prematurely.  Is this possible?
>
> Thanks
> sean



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



Re: how to access JSF Managed Bean in Struts Action class

2004-09-21 Thread Craig McClanahan
On Mon, 20 Sep 2004 08:41:55 -0600, BaTien Duong
<[EMAIL PROTECTED]> wrote:
> 
> Just 2 quick questions from expert advise. Assuming FooBean is
> initialized by Faces in the session:

>  1) Under what cirscunstances we shoud use Faces or directly
> accessing the component under user session, assuming that you also use
> faces with other framework such as Tiles?

I'm not quite sure what you are referring to, but it's quite
straightforward to reference properties from a session-scoped bean. 
For example, assume "user" is a UserProfileBean and has a name
property.  You can use expressions like this:

Hello 

Note that it doesn't matter whether the bean was created by the
managed beans facility or via programmatic logic (say, being placed
there by an Action), so it is very straightforward to interoperate.

> 2) If FooBean is a default user profile bean, does faces have some
> kind of caching so it can just replicate the default configuration of
> the user profile for every created user session? If the caching is not a
> part of spec then which implementation (RI or myfaces) has it?

You can specify initial values for the properties of a managed bean by
using  elements nested inside:

  
user
com.mycompany.UserProfileBean
session

  userType
  java.lang.String
  Standard

  

The content of the  element can be either a literal value or a
value binding expression, so you can have your initialization grab
dynamically calculated values if you need them.

Craig

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



Re: [OT] GMail invites

2004-09-21 Thread Andrew Close
i too have 6 invites available.  
please send me requests off list.

andy

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



Re: COMPARING PROPERTY VALUES OF TWO JAVABEANS ...please help

2004-09-21 Thread O. Oke
Erik and Frank,

Thanks.  I would consider your suggestions.

Ola.


 --- "Frank W. Zammetti (MLists)"
<[EMAIL PROTECTED]> wrote: 
> Erik's answer is what I would call the correct
> one... That being said, if
> for some reason you don't want to use that approach,
> I don't think there's
> anything specifically in Struts to do what you want
> anyway, but you might
> want to have a look through the Commons BeanUtils
> packages.  If such a
> thing exists, I'd bet on it being there.
> 
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> On Sun, September 19, 2004 6:47 pm, Erik Weber said:
> > Why don't you just override the equals method in
> your bean class?
> >
> > public boolean equals(Object o) {
> >
> >   if (!(o instanceof MyClass)) return false;
> >
> >   MyClass bean = (MyClass) o;
> >
> >   if (!(name.equals(bean.name))) return false;
> >
> >   if (!(sex.equals(bean.sex))) return false;
> >
> >   //etc. . .
> >
> >   return true;
> >
> > }
> >
> >
> > Then you can just ask:
> >
> > if (bean1.equals(bean2))
> >
> >
> > Erik
> >
> >
> > O. Oke wrote:
> >
> >>Please, I want find out if the value of each of
> the
> >>matching properties in two beans are the same.
> >>
> >>BACKGROUND
> >>==
> >>I have two JAVABEANS A AND B. They both have name
> and
> >>sex properties amongst others.  I want to find out
> if
> >>A.name == B.name and A.sex == B.sex.
> >>Is there any method in Struts that is designed to
> do
> >>this type of comparison? i.e.
> >>int objName.compareJavaBeans(javaBean1, javaBean2)
> >>
> >>Presently, I am doing this:
> >>String beanBk = customerBeanBk.getCustomerNo()+
> >>customerBeanBk.getFirstName() +
> >>customerBeanBk.getLastName();
> >>...
> >>
> >>String beanDbCp = customerBeanDbCp.getCustomerNo()
> +
> >>customerBeanDbCp.getFirstName() +
> >>customerBeanDbCp.getLastName();
> >>...
> >>if (beanBk.equals(beanDbCp)){   .   }
> >>
> >>
> >>
> >>Thank you
> >>
> >>
> >>
> >>
> >>
> >>
> >>
>
>>___ALL-NEW
> Yahoo!
> >> Messenger - all new features - even more fun!
> >> http://uk.messenger.yahoo.com
> >>
>
>>-
> >>To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  





___ALL-NEW Yahoo! Messenger - 
all new features - even more fun!  http://uk.messenger.yahoo.com

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



Re: Where to put the business logics?

2004-09-21 Thread PC Leung
Lots of people support the use of EJB.
I have not touched EJB before. 
I have a book about EJB which is quite difficult.
I am afraid of being too old to learn.
Any other simpler methods for oldies (nearly 41)?

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



Re: Struts Bloat: Framework

2004-09-21 Thread Michael McGrady
James Mitchell wrote:
I have no interest in the threads about DispatchAction or whatever (I only
had a cursory look).  I am just commenting about double posting.
Thanks.
 

Yes, Jim, you are "just commenting about double posting".  I know.  The 
other implications in your notes are purely accidental and are not meant 
to impune anything or anyone living or dead.  ;-)  And, in doing so you 
are using more space in the Struts hemisphere than was originally 
misused accrding to your best lights.  Actually, it made sense that most 
people on dev would be on user.  I am mindful of other considerations, 
however, which you have not addressed.

Michael McGrady
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 9:28 AM
Subject: Re: Struts Bloat: Framework
 

James Mitchell wrote:
   

Please do not cross post to both lists.  Most of us on dev are also on
 

user.
 

If I choose to reply or ignore you on dev, I'll do the same on user.
Thanks.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
 

I explained why in the post.  Your note doubles the traffic you complain
about Jim.  ;-)  Anyway, I presume that there will be scant
consideration of this issue, for various humorous reasons.
Michael



  1   2   >