RE: Unit Test in struts

2004-01-21 Thread Shane Mingins
You could be thinking of StrutsTestCase but I am not sure if it will test
your JSP pages?  
http://strutstestcase.sourceforge.net/


To test web pages you could look at Canoo WebTest
http://webtest.canoo.com/webtest/manual/WebTestHome.html

HTH
Shane

 -Original Message-
 From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 22 January 2004 8:17 a.m.
 To: [EMAIL PROTECTED]
 Subject: Unit Test in struts
 
   Hi there! I've heard about a tool (like JUnit) but especific to be
 used
 with struts, where I can test my actions, forms and jsp pages, problem is
 ... I cant rememeber the name, does anyone knows about it?
 
 thnx
 
 Vinicius
 
 
 -
 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] Struts meets Swing

2003-12-09 Thread Shane Mingins
Just found these  Someone may find them of interest (or not)  :-)

http://javaboutique.internet.com/tutorials/Swing/
http://javaboutique.internet.com/tutorials/Swing/ 

http://javaboutique.internet.com/tutorials/Swing2/
http://javaboutique.internet.com/tutorials/Swing2/ 

Shane

Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522




RE: IDE

2003-11-19 Thread Shane Mingins

 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 20 November 2003 3:44 a.m.
 To: [EMAIL PROTECTED]
 Subject: RE: IDE
 For what I need to do today, eclipse is the one that sucks the *least*,
 but make no mistake: it still sucks. Nice fast java editing. XML and jsp
 editors totally suck though.
 

What is the problem with the XML and JSP editors?   Is there lack of code
completion?  If so have a look at www.intellij.com

Shane


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



RE: Accessing a static final constant from Class in JSP

2003-11-17 Thread Shane Mingins
Just a thought ... if linkEdit is only used on the JSP's for Struts would it
be better placed in the resources.properties file?

Shane

 -Original Message-
 From: Jimmy Emmanual [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 18 November 2003 12:41 p.m.
 To: 'Struts Users Mailing List'
 Subject: RE: Accessing a static final constant from Class in JSP
 
 Import the class in your jsp, then you can directly access it.
 
 %@ page import=GSOPConstants%
 
 -Original Message-
 From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 17, 2003 2:17 PM
 To: [EMAIL PROTECTED]
 Subject: Accessing a static final constant from Class in JSP
 
 
 Hi,
  I have a class called ProjConstants.java which is a static class with
 some static final constants here is the sample
 
 public class GSOPConstants{
   public static final String LINK_EDIT = linkEdit;
 }
 
How can I access this LINK_EDIT  constant from JSP
 without
 using scriplets???
 
Any help appreciated.
 
 Regards,
 S!
 
 
 
 -
 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]



[FRIDAY] Rugby World Cup joke

2003-11-06 Thread Shane Mingins
A man has tickets for the Rugby World Cup Final between New Zealand and
Australia. As he sits down, another man comes and asks if anyone is sitting
in the seat next to him.  He replies, The seat is empty.

This is incredible, said the man.  Who in their right mind would have a
seat like this for the World Cup Final, the biggest sporting event in the
world, and not use it?

He says, Well, actually, the seat belongs to me. I was supposed to come
with my wife, but she passed away. This is the first Rugby Final we haven't
been to together since we got married in 1987

Oh ... I'm sorry to hear that.  That's terrible. But couldn't you find
someone else - a friend or relative, or even a neighbour to take the seat?

The man shakes his head.

No. They're all at her funeral.



[FRIDAY] Finally a game worth playing except if u belong to the S PCA

2003-11-06 Thread Shane Mingins
http://www.richsalter.btinternet.co.uk/



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



[OT] Could be work ($$) for someone?

2003-10-29 Thread Shane Mingins
Hi

This guy has recently been posting for help to comp.lang.java.help.   Now he
would like to pay someone.

Is .it Italy?

Shane

Max [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 hi to all, can you help me with the realization of a simple app, without 
 business layer, only struts...for a simple polls app?
 i will pay! its very very important, i need it quickly!
 i have posted many times, and i have tried to learn quickly...but not 
 work, i will pay you! its very very important! can you help me?
 
 i want areas as containers for the various survey...
 
 example:
 
 area computer
 ...survey1:
 ...survey2:
 
 area food
 ...survey1:
 ...survey2:
 
 the areas are container of the survey object, i will need to comunicate 
 with ejb for business logic...
 sorry..if i am insistent..
Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



RE: EVALUATION of TEST FRAMEWORKS

2003-10-22 Thread Shane Mingins
I would have thought it depends on what type of testing you are doing???
IOW is it [using XP terminology] Programmer Testing (was called Unit
Testing) or Acceptance Testing??

One that I have had a quick look at and was recommended to me is Canoo
WebTest http://webtest.canoo.com/webtest/manual/WebTestHome.html

It calls web pages and verifies the results, giving comprehensive reports
on success and failure.

Shane


 -Original Message-
 From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 22 October 2003 8:08 p.m.
 To: Struts Users Mailing List
 Subject: EVALUATION of TEST FRAMEWORKS
 
 I have to choose a testing framework for my webapp( written using
 Struts. I am currently reviewing documentation on CACTUS - especially
 StrutsTestCase and on the other hand HTTPUnit. Is that what people use
 to test medium size web-applications.
 Can someone with experience point out some advantages and disadvantages
 of using one or the other. Is there any other framework that you people
 use?
 Thanks a lot,
   Todor
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: Form Question

2003-10-21 Thread Shane Mingins
Here are my thoughts ---

It sounds like a wizard type interaction where each 'next' step does
something until the final result is achieved.  So I would probably have a
session scope action form collecting the cumulative inputs.

The action form could also then provide the state info to your jsp.  Logic
tags could query the state of each input field to decide if it should be
displayed or not.

Any one else?

Shane


 -Original Message-
 From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 21 October 2003 2:46 p.m.
 To: Struts Users Mailing List
 Subject: Form Question
 
 Hello,
 
 I am new to struts and kind of working on my first struts project. One
 of my requirement is that based on a user input on a user form, the same
 form is displayed but with additional/different input field.
 
 These input fields are kind of conditional fields. Based on the value of
 the previous displayed field, the next appropriate field should be
 displayed and so on till the list of the conditional attributes are
 exhausted (I already have a list of these conditional attributes, their
 count and type can vary based on a configurable XML file). The User just
 clicks  continue/continue on the form to get to these new fields. I am
 not sure how to implement this. Do I create different forms for the
 different clicks (but then I loose the dynamic way of adding input
 fields to the form). Is this at all doable with the same form.
 
 Any input would be appreciated.
 
 TIA
 Shishir
 
 -
 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: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/ 5

2003-10-21 Thread Shane Mingins
And an offline copy.  For those of us not local to the country :-)

 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 22 October 2003 2:54 p.m.
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on
 11/ 5
 
 Any chance of getting a webcast setup for this? For those of us not
 fortunate enough to be local to the 'Valley? :)
 
 Van Riper, Mike wrote:
 
 The next meeting of the Silicon Valley Struts User BOF will be held at
 Netscape in Mountain View on Wednesday, November 5th. Craig McClanahan, a
 senior staff engineer for Sun Microsystems, will make a presentation on
 this
 topic:
 
 Struts and JavaServer Faces -- Competition or Coexistence?
 
 Craig is uniquely qualified to give this talk, because he is both the
 original creator of the Struts Framework and co-specification lead for
 JavaServer Faces (JSR-127). You will find the full announcement including
 directions to Netscape here:
 
 http://www.baychi.org/bof/struts/20031105a/
 (Please note the change of venue from
 VeriSign to Netscape for November)
 
 This meeting is being co-hosted by the Silicon Valley Java User Group
 (SVJUG) and the Java SIG of the East Bay I.T. Group (eBIG). Special
 thanks
 goes to SVJUG President Venki Seshaadri for arranging the meeting space
 at
 Netscape.
 
 SVJUG http://www.svjug.org/
  eBIG http://www.ebig.org/sig/sig.aspx?SIGid=21
 
 That's all folks, Van
 
 Mike Van Riper
 mailto:[EMAIL PROTECTED]
 http://www.baychi.org/bof/struts/
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 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]



Defining Struts in Terms of PofEAA

2003-10-19 Thread Shane Mingins
Hi

I was wondering if someone could be so kind as to define the Struts
architecture in terms of the patterns in Martin Fowler's Patterns of
Enterprise Architecture.

Is it possible to define the following elements in the controller layer
(from Struts In Action):

ActionForwards
ActionForm Classes  
ActionServlet
ActionMappings  
Action Classes  

As I read about input controllers vs application controller and then page
controllers, I am wondering whether elements of the Struts framework fall
into these patterns or not?

Could some one familiar with both Struts and PofEAA please enlighten me?

Thanks
Shane

Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



RE: Defining Struts in Terms of PofEAA

2003-10-19 Thread Shane Mingins
Hi Martin

Thanks, but no it didn't ;-) 

I am wondering if (for example) the Action Classes would actually be
considered an ApplicationController(379) as opposed to an Input Controller
which is the term Martin uses for the Controller in the MVC(330) pattern.  

Or maybe it's a PageController(333)???

Cheers
Shane


 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: Monday, 20 October 2003 3:29 p.m.
 To: Struts Users Mailing List
 Subject: Re: Defining Struts in Terms of PofEAA
 
 Shane-
 
 Take a look at
 http://martinfowler.com/eaaCatalog/modelViewController.html
 
 To quote HyperDictionary:
 (MVC) A way of partitioning the design of interactive software. The
 model
 is the internal workings of the program (the algorithms), the view is
 how
 the user sees the state of the model and the controller is how the user
 changes the state or provides input.
 
 Hope this helps,
 
 -Martin
 - Original Message -
 From: Shane Mingins [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, October 19, 2003 10:20 PM
 Subject: Defining Struts in Terms of PofEAA
 
 
  Hi
 
  I was wondering if someone could be so kind as to define the Struts
  architecture in terms of the patterns in Martin Fowler's Patterns of
  Enterprise Architecture.
 
  Is it possible to define the following elements in the controller layer
  (from Struts In Action):
 
  ActionForwards
  ActionForm Classes
  ActionServlet
  ActionMappings
  Action Classes
 
  As I read about input controllers vs application controller and then
 page
  controllers, I am wondering whether elements of the Struts framework
 fall
  into these patterns or not?
 
  Could some one familiar with both Struts and PofEAA please enlighten me?
 
  Thanks
  Shane
 
  Shane Mingins
  Analyst Programmer
  Assure NZ Ltd
  Ph 644 494 2522
 
 
 
  -
  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: Defining Struts in Terms of PofEAA

2003-10-19 Thread Shane Mingins
Thanks for that Pete.  The message you may be referring to was:

Hi all,

What are the various Design Patterns used in Struts? Links welcome


Thanks  Regards,
Prasenjit Narwade.

Does that look like it?  The response was from the Struts In Action book
i.e. (Appendix A).

What I am wanting (if it actually is possible - which means that someone
familiar with Struts and PofEAA will be able to answer) is the whether some
of the PofEAA patterns apply to the elements of the controller layer.

Martin refers to the Struts framework briefly as FrontController(344) and
TemplateView(350).

Thanks 
Shane


 -Original Message-
 From: Peter Abbot [mailto:[EMAIL PROTECTED]
 Sent: Monday, 20 October 2003 3:47 p.m.
 To: Struts Users Mailing List
 Subject: RE: Defining Struts in Terms of PofEAA
 
 I recall a couple of weeks ago somebody responded to a similar question
 breaking each component from the struts framework into the matching
 design pattern(s). Try searching the list archives for it.
 
 
 Pete
 
 -Original Message-
 From: Shane Mingins [mailto:[EMAIL PROTECTED]
 Sent: Monday, 20 October 2003 3:39 p.m.
 To: 'Struts Users Mailing List'
 Subject: RE: Defining Struts in Terms of PofEAA
 
 
 Hi Martin
 
 Thanks, but no it didn't ;-)
 
 I am wondering if (for example) the Action Classes would actually be
 considered an ApplicationController(379) as opposed to an Input
 Controller which is the term Martin uses for the Controller in the
 MVC(330) pattern.
 
 Or maybe it's a PageController(333)???
 
 Cheers
 Shane
 
 
  -Original Message-
  From: Martin Gainty [mailto:[EMAIL PROTECTED]
  Sent: Monday, 20 October 2003 3:29 p.m.
  To: Struts Users Mailing List
  Subject: Re: Defining Struts in Terms of PofEAA
 
  Shane-
 
  Take a look at
  http://martinfowler.com/eaaCatalog/modelViewController.html
 
  To quote HyperDictionary:
  (MVC) A way of partitioning the design of interactive software. The
  model is the internal workings of the program (the algorithms), the
  view is how
  the user sees the state of the model and the controller is how the
 user
  changes the state or provides input.
 
  Hope this helps,
 
  -Martin
  - Original Message -
  From: Shane Mingins [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, October 19, 2003 10:20 PM
  Subject: Defining Struts in Terms of PofEAA
 
 
   Hi
  
   I was wondering if someone could be so kind as to define the Struts
   architecture in terms of the patterns in Martin Fowler's Patterns of
 
   Enterprise Architecture.
  
   Is it possible to define the following elements in the controller
   layer (from Struts In Action):
  
   ActionForwards
   ActionForm Classes
   ActionServlet
   ActionMappings
   Action Classes
  
   As I read about input controllers vs application controller and then
  page
   controllers, I am wondering whether elements of the Struts framework
  fall
   into these patterns or not?
  
   Could some one familiar with both Struts and PofEAA please enlighten
 
   me?
  
   Thanks
   Shane
  
   Shane Mingins
   Analyst Programmer
   Assure NZ Ltd
   Ph 644 494 2522
  
  
  
   
   -
   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]



[FRIDAY] Free Dog.....

2003-10-16 Thread Shane Mingins
Hi

A mate of mine is looking for a good home for their family's dog.  He
said it's really lovable and friendly with kids, but his wife said the
dog makes her nervous when it stares at her (I know - weird - I thought
the same thing).  She wants it out of the house ASAP unfortunately.  If
you know of anyone who might like to have this loveable pup for a pet,
let me know my mate has attached a jpeg of the little mutt.

Thanks


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

RE: [FRIDAY] Free Dog.....

2003-10-16 Thread Shane Mingins
Ok so no attachments :-(

http://fattyco.org/~beck/stephen/Free_Dog.jpg


 -Original Message-
 From: Shane Mingins [mailto:[EMAIL PROTECTED]
 Sent: Friday, 17 October 2003 12:28 p.m.
 To: '[EMAIL PROTECTED]'
 Subject: [FRIDAY] Free Dog.
 
 Hi
 
 A mate of mine is looking for a good home for their family's dog.  He
 said it's really lovable and friendly with kids, but his wife said the
 dog makes her nervous when it stares at her (I know - weird - I thought
 the same thing).  She wants it out of the house ASAP unfortunately.  If
 you know of anyone who might like to have this loveable pup for a pet,
 let me know my mate has attached a jpeg of the little mutt.
 
 Thanks
 


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



RE: OT - book on Java patterns

2003-10-13 Thread Shane Mingins
I can recommend (along with the GOF book which is really a reference book)
Agile Software Development - Principles, Patterns, and Practices by Robert
C. Martin.  Examples are in a mixture of Java and C++ and very good
examples.

Source is here: http://www.objectmentor.com/resources/bookstore/books/PPP
 
http://www.objectmentor.com/resources/bookstore/books/AgileSoftwareDevelopme
ntPPP

And if you get really stuck reading it, the author regularly posts to the
comp.object newsgroup.

HTH
Shane


 -Original Message-
 From: Sasha Borodin [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 6:23 PM
 To: Struts Users Mailing List
 Subject: OT - book on Java patterns
 
 
 All this talk lately of various official patterns has my brain hurting
 from the Unknown again.
 
 Can anyone recommend a good book on *patterns* - business delegate,
 visitor,
 dao, etc. etc. etc.
 
 Thanks,
 
 -Sasha
 
 
 -
 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 - book on Java patterns

2003-10-13 Thread Shane Mingins
Just noticed you mention DAO (Data Access Object).  For a free book on EJB
Design Patterns:

http://www.theserverside.com/books/EJBDesignPatterns/index.jsp
 
 
  -Original Message-
  From: Sasha Borodin [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 10, 2003 6:23 PM
  To: Struts Users Mailing List
  Subject: OT - book on Java patterns
 
 
  All this talk lately of various official patterns has my brain hurting
  from the Unknown again.
 
  Can anyone recommend a good book on *patterns* - business delegate,
  visitor,
  dao, etc. etc. etc.
 
  Thanks,
 
  -Sasha
 
 
  -
  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: Tools for Testing

2003-10-09 Thread Shane Mingins
Also Canoo WebTest is a free open source tool for automated testing of web
applications.

http://webtest.canoo.com/webtest/manual/WebTestHome.html

I am not sure how that compares with HtmlUnit?  

I had a quick look at StrutsTestCase but (as a novice) could not see how to
use it to develop the Struts layer of my application test-first.

Shane


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
 Sent: Friday, 10 October 2003 3:22 p.m.
 To: Struts Users Mailing List
 Subject: Re: Tools for Testing
 
 Adam Hardy wrote:
 
  OH NO! Now I have no excuse to ignore testing anymore!
 
  Is anybody out there using strutstestcase in anger?
 
  So Vic, openSTA - it's for scripting HTTP tests? I read the homepage
  and it looked like I'd have to do alot of digging to find the basics -
  how on earth does it verify the test results? Do you scan the returned
  page?
 
 If you're after validating the contents of the returned page, take a
 look at htmlunit at SourceForge.  It turns the response into a sort of
 DOM that makes finding things pretty easy, and lets you modify field
 values and click the submit button, and review the result, to simulate
 a multi-request user interaction.
 
 
  Adam
 
 Craig
 
 
 
  On 10/09/2003 03:58 AM Vic Cekvenich wrote:
 
  I just switched to openSTA.sf.net (on a client tip ;-)
 
  Nguyen, Hien wrote:
 
  Take a look at StrutsTestCase for Junit at www.junit.org.
 
  -Original Message-
  From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Tuesday, October
  07, 2003 5:07 AM
  To: [EMAIL PROTECTED]
  Subject: Tools for Testing
 
 
  Hello!
 
  There are tools for automatic testing the Struts application?
 
  Dirk
 
 
 
 
 
  -
  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: Tools for Testing

2003-10-09 Thread Shane Mingins
I am not sure if this is useful for Struts apps, but Robert C. Martin  son
Micah have written Fitnesse - The fully integrated standalone wiki, and
acceptance testing framework.  

And it has FIT behind it http://fit.c2.com/ in some capacity.

For anyone interested.

http://fitnesse.org


 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: Friday, 10 October 2003 3:47 p.m.
 To: Struts Users Mailing List
 Subject: Re: Tools for Testing
 
 Modify Artur's TestCase generator
 http://wttools.sourceforge.net/unittestsgen/package.html
 to handle StrutsTestCase
 and this could be automated...
 beautiful,
 -Martin
 - Original Message -
 From: Shane Mingins [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, October 09, 2003 10:29 PM
 Subject: RE: Tools for Testing
 
 
  Also Canoo WebTest is a free open source tool for automated testing of
 web
  applications.
 
  http://webtest.canoo.com/webtest/manual/WebTestHome.html
 
  I am not sure how that compares with HtmlUnit?
 
  I had a quick look at StrutsTestCase but (as a novice) could not see how
 to
  use it to develop the Struts layer of my application test-first.
 
  Shane
 
 
   -Original Message-
   From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
   Sent: Friday, 10 October 2003 3:22 p.m.
   To: Struts Users Mailing List
   Subject: Re: Tools for Testing
  
   Adam Hardy wrote:
  
OH NO! Now I have no excuse to ignore testing anymore!
   
Is anybody out there using strutstestcase in anger?
   
So Vic, openSTA - it's for scripting HTTP tests? I read the homepage
and it looked like I'd have to do alot of digging to find the basics
 -
how on earth does it verify the test results? Do you scan the
 returned
page?
  
   If you're after validating the contents of the returned page, take a
   look at htmlunit at SourceForge.  It turns the response into a sort of
   DOM that makes finding things pretty easy, and lets you modify field
   values and click the submit button, and review the result, to
 simulate
   a multi-request user interaction.
  
   
Adam
  
   Craig
  
   
   
On 10/09/2003 03:58 AM Vic Cekvenich wrote:
   
I just switched to openSTA.sf.net (on a client tip ;-)
   
Nguyen, Hien wrote:
   
Take a look at StrutsTestCase for Junit at www.junit.org.
   
-Original Message-
From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Tuesday,
 October
07, 2003 5:07 AM
To: [EMAIL PROTECTED]
Subject: Tools for Testing
   
   
Hello!
   
There are tools for automatic testing the Struts application?
   
Dirk
   
   
   
   
   
---
 --
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: struts-user-
 [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]



[FRIDAY] Yeah I know it's early ;-)

2003-10-08 Thread Shane Mingins
http://www.foulds2000.freeserve.co.uk/economists.htm
http://www.foulds2000.freeserve.co.uk/economists.htm  

 

 



Handling Exceptions in ActionForm

2003-10-02 Thread Shane Mingins
Hi

I have a Swing app where the SwingView implements the view interface and has
a method duplicateException(String s).

In the SwingView it is implemented as

public void duplicateException(String duplicateName)
{
JOptionPane.showMessageDialog(this, That would result in a duplicate
Channel, Duplicate Channel,
 JOptionPane.ERROR_MESSAGE);
}

So if the business layer finds a duplicate it can inform the presentation
layer.  I am wondering how this would map on Struts?

Using Struts, if I have an ActionForm implement the view interface, how
would it create an ActionError or ActionMessage?  It seems that from an
ActionForm the validate() method can do it, and an Action can do it but is
it possible to create an ActionError and save it from my
duplicateException() method?

Could I perhaps have my duplicateException() method add to collection
variable in the ActionForm and then have the validate() method check that
collection and generate the required ActionErrors?  

Any thoughts?

Shane


Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



RE: books and tutorials

2003-09-30 Thread Shane Mingins
 - Original Message -
 From: Carlos Llona [EMAIL PROTECTED]


  Im new in Struts but its very interesting,but I dont find goob books
  or tutorials to download, please if anyone knows links send me plz
 


First port of call -- the Struts site http://jakarta.apache.org/struts/

http://jakarta.apache.org/struts/learning.html

http://jakarta.apache.org/struts/resources/books.html

http://jakarta.apache.org/struts/resources/examples.html

Shane

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



Can I Get the Index Value of Selected Option?

2003-09-30 Thread Shane Mingins
Hi

What is the best method to display a collection of items in a list to allow
the user to select an item that is then passed on to some other action or
process?

For example, if I was creating a Swing UI then I can use a JList and call
the getSelectedIndex() method.

Ideally I would like to generate a SELECT element from a Collection
(optionsCollection) where the value submitted for the select property is the
Index value of the selected option.  Is that actually possible?

Am I looking in the right direction at
http://jakarta.apache.org/struts/faqs/indexedprops.html?

Or is it a job for JavaScript?

Any pointers, examples, resources etc would be great :-)

Thanks
Shane

Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



RE: BUTTON element

2003-09-29 Thread Shane Mingins
If memory serves me correct  BUTTON was only supported by IE  has
that changed?

Shane

 -Original Message-
 From: Graham Leggett [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 30 September 2003 4:48 a.m.
 To: Struts Users Mailing List
 Subject: BUTTON element
 
 Hi all,
 
 I don't seem to see a corresponding struts html tag to render a button
 element - is there a reason for this, or am I reading the docs wrong?
 
 Regards,
 Graham
 --
 
 
 -
 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: [Poll] action mappings

2003-09-25 Thread Shane Mingins
 -Original Message-
 From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
 Sent: Friday, 26 September 2003 2:14 a.m.
 To: Struts Users Mailing List
 Subject: Re: [Poll] action mappings
 
 OK, I think I understand #1 now.  However, I still disagree with it ;)  If
 you are using the same form bean and display components, you can define a
 single action mapping and thus eliminate duplicate configuration
 information
 in the struts-config file. 


In my case I am using style #1 because some actions require the form bean to
be validated and some do not.  I did not like the idea of conditioning the
validation in the form bean validate() method.

Anyone have thoughts or comments on that?

Shane

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



RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins

 -Original Message-
 From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
 Sent: Friday, 26 September 2003 8:55 a.m.
 To: Struts Users Mailing List
 Subject: Re: [Poll] action mappings
 
 When I am using design #3 my action mappings always specify that
 validate=false.  Those methods that do require validation explicitly
 call
 the validate method of the bean.  Those methods that do not require
 validation don't call the method.  So no conditioning is needed in the
 form
 bean for design #3 :)
 
 Matt

Aha!  That did not cross my mind as I played around with the different
options.  Thanks :-)

Shane

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



RE: Disabling Buttons on View

2003-09-25 Thread Shane Mingins
Hi

Sorry if this is OT 

I have not used any of the JSTL tags which I am assuming c:set ... is??  

So I downloaded the JSTL library and included the core library EL:  %@
taglib prefix=c uri=http://java.sun.com/jstl/core; % in my JSP

The c:set ... is recognized :-)

But the  ... disabled=%=disable % ... is not found.

So I used what I am assuming are JSP scripting tags (I have not used JSP's
before using Struts)

% boolean disable = false; %
logic:empty  name=channelForm property=productList
% disable = true; %
/logic:empty

html:submit onclick=set('editProduct'); disabled=%= disable %
Edit/html:submit


And this works.

So is a preferred way of doing things when it comes to tags?  Is there an
explanation of these options anywhere?  Am I making any sense *grin* ?

Thanks
Shane


 -Original Message-
 From: deepaksawdekar [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 25 September 2003 3:56 p.m.
 To: Struts Users Mailing List
 Subject: RE: Disabling Buttons on View
 
 you can try some thing like this.
 logic:notEmpty  name=channelForm property=productList
   c:set var=disable value=true /
 /logic:notEmpty
 
 html:submit onclick=set('editProduct'); disabled=%=disable %
 bean:message
 key=button.edit//html:submit
 
 
 Thanks and Regards
 Deepak.
 
 
 -Original Message-
 From: Shane Mingins [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 8:27 AM
 To: '[EMAIL PROTECTED]'
 Subject: Disabling Buttons on View
 
 
 Hi
 
 If I wish to simulate the enable/disable of buttons that users are used to
 with a rich GUI on a JSP view, is there are nicer way than using the logic
 tags like this?
 
 logic:notEmpty  name=channelForm property=productList
html:submit onclick=set('editProduct');bean:message
 key=button.edit//html:submit
 /logic:notEmpty
 
 logic:empty  name=channelForm property=productList
html:submit disabled=true bean:message
 key=button.edit//html:submit
 /logic:empty
 
 Thanks
 Shane
 
 Shane Mingins
 Analyst Programmer
 Assure NZ Ltd
 Ph 644 494 2522
 
 
 
 -
 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: Disabling Buttons on View

2003-09-25 Thread Shane Mingins

 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED]
 Sent: Friday, 26 September 2003 11:25 a.m.
 To: Struts Users Mailing List
 
  But the  ... disabled=%=disable % ... is not found.
 
 What do you mean is not found?  Are you getting an error message?  If
 so, what's the error message?  Are you including the taglib directives
 for the Struts tag libraries?  It's hard to help if you don't tell us
 exactly what happened.

I am using IntelliJ IDEA and it was not picking up the =%=disable %
variable. i.e. it hightlighted it red and complains.

Initially the c:set ...  was also causing an error in IDEA but I added:

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %


My current JSP has the following:

%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

Does that at all help?

Shane



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



Disabling Buttons on View

2003-09-24 Thread Shane Mingins
Hi

If I wish to simulate the enable/disable of buttons that users are used to
with a rich GUI on a JSP view, is there are nicer way than using the logic
tags like this?

logic:notEmpty  name=channelForm property=productList
   html:submit onclick=set('editProduct');bean:message
key=button.edit//html:submit
/logic:notEmpty

logic:empty  name=channelForm property=productList
   html:submit disabled=true bean:message
key=button.edit//html:submit
/logic:empty

Thanks
Shane

Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



RE: How to restore user selections when returning to a JSP?

2003-09-23 Thread Shane Mingins
Could you not have that page set to session scope so the set selected value
is retained?

There are tips on this page http://husted.com/struts/catalog.html regarding
workflows that may be of help.

Shane

 -Original Message-
 From: John Habbouche [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 24 September 2003 9:57 a.m.
 To: Struts Users Mailing List
 Subject: How to restore user selections when returning to a JSP?
 
 I an using Struts 1.1 with JSTL to write some JSP pages. I have a page
 where
 the user upon selecting a company name from pull down menu displays a list
 of Company Users for that specific company.  The end user then has the
 option to perform actions on those users such as editing/deleting or
 creating a user.  Let's take the example of editing a user profile.
 
   1) When the list of users isdisplayed, the end user selects a user
 to edit
 by clicking on it.
   2) The end user is then shown a new page which allows him/her to
 edit user
 information such as name address, etc...
   3) Upon clicking on 'Save', the user is presented with a
 confirmation page
 informing him/her that the user has been saved.
   4) After the user clicks OK, the end user is directed back to the
 list of
 Company users
 
 I would like at that point to restore the company selection that the end
 user had initially made.  Short of storing that info in Session or pass it
 around on the Request (a pain if your process spans mutiple pages), is
 there
 anything within the struts framework that would allow me to do that?
 
 Any help would be most appreciated.
 
 
 
 -
 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]



[FRIDAY] Save the Servers!

2003-09-18 Thread Shane Mingins
http://www.savetheservers.com/ http://www.savetheservers.com/ 


RE: Refreshing Form Submission and Duplicates

2003-09-18 Thread Shane Mingins
I noticed this the other day at http://husted.com/struts/catalog.html

Use the Action Token methods to prevent duplicate submits

There are methods built into the Struts action to generate one-use tokens. A
token is placed in the session when a form is populated and also into the
HTML form as a hidden property. When the form is returned, the token is
validated. If validation fails, then the form has already been submitted,
and the user can be apprised. 

- saveToken(request) 
- on the return trip, 
isTokenValid(request) 
resetToken(request)


I am not sure if that is of any help as I have yet to use it ... although I
have just this minute found a case in my own application to do so ;-

Shane



 -Original Message-
 From: John Reynolds [mailto:[EMAIL PROTECTED]
 Sent: Friday, 19 September 2003 2:16 p.m.
 To: [EMAIL PROTECTED]
 Subject: Refreshing Form Submission and Duplicates
 
 Hi,
 
 I have a question about a bug in my application using a Struts Form.
 This happens in multiple areas of my site, but the one example I will
 use is a Message Board feature. The problem is that when a user goes to
 a list of messages, fills out the form to post a message and ends up
 back on the list page, the message will be submitted twice if they
 refresh the page following the form submission. this has caused
 duplicate messages throughout the message board, as it is the nature of
 message boards to refresh the list of messages often to check for new
 ones. Keep in mind, my app strictly follows the approach of the O'Reilly
 book.
 
 I'll try to make this easy to follow:
 
 1. the user goes to a message board with a list of messages from other
 users. this page is /messagelist.do the action looks like this:
 
   action
 path=/messagelist
 name=messageListForm
 type=myapp.framework.actions.MessageListAction
 scope=request
 forward name=Success path=/templates/messagelist.jsp/
   /action
 
 (the messageListForm is a struts form bean with a List of message
 objects)
 
 2. at the bottom of the page is a form to post your own message 3. the
 user enters their Name, Subject and Message Body and submit the form 4.
 the form is processed by a Struts Action. the action tag in
 struts-config.xml looks like this:
 
   action
 path=/messageinsert
 name=messageDetailForm
 type=myapp.framework.actions.MessageInsertAction
 scope=request
 validate=false
 forward name=Success path=/messagelist.do/
   /action
 
 - From the naming convention, you can see that the Action inserts the
 message into storage (database) and upon success the user is forwarded
 to the same /messagelist.do action
 
 Now, when the form is submitted and this is displayed, the URL in the
 browser says:
 
 http://myapp.com/myapp/messageinsert.do
 
 I expect that this is correct because the HTML form itself was form
 action=/messageinsert.do method=POST.
 
 The user's submitted message will be found on the list of messages.
 HOWEVER, IF THEY REFRESH THE SCREEN, THE MESSAGE WILL BE SUBMITTED
 AGAIN. This should not happen. If i'm the customer, i've already
 submitted the form, and now i'm seeing a list of messages. refreshing
 should have no effect on the form that i just submitted.
 
 Does anyone have a suggested fix?
 
 Thanks all,
 
 JR
 
 

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



RE: multiple submit redirect in action

2003-09-11 Thread Shane Mingins
Hi

You could use JavaScript to set a field on the form to the value of the
action.

Also have a look at using DispatchAction
http://husted.com/struts/tips/002.html

And for the tips menu:
http://husted.com/struts/tips/index.html

HTH
Shane


 -Original Message-
 From: Stephane Grenier [mailto:[EMAIL PROTECTED]
 Sent: Friday, 12 September 2003 9:40 a.m.
 To: Struts Users Mailing List
 Subject: multiple submit redirect in action
 
 Hello.
 
 I would like to create a form with 2 submit buttons in the jsp:
 
html:form action=ShoppingCartAction name=ShoppingCartForm
 type=com.rana.release.forms.ShoppingCartForm scope=session
  tdhtml:submitUpdate/html:submit/td
  tdhtml:submitCheckout/html:submit/td
 /html:form
 
 I would like to determine in the action which submit button was pressed
 and forward from there based on some conditions. How can I determine in
 the action which submit button was pressed ?
 
 Thank you,
 Stephane

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



RE: Help me get my boss of my back

2003-09-04 Thread Witbeck, Shane
Webalizer is free, WebTrends is not :)

-Original Message-
From: Carl-Jakob [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: Help me get my boss of my back


Hi,

 

We have put up websites for some customers despite I said no.
nooo...
although now he has started bugging me about stats(5 min after they did
go
live). Is there any tool for analyzing the accesslogs made in struts.
Need
to be a webbased tool or I never be left alone for doing import
developing.


 

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



RE: Request variables and validation

2003-09-03 Thread Witbeck, Shane
Why don't you create a method that gets whatever data you need to populate
the form and call it from the DispatchAction methods that need it?

Shane

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:54 AM
To: [EMAIL PROTECTED]
Subject: Request variables and validation


I am having trouble with request variables and validation.  Before a 
page is called, I prepopulate a combo box with values from a database. 
When validation (dynaforms validate) finds errors on the form the bean 
that prepopulated the combo box is not in the request scope anymore.

This was initially solved by placing the action that sets up the form as 
the input to the action that was called next. But, this fails when I 
move the setupAction to be part of the DispatchAction, which is involved 
with PageOne and PageTwo of my form, because then the input to the 
Action is the Action itself.  This results in constant calls to the same 
Action and no page being displayed.

Is there a way to acheive this or do I have to move my setup to a 
separate action?

Thanks
Ryan



-
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] RE: J2EE IDE

2003-08-28 Thread Shane Mingins

IntelliJ provide a document on supporting  developing web apps with
IntelliJ IDEA 

http://www.intellij.com/docs/html/webAppl.html

http://www.intellij.com/docs/WebApps.pdf


-Original Message-
From: Paul Thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 28 August 2003 11:15 a.m.
To: struts-user
Subject: Re: J2EE IDE


On 27/08/2003 07:46 [EMAIL PROTECTED] wrote:
 Can someone please suggest me a free J2EE IDE suitable for development of
 webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE,
 NETBEANS. However I wanted to ckeckout if anyone has already evaluated
 any
 of these since I am not sure which one is easy to use and has reasonably
 good features as well.

I've not tried Eclipse but, to my sorrow, I've tried both Forte and 
Netbeans. I didn't find either helped in developing web apps so I just a 
text editor. Any debugging can be done with a few System.out.println's. 
And I think it makes you think more about the code you're writing if you 
don't have an interactive debugger to hand. YMMV.

 This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS,
 Chennai

My pet cat, Eric, watched me type this email. He sneezed on the screen. 
Who knows what infections I'm spreading here ;-)

-- 
Paul Thomas
+--+
-+
| Thomas Micro Systems Limited | Software Solutions for the Smaller 
Business |
| Computer Consultants | 
http://www.thomas-micro-systems-ltd.co.uk   |
+--+
-+

-
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: keys of MessageResources

2003-08-27 Thread Shane Mingins
Huh?

Why not just do:

// my file is called resources.properties
ResourceBundle myResources = ResourceBundle.getBundle(resources,
Locale.getDefault());

Enumeration enum = myResources.getKeys();
while (enum.hasMoreElements())
{
  String key = (String) enum.nextElement();
  System.out.println(key =  + key);
 }

Shane

-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 28 August 2003 9:23 a.m.
To: Struts Users Mailing List
Subject: Re: keys of MessageResources

There are no public methods that return a collection view of keys (I think
this is what you want to get at).  If you subclass PropertyMessageResources,
you can write your own method to return the keys from the implementing
HashMap.

Then you'd need to write a new Factory for your PropertyMessageResources
subclass.  All in all, since I don¹t see a way to get at that Collection
using struts or JSTL tags, it's not worth the work.

I ended up creating a custom class to load and serve the same properties
file, which I bind to the ServletContext on startup with a plug-in.  This
way you're still getting at the same properties file, but loaded into a more
useful class.

Email me if you want the source.

-Sasha

On 8/27/03 14:55, Gandle, Panchasheel [EMAIL PROTECTED] wrote:

 How to get keys of MessageResources of the properties file
 in the action class
 
 Panchasheel
 
 -
 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]



[OT] RE: J2EE IDE

2003-08-27 Thread Shane Mingins

Well then most of the world are obviously a Fowler groupies.  Metsker gets 4
stars on Amazon whilst Fowler gets 4 1/2.

I have not read Metsker but the TOC suggests that these two books are quite
different.  From what I have browsed of PoEA it is not a design patterns
explained typed book written to accompany the GOF book.  Instead it looks
at the problems that Enterprise Application developers face and provides a
reference of patterns that can be used as solutions.

And what's the use of having examples in Jave when I use Java :-)




-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 28 August 2003 9:37 a.m.
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: J2EE IDE

You are obviously a Fowler groupie.  Try Metsker, Design Patterns Jave
Workbook ( Addison-Wesley 2002)

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 4:47 PM
To: Struts Users Mailing List
Subject: RE: J2EE IDE


--- Mark Galbreath [EMAIL PROTECTED] wrote:
 Martin Fowler ripped all the patterns in that book from previous 
 authors.

It's completely irrelevant who came up with the patterns and he doesn't
claim to have thought of all of them.  What is important is that he
published a well written and insightful enterprise patterns reference book.

 It isn't worth the money.

I disagree.  It's well worth the price to have all these patterns in one
place and described quite well.  I found it to be a good complement to
Design Patterns.

David

 
 -Original Message-
 From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 3:14 PM
 To: Struts Users Mailing List
 Subject: Re: J2EE IDE
 
 
 Erich Gamma is one for eclipse leaders, does this means anything for 
 you.
 
 James Childers wrote:
  Here, friends and neighbors, is an example of the appeal to
  authority fallacy:
  
  In Patterns of Enterprise Application Architecture, Martin Fowler
  specifically commends IDEA. If he uses it, so should you.
  
  -= J
  
  p.s. I use Eclipse  vim.
  
  
 -Original Message-
 From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:47 AM
 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
 Subject: RE: J2EE IDE
 
 
 I would have said netbeans a year ago, but now I'm an eclipse 2 
 (2.1) fan. Haven't tried any recent (last 6 months) IDEs other than 
 eclipse.
 
 -Original Message-
 From: Greg Reddin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 5:09 AM
 To: Struts Users Mailing List
 Subject: Re: J2EE IDE
 
 +1 on NetBeans although I've not used Eclipse.  I tend to
 stop looking
 when I find something that works.
 
 However, I find that 90% of the time it's quicker for me to just use 
 vi and Ant.  I use NetBeans for debugging though.  And if I'm
 forced to use 
 Windows for my development I'll immediately install NetBeans.
 
 Greg
 
 Mick Wever wrote:
 
 Looks like another IDE war coming on :-)
 
 You need to check out them out yourself.
 As you will no doubt soon see,
 each of us have different likes and requirements.
 
 NetBeans is known for its outstanding
 GUI (Form) editor and JSP editing.
 It also has excellent support for CVS and Ant integration. While 
 Eclipse is very good at refactoring.
 
 I prefer to use NetBeans as it suits more for the power user. You 
 can
 
 change just about anything under its hood from
 
 within the IDE.
 
 At my new job they were all using JDeveloper, a commercial
 
 product, and
 
 it only took me 3 weeks to convert all of them to NetBeans. 
 NetBeans
 now has some nice features in it's suggestion module that will 
 automatically fix code for you, examples are:
  - missing javadoc tags,
  - missing import statements,
  - missing object castings,
  - and more...
 I find it just heaven when an IDE fixes your code for you
 
 before you have
 
 even compiled it.
 I don't like Eclipse because it is not all written in java. It is
 written in a mixture of languages and therefore cannot run on all 
 platforms. You also cannot use the different LookFeels
 
 that are out there
 
 for java.
 
 Eclipse is also very short on features compared to NetBeans. This
 abundance of features can (naturally) slow it down,
 
 make sure to turn
 
 off all the features you won't be using after you have
 
 given them a test
 
 run.
 
 Again, find out your requirements, and try them all out :) Mick.
 
 
 
 DISCLAIMER:
 This email message is for the sole use of the intended
 recipient(s) and may
 contain confidential and privileged information.  Any 
 unauthorized review,
 use, disclosure or distribution is prohibited.  If you are 
 not the intended
 recipient, please contact the sender by reply email and 
 destroy all copies
 of the original message and attachments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 This message 

RE: Re Small request...

2003-08-26 Thread Shane Mingins
Especially the 30 day trial version of Struts :-)

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 August 2003 2:57 p.m.
To: Struts Users Mailing List
Subject: OT: Re Small request...

and besides, by continuing to set my clock back
none of my 30-day evals expire..

just kidding... LOL

-jeff

On Wednesday, August 25, 1993, at 09:35  PM, Andrew Hill wrote:

 I'd love to oblige, but I think its best I keep my computer back in 
 1993.
 Id hate to get that nasty Y2K thing that was going around a year or two
 back!
 Sorry.

 -Original Message-
 From: Keith Pemberton [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 26 August 2003 03:03
 To: [EMAIL PROTECTED]
 Subject: Small request...


 I know that this is way off topic but it would be a bit help for my
 inbox.  Could the people associated with this list please check the
 clock on there computers and set the correct date and time?  I really
 would appreciate this small request.

 --
 Keith Pemberton [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: Struts, Tomcat, Hibernate - what the heck?

2003-08-26 Thread Shane Mingins
Maybe have a look at http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse.

I think Matt Raible is using Hibernate and Struts in this application and he
has posted to this mailing list.

Not sure if that is of any help.

Have u looked at any of the Struts examples at
http://jakarta.apache.org/struts/resources/examples.html

I am not sure if any of the examples use Hibernate?

Cheers
Shane

-Original Message-
From: Bill Chmura [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 27 August 2003 8:41 a.m.
To: 'Struts-Users'
Subject: Struts, Tomcat, Hibernate - what the heck?


Hey,

I am having a lot of problems getting all the above to work together.  I
have tried the hibernate quickstart for tomcat and the struts-hibernate
example, but have had problems with all of them.

Does anyone have a good working example, or theory on how best to
integrate all these things?

I am even at a loss to describe what is going on - as it is a total
disaster right now...



William B Chmura
Director of Internet Technology
Explosivo Internet Technology Group
http://www.Explosivo.com
Tel: (888) 560-YWEB



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



Generic Ok/Cancel Page

2003-08-25 Thread Shane Mingins
Hi

 

I am wishing to create a generic OK/CANCEL type page that can be used by
different workflow situations.

 

Can anyone suggest a nice tidy way of doing this?

 

The way I see it is that somehow I need to dynamically define the ok/cancel
forwards from the page based on the page it is coming from.

 

Cheers

Shane

 

 

Shane Mingins

Analyst Programmer

Assure NZ Ltd

Ph 644 494 2522

 



RE: Telling Users to Wait

2003-08-21 Thread Shane Mingins
I did something similar and used a refresh tag to update the screen whilst
the process was running ... it would show % completed (in text i.e. 25%
etc).

I had my database processing running in a new thread.

I had a session attribute BEEN_HERE, if that was null I start the process.  

When the process is complete and BEEN_HERE was not null I removed the
attribute and forwarded to the next page.

HTH
Shane



-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED] 
Sent: Friday, 22 August 2003 12:03 p.m.
To: Struts Users Mailing List
Subject: Telling Users to Wait

Hello Struts Gurus,

I am facing an issue in my application where I need to run a database
creation script, and a database import script through the web (running
bat files on the server).  I can run these files fine, but they take a
few minutes to run...  

How can I tell the user when they have finished running?  This seems to
be a sort of push technology I am in need of, but maybe there is another
way?.  I can definitely tell them to wait for a few minutes, but how do
I actually tell them when the process is done (since there is not
another page request at this time.)

Has anyone done something similar to this?

Thanks,
Mark

-
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: mailto in html:link

2003-08-20 Thread Witbeck, Shane
You cannot nest taglibs in this manner. I suggest using a regular a href/
tag and put your mytag in the href attribute.

-Shane

-Original Message-
From: deepaksawdekar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 8:08 AM
To: Struts Users Mailing List
Subject: mailto in html:link


I want to send a email on click of some icon.
I am doing this by using mailto in html:link tag, email id has to be get
from a property of bean,
jsp is as follows 
..
html:link href=mailto:mytag:map name=it
key=email/mytag:map/html:link

mytag is a customised tag to get a value of key from hashmap.

When i try the above i got the error
org.apache.jasper.JasperException: /pages/myContact.jsp(46,88) equal symbol
expected

Am i doing something wrong. Is there any better way to do this..


TIA,
Deepak  

-
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: File Upload Data

2003-08-20 Thread Shane Witbeck
I have run the same code for my file uploads in windows and linux without a
problem.

Shane


- Original Message - 
From: David G. Friedman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 7:13 AM
Subject: Re: File Upload Data


 Steven,

 I had a problem like that where nothing was being uploaded because my form
enctype was not set to 'multipart/form-data'.  Then again, the problem was
when I was programming in Perl under Apache + NT and migrating it to Perl
under Apache + Linux, so it's not quite the Struts-Upload related answer you
were probably looking for, huh? :(

 Regards,
 David

 ---Original Message---
 From: Steven Leija [EMAIL PROTECTED]
 Sent: 08/20/03 08:58 AM
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: File Upload Data

 
  Hello All,

 I'm running into a really weird problem.  I'm uploading a file in windows
 and the input stream is just fine.  But when I deploy my application to a
 linux box, the same upload failes.  I traced this down to the fact that
the
 input stream is empty.  The file is being uploaded but the stream is
coming
 in as null.  I've verified these files are not corrupt or empty.

 Has anyone seen this before?

 Thanks,

 Steven

 

 -
 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: file upload problem

2003-08-18 Thread Witbeck, Shane
I had a similar problem until I realized that you must specify a file and
not a folder for the upload path (i.e. /tmp/upload/upload.txt not
/tmp/upload). 

HTH,

Shane

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 7:24 AM
To: 'Struts Users Mailing List'
Subject: RE: file upload problem


Thanks Prashanth,
But I don't think that's the problem.
Thanks anyway though,
Brian

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2003 11:44
To: Struts Users Mailing List
Subject: Re: file upload problem

hi brian,
try changing the folder permission from read-only??Its just a guess
Thanks
Prashanth


Brian McSweeney [EMAIL PROTECTED] wrote:
Hi all,

I'm trying to do a file upload action based on the example
struts-upload.war.

I want to save the uploaded file to a folder on disk. However when I try
to run 
the action I get an error saying I don't have access to the folder. I've
tried 
changing the folder access and also using a different folder. 

I still get a file not found exception which says 

java.io.FileNotFoundException: .. (Access is denied)

I'm using JBoss 3.2.1_tomcat4.1.24. 
Perhaps JBoss restricts folder access?

The code that runs the struts action is:-


AddProductForm frm = (AddProductForm) form;

//retrieve the file representation
FormFile file = frm.getTheFile();

//retrieve the file name
String fileName= file.getFileName();

//retrieve the content type
String contentType = file.getContentType();

//retrieve the file size
String size = (file.getFileSize() +  bytes);

log.info(File details - name: +fileName);
log.info(File details - contentType: +contentType);
log.info(File details - size: +size);


// this is where I get the folder path to save the image into.

String imageStorePath = Init.getImageStorePath();
log.info(the value of imageStorePath is: +imageStorePath);

try {
//retrieve the file data
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream stream = file.getInputStream();

//write the file to the file specified
OutputStream bos = new FileOutputStream(imageStorePath);
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
bos.write(buffer, 0, bytesRead);
}
bos.close();
log.info(The file has been written to \ + imageStorePath
+ \);
//close the stream
stream.close();
}

catch (FileNotFoundException fnfe) {
log.error(Couldn't find the file: + fnfe.toString());
}
catch (IOException ioe) {
log.error(io exception: + ioe.toString()); 
}
finally{
//destroy the temporary file created
file.destroy();
return mapping.findForward( WebConstants.SUCCESS );
}
}


Any help would be greatly appreciated.
Cheers,
Brian



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


-
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: file upload problem

2003-08-18 Thread Witbeck, Shane
Generally I add a virtual directory to my web container. This allows you to
map a context root to any directory on the server (keeping permissions in
mind). 

For example http://webroot/file would map to a directory /tmp/uploads. 

I proxy my web applications through Apache so I generally add an Alias entry
to the virtual host. You will have to check your container's docs for your
specific environment.

-Shane

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 10:47 AM
To: 'Struts Users Mailing List'
Subject: RE: file upload problem



I would also love to know the solution to this problem.
I'm doing the exact same thing as you Erez. Also working 
with JBoss_Tomcat.

Is there some way to tell tomcat to serve files from a 
specific directory outside the context root?


-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2003 16:33
To: 'Struts Users Mailing List'
Subject: RE: file upload problem

Thing is I do need a very high downloading of files, so I guess the
directory option is more appropriate.

What do you mean by  a directory served by your web server? I am
working with JBoss/Tomact and each time I am redeploy the any directory
under the context is deleted. So is there a trick here that I missed ?

Thanks,
Erez

-Original Message-
From: Evan Schnell [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2003 4:24 PM
To: Struts Users Mailing List
Subject: Re: file upload problem

Erez Efrati wrote:

I am dealing as well with the file upload issue:



2) I could always store those files in the database but then I would
have to access them through an action, is this wise?
  

Yes.

I'm a strong proponent of storage in a database.  Not only is a BLOB the

ultimate quarantine but it saves you the headache of keeping meta-data 
and and the file content in synch.  Most RDBMs implement BLOBs as files 
so there is very little performance hit when you perform the upload.  
When users perform the download you will need an action to 'proxy' the 
bytes from the database to the response.  If you write good java.io 
code, set the content type on the response and return null from the 
execute method this is pretty straightforward and fast enough for most 
applications. 

Downloads will be a little slower this way but it's rare for system 
requirements to necessitate repeated file download.  If _each_ file is 
going to be downloaded more than a few hundred times/day you might want 
to write it to directory served by your _web_ server.  

Don't forget virus protection.  If users can upload and download MS 
Office documents you will need to virus check them after they are 
uploaded but before anyone else can download them.  

Regards, Evan.

-- 
Evan Schnell, Project Lead
nVISIA, Twin Cities  Enterprise Architecture and Construction
http://www.nvisia.com
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 




-
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: Global Forwards and Tiles

2003-08-15 Thread Witbeck, Shane
My solution to this problem is not to define any global forwards and route
everything through an Action. If you are forwarding to a simple JSP defined
by a tile then define an action-mapping using a ForwardAction. 

HTH,

Shane

-Original Message-
From: David Holtzhouser [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 9:57 AM
To: [EMAIL PROTECTED]
Subject: Global Forwards and Tiles


I've attached a discussion with a fellow developer
regarding Global Forwards and Tiles.  The tiles-defs
are in xml if that makes any difference.

 *
 Here's the delima. I can configure a Global Forward
that maps to my tiles definition. If I refer to this
global forward from an Action then it finds my tile
def. But, If I call this global forward from a jsp,
then it craps out. But normally you can call a global
forward from a JSP and it will work fine, as long as
you are not using tiles defs. So, it seems like if I
want to get from one JSP to another tiles def, then I
have to go through a Action, which could be a
ForwardAction. My Actions can use my global forwards,
but my pages cannot. It's kind of weird, but I at
least I understand what I can and can't do now.
  *

So are thought is that Global ActionForwards defined
in the global-forwards section of the
struts-config.xml really don't go through the
ActionServlet at all, or somehow skip allowing the
ActionServlet's, RequestProcessor delegate:

controller
processorClass=org.apache.struts.tiles.TilesRequestProcessor/

to handle it.  

Can anyone provide clarification on this?

Thanks



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



RE: using modules versus simply using multiple struts-config file s

2003-08-14 Thread Bailey, Shane C.


I think if you are going to use messages like that then one place you may
run into problems is with the Validator.  I can't remember if not all or
none of the elements in the Validator (which had the key attribute) didn't
have a bundle attribute (so I don't know how it would determine which
bundle to look up and I can't imagine it goes through every one
automatically).  At least I ran into a problem when I first started using
Validator and attempting something similar.

If you are not using Validator (or it works differently now or I just was
not using it right) then disregard, of course.


-Original Message-
From: Van Riper, Mike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 5:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: using modules versus simply using multiple struts-config file s

 -Original Message-
 From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 13, 2003 12:02 PM
 To: 'Struts Users Mailing List'
 Subject: RE: using modules versus simply using multiple struts-config
 file s
 
 Very interesting. I didn't know you could now have multiple 
 struts-configs
 and no modules.  
 
 The two problems I had with using modules was (at first) the switching
 between them as mentioned. I never took to the SwitchAction 
 so I use global
 forwards which do my module prefixes for me.  And second, having to
 duplicate my (commonly used) messages in each modules 
 resource file (this
 problem is more of a problem of why can't I inherit them 
 than anything
 else.
 
 It seems like multi configs with no modules solves problem 1. 
  I take it
 that you will still have problem 2.  But I did see a post 
 recently about
 someone who made a code change so that resource files could inherit.

My current plan is to have the default resource file contain common
resources shared by all my modules (here I use module to refer to a
subdirectory of my web root that has its own separate struts-config file for
action mappings, form beans and anything else specific to that subsection of
the webapp) and then have a separate resource file associated by module name
with each specific module. A person working logically in only one module
would access their module-specific resources using the module name and any
common resources in the default manner that doesn't require specifying the
name associated with the resource file in the struts-config file
configuration for it.

I am planning to have one struts-config for common configuration and a
separate struts-config for each major subsection of my webapp. The common
resource file configuration goes in the common struts-config file. The
resource file specific to each subsection of the webapp would be configured
in the separate struts-config file for that subsection. I think this is
where one of the differences in my approach comes in. I believe each module
can have its own default resource file configuration that can be different
when modules are configured separately in the web.xml file. Since I don't
use separate web.xml entries, I can only have one common default resource
file configured across all my logical modules.

This just means that for most resources, I will be specifying the module
resources file by its associated configuration name as a parameter to my
resource file property lookups. Since there will be a direct one-to-one
mapping between each subsection of the webapp and the resource file specific
to that subsection, I think this will be something that will be easy to
remember. For example, a logical report module would specify the report
bundle in bean:message tag instances that used the report module
resource file like so:

  bean:message key=report.header bundle=report /

I am inferring this from the main Struts 1.1 example application where an
alternate resource file is accessed like so in logon.jsp:

  bean:message key=prompt.password bundle=alternate /

I think you should be able to do the inverse of this when using separate
module configurations. For your module related property lookups, you could
use the default resource file configured for that module. For the common
ones that you wanted to use across all modules, you would have a
configuration entry for the default resource file in each module
struts-config file and make that your alternate resource file for the
module. So, for you it would be the property lookup of a shared resource
that would need to supply the bundle attribute to the bean:message tag.
Assuming you used common as the key for your shared properties, your
lookups in the common resource file would be the ones that needed to supply
the bundle attribute:

  bean:message key=app.copyright bundle=common /

This isn't as transparent as a patch to Struts that supports inheriting
common properties into the default resource file for each module, but, it
would allow reuse of common properties across multiple modules. At least,
this is my understanding of how it could work. I haven't tried modules yet.
So, I

RE: Mapping Struts controller servlet to webapp root: trouble

2003-08-14 Thread Bailey, Shane C.


I guess I am more saying, I'm pretty sure, by looking at Struts source code
(granted a week or so ago), that you can't do /*.  So I am suggesting to use
a filter.

But looking at a different piece of the source maybe the solution is to not
have a mapping specified at all.  Sounds ugly, dangerous; but there is a
comment in the source that states,  Use our servlet mapping, if one is
specified:



/**
 * Return the form action converted into a server-relative URL.
 */
public static String getActionMappingURL(String action, PageContext
pageContext) {

HttpServletRequest request = (HttpServletRequest)
pageContext.getRequest();
StringBuffer value = new StringBuffer(request.getContextPath());
ModuleConfig config =
(ModuleConfig)
pageContext.getRequest().getAttribute(Globals.MODULE_KEY);
if (config != null) {
value.append(config.getPrefix());
}

// Use our servlet mapping, if one is specified
String servletMapping =
(String) pageContext.getAttribute(Globals.SERVLET_KEY,
PageContext.APPLICATION_SCOPE);
if (servletMapping != null) {
String queryString = null;
int question = action.indexOf(?);
if (question = 0) {
queryString = action.substring(question);
}
String actionMapping = getActionMappingName(action);
if (servletMapping.startsWith(*.)) {
value.append(actionMapping);
value.append(servletMapping.substring(1));
} else if (servletMapping.endsWith(/*)) {
value.append(servletMapping.substring(0,
servletMapping.length() - 2));
value.append(actionMapping);
} else if (servletMapping.equals(/)) {
value.append(actionMapping);
}
if (queryString != null) {
value.append(queryString);
}
}

// Otherwise, assume extension mapping is in use and extension is
// already included in the action property
else {
if (!action.startsWith(/)) {
value.append(/);
}
value.append(action);
}

// Return the completed value
return (value.toString());
 }

-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 6:02 PM
To: Struts Users Mailing List
Subject: Re: Mapping Struts controller servlet to webapp root: trouble

On August 13, 2003 05:40 pm, Bailey, Shane C. wrote:
 Do you want to add a filter which will look over every request prior to
 Struts getting any requests?  That might be one possibility.

 If you have never written a filter then one I know where you can get
source
 for is at securityfilter.sourceforge.net that one isn't doing necessarily
 what you want but it is a (working with source) example.

No, all I want is to route every request to a webapp through a Struts 
controller servlet. The only obvious option, which is mapping the servlet to

the /* pattern in web.xml, doesn't seem to work. That's why I am wondering

if Struts supports this kind of mapping or not, or if this is a bug.
Thanks,

Paul



 - Original Message -
 From: Paul Yunusov [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, August 13, 2003 11:51 AM
 Subject: Re: Mapping Struts controller servlet to webapp root: trouble

  Thanks, I see how the way Struts parses URLs could confuse it. I want to

 map

  Struts to the webapp's root because my webapp doesn't contain any static
  content and I want to limit all requests to Struts-defined actions.
 
  Can anyone confirm Struts does not support /* mapping for its
  controller servlet?
 
  Thank you,
 
  Paul
 
   -Original Message-
   From: Paul Yunusov [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, August 13, 2003 11:05 AM
   To: [EMAIL PROTECTED]
   Subject: Mapping Struts controller servlet to webapp root: trouble
  
   I was wondering if anyone has heard of issues arising when the
   contoller

 is

   mapped to a webapp's root.
  
   I am talking about this:
  
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern/*/url-pattern
   /servlet-mapping
  
   where action is the Struts controller.
  
   Struts seems to return a 400 error with such mapping when it tries to

 make

   a
  
   forward from an Action instance saying that the request was

 syntactically

   incorrect.
  
   url-pattern/struts/*/url-pattern or
url-pattern*.do/url-pattern

 are

   commong but I was wondering about the /* mapping. Anyone heard of
any
   issues with this?
   Thanks,
  
   Paul
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e

RE: One form multiple Action mapping

2003-08-14 Thread Bailey, Shane C.


What about:

html:form action=/Reg.do

c:if ...
html:hidden property=method value=dispatchMeth1 /
/c:if 
c:otherwise
html:hidden property=method value=dispatchMeth2 /
/c:otherwise


/html:form


-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:04 AM
To: 'Struts Users Mailing List'
Subject: One form multiple Action mapping

I have a registration form (RegForm) which based on the method/mode I
want to direct it to a different action mapping in order to assign
different roles or security restrictions. I have a single RegAction
extending the DispatchAction class, with parameter 'method' as the
dispatch parameter. 

I thought of maybe put a c:if ..  and based on the 'method' put the
correct html:form .. one. But then again maybe this will harm the
javascript validation, cause the name of the form will be different.

How can this be done? 

Registration.jsp:

html:form action=/Reg.do?method=create 
...
/html:form


Thanks,
Erez



-
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: modules, somethings missing

2003-08-14 Thread Bailey, Shane C.


That would be great, if all the Struts users changed their mapping to *.asp
Bill G. would think the whole world is using ASP and he would get a real
Viagra moment from that.




-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 6:32 PM
To: Struts Users Mailing List
Subject: Re: modules, somethings missing



If you wanted you could the URL mapping for *.cool or something and
you will see Struts append that to your path.  That way people would
not know you are using Struts (maybe to fake out hackers).

G


I think i'll us a *.asp, althought that would probably not deter hackers 
very much.

-Trav



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

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



RE: Netscape vs. IE link problem

2003-08-14 Thread Bailey, Shane C.

I have made Struts work pretty successfully on both browsers.  Let me make
sure I understand what you are saying here...

When you say you link to and from these tiles defs you just mean that your
input=tile.def1 and your action's forward path=tile.def2 is that
correct?  If so, this is what I do as well.

How do you do your hrefs, struts html:link or actual HTML anchors?

I am not sure about the sentence where NS, searches for the forward in the
same directory as the calling page (paying no attention to the
action-mapping).

The only forwards my links access are global-forwards as in html:link
forward=someGlobalForwardName /  
are you saying that you are linking to a forward in the action mapping from
a JSP?

That doesn't sound right, so please fill in what I am missing.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: Netscape vs. IE link problem

Hi,

In one of our Struts applications, we have created tile definitions for
every page and action-mappings that link to and from these definitions
instead of the JSPs themselves. The rationale for this approach is to make
it easy to replicate a site using the same, or mostly the same, pages. But
an interesting snafu employing Netscape (as opposed to IE) has arisen with
this schema: you can evoke the appropriate forward from both browsers when
submitting a form, yet if you attempt to link to the same page via an href,
IE finds its way to the correct page but Netscape apparently searches for
the forward in the same directory as the calling page (paying no attention
to the action-mapping). I was wondering if anyone had encountered this
problem and knew of a work-around.

Thanks



-
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: ForwardAction and modules

2003-08-14 Thread Bailey, Shane C.


I use Tiles and so all my forward actions look simply like this:

 actionpath=/home
parameter=doc.moduleHome
type=org.apache.struts.actions.ForwardAction 
scope=request
 /action

Because doc.moduleHome is in the tiles-defs.xml for the current module it
looks nicer in the struts config.  

That way, in the tiles-defs.xml you have the non module specific path listed
and so it will be of what you are looking for it sounds like.  So in all my
tiles-defs.xml no matter if they are in the main module or in submodules
then I simply refer to any JSP as (in my case) 
/WEB-INF/wherever/whatever.jsp  You don't have to think about modules in the
tiles-defs.

You should think about using Tiles.


-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: ForwardAction and modules

I have a module in which I have a forward action, and it seems that I 
have to add the module name to the parameter of the forward page.
(actual example)
action
path=/adminIndex
parameter=/admin/adminIndex.jsp
type=org.apache.struts.actions.ForwardAction
 /

 I would think that the ForwardAction should take into consideration 
that the forward page is in the specified module:
(envisioned example)
action
path=/adminIndex
parameter=/adminIndex.jsp
type=org.apache.struts.actions.ForwardAction
 /

In my example there is an admin module and a file: /admin/adminIndex.jsp.

Any thoughts on this?

-Trav


-
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: WebLogic 8.1.1 and Struts 1.1/Tiles

2003-08-14 Thread Shane Witbeck
Mike,

8.1 also works fine for me but 8.1.1 which is 8.1 with SP1 breaks. I have 
confirmation that it's not isolated to me so next question is does anyone have 
a fix other than downgrading?

Shane

Quoting Mike Jasnowski [EMAIL PROTECTED]:

 I'm using WLS 8.1 , Tiles/Struts1.1Final and JSP's w/no problems. 
 
 -Original Message-
 From: Witbeck, Shane [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 9:50 AM
 To: [EMAIL PROTECTED]
 Subject: WebLogic 8.1.1 and Struts 1.1/Tiles
 
 
 Has anyone had any issues with JSP's not compiling with WL 8.1.1 and Struts
 1.1 using Tiles? I have just upgraded WL and some JSPs compile and others
 dont.
 
 Thanks,
 
 Shane
 
 -
 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 mail sent through Toaster-Horde (http://qmailtoaster.clikka.com/)

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



Is this a bug with struts config file?

2003-08-14 Thread Bailey, Shane C.
 

Short version:

I would think that I could do this then forward name=home path=/home/
and Struts

would know to add the .do for me.  When a html:link forward=home is
rendered it does not

have the .do on it.  I have to make it forward name=home
path=/home.do/ 

 

Is that a bug?

 

Since Struts determines extensions on the fly (at Servlet startup based on
URL pattern in web.xml)

it just seems defeating that you would have to hard code an extension
anywhere in the system.

 

 

Longer version: 

In my crusade to wipe out all hard coded .do extensions in the app for
future upgradability

(for instance all my links are like this html:link action=/login...
instead of login.do 

 

I found that (unless something is not right) the global-forwardS don't act
as I would expect.

It implies in the struts config dtd that if contextRelative not true then
the path is module relative.

 

It seems minor but if I need to change the extension to .go or something
else,

say, because if a hacker doesn't know you are using Struts because the
extension is .poo then

it may help the system.  But in order to make the change I would have to go
into all my many

struts config files and globally replace .do.  Not too bad if I am doing
it but when someone else

in the group with less experience does it then it could be a pain.



RE: Mapping Struts controller servlet to webapp root: trouble

2003-08-14 Thread Bailey, Shane C.


If I remember correctly, from looking at the source code, Struts determines
what extension (or prefix) to add to the request. If /* is used I could see
how it could screw things up.  You don't want images and things like that
going through Struts anyway, I wouldn't think.

Why do you want to do /* (at least for Struts URL pattern)?


-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:05 AM
To: [EMAIL PROTECTED]
Subject: Mapping Struts controller servlet to webapp root: trouble

I was wondering if anyone has heard of issues arising when the contoller is 
mapped to a webapp's root.

I am talking about this:

servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern/*/url-pattern
/servlet-mapping

where action is the Struts controller.

Struts seems to return a 400 error with such mapping when it tries to make a

forward from an Action instance saying that the request was syntactically 
incorrect.

url-pattern/struts/*/url-pattern or url-pattern*.do/url-pattern are 
commong but I was wondering about the /* mapping. Anyone heard of any 
issues with this?
Thanks,

Paul


-
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: LookupDispatchAction error

2003-08-14 Thread Bailey, Shane C.


Yes, you can do it without the .do and it is safer to do so.

You can even do this which is nice:

html:link action=/test?updateMethod=nameOfYourDispatchLookup
...
/html:link

Note the /test? instead of /test.do? 


I remember looking at the source code before and the URL comes in in pieces
so that the query string is separate from the path and so struts
automatically puts on the filter (.do or whatever it may be).




-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 12:07 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction error



Sorry, solution #1 should read:
html:link action=/test.do ... ... /html:link

Not sure if you need the .do part but I do and that can be bad if you change
the extension later.  So if you can do it with just action=/test then I
suggest to do it.  I will look at mine now to see if I can change it.




-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 12:01 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction error



I think you could do it a couple different ways...

1. 
JSP:
bean:define id=lookupName value=whateverLookupYouWantToGoto/
html:link forward=test paramId=updateMethod paramName=lookupName 
...
/html:link

2. 
JSP:
html:link forward=gtest .../html:link

struts config:
  global-forwards
  forward   name=gtest
  path=/test.do?updateMethod=whateverLookupYouWantToGoTo/
  /global-forwards


I've done similar so either way should work.



-Original Message-
From: OFlaherty, Colm [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 11:35 AM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction error

I am getting the following error on , which I can't figure out:

HTTP ERROR: 500 Request[/test] does not contain handler parameter named
updateMethod
RequestURI=/clientdb/test.do


I am following a couple of decent examples using the LookupDispatchAction
class (pages 128 -130 in Programming Jakarta Struts by Chuck Cavaness). My
config is basically the same as what he has, but I have a couple of minor
differences, which I don't think should be causing any issues, but maybe
someone can put me right: 

The JSP link that gives me the error is the following: 

trtdlihtml:link forward=testbean:message
key=test.maintain.label//html:link/li/td/tr

My action mappings section has the following action:


action-mappings
action path=/test
type=com.kbcam.core.struts.action.TestUpdateAction 
name=testForm 
scope=request 
input=/pages/test.jsp 
parameter=updateMethod

/action
...
/action-mappings



I also have a section for the testForm: 


form-beans
form-bean  name=testForm
type=com.kbcam.core.struts.form.TestForm/
...
/form-beans


My /pages/test.jsp uses a template, which points at /pages/testcontent.jsp,
which contains the following: 


html:submit property=updateMethod
bean:message key=insert.label/
/html:submit


As u would expect, the insert.label key is contained in the properties
file (as well as the test.maintain.label  from the initial link)


insert.label=Insert
test.maintain.label=Maintain Tests



My TestUpdateAction class has the following hierarchy and methods



LookupDispatchAction
  |
BaseLookupDispatchAction
  |
BaseUpdateAction (methods: getKeyMethodMap (),getKeyMethodMap (params),
insert (params), update (params), delete ()
  (Maps insert.label to insert)
  |
TestUpdateAction


My TestForm was generated using Xdoclet from the Test.java source code, and
has a protected updateMethod string variable, with a getter and setter.
TestForm is inherited from ActionForm


The kind of thing that I'm thinking might be causing the issue include: 

1.  The hierarchy of TestUpdateAction
2.  The fact that /pages/testcontent.jsp is not referenced directly, but
via the following lines in /pages/test.jsp: 
template:insert template='/pages/template.jsp'
template:put name='content' content='/pages/testcontent.jsp'/ ...
3.  The calling link does NOT in a Form.  Its entire contents looks like
this: 

%@ include file=/tags/taglibs.jsp %
center
hr
table border=0 cellspacing=0 cellpadding=0
trtdlihtml:link forward=testbean:message
key=test.maintain.label//html:link/li/td/tr
trtdlihtml:link forward=logoutbean:message
key=logout.label//html:link/li/td/tr
/table
/center


Can anyone see anything I'm missing, or anything that I'm just doing
incorrectly?  Any help is much appreciated.

Colm


**
This message is sent in confidence for the addressee
only.  The contents are not allowed to be disclosed to
anyone other than the addressee.  Unauthorised 
recipients must preserve this confidentiality and should 
please advise the sender immediately of any error

RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.

You're right, ant does have $var in it I use my IDE to build and forgot.

I just think that is a step backwards doing tags that way.

So many things are a step backwards like config files for instance.  J2EE is
supposed to be for the Enterprise which means there is at least a DB and
maybe the LDAP at your disposal yet people go back to storing stuff in
files.

I am just trying to point out when things seem backwards.  Certain things
(like tags) should be getting more XML like and not more UNIX script like. 

Let's put our config in a datastore and let's either have programmers doing
the UI and accept things like scriptlets or have UI specialist and make it
easier on them but not having $var in the tags.  That's all I am saying.

I definitely was wrong about Ant, sorry.



-Original Message-
From: Stephen Brown [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 11:41 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL ot struts taglibs?

Maybe you could post this to the ECS users group.  Scriptlets are fine, but
tend to lend themselves to having lots of lines of code in a page that
doesn't actually generate html, which is tough to read if you are trying to
lay things out.

 
 Why do you think Ant is so popular??? It got rid of all the 
 $var UNIX script
 like crap and made it more like tags should be!!!
 
What are you talking about?  ${var} is pretty standard in Ant.  

 
 -Original Message-
 From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
 Sent: August 8, 2003 11:21 AM
 To: 'Struts Users Mailing List'
 Subject: RE: JSTL ot struts taglibs?
 
 
 
 Scriptlets are more powerful (you can do ANYTHING Java can 
 do), faster, is a
 standard (it is the Java language you know) and if you are 
 going to spend
 time learning a new language (${var} == pooPoo) then you 
 would be better
 off learning Java (assuming you don't already know it) cause 
 then you could
 do scriptlets and middle tier coding and more whereas if you 
 use your time
 learning JSTL all you will know is JSTL.  
 
 Believe me, JSTL will be easy to replace if someone comes out with an
 alternative.  I am a programmer but I understand the 
 importance of having
 the tags be similar to HTML tags and not like tags containing 
 scriptlets.
 
 If it makes you happy $var is a legal Java variable name so 
 you could just
 write scriptlets with $var and no one would realize you 
 weren't writing JSTL
 
 
 :)
 
 Why do you think Ant is so popular??? It got rid of all the 
 $var UNIX script
 like crap and made it more like tags should be!!!
 
 Bottom line is, yes, Struts tags aren't the best but JSTL is 
 not much better
 and will probably be replaced with something not so ugly in 
 the future.
 
 
 Just my .02 sense.
 
 I like it how some people don't get disturbed by questions 
 about connecting
 to a database with JDBC to the Struts user list but get mad 
 if you post a
 differing opinion about the crappy way some tags were written that
 interfaces with Struts code.  What an ACE!
 
 
 
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 08, 2003 10:28 AM
 To: Struts Users Mailing List
 Subject: Re: JSTL ot struts taglibs?
 
 --- David Thielen [EMAIL PROTECTED] wrote:
  Hi;
  
  For the logic and I18N taglibs - what do you recommend - using the
  struts taglibs or the JSTL taglibs?
 
 Definitely JSTL.  They're more powerful, easier to use, potentially
 faster, and a Java standard.
 
 David
 
  
  thanks - dave
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: modules, somethings missing

2003-08-14 Thread Bailey, Shane C.

You are correct.  I know this from looking at the Struts ActionServlet
source code that it is Struts looking for the 1 URL mapping.  How else
could Struts know to add the .do at the end (or /do/ at the beginning)
of every request? 

It parses the URL mapping in the web.xml and knows that is what needs
to be appended.  If there were multiple mappings I think it just takes
the last one in the first or last one specified (can't remember off hand).

If you wanted you could the URL mapping for *.cool or something and
you will see Struts append that to your path.  That way people would
not know you are using Struts (maybe to fake out hackers).

Glad to here it is working.



-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 6:04 PM
To: Struts Users Mailing List
Subject: Re: modules, somethings missing

I cna't say that I really understand why my way didn't work.  I really 
don't see a problem with having multiple
mappings to an ActionServlet, at least on the tomcat side of things. 
 Now that I think about it,  struts accesses
the web.xml file for some configuration information, maybe struts itself 
only looks for one action mapping when it
does its internal configuration.

Anyhow, I changed the mapping to *.do and everything works great, thanks 
Shane!

-Trav

Bailey, Shane C. wrote:


I believe the problem is that you can only have 1 URL mapping to the Struts
Servlet.

All you have to have is your first servlet-mapping.  Struts will then take
care of everything automatically from then on out.  The thing you will have
to keep in mind is that if you are in the main module to access you link
to module actions by doing html:link action=/public/someAction and
html:link action=/private/someAction  or if you want to go to an action
with the same name in the main module you just do html:link
action=someAction

One you have linked to the desired action and JSPs served up by those
modules will then be accessed like such html:link action=someAction but
Struts will automatically figure you are in a JSP served by, say, private
so
it makes the URL whatever.com/nmmr/private/someAction.

When you are in say the public module (meaning in a JSP which was served up
by an action within that module) and you want to get to a private modules
action then you do something like this:

public module struts config:
global-forward
forward name=privateHome contextRelative=true
path=/private/privateHomeAction/
/global-forward

then inside a public module JSP you would link to the private area by doing
html:link forward=privateHomePrivate Home/html:link


To be honest with you I use the .do instead of /do/* (meaning like your
/nmmr/ prefix) so that part is kinda sketchy with me as to when you need to
add /nmmr to the front of the action link etc.

But you should get the idea I hope.

-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:08 PM
To: [EMAIL PROTECTED]
Subject: modules, somethings missing

I am doing something wrong with modules, and am not quite sure what.

Basically, the rui requested is always being routed to default.  Here 
are my settings:

web.xml:
servlet
   servlet-nameNmmrActionServlet/servlet-name
   servlet-classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
   param-nameconfig/param-name
   param-value/WEB-INF/conf/nmmr-struts-config.xml/param-value
   /init-param
   init-param
   param-nameconfig/public/param-name
   param-value/WEB-INF/conf/public-struts-config.xml/param-value
   /init-param
   init-param
   param-nameconfig/private/param-name
   param-value/WEB-INF/conf/private-struts-config.xml/param-value
   /init-param
   load-on-startup2/load-on-startup
 /servlet

 servlet-mapping
   servlet-nameNmmrActionServlet/servlet-name
   url-pattern/nmmr/*/url-pattern
 /servlet-mapping
 servlet-mapping
   servlet-nameNmmrActionServlet/servlet-name
   url-pattern/public/*/url-pattern
 /servlet-mapping
 servlet-mapping
   servlet-nameNmmrActionServlet/servlet-name
   url-pattern/private/*/url-pattern
 /servlet-mapping

When I request a url of: context/public/someAction i get this:
Thread-4 DEBUG util.RequestUtils - Get module name for path /private
Thread-4 DEBUG util.RequestUtils - Module name found: default

any ideas?

thanks,
-Trav





-
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

[FRIDAY] [JOKE] Here is an old one

2003-08-14 Thread Bailey, Shane C.
 

Can anyone name the book the following joke appeared in?  

I have cleaned it up a little (the punch line) and I am typing it from
memory so it isn't exactly like the book.

 

 

There once was a native American Chief who named everybody in his tribe.
One of the young boys who was a

member of the tribe asked one day...

 

Boy: How do you come up with all of the names of each member of the tribe?

 

Chief: At the moment of birth I look to our surroundings and see what is
happening in nature and that is how I know.

 For instance, if the weather is violent and restless the name I
give may be Thunder-Cloud.

 If the animals are at play the name may be Running-Deer

 

So why do you ask, Two-Dogs-Mating???

 

:-)



RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.

But, what I really meant about JSTL being replaced was in popularity.

JSP tags are being replaced (in popularity) with Struts tags, your JSTL, and
alike.


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 4:02 PM
To: 'Struts Users Mailing List'
Subject: RE: JSTL ot struts taglibs?



-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 3:45 PM
To: Struts Users Mailing List
Subject: Re: JSTL ot struts taglibs?



Bailey, Shane C. wrote:

[Snip]
Why should build files be composed of tags at all?  I think Ant is great 
too (a lot better than make), but does the fact that it is tag-based 
have anything to do with it?  No.  The reason that the original author 
went with XML for the structure of Ant build files had nothing to do 
with tags -- it had to do with hierarchy.  See http://tinyurl.com/jg0d 
to read his thoughts on the matter (sorry for the cachelink but I can't 
find the official permalink).
[/Snip]

I don't know why a build file should be composed of tags either.  My point
was that Ant is nicer and more recently popular than make and the developer
could have thought, You know, most people that will be using Any will
probably know make so I am going to throw a bunch of == in there and that
would be fine.  Ant has more of an excuse to have == in the darn thing
than a View (geared toward UI and graphic artist specialist) tag set does.
And the Ant developer must have seen the light. (All my opinion, of course).

[Snip]
Faster?  Given a programmer with equal knowledge of scriptlets and JSTL, 
scriptlets are definitely not faster for development.  Since when are 
they faster for performance?  Plus they tend to be difficult to read -- 
and I say this as a former PHP programmer.
[/Snip]

If they aren't faster in performance then something is wrong.  All the JSP
rendering practically has to do is put the code as is into the Servlet which
is a Java class.  No interpretation.  I haven't looked at the source but I
am sure the optimization for rendering code for Scriptlets vs JSTL has to be
there.  I know more Java programmers that could get a JSP page drawn if you
simple told them % ... % for multiple code segments and do %= ... % to
return an expression given all they knew was Java and no Web stuff
(including JSTL at all).

[Snip]
Okay, first of all, JSTL is a JCP specification (JSR-52, for more info 
see http://jcp.org/aboutJava/communityprocess/final/jsr052/).  It's 
not just some 3rd-party library that is going to be replaced any time 
soon.  Second of all, it is actually a part of the JSP 2.0 specification 
(just as scriptlets are part of an earlier JSP specification).  While 
scriptlets are still supported in JSP 2.0, it is clear that Sun and the 
JCP are trying to provide alternatives to scriptlets and at some point 
they might even be deprecated.
[/Snip]

Nothing is impossible.  I remember being devastated after getting pretty
efficient with AWT and then the model changed and then Swing came out. And
you even mention how scriptlets WERE part of the spec and are now close to
deprecation.  So what is so ridiculous about my statement???

[Snip]
So sorry, but I had to ask - what the crap were you talking about.
[/Snip]

No problem.



-
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 this a bug with struts config file?

2003-08-14 Thread Bailey, Shane C.


You have my question backwards.  I am saying because of the fact that you
can have any extension you want for struts (as set by the servlet mapping)
then should you not have to hard code the extension (I used .do as an
example) in the struts config forwards.  This makes it more than just
changing the web.xml from url-pattern *.do to *.yup, struts makes it so you
have to change the web.xml AND the struts config files.  I do it with
all the s at the end because I use modules so then I would have to
change many struts config files if I want to change the extension.
That is what I wanted to avoid (strictly for future possibilities).


-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 6:37 AM
To: Struts Users Mailing List
Subject: RE: Is this a bug with struts config file?

I don't think you need to put .do.
Actually in the web.xml file you have following code 

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

here you can configure as you want you can configure *.yup also  it works.

Regards
Rohit



-Original Message-
From: Aguirre Carlos Federico [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 5:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Is this a bug with struts config file?

Hi.



the .do in forwards to actions is necessary because when you make a
forward, the request is processed again by application server,  if you not
add .do in forwards  to struts actions then the application server do not
map the request to action servlet of struts.


Richard J. Duncan [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 My experience is the same as yours. That while the .do can be omitted
 in the action definition, it may not be omitted in the forward. FWIW, I
 think this is proper behavior. Certainly if you html:link to the forward
 your html pages will be do-less. Also, you can change to another scheme
 (e.g., /action/login) simply by modifying the structs-config.



 -Original Message-
 From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 6:00 PM
 To: [EMAIL PROTECTED]
 Subject: Is this a bug with struts config file?



 Short version:

 I would think that I could do this then forward name=home
 path=/home/
 and Struts

 would know to add the .do for me.  When a html:link forward=home is
 rendered it does not

 have the .do on it.  I have to make it forward name=home
 path=/home.do/



 Is that a bug?



 Since Struts determines extensions on the fly (at Servlet startup based
 on
 URL pattern in web.xml)

 it just seems defeating that you would have to hard code an extension
 anywhere in the system.





 Longer version:

 In my crusade to wipe out all hard coded .do extensions in the app for
 future upgradability

 (for instance all my links are like this html:link action=/login...
 instead of login.do



 I found that (unless something is not right) the global-forwardS don't
 act
 as I would expect.

 It implies in the struts config dtd that if contextRelative not true
 then
 the path is module relative.



 It seems minor but if I need to change the extension to .go or
 something
 else,

 say, because if a hacker doesn't know you are using Struts because the
 extension is .poo then

 it may help the system.  But in order to make the change I would have to
 go
 into all my many

 struts config files and globally replace .do.  Not too bad if I am
 doing
 it but when someone else

 in the group with less experience does it then it could be a pain.




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



*--
This message and any attachment(s) is intended only for the use of the
addressee(s) and may contain information that is PRIVILEGED and
CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
notified that any use, distribution, disclosure or copying of this
communication is strictly prohibited. If you have received this
communication in error, please erase all copies of the message and its
attachment(s) and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and
not of Kanbay.

Although we have taken steps to ensure that this e-mail and any
attachment(s) are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.


-
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: Allowing only POST for form submittal ????

2003-08-14 Thread Bailey, Shane C.

Jason,

That makes since about the user (hacker) recreating the form on POSTing. Why
the original separation in the Servlet then, any ideas?

I would do the check at the top of the action.  It seems more flexible than
having to put your form actions in a certain area.

Thanks.

BTW, SecurityFilter is running smoothly :-)



-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 6:21 PM
To: Struts Users Mailing List
Subject: Re: Allowing only POST for form submittal 

Hi Shane,

I don't think it really matters.

Say you have a hidden field containing an id in your form that is posted 
back to an action.  A user could copy that page to their hard disk, 
modify the field and then submit it.  They would still be POSTing so 
your action would be happy.  You still need to verify the id is ok, or 
user has permission to access that id.

If you had some reason to only allow POSTs then you might be able to 
check in the action, or I think you can do that with a security 
contraint in web.xml:

security-constraint
 web-resource-collection
   web-resource-nameallow only POSTs/web-resource-name
   url-pattern/postonly/*.do/url-pattern
   http-methodGET/http-method
 /web-resource-collection
 auth-constraint
   role-nameno-member-role/role-name
 /auth-constraint
/security-constraint

This basically means if someone tries to use GET (eg a normal request to 
the action) they would have to be a member of the role 'no-member-role'. 
  Since we won't have anyone in this role, nobody can use GET for these 
actions.  All other methods are allowed.

-- 
Jason Lea



Bailey, Shane C. wrote:
  
 
  
 
 I have worked with Struts at a few different companies now and I noticed
 none of them try
 
 to do any checks to see that only POST methods can successfully make it to
 Actions
 
 which handle forms submittals.  Struts allows GETs and POSTs to make it to
 every Action
 
 so it seems like this would be something to think about (or maybe not,
that
 is one reason
 
 I am asking).
 
  
 
 So I guess I have a few questions then:
 
  
 
 1.Shouldn't I worry about (and defend against) which request methods
 types (GET, POST, etc.) can make it to which actions?
 2.If so, does Struts have a built in mechanism like action
 path=/whatever requestMethod=POST or if not 
 3.Should I be doing something like this at the top of my execute()
 method: 
 
   if( ! POST == request.getMethod() ){ return
 mapping.findForward(failure); }  for Actions which should require a POST
 only
 
  
 
  
 
 With #1 I mean should it matter if someone can go to the URL field in the
 browser and type in all the field / value pairs for a form
 
 and hit enter (I am thinking it does matter) compared to HAVING to do a
POST
 for it to succeed?
 
  
 
 I am just thinking back to the Servlet programming days when you put the
 form submittal handling code in the doPost() and the
 
 other code in the doGet() methods.
 
  
 
 Any thoughts on this?
 
 




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

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



RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.

I see the ease of using a flat file for config since a framework doesn't
have to support the many DBs where their data could be stored but I think
you can better protect data in a DB and you won't have parsing errors at run
time.  You just need an interface to manipulate the data.

Until Struts broke down into modules you had to view, in some cases, a very
big and sometimes ugly config file.  

Didn't Oracle have a product that was like the file system is in the DB?
Whatever happened to that?

It is Friday and I feel like talking about the future of software a little
that's all.

:)

-Original Message-
From: Reinhard [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 12:04 PM
To: Struts Users Mailing List
Subject: Re: JSTL ot struts taglibs?

 So many things are a step backwards like config files for instance.  J2EE
 is supposed to be for the Enterprise which means there is at least a DB
and
 maybe the LDAP at your disposal yet people go back to storing stuff in
 files.

I don't agree.
You have to think about the time after the rollout - so, things which are
not 
subject of change, IMHO are ok in config files.
All other stuff it's already possible, read from database.
So I can see no step backward.

cheers Reinhard 

-
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] Interesting JSF info

2003-08-14 Thread Bailey, Shane C.





I guess my problem is that I think of Java as being a Sun only product and I
forget about the committees involved in the process of deciding what goes
into the different Java specifications or editions (EE,SE,ME).

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



RE: very simple if/else question

2003-08-14 Thread Bailey, Shane C.

Man (you already used Dude), I already stated that that doc is much better
than the 50 other docs out there as far as JSTL reference.  It appears to be
a scan of a book in crappy PDF format.

I just think it is very elitist for Dave to be constantly throwing around
that JSTL is so great in so many aspects (e.g. faster for development and
faster execution)as if it were fact when it is mostly opinion (or future
release fact).  He never says, IMO, JSTL is really good ... it is always
JSTL IS the greatest  All because an alpha product (tomcat) optimizes
some JSTL tags doesn't mean it is faster for execution (people take that as
everywhere everytime).  Any container vendor could make whatever they want
optimized (if they really wanted to).

If you read my previous posts you see how everything that David said which
made JSTL so great could also be said for scriptlets and as I said, that
doesn't mean that scriptlets should be used.  The only come back anyone
could say was that JSTL IS optimized (leaving out that it is only in alpha
tomcat, partly).  I agree that JSTL has many good parts but to act like it
is perfect and so great and exaggerate its current capabilities is just one
sided.

It is like brainwashing.  And that is sad.


-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 8:41 PM
To: Struts Users Mailing List
Subject: RE: very simple if/else question

Dude, did you bother to look at the links David gave you?
Or ask on the correct mailing list?
Or even do some research yourself?

Google. Fifth link down. JSTL reference.

Steve

 -Original Message-
 From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
 Sent: August 13, 2003 2:50 PM
 To: 'Struts Users Mailing List'
 Subject: RE: very simple if/else question



 OK, let's vote. Who here thinks that Ace Graham is correct in saying that
 these links are as easy to use as a reference (which is what I requested
 since I understand the concept of tags in general and I only need a quick
 reference):

 http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html

 http://www.amazon.com/exec/obidos/search-handle-url/index=booksfi
 eld-keywor
 ds=jstlsearch-type=ssbq=1/002-7447468-3651265

 http://www.google.com/search?q=jstlsourceid=operanum=0ie=utf-8oe=utf-8


 VS.


 http://jakarta.apache.org/struts/userGuide/struts-logic.html


 I am not talking about the tags themselves right now as to which
 better but
 as to which links, the set above or the last one, is better in a reference
 situation.  Get your stop watches out and see how fast you can know the
 attributes for any given Struts tags vs. any given JSTL.  Ready go.

 I understand there is documentation out there for JSTL that is not the
 point.



 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 13, 2003 1:29 PM
 To: Struts Users Mailing List
 Subject: RE: very simple if/else question

 --- Bailey, Shane C. [EMAIL PROTECTED] wrote:
 
 
  Why isn't there a page for JSTL reference that is as nice and easy to
  use
  as:
 
  http://jakarta.apache.org/struts/userGuide/struts-logic.html ???
 
  You would be much closer to substantiating your claim of JSTL being
  faster
  to develop with if such a page existed, Ace.

 http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html

 http://www.amazon.com/exec/obidos/search-handle-url/index=booksfi
 eld-keywor
 ds=jstlsearch-type=ssbq=1/002-7447468-3651265

 http://www.google.com/search?q=jstlsourceid=operanum=0ie=utf-8oe=utf-8

 David

 
 
 
  -Original Message-
  From: David Graham [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 13, 2003 12:41 PM
  To: Struts Users Mailing List
  Subject: RE: very simple if/else question
 
  --- Slattery, Tim - BLS [EMAIL PROTECTED] wrote:
c:choose
c:when test=${Fund.marketStatus != Kapaly}
  
   What are these c: ... tags? What do I have to have installed in
  order
   to
   use them?
 
  http://java.sun.com/products/jsp/jstl/index.html
 
  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
 
  David
 
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design software
  http://sitebuilder.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com

RE: Tiles related question

2003-08-14 Thread Bailey, Shane C.

You are practically there; you know Java and XML and that's all you need to
know with Tiles.






http://marc.theaimsgroup.com/?t=10306302322r=1w=2
Check out the post by Cedric, I believe he wrote Tiles.


-Original Message-
From: JavaXML Developer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 5:51 PM
To: [EMAIL PROTECTED]
Subject: Tiles related question

I am new to tiles and want to learn it quickly. Is there any tutorial ,
sample program anywhere including introduction to tiles?
 
Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



[OT] Interesting JSF info

2003-08-14 Thread Bailey, Shane C.
 

Start here:

http://java.sun.com/webservices/docs/1.2/tutorial/doc/IntroIWA6.html
http://java.sun.com/webservices/docs/1.2/tutorial/doc/IntroIWA6.html 

hit the TUTORIAL'S back button.  Read the last paragraph.  

 

HeHe.

It sure sounds like JSF is here to conquer not to co-exist.

 :-)



RE: Is this a bug with struts config file?

2003-08-14 Thread Bailey, Shane C.


Actually, now that I have thought about it one of the reasons struts can't
assume and automatically put the extension on because forwards can have
Tiles definitions.  

But then again struts should be able to see any path which starts with /
will need the extension inserted and any that doesn't should be a Tile def.
Then that is flexible for the future I guess.

Then lastly, my thinking is that you probably technically shouldn't forward
to an action because that would be action chaining, wouldn't it?  (Assuming
forwards use ActionForwards). I guess I am bad cause I do forward to other
actions.  Mostly to get between modules.

Thanks for all the responses to clear my head.



-Original Message-
From: Aguirre Carlos Federico [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 7:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Is this a bug with struts config file?

Hi.



the .do in forwards to actions is necessary because when you make a
forward, the request is processed again by application server,  if you not
add .do in forwards  to struts actions then the application server do not
map the request to action servlet of struts.


Richard J. Duncan [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 My experience is the same as yours. That while the .do can be omitted
 in the action definition, it may not be omitted in the forward. FWIW, I
 think this is proper behavior. Certainly if you html:link to the forward
 your html pages will be do-less. Also, you can change to another scheme
 (e.g., /action/login) simply by modifying the structs-config.



 -Original Message-
 From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 6:00 PM
 To: [EMAIL PROTECTED]
 Subject: Is this a bug with struts config file?



 Short version:

 I would think that I could do this then forward name=home
 path=/home/
 and Struts

 would know to add the .do for me.  When a html:link forward=home is
 rendered it does not

 have the .do on it.  I have to make it forward name=home
 path=/home.do/



 Is that a bug?



 Since Struts determines extensions on the fly (at Servlet startup based
 on
 URL pattern in web.xml)

 it just seems defeating that you would have to hard code an extension
 anywhere in the system.





 Longer version:

 In my crusade to wipe out all hard coded .do extensions in the app for
 future upgradability

 (for instance all my links are like this html:link action=/login...
 instead of login.do



 I found that (unless something is not right) the global-forwardS don't
 act
 as I would expect.

 It implies in the struts config dtd that if contextRelative not true
 then
 the path is module relative.



 It seems minor but if I need to change the extension to .go or
 something
 else,

 say, because if a hacker doesn't know you are using Struts because the
 extension is .poo then

 it may help the system.  But in order to make the change I would have to
 go
 into all my many

 struts config files and globally replace .do.  Not too bad if I am
 doing
 it but when someone else

 in the group with less experience does it then it could be a pain.




-
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 1.1 question

2003-08-14 Thread Bailey, Shane C.


A good starting point for all you antidisestablishmentarianist that don't
want to front your JSPs might be the use of the ForwardAction and
global-forwards.  That just forwards to a view page without writing a new
class.  This way, when you are ready to do the right thing, you can change
some of those ForwardActions and possibly global-forwards to real Actions.

Just a thought.

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



RE: J2EE certified

2003-08-14 Thread Shane Mingins
So where's the Struts question?

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 14 August 2003 2:01 p.m.
To: 'Struts Users Mailing List'
Subject: RE: J2EE certified

I meant getting a web application certified

-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 9:59 AM
To: Struts Users Mailing List
Subject: RE: J2EE certified



Amin

 You can take the SCWCD (Sun Certified Web Component Developer),
its for JSP and Servlets. You have to have
JCP to take this exam.

Raghu

-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:02 AM
To: [EMAIL PROTECTED]
Subject: J2EE certified


A colleague mentioned to me something about getting J2EE certified. I
could only find getting an application server certified not the
application. Anyone knows how to get a web application J2EE certified or
is there a certification for Java web apps?
 
Amin

-
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: very simple if/else question

2003-08-14 Thread Bailey, Shane C.


First, my comparison was about whether JSTL is faster than scriptlets and
not Struts tags (I NEVER said Struts tags were faster than JSTL tags) so
there you misquoted me (so we are even).

Second, I meant your quote as a summary any moron would agree that is what
you were, in summary, saying.  I don't think you said ... either but that
is in the quote, so it wasn't exact.  Sorry for the misunderstanding.

Third, something as silly as Java taglibs is exactly my point.  
Basically, listen to you your own advice, I have seen people come on this
forum and bash Struts (on this, the Struts forum) and you don't say a word.
Yet, you basically tried to tell me not to post bad things about JSTL here
even though we are all barraged with JSTL postings DAILY (basically, a
censorship attempt, IMO).

So who really cares more about the stupid tags, you or me just trying to,
instead of censor, at least give another idea about, how they ARE just
stupid tags, that aren't perfect.

Fourth, I think you have me all wrong.  I'm not mad or anything, I am just
as irritated about your original censorship attempt and follow up JSTL hype
up as you are of people basing JSTL.  I just don't understand why you can't
just say, here is how to do it in JSTL, without trying to hype it up on the
Struts group. 

Just for the record here is what made me think of elitist:
http://marc.theaimsgroup.com/?l=struts-userm=105897443627729w=2

I guess it is futile, because, why, people on the struts users group aren't
elite enough to have a valid opinion?  Only JCP members no what's best for
developers.

Anyway, I am done with this topic myself.




-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 10:44 AM
To: Struts Users Mailing List
Subject: RE: very simple if/else question

--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
 
 Man (you already used Dude), I already stated that that doc is much
 better
 than the 50 other docs out there as far as JSTL reference.  It appears
 to be
 a scan of a book in crappy PDF format.
 
 I just think it is very elitist for Dave to be constantly throwing
 around
 that JSTL is so great in so many aspects (e.g. faster for development
 and
 faster execution)as if it were fact when it is mostly opinion (or future
 release fact).  He never says, IMO, JSTL is really good ... it is
 always
 JSTL IS the greatest  All because an alpha product (tomcat)
 optimizes
 some JSTL tags doesn't mean it is faster for execution (people take that
 as
 everywhere everytime).  Any container vendor could make whatever they
 want
 optimized (if they really wanted to).

There is absolutely nothing elitist about my views.  It is a fact that the
JSTL tags are faster than Struts tags in some containers.  Resin already
provides this optimization and Tomcat 5 will (at least in part) when it is
released.  It's very unlikely that a container would optimize
non-standard, proprietary tags like Struts.  It's also very likely that
all major containers will provide optimized JSTL implementations because
it is a Java standard.

I don't need to preface every opinion I have with IMO.  It's fairly
obvious what is an opinion statement and what is factual.  I have never
stated, JSTL IS the greatest ... as you seem to have quoted me as
saying.  I have also never said that the JSTL is perfect.

I believe this conversation started with someone asking for opinions on
which taglibs to use: Struts or JSTL.  I stated my opinions and reasons
for preferring the JSTL over the Struts counterparts.  There is no need to
make personal attacks over something as silly as Java taglibs so I suggest
you lighten up.

David

 
 If you read my previous posts you see how everything that David said
 which
 made JSTL so great could also be said for scriptlets and as I said, that
 doesn't mean that scriptlets should be used.  The only come back anyone
 could say was that JSTL IS optimized (leaving out that it is only in
 alpha
 tomcat, partly).  I agree that JSTL has many good parts but to act like
 it
 is perfect and so great and exaggerate its current capabilities is just
 one
 sided.
 
 It is like brainwashing.  And that is sad.
 
 
 -Original Message-
 From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 13, 2003 8:41 PM
 To: Struts Users Mailing List
 Subject: RE: very simple if/else question
 
 Dude, did you bother to look at the links David gave you?
 Or ask on the correct mailing list?
 Or even do some research yourself?
 
 Google. Fifth link down. JSTL reference.
 
 Steve
 
  -Original Message-
  From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
  Sent: August 13, 2003 2:50 PM
  To: 'Struts Users Mailing List'
  Subject: RE: very simple if/else question
 
 
 
  OK, let's vote. Who here thinks that Ace Graham is correct in saying
 that
  these links are as easy to use as a reference (which is what I
 requested
  since I understand the concept of tags in general and I only need a
 quick

RE: Date fields?

2003-08-14 Thread Witbeck, Shane
AFIK, you must have a String data type for html:text/ tags. Personally, I
resort to using 2 getters (String and Date) in my ActionForm to deal with
this. Also, FYI...the bean:write/ tag will take a Date type and allow you
to format it using the format attribute.


HTH, 

Shane

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 9:14 AM
To: 'Struts Users Mailing List'
Subject: Date fields?


Hmm, I am a bit confused about Date fields

I have a field in my form bean of java.util.Date type.
I put struts html:text tag to capture the input from the browser. 
When I submit the request I get the following exception:
java.lang.IllegalArgumentException: argument type mismatch

It seems that BeanUtils is unable to recognize the date field. Is there
a way to let it know that the String in this particular field needs to
be converted to java.util.Date following certain format? I was wondering
if I can do it without creation of an extra string field, which I would
convert to java.util.Date manually and assign the result to the real
filed?

Alex.


-
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: Jason Meredith/LDN/FIMAT is out of the office.

2003-08-14 Thread Shane Mingins
Yey ... a whole week of out office replies ... thanks :-)

-Original Message-
From: Jason Meredith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 13 August 2003 12:01 p.m.
To: Struts Users Mailing List
Subject: Jason Meredith/LDN/FIMAT is out of the office.

I will be out of the office starting  13/08/2003 and will not return until
22/08/2003.

I will respond to your messages when I return. If you need to contact me
then please do so on 07919091554



***
The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free. 
You must therefore take full responsibility for virus checking. 
The FIMAT Group reserve the right to monitor e-mail communications
through its networks. 

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is 
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK Private
Customers (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services
Authority; regulated by the Financial Services Authority for the conduct of
UK Business and is entered in the Financial Services Authority's register
(Register Number 183415), access to which can be gained via the following
link: www.fsa.gov.uk/register/

Member and a SETS Participant of the London Stock Exchange (LSE).
Where this communication is confirming an on exchange transaction
(as defined by the LSE),the transaction is subject to the rules of the LSE.
Any information, opinions, estimates and forecasts contained in this 
document have been arrived at or obtained from public sources believed
to be reliable and in good faith which has not been independently 
verified and no warranty, express or implied, is made as to their accuracy,
completeness or correctness.  

This document is not an offer to sell or a solicitation to acquire or
dispose
of an interest in financial instruments. 

If you have received this transmission in error, please telephone
+44 020 7676 8999 immediately so that we can arrange for its return.
***


-
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: Getting hashmap value based on bean value.

2003-08-14 Thread Bailey, Shane C.


Will this work:

logic:iterate name=myCollection id=beanA
  bean:define id=beanBId name=beanA property=beanB.id/
  bean:write name=myHashmap property=%=beanBId%/ 
/logic:iterate


-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 2:38 PM
To: Struts Users Mailing List
Subject: Getting hashmap value based on bean value.

In my jsp I have a collection of beans and a hashmap. One of the things that
I need to display is the name, e.g.

logic:iterate name=myCollection id=beanA
   bean:write name=beanA property=beanB.name]
/logic:iterate

Note that the beanA contains a beanB. Now what I want to is get a value out
of my hashmap based on beanB.id. Theoretically, I want something like:

logic:iterate name=myCollection id=beanA
   bean:write name=myHashmap property=bean:write name='beanA'
property='beanB.id'//
/logic:iterate

Which I know doesn't work. I had to resort to using bean:define to define
the id as a scripting variable and then using a scriplet to display the
hashmap, e.g.

bean:define id=beanBId name=beanA property=beanB.id/
%= myHashMap.get(beanBId)%.

I want to avoid scriptlets but can't figure out how to do this.

Thanks.

Wes


-
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: very simple if/else question

2003-08-14 Thread Bailey, Shane C.

OK, let's vote. Who here thinks that Ace Graham is correct in saying that
these links are as easy to use as a reference (which is what I requested
since I understand the concept of tags in general and I only need a quick
reference):

http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html

http://www.amazon.com/exec/obidos/search-handle-url/index=booksfield-keywor
ds=jstlsearch-type=ssbq=1/002-7447468-3651265

http://www.google.com/search?q=jstlsourceid=operanum=0ie=utf-8oe=utf-8


VS.


http://jakarta.apache.org/struts/userGuide/struts-logic.html


I am not talking about the tags themselves right now as to which better but
as to which links, the set above or the last one, is better in a reference
situation.  Get your stop watches out and see how fast you can know the
attributes for any given Struts tags vs. any given JSTL.  Ready go.

I understand there is documentation out there for JSTL that is not the
point.



-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 1:29 PM
To: Struts Users Mailing List
Subject: RE: very simple if/else question

--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
 
 
 Why isn't there a page for JSTL reference that is as nice and easy to
 use
 as:
 
 http://jakarta.apache.org/struts/userGuide/struts-logic.html ???
 
 You would be much closer to substantiating your claim of JSTL being
 faster
 to develop with if such a page existed, Ace.

http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html

http://www.amazon.com/exec/obidos/search-handle-url/index=booksfield-keywor
ds=jstlsearch-type=ssbq=1/002-7447468-3651265

http://www.google.com/search?q=jstlsourceid=operanum=0ie=utf-8oe=utf-8

David

 
 
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 13, 2003 12:41 PM
 To: Struts Users Mailing List
 Subject: RE: very simple if/else question
 
 --- Slattery, Tim - BLS [EMAIL PROTECTED] wrote:
   c:choose
   c:when test=${Fund.marketStatus != Kapaly}
  
  What are these c: ... tags? What do I have to have installed in
 order
  to
  use them?
 
 http://java.sun.com/products/jsp/jstl/index.html
 
 http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
 
 David
 
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



RE: [OT] Interesting JSF info

2003-08-14 Thread Bailey, Shane C.

Don't get me wrong.  I am more trying to display what I can foresee as a
possibility and am trying to get other's opinions and feedback.  I would
LOVE for Struts to be the main Java framework because then I wouldn't have
to relearn a new technology.  I think managers who do the hiring will put
JSF on top of the list instead of Struts.

Just like those on this list who are always pushing JSTL as it is the
standard, it is the standard (so live with it and don't try to change it
and don't look for any weaknesses, just use it).  So will many people being
doing that with JSF.

I try to be a realist (the problem is that others don't get where I am
coming from).

If you can't listen to both sides of the story then you are no better off
than the U.S. auto execs in the 1970's.

I may have posted this before but it is interesting:
http://www.csd.uwo.ca/courses/CS472b/pfaffenberger.html

Thanks man!


-Original Message-
From: Reinhard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 11:38 AM
To: Struts Users Mailing List
Subject: Re: [OT] Interesting JSF info

Hey Bailey,

just let me say, that I enjoy your comments.
Not only for showing me, that I'm not the only in doubt about the future ;-)
 

-
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: application.properties file location - Internationalisation

2003-08-14 Thread Bailey, Shane C.


I think everything is supported except diagonal right to left (or is it
diagonal left to right).  Sorry, I'm not sure.  :)

-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation



Also I was curious about languages ( i.e.Arabic based) which are written 
from right to left.
Can I have a sample file with right to left text
which says the following

welcome.title=Welcome title
welcome.heading=Welcome heading
welcome.message=To get started on your own application

I want to rename this right to left file to application.properties
and try it out.

Thanks

From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation
Date: Wed, 13 Aug 2003 13:21:23 -0400



It is built-in to the properties file framework.
http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html

I believe Struts will get the correct properties file based on the locale
set for each remote user.

Create files like:
application.properties
application_en_US.properties
application_fr_FR.properties
application_de_DE.properties

The first one is the default and all the rest should be selected
automatically depending on the remote user's locale.  I don't have an
Internationalization specification on my project so this is what I beilieve
to be true.

Someone else can verify.




-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation


In theory if you have a file called application_fr.properties in your
appname/WEB-INF/classes/resources directory then all the text will be
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

However what happens if the browser is configured to spanish when you only
have a file for French and English ?
Is there a default or will this an error  ?

 From: Bailey, Shane C. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: application.properties file location
 Date: Wed, 13 Aug 2003 11:51:53 -0400
 
 
 From what you are saying I think you should try:
 
 message-resources parameter=application/
 in your struts config file.  Since you specifically say
 application.properties as the name of your file.
 
 For instance my file is also called application.properties as opposed 
to
 aApplicationResources.properties or something.  But since mine in a
 resources directory off of the classes directory I declare mine as:
 
 message-resources parameter=resources.application/
 
 So I am assuming struts takes the last name in the parameter as the file
 name and anything before it as directory structure.
 
 
 
 -Message d'origine-
 De : Samanth Athrey [EMAIL PROTECTED]
 À : [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date : mercredi 13 août 2003 16:57
 Objet : application.properties file location
 
 
  Hi,
  
  I have my application.properties file stored in the classes directory.
 But
  the application is unable to locate and load this file. Any tips would 
be
 of
  great help.
  
  Thanks,
  Samanth Athrey
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 --
 Ce message est protege par les regles relatives au secret des
 correspondances ; il peut en outre contenir des informations a caractere
 confidentiel ou protegees par differentes regles et notamment le secret 
des
 affaires ; il est etabli a destination exclusive de son destinataire. 
Toute
 divulgation, utilisation, diffusion ou reproduction (totale ou partielle)
 de
 ce message, ou des informations qu'il contient, doit etre prealablement
 autorisee.
 Tout message electronique est susceptible d'alteration et son integrite 
ne
 peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
 message s'il a ete modifie ou falsifie.
 Si vous n'etes pas destinataire de ce message, merci de le detruire
 immediatement et d'avertir l'expediteur de l'erreur de distribution et de
 la
 destruction du message.
 This message is protected by the secrecy of correspondence rules ;
 furthermore it may contain privileged or confidential information that is
 protected by law, notably by the secrecy of business relations rule ; it 
is
 intended solely for the attention of   the addressee . Any disclosure, 
use,
 dissemination or reproduction (either whole or  partial) of this message 
or
 the information contained herein is strictly prohibited without prior
 consent.
 Any electronic message

RE: very simple if/else question

2003-08-14 Thread Bailey, Shane C.


Why isn't there a page for JSTL reference that is as nice and easy to use
as:

http://jakarta.apache.org/struts/userGuide/struts-logic.html ???

You would be much closer to substantiating your claim of JSTL being faster
to develop with if such a page existed, Ace.



-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 12:41 PM
To: Struts Users Mailing List
Subject: RE: very simple if/else question

--- Slattery, Tim - BLS [EMAIL PROTECTED] wrote:
  c:choose
  c:when test=${Fund.marketStatus != Kapaly}
 
 What are these c: ... tags? What do I have to have installed in order
 to
 use them?

http://java.sun.com/products/jsp/jstl/index.html

http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

David

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



RE: [OT] Interesting JSF info

2003-08-14 Thread Bailey, Shane C.


Actually this is seems like good reading:
http://java.sun.com/webservices/docs/1.2/tutorial/doc/JSFIntro.html


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 1:25 PM
To: [EMAIL PROTECTED]
Subject: [OT] Interesting JSF info

 

Start here:

http://java.sun.com/webservices/docs/1.2/tutorial/doc/IntroIWA6.html
http://java.sun.com/webservices/docs/1.2/tutorial/doc/IntroIWA6.html 

hit the TUTORIAL'S back button.  Read the last paragraph.  

 

HeHe.

It sure sounds like JSF is here to conquer not to co-exist.

 :-)


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



[FRIDAY] Childern

2003-08-14 Thread Shane Mingins
To those of you who have children in your lives, whether they are your own,

grandchildren, nieces, nephews, or students ... here is something to make

you chuckle.

 

Whenever your children are out of control, you can take comfort from the

thought that even God's omnipotence did not extend to His own children.

 

After creating heaven and earth, God created Adam and Eve.

 

And the first thing he said was DON'T!

 

Don't what? Adam replied.

 

Don't eat the forbidden fruit. God said.

 

Forbidden fruit? We have forbidden fruit? Hey Eve ... we have forbidden

fruit!

 

No Way!

 

Yes, way!

 

Do NOT eat the fruit! said God. Why? Because I am your Father and I

said so! God replied, wondering why He hadn't stopped creation after making

the elephants.

 

A few minutes later, God saw His children having an apple break and He was

ticked!

 

Didn't I tell you not to eat the fruit? God asked.

 

Uh huh, Adam replied.

 

Then why did you? said the Father.

 

I don't know, said Eve.

 

She started it! Adam said.

 

Did not!

 

Did too!

 

DID NOT!

 

Having had it with the two of them, God's punishment was that Adam and Eve

should have children of their own. Thus, the pattern was set and it has

never changed.

 

BUT THERE IS REASSURANCE IN THE STORY!

 

If you have persistently and lovingly tried to give your children wisdom and

they haven't taken it, don't be hard on yourself.

 

If God had trouble raising children, what makes you think it would be a

piece of cake for you?

 

THINGS TO THINK ABOUT:

 

1. You spend the first two years of their life teaching them to walk and

talk. Then you spend the next sixteen telling them to sit down

and shut up.

 

2. Grandchildren are God's reward for not killing your own children.

 

3. Mothers of teens now know why some animals eat their young!!

 

4. Children seldom misquote you. In fact, they usually repeat word for word

what you shouldn't have said.

 

5. The main purpose of holding children's parties is to remind yourself that

there are children more awful than your own.

 

6. We child-proofed our homes, but they are still getting in.

 

ADVICE FOR THE DAY:  Be nice to your kids. They will choose your nursing

home.

 

AND FINALLY: IF YOU HAVE A LOT OF TENSION AND YOU GET A HEADACHE, DO WHAT IT

SAYS ON THE ASPIRIN BOTTLE: TAKE TWO ASPIRIN AND KEEP AWAY FROM

CHILDREN.

 

 

 



RE: Registration and action mappings

2003-08-14 Thread Bailey, Shane C.





I think I understand what you want.  I would need to know whether you are
using Validator or not (in general how validation is to be performed) to
give a better answer.




-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 6:07 AM
To: 'Struts Users Mailing List'
Subject: Registration and action mappings

I have a registration wizard. In each JSP member of this wizard I have a
html:form action=/Signup.do. 

action name=signupForm type=web.SignupAction validate=false
parameter=method scope=session path=/Signup
  forward name=page1 path=.page1  /
  forward name=page2 path=.page2 /
  forward name=success path=.signupSuccess /
/action

Note that the scope is session. Now I want to write the part of
editing these pages separately. Thing is I want to use the same
SignupAction (subclass of DispatchAction), but I can't use the same
action-mapping cause I need it now to be scope=request. Also, in terms
of security  roles, I need the editing and wizard-creation mode action
mappings to be different in order to set different security settings.
The signup creation is open to all, while the editing is only for logged
on users (role=User).

I don't know if it would work (I will try it) is having two html:form
action=/Signup.do?method=create for wizard creation mode, and
html:form action=/EditRegistration.do?method=??  Or use javascript
to change these dynamically with onclick on the buttons.

I would really appreciate any comment here,
Erez






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

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



RE: Tiles related question

2003-08-14 Thread Bailey, Shane C.

Maybe I am missing something but the link below THAT I SENT in my PREVIOUS
post gives the archive of a couple different links to tutorials.  I didn't
know which was the best because I didn't use any of them personally but here
is one from Cedric:
http://marc.theaimsgroup.com/?l=struts-userm=103069759832394w=2

Maybe you didn't notice the link in my last post or I am not understanding
what you are looking for.

  

-Original Message-
From: JavaXML Developer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 6:00 PM
To: Struts Users Mailing List
Subject: RE: Tiles related question

I know that. But i am looking for a simple example or tutorial particularly
for tiles. If anyone knows, let me know.

Bailey, Shane C. [EMAIL PROTECTED] wrote:
You are practically there; you know Java and XML and that's all you need to
know with Tiles.






http://marc.theaimsgroup.com/?t=10306302322r=1w=2
Check out the post by Cedric, I believe he wrote Tiles.


-Original Message-
From: JavaXML Developer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 5:51 PM
To: [EMAIL PROTECTED]
Subject: Tiles related question

I am new to tiles and want to learn it quickly. Is there any tutorial ,
sample program anywhere including introduction to tiles?

Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 3:45 PM
To: Struts Users Mailing List
Subject: Re: JSTL ot struts taglibs?



Bailey, Shane C. wrote:

[Snip]
Why should build files be composed of tags at all?  I think Ant is great 
too (a lot better than make), but does the fact that it is tag-based 
have anything to do with it?  No.  The reason that the original author 
went with XML for the structure of Ant build files had nothing to do 
with tags -- it had to do with hierarchy.  See http://tinyurl.com/jg0d 
to read his thoughts on the matter (sorry for the cachelink but I can't 
find the official permalink).
[/Snip]

I don't know why a build file should be composed of tags either.  My point
was that Ant is nicer and more recently popular than make and the developer
could have thought, You know, most people that will be using Any will
probably know make so I am going to throw a bunch of == in there and that
would be fine.  Ant has more of an excuse to have == in the darn thing
than a View (geared toward UI and graphic artist specialist) tag set does.
And the Ant developer must have seen the light. (All my opinion, of course).

[Snip]
Faster?  Given a programmer with equal knowledge of scriptlets and JSTL, 
scriptlets are definitely not faster for development.  Since when are 
they faster for performance?  Plus they tend to be difficult to read -- 
and I say this as a former PHP programmer.
[/Snip]

If they aren't faster in performance then something is wrong.  All the JSP
rendering practically has to do is put the code as is into the Servlet which
is a Java class.  No interpretation.  I haven't looked at the source but I
am sure the optimization for rendering code for Scriptlets vs JSTL has to be
there.  I know more Java programmers that could get a JSP page drawn if you
simple told them % ... % for multiple code segments and do %= ... % to
return an expression given all they knew was Java and no Web stuff
(including JSTL at all).

[Snip]
Okay, first of all, JSTL is a JCP specification (JSR-52, for more info 
see http://jcp.org/aboutJava/communityprocess/final/jsr052/).  It's 
not just some 3rd-party library that is going to be replaced any time 
soon.  Second of all, it is actually a part of the JSP 2.0 specification 
(just as scriptlets are part of an earlier JSP specification).  While 
scriptlets are still supported in JSP 2.0, it is clear that Sun and the 
JCP are trying to provide alternatives to scriptlets and at some point 
they might even be deprecated.
[/Snip]

Nothing is impossible.  I remember being devastated after getting pretty
efficient with AWT and then the model changed and then Swing came out. And
you even mention how scriptlets WERE part of the spec and are now close to
deprecation.  So what is so ridiculous about my statement???

[Snip]
So sorry, but I had to ask - what the crap were you talking about.
[/Snip]

No problem.



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



RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.

Don't get me wrong, I think scriptlets are ugly and shouldn't be used but
like I said JSTL is not da bomb and if already know Struts tags I wouldn't
go rewriting my code to JSTL until I have seen what JSF and any new
technology near by has in store.

I'm just saying all the reasons listed do not necessarily mean a whole lot
since scriptlets can fit nearly everything said about JSTL but yet everybody
agrees not to use scriptlets.  I am just giving another opinion.



-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 11:21 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL ot struts taglibs?


Scriptlets are more powerful (you can do ANYTHING Java can do), faster, is a
standard (it is the Java language you know) and if you are going to spend
time learning a new language (${var} == pooPoo) then you would be better
off learning Java (assuming you don't already know it) cause then you could
do scriptlets and middle tier coding and more whereas if you use your time
learning JSTL all you will know is JSTL.  

Believe me, JSTL will be easy to replace if someone comes out with an
alternative.  I am a programmer but I understand the importance of having
the tags be similar to HTML tags and not like tags containing scriptlets.

If it makes you happy $var is a legal Java variable name so you could just
write scriptlets with $var and no one would realize you weren't writing JSTL


:)

Why do you think Ant is so popular??? It got rid of all the $var UNIX script
like crap and made it more like tags should be!!!

Bottom line is, yes, Struts tags aren't the best but JSTL is not much better
and will probably be replaced with something not so ugly in the future.


Just my .02 sense.

I like it how some people don't get disturbed by questions about connecting
to a database with JDBC to the Struts user list but get mad if you post a
differing opinion about the crappy way some tags were written that
interfaces with Struts code.  What an ACE!




-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 10:28 AM
To: Struts Users Mailing List
Subject: Re: JSTL ot struts taglibs?

--- David Thielen [EMAIL PROTECTED] wrote:
 Hi;
 
 For the logic and I18N taglibs - what do you recommend - using the
 struts taglibs or the JSTL taglibs?

Definitely JSTL.  They're more powerful, easier to use, potentially
faster, and a Java standard.

David

 
 thanks - dave


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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

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



RE: struts 1.1 question

2003-08-14 Thread Bailey, Shane C.

Yup. It really isn't so bad.  

A lot of pages of what?  You need a lot of pages even without Struts if your
site has a lot of content.  You don't have any extra JSP pages because of it
but it makes you Struts config file a little longer than if you didn't have
to map all your JSPs.  But then that (config file size) is one reason you
can break down your struts config into multiple files per module.

Goes back to a point I made last week that config info might be better
served in say the LDAP compared to a flat file.  Unless the framework is
willing to do inefficient constant file reads to get the actions mappings
then it means all the Struts config info has to be loaded into memory.  If
you site has 1 mappings could you imagine the memory usage?  But the
LDAP is made for fast reads, perfect for something which doesn't change
much, like config information.

Wouldn't that be nice for a large Enterprise site?



-Original Message-
From: e [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 4:37 PM
To: Struts Users Mailing List
Subject: struts 1.1 question


I am about to upgrade to struts 1.1 and I have a question.
I have a site with a decent amount of content stored in a content manager.
I want to use tiles, but I read that in struts 1.1, all jsps have to be 
fronted by actions.
Does this mean that I have to write forwards in strutsconfig.xml for every 
single jsp on the site?
This could add up to a lot of pages.

Am I interpreting this correctly?

Thanks.

-e



-
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: application.properties file location - Internationalisation

2003-08-14 Thread Bailey, Shane C.


It is built-in to the properties file framework.
http://java.sun.com/docs/books/tutorial/i18n/intro/steps.html

I believe Struts will get the correct properties file based on the locale
set for each remote user.

Create files like:
application.properties
application_en_US.properties
application_fr_FR.properties
application_de_DE.properties

The first one is the default and all the rest should be selected
automatically depending on the remote user's locale.  I don't have an
Internationalization specification on my project so this is what I beilieve
to be true.

Someone else can verify.




-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: RE: application.properties file location - Internationalisation


In theory if you have a file called application_fr.properties in your
appname/WEB-INF/classes/resources directory then all the text will be 
replaced with French.
Based on the assumption that the browser is configured to French.
Therefore no coding is required.

However what happens if the browser is configured to spanish when you only 
have a file for French and English ?
Is there a default or will this an error  ?

From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: application.properties file location
Date: Wed, 13 Aug 2003 11:51:53 -0400


From what you are saying I think you should try:

message-resources parameter=application/
in your struts config file.  Since you specifically say
application.properties as the name of your file.

For instance my file is also called application.properties as opposed to
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:

message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.



-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


 Hi,
 
 I have my application.properties file stored in the classes directory. 
But
 the application is unable to locate and load this file. Any tips would be
of
 great help.
 
 Thanks,
 Samanth Athrey
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) 
de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de 
la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity 
can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--


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


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


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

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



RE: LookupDispatchAction error

2003-08-14 Thread Bailey, Shane C.


I think you could do it a couple different ways...

1. 
JSP:
bean:define id=lookupName value=whateverLookupYouWantToGoto/
html:link forward=test paramId=updateMethod paramName=lookupName 
...
/html:link

2. 
JSP:
html:link forward=gtest .../html:link

struts config:
  global-forwards
  forward   name=gtest
  path=/test.do?updateMethod=whateverLookupYouWantToGoTo/
  /global-forwards


I've done similar so either way should work.



-Original Message-
From: OFlaherty, Colm [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 11:35 AM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction error

I am getting the following error on , which I can't figure out:

HTTP ERROR: 500 Request[/test] does not contain handler parameter named
updateMethod
RequestURI=/clientdb/test.do


I am following a couple of decent examples using the LookupDispatchAction
class (pages 128 -130 in Programming Jakarta Struts by Chuck Cavaness). My
config is basically the same as what he has, but I have a couple of minor
differences, which I don't think should be causing any issues, but maybe
someone can put me right: 

The JSP link that gives me the error is the following: 

trtdlihtml:link forward=testbean:message
key=test.maintain.label//html:link/li/td/tr

My action mappings section has the following action:


action-mappings
action path=/test
type=com.kbcam.core.struts.action.TestUpdateAction 
name=testForm 
scope=request 
input=/pages/test.jsp 
parameter=updateMethod

/action
...
/action-mappings



I also have a section for the testForm: 


form-beans
form-bean  name=testForm
type=com.kbcam.core.struts.form.TestForm/
...
/form-beans


My /pages/test.jsp uses a template, which points at /pages/testcontent.jsp,
which contains the following: 


html:submit property=updateMethod
bean:message key=insert.label/
/html:submit


As u would expect, the insert.label key is contained in the properties
file (as well as the test.maintain.label  from the initial link)


insert.label=Insert
test.maintain.label=Maintain Tests



My TestUpdateAction class has the following hierarchy and methods



LookupDispatchAction
  |
BaseLookupDispatchAction
  |
BaseUpdateAction (methods: getKeyMethodMap (),getKeyMethodMap (params),
insert (params), update (params), delete ()
  (Maps insert.label to insert)
  |
TestUpdateAction


My TestForm was generated using Xdoclet from the Test.java source code, and
has a protected updateMethod string variable, with a getter and setter.
TestForm is inherited from ActionForm


The kind of thing that I'm thinking might be causing the issue include: 

1.  The hierarchy of TestUpdateAction
2.  The fact that /pages/testcontent.jsp is not referenced directly, but
via the following lines in /pages/test.jsp: 
template:insert template='/pages/template.jsp'
template:put name='content' content='/pages/testcontent.jsp'/ ...
3.  The calling link does NOT in a Form.  Its entire contents looks like
this: 

%@ include file=/tags/taglibs.jsp %
center
hr
table border=0 cellspacing=0 cellpadding=0
trtdlihtml:link forward=testbean:message
key=test.maintain.label//html:link/li/td/tr
trtdlihtml:link forward=logoutbean:message
key=logout.label//html:link/li/td/tr
/table
/center


Can anyone see anything I'm missing, or anything that I'm just doing
incorrectly?  Any help is much appreciated.

Colm


**
This message is sent in confidence for the addressee
only.  The contents are not allowed to be disclosed to
anyone other than the addressee.  Unauthorised 
recipients must preserve this confidentiality and should 
please advise the sender immediately of any error in
transmission.
**


-
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: Error - tag useAttribute : no tiles context found.

2003-08-14 Thread Bailey, Shane C.




Here is the source code producing your problem:

ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
  throw new JspException ( Error - tag useAttribute : no tiles context
found. );


If this happens intermittently then maybe it is because a user is hitting
the back button or a cached page or something like that which would cause
the request to be missing the component context.

Just a guess.


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: Error - tag useAttribute : no tiles context found.

I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:

tiles:useAttribute name=menuon scope=request ignore='true'/

The runtime complains about tiles context not found as follow:

javax.servlet.jsp.JspException: Error - tag useAttribute : no tiles context
found.
at
org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.ja
va:219)
at
jsp_servlet._common._layouts._classiclayout._jspService(_classiclayout.java:
85)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

The application works fine with intended functionalities, but this exception
fills my log file all over. Any idea what could cause this?

Jianbo


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



WebLogic 8.1.1 and Struts 1.1/Tiles

2003-08-14 Thread Witbeck, Shane
Has anyone had any issues with JSP's not compiling with WL 8.1.1 and Struts
1.1 using Tiles? I have just upgraded WL and some JSPs compile and others
dont.

Thanks,

Shane

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



RE: very simple if/else question

2003-08-14 Thread Bailey, Shane C.

Much better. 

Not quite as good as an HTML page where you don't need a (an acrobat)
plug-in (it is a minor pain being asked if I want to upgrade my acrobat when
I am trying to look something up) and laid out so that every tag (even if
just by library) is listed at the top for quick access (like both the struts
tag reference and javadoc methods, see them all click to the one you want).

But still. Much better.



-Original Message-
From: Evan Schnell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 6:11 PM
To: Struts Users Mailing List
Subject: Re: very simple if/else question

Bailey, Shane C. wrote:

OK, let's vote. Who here thinks that Ace Graham is correct in saying that
these links are as easy to use as a reference (which is what I requested
since I understand the concept of tags in general and I only need a quick
reference):
  

Print and laminate this:
http://www.manning.com/bayern/appendixA.pdf

Evan.


-
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: authentication

2003-08-14 Thread Bailey, Shane C.


You could have two modules, one named public and one named private and so
you would have two different path=/someAction actions one in each modules
struts config.

Then in the private one you have path=/someAction role=Admin and in the
public one you don't have a role attribute or it is role=all or something.




-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: authentication

I need some help with authentication with struts.  I have been looking 
into filter validation, having a directory /publicAction and a directory 
/privateAction each containing public and private actions.  The 
interesting thing, if the action mapping is /privateAction/* and 
/publicAction/*, then two two different urls can acccess someAction, 
both /privateAction/someAction and /publicAction/someAction.

I could have two directories, one /action/public and the other 
action/private.  But here, the mapping would be action/*, and the 
struts-config.xml paths would have to me something like: 
path=/private/privateAction, which seems a little messy, especially if 
a privateAction is to become a public action.  Any ideas?

I can't use container managed authentication.

any help would be great!

-Trav


-
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: using modules versus simply using multiple struts-config files

2003-08-14 Thread Bailey, Shane C.


Very interesting. I didn't know you could now have multiple struts-configs
and no modules.  

The two problems I had with using modules was (at first) the switching
between them as mentioned. I never took to the SwitchAction so I use global
forwards which do my module prefixes for me.  And second, having to
duplicate my (commonly used) messages in each modules resource file (this
problem is more of a problem of why can't I inherit them than anything
else.

It seems like multi configs with no modules solves problem 1.  I take it
that you will still have problem 2.  But I did see a post recently about
someone who made a code change so that resource files could inherit.

Sadly, since I am using modules, I can't think of any advantages of modules
if you can have multiple struts config, tiles def and resource files and no
modules. 




-Original Message-
From: Van Riper, Mike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 2:02 PM
To: List Struts-User (E-mail)
Subject: RE: using modules versus simply using multiple struts-config files

 -Original Message-
 From: Van Riper, Mike 
 Sent: Tuesday, August 12, 2003 5:55 PM
 To: List Struts-User (E-mail)
 Subject: using modules versus simply using multiple 
 struts-config files
 
 
 I did search the archives and there is information about 
 using multiple
 config files and separately about using full-blown modules 
 too. There may
 have been a comparison of the two approaches somewhere in the 
 archives too,
 but, I was not able to find it. Thus, my reason for posting 
 this to the
 group.
 
 I'm setting up the webapp infrastructure for a new project. 
 This is the
 first opportunity I have to use the new module support in 
 Struts 1.1. As I
 am investigating it, it seems like the new capability to 
 specify multiple
 struts-config files in your default module configuration in 
 the web.xml file
 gets you most of the modularity advantages that multiple 
 modules provide.
 
 Sure, you do get to leave the module leading subdirectory out 
 of your action
 mapping definitions when you define separate modules in 
 web.xml for each
 struts-config file. Other than that, I'm not seeing the 
 advantages of using
 full-blown modules when I could just setup separate 
 struts-config files for
 each logical module. On the flip side, you have to deal with properly
 switching between modules when you use modules. Also, every 
 request must go
 through an action mapping to use modules.
 
 Right now, I'm leaning towards setting up separate 
 struts-config files for
 each logical module and simply specifying them as a comma 
 separated list in
 the default module configuration in my web.xml. This is a 
 relatively small
 webapp which can be logically partitioned in to about 5 
 areas. Also, there
 will be three of us working in parallel on a tight schedule. 
 So, it seems to
 me that I get the modularity benefits without the module 
 restrictions by
 simply setting up separate struts-config files.
 
 Before going too far down this path, I was interested in any 
 feedback from
 others on the list about this approach. Am I missing 
 something about the
 differences between these two approaches?

I love talking to myself. ;-)

I know that setting it up with separate modules in web.xml can be made to
work, but, I've also seen recent postings about difficulties using tiles and
difficulties switching between modules by other module newbies. I'd rather
not have to deal with that myself let alone training the other Struts
newbies on my current tightly scheduled project. So, I guess I'll go ahead
with my current plan to use multiple struts-config files associated with one
entry in my web.xml file. The way I'll be setting it up makes it easy to
switch to true separate module definitions later on anyway. Each logical
module will already have its own subdirectory below the web root.

Based on other suggestions I've seen, I'll have a default struts-config file
for shared configuration of plug-ins (e.g., tiles), global forwards,
controller, etc... In addition, a separate struts-config file for each
logical module.

 
 - Van
 
 Mike Van Riper
 mailto:[EMAIL PROTECTED]
 http://www.baychi.org/bof/struts

-
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: LookupDispatchAction error

2003-08-14 Thread Bailey, Shane C.


Sorry, solution #1 should read:
html:link action=/test.do ... ... /html:link

Not sure if you need the .do part but I do and that can be bad if you change
the extension later.  So if you can do it with just action=/test then I
suggest to do it.  I will look at mine now to see if I can change it.




-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 12:01 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction error



I think you could do it a couple different ways...

1. 
JSP:
bean:define id=lookupName value=whateverLookupYouWantToGoto/
html:link forward=test paramId=updateMethod paramName=lookupName 
...
/html:link

2. 
JSP:
html:link forward=gtest .../html:link

struts config:
  global-forwards
  forward   name=gtest
  path=/test.do?updateMethod=whateverLookupYouWantToGoTo/
  /global-forwards


I've done similar so either way should work.



-Original Message-
From: OFlaherty, Colm [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 11:35 AM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction error

I am getting the following error on , which I can't figure out:

HTTP ERROR: 500 Request[/test] does not contain handler parameter named
updateMethod
RequestURI=/clientdb/test.do


I am following a couple of decent examples using the LookupDispatchAction
class (pages 128 -130 in Programming Jakarta Struts by Chuck Cavaness). My
config is basically the same as what he has, but I have a couple of minor
differences, which I don't think should be causing any issues, but maybe
someone can put me right: 

The JSP link that gives me the error is the following: 

trtdlihtml:link forward=testbean:message
key=test.maintain.label//html:link/li/td/tr

My action mappings section has the following action:


action-mappings
action path=/test
type=com.kbcam.core.struts.action.TestUpdateAction 
name=testForm 
scope=request 
input=/pages/test.jsp 
parameter=updateMethod

/action
...
/action-mappings



I also have a section for the testForm: 


form-beans
form-bean  name=testForm
type=com.kbcam.core.struts.form.TestForm/
...
/form-beans


My /pages/test.jsp uses a template, which points at /pages/testcontent.jsp,
which contains the following: 


html:submit property=updateMethod
bean:message key=insert.label/
/html:submit


As u would expect, the insert.label key is contained in the properties
file (as well as the test.maintain.label  from the initial link)


insert.label=Insert
test.maintain.label=Maintain Tests



My TestUpdateAction class has the following hierarchy and methods



LookupDispatchAction
  |
BaseLookupDispatchAction
  |
BaseUpdateAction (methods: getKeyMethodMap (),getKeyMethodMap (params),
insert (params), update (params), delete ()
  (Maps insert.label to insert)
  |
TestUpdateAction


My TestForm was generated using Xdoclet from the Test.java source code, and
has a protected updateMethod string variable, with a getter and setter.
TestForm is inherited from ActionForm


The kind of thing that I'm thinking might be causing the issue include: 

1.  The hierarchy of TestUpdateAction
2.  The fact that /pages/testcontent.jsp is not referenced directly, but
via the following lines in /pages/test.jsp: 
template:insert template='/pages/template.jsp'
template:put name='content' content='/pages/testcontent.jsp'/ ...
3.  The calling link does NOT in a Form.  Its entire contents looks like
this: 

%@ include file=/tags/taglibs.jsp %
center
hr
table border=0 cellspacing=0 cellpadding=0
trtdlihtml:link forward=testbean:message
key=test.maintain.label//html:link/li/td/tr
trtdlihtml:link forward=logoutbean:message
key=logout.label//html:link/li/td/tr
/table
/center


Can anyone see anything I'm missing, or anything that I'm just doing
incorrectly?  Any help is much appreciated.

Colm


**
This message is sent in confidence for the addressee
only.  The contents are not allowed to be disclosed to
anyone other than the addressee.  Unauthorised 
recipients must preserve this confidentiality and should 
please advise the sender immediately of any error in
transmission.
**


-
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: Error - tag useAttribute : no tiles context found.

2003-08-14 Thread Bailey, Shane C.

Good to hear you fixed it.
Very unexpected cause for the effect.

I use to do the attribute values without quotes and ever since using Struts
(which really makes it essential to use double quotes around tag attribute
values) I have done it for all my tags (HTML, JSP, Struts, etc.)

Even though that wasn't your probably in this case you may want to get in a
habit of doing tag value=0 instead of tag value=0.

Just to be safe.

So how did you figure out that was the problem?


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2003 4:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.

Hi, Shane,

This is just for your information.

An error in html table tag caused the tile context to be lost;-)

This is what it took to get rid of the nasty exception:

fixed this:table border=0 cellpadding=0 cellspacing=0
background=#FF00FF
to : table border=0 cellpadding=0 cellspacing=0

I'm not sure how could this html error to upset the tile by the way.

Jianbo



-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 19:01
To: 'Struts Users Mailing List'
Subject: RE: Error - tag useAttribute : no tiles context found.






Here is the source code producing your problem:

ComponentContext compContext = (ComponentContext)pageContext.getAttribute(
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
if( compContext == null )
  throw new JspException ( Error - tag useAttribute : no tiles context
found. );


If this happens intermittently then maybe it is because a user is hitting
the back button or a cached page or something like that which would cause
the request to be missing the component context.

Just a guess.


-Original Message-
From: Jianbo Mao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: Error - tag useAttribute : no tiles context found.

I am using tiles:useAttribute tag to define a variable in request scope for
the remaining page to reference like this:

tiles:useAttribute name=menuon scope=request ignore='true'/

The runtime complains about tiles context not found as follow:

javax.servlet.jsp.JspException: Error - tag useAttribute : no tiles context
found.
at
org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.ja
va:219)
at
jsp_servlet._common._layouts._classiclayout._jspService(_classiclayout.java:
85)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

The application works fine with intended functionalities, but this exception
fills my log file all over. Any idea what could cause this?

Jianbo


-
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: uploadfile path

2003-08-14 Thread Bailey, Shane C.


I had the same requirement to just retrieve the original (client side) file
location and not the file itself.  This was because I develop strictly for
an Intranet (and not trying to get peoples file names unwillingly or
anything) and the users had mapped drives to the same shared server.  One
use would fill out a request asking where a specific file was located on the
mapped drive and the other user would fill out a form with the file name
only but it was convenient to browse to the file for accuracy.  Any these
files could literally be a gig in size.

With those requirements it meant that the best way was to browse to the file
and return only the full path name to the Web/Container server not
necessarily the whole file.  I assume that is what you want to do?

This is what I did:

I created two forms on the JSP page.  One was a dummy form and the other
the real form.  The real form was nothing but hidden fields. The submit
button for the dummy form (the form you could actually see) was not a
submit but a button and it went to a JavaScript method with then did a copy.

JavaScript function contents:

function submitReal(form1)
{
form2 = document.forms[1];
form2.personName.vaule = form1.personName.value;
form2.file1Name.value = form1.file.value;
...
form2.submit();

}



Where form2.file1Name was of type html:hidden and form1.file1 was of type
html:file.


I hope this helps.



-Original Message-
From: Daniel Massie [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 11:43 AM
To: Struts Users Mailing List
Subject: RE: uploadfile path

its only the original file's location that i require, i can't find any
mention of how to aquire this in any online articles.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: 06 August 2003 16:24
To: Struts Users Mailing List
Subject: Re: uploadfile path


Folow the Struts upload example, you can trace thru how Struts gets the
client file and upload to server where you have to do extra work to copy
data from FormFile (its stream buffer)  to the your choice of server
location.

-Dan

- Original Message -
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 8:18 AM
Subject: RE: uploadfile path


 html:form method=POST enctype=multipart/form-data
 html:file property=theFile /
 /html:form

 theFile is type of FormFile.  You can go from there.

 -Original Message-
 From: Daniel Massie [mailto:[EMAIL PROTECTED]
 Sent: August 6, 2003 2:35 AM
 To: Struts Users Mailing List
 Subject: uploadfile path


 I am trying to upload a file using html:file which is received as a
 FormFile, the problem is I need to find out this files absolute path. Hwo
 can I retrieve this information?

 Thanks
 Daniel


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


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



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



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

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



RE: DynaValidatorForm problem

2003-08-14 Thread Bailey, Shane C.


struts config dtd states:

 dynamic If the form bean type is a  DynaActionForm subclass
(that you
 created), then (and only then) set this attribute to
true.
 If the type is set to the default DynaActionForm or any
 conventional ActionForm subclass, then this attribute
can be
 omitted.


It appears that you are not using a subclass of the dynaform so omit the
dynamic attribute and see what happens.


-Original Message-
From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 5:33 AM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm problem


I m using DynaValidatorFrom
And in my JSP, i used this line for debugging
!%
! out.println(((org.apache.struts.action.DynaActionForm)
!   (request.getSession( )
! .getAttribute(projectForm)))
!   .getMap( ));
!%

And nothing is displaying 

!form-bean
!   name=projectForm
!   type=org.apache.struts.validator.DynaValidatorForm
!   dynamic=true
!   form-property name=name type=java.lang.String /
!   form-property name=description type=java.lang.String/
!   form-property name=type type=java.lang.String/
!   form-property name=nature type=java.lang.String/ 
!/form-bean



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

2003-08-14 Thread Bailey, Shane C.


In the validation.xml file I believe that the validator takes

form name=StringWithoutForwardSlash  as validate based on form name and
form name=/stringWithForwardSlash as validate based on the action name.

Meaning that if the validator sees a formbean with the first examples name
it does validation and then if it sees an action with same name as the
second example it will do validation on the associated form.

Anyway, in your example you have your action name with not slash so you
would have to have either:

form name=/ValidationType...OR
form name=ValidationTypeForm


You also need to keep in mind that you need to extend ValidationTypeForm
must extend ValidatorActionForm to use the action validation and
ValidatorForm to use the form validation.



-Original Message-
From: Stephen Bennett [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:39 AM
To: [EMAIL PROTECTED]
Subject: Struts Validator

Has anyone had any problems getting the Struts Validator to work?
 
I have a small sample app that works OK but cannot get my main app to
work! As far as I can see I have done everything the same as in the
sample one.
 
I have noticed that when the sample app that works starts up I get four
messages from the ValidatorPlugin the first pair mentions the
validation.xml and the validator-rules.xml then later it says
ValidatorPlugin initResources then the previous xml messages. 
 
With the real app that doesn't work I don't get these second
initResources messages. I am not sure if this is significant or not,
does anyone have any ideas?
 
I have: -
 
  plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
  property=pathnames
  value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
  /plug-in
 
in my struts-config
 
and 
 
  form name=ValidationType
field
  property=code
  depends=required
  arg0 key=validationCode.code/
/field
field
  property=constant
  depends=required,integer
  arg0 key=validationCode.constant/
/field
  /form
 
in my validation.xml
 
validator-rules.xml are default
 
my formbean is extending ValidatorActionForm
 
and my action mapping is
 
action
  path=/ValidationType
  name=validationTypeForm
  input=/jsp/validationtype/validationType.jsp
  type=com.mycompany.ValidationTypeAction
  scope=session
  forward name=Success path=/jsp/success.jsp redirect=true/
  forward name=Failure path=/jsp/failure.jsp redirect=true/
/action
 
I am using Struts 1.1 with Tomcat 4.1.24 on XP
 
Can anyone help?
 
Thanks
 
Steve

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



RE: Mapping Struts controller servlet to webapp root: trouble

2003-08-14 Thread Bailey, Shane C.


Do you want to add a filter which will look over every request prior to
Struts getting any requests?  That might be one possibility.

If you have never written a filter then one I know where you can get source
for is at securityfilter.sourceforge.net that one isn't doing necessarily
what you want but it is a (working with source) example.

- Original Message - 
From: Paul Yunusov [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 11:51 AM
Subject: Re: Mapping Struts controller servlet to webapp root: trouble

 Thanks, I see how the way Struts parses URLs could confuse it. I want to
map
 Struts to the webapp's root because my webapp doesn't contain any static
 content and I want to limit all requests to Struts-defined actions.

 Can anyone confirm Struts does not support /* mapping for its controller
 servlet?

 Thank you,

 Paul



 
 
  -Original Message-
  From: Paul Yunusov [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 13, 2003 11:05 AM
  To: [EMAIL PROTECTED]
  Subject: Mapping Struts controller servlet to webapp root: trouble
 
  I was wondering if anyone has heard of issues arising when the contoller
is
  mapped to a webapp's root.
 
  I am talking about this:
 
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping
 
  where action is the Struts controller.
 
  Struts seems to return a 400 error with such mapping when it tries to
make
  a
 
  forward from an Action instance saying that the request was
syntactically
  incorrect.
 
  url-pattern/struts/*/url-pattern or url-pattern*.do/url-pattern
are
  commong but I was wondering about the /* mapping. Anyone heard of any
  issues with this?
  Thanks,
 
  Paul
 
 
  -
  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: application.properties file location

2003-08-14 Thread Bailey, Shane C.

From what you are saying I think you should try:

message-resources parameter=application/ 
in your struts config file.  Since you specifically say
application.properties as the name of your file.

For instance my file is also called application.properties as opposed to
aApplicationResources.properties or something.  But since mine in a
resources directory off of the classes directory I declare mine as:

message-resources parameter=resources.application/

So I am assuming struts takes the last name in the parameter as the file
name and anything before it as directory structure.



-Message d'origine-
De : Samanth Athrey [EMAIL PROTECTED]
À : [EMAIL PROTECTED] [EMAIL PROTECTED]
Date : mercredi 13 août 2003 16:57
Objet : application.properties file location


Hi,

I have my application.properties file stored in the classes directory. But
the application is unable to locate and load this file. Any tips would be
of
great help.

Thanks,
Samanth Athrey




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



--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion. 
--


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



  1   2   3   4   >