Re: Using a CSS file

2005-03-06 Thread Peter
If I remember it correctly,  tag is used to produce
anchor/hyperlink tag in html (i.e.  tag). What you need here is a
 tag or a style tag .

I would very much go with James' method.

- Peter

On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:
> I prefer this method better:
> 
> 
>  @import url(<html:rewrite page="/stylesheets/foo.css" />);
> 
> 
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
> 
> - Original Message -
> From: "Tim Christopher" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Friday, March 04, 2005 11:43 PM
> Subject: Re: Using a CSS file
> 
> >>> 
> >
> > Off the top of my head I don't remember style being an attribute for
> > the html:link tag...  I'd recommend you included a 'cssStyle' global
> > forward in your Struts config file then use something like:
> >
> > JSP:
> > 
> >
> > Struts-config.xml:
> >  
> >
> >  
> >
> > Tim Christopher
> >
> > On Fri, 4 Mar 2005 16:16:33 -0700, Hyrum <[EMAIL PROTECTED]> wrote:
> >> I can't get my struts application to recognize my Style Sheet.  Here is
> >> the
> >> link I am using:
> >>
> >> 
> >>
> >> My filename.css is simple:
> >>
> >> a.menu
> >> {
> >>font-size: 115%;
> >>text-decoration: none;
> >>color: Brown
> >> }
> >>
> >> I'm trying to use the css to create a style for some menu links.  It
> >> works
> >> if I use the 

Re: struts-scaffold and commons-scaffold

2004-05-05 Thread Peter Martin
I looked at the zip file, and the files are all from 2002.  Are these the
most current?  I see that the commons-scaffold.jar is included in the
struts-scaffold.zip file.  Do I have to then build this file to create the
commons-scaffold.jar file.

-Pete
- Original Message - 
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 05, 2004 5:24 AM
Subject: Re: struts-scaffold and commons-scaffold


There's a download on the publisher's site (http://www.manning.com/husted)
that should have everything you need.

It's always just been one thing after another, and I never had the chance to
see about moving these up from the sandboxes.

For database access, I would *strongly* recommend using iBATIS
(http://www.ibatis.com/) rather than the Scaffold SQL package.

It's essentially the same thing, only the iBATIS team did it better. (Of
which I am now proud to be a member.)

-Ted.

On Tue, 04 May 2004 20:30:44 -0500, Peter Martin wrote:
> I have seen the 2 scaffolds referenced in the Struts book "Struts
> in Action", but they are in the Jakarta sandbox.  Are these
> products usable? If so, where would I find the current jar files
> and current source files?
>
>
> 
> - To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




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



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



RE: Tiles with javascript heavy pages

2004-05-21 Thread Pilgrim, Peter

> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 16:25
> To: Struts Users Mailing List
> Subject: RE: Tiles with javascript heavy pages
> 
> 
> >Do you know if you can embed the  inside the 
> >
> >to have the tiles attribute define the key for the bundle?
> 
> You can never embed any JSP tag inside another JSP tag.
> 
> You could use  or  to create a page scoped 
> variable using tiles:getAsString and then use it for the key to 
> bean:message...
> 
> 
> 
> 
> This is assuming you're using the JSTL and struts-el, which is highly 
> recommended if you are on a Servlet 2.3/JSP 1.2 container (including 
> Tomcat 4 among others).
> 
> Otherwise, it would look more like
>  />
> 
> 
> Joe
> 

Yes the same solution if you use Struts Tiles definitions.
Say you have a definition, put the key of the message resource
as a value of a tile attribute.


   
   ...


Obviously `payroll.app.clientLogin.title' being found in the resource
bundle. Inside the Struts Tiles template do as Joe suggested
except I use JSTL fmt for my i18n ready apps
 

 

 
 
   
 

That's it.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 10 South Colonnade, London E14 4QJ
United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Users in London / meet+greet / pub / networking / BOF ? / pre J1

2004-05-24 Thread Pilgrim, Peter
Hi

Are there any Struts user in or around London interested in meeting
up one evening informally in a pub somewhere in central London 
(England of course) for a pint or two, talking about their web user 
interface experiences? 

I dont care if your experience is good or bad, beginner or expert, 
but I am rather interested in professional opinions about Struts user. 
But it doesn't have to be all abouts Struts. If you regularly use other 
frameworks like Tapestry / WebWork, then perhaps you can try to convince 
me. I'd like to find out more about the ORM debate Hibernate vs 
EJB 3.0 as well. I'd also like to find out more about 
Jython and RAD web server side development. 

Thoughts?

BTW: I will be at Java One next month for the very first time so for 
me this would be good pre-amble BOF/.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Users in London / meet+greet / pub / networking / BO F? / pre J1

2004-05-24 Thread Pilgrim, Peter
Hi

Are there any Struts user in or around London interested in meeting
up one evening informally in a pub somewhere in central London 
(England of course) for a pint or two, talking about their web user 
interface experiences? 

I dont care if your experience is good or bad, beginner or expert, 
but I am rather interested in professional opinions about Struts user. 
But it doesn't have to be all abouts Struts. If you regularly use other 
frameworks like Tapestry / WebWork, then perhaps you can try to convince 
me. I'd like to find out more about the ORM debate Hibernate vs 
EJB 3.0 as well. I'd also like to find out more about 
Jython and RAD web server side development. 

Thoughts?

BTW: I will be at Java One next month for the very first time so for 
me this would be good pre-amble BOF/.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[ot] testing 1 2 3 4

2004-05-24 Thread Pilgrim, Peter
testing 1 2 3 4

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Users in London / meet+greet / pub / networking / BOF? / pre J1

2004-05-24 Thread Peter Pilgrim
Hi

Are there any Struts user in or around London interested in meeting
up one evening informally in a pub somewhere in central London 
(England of course) for a pint or two, talking about their web user 
interface experiences? 

I dont care if your experience is good or bad, beginner or expert, 
but I am rather interested in professional opinions about Struts user. 
But it doesn't have to be all abouts Struts. If you regularly use other 
frameworks like Tapestry / WebWork, then perhaps you can try to convince 
me. I'd like to find out more about the ORM debate Hibernate vs 
EJB 3.0 as well. I'd also like to find out more about 
Jython and RAD web server side development. 

Thoughts?

BTW: I will be at Java One next month for the very first time so for 
me this would be good pre-amble BOF/.


--
Regards
Peter Pilgrim
Struts/J2EE Development

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

RE: [OT] Struts Users in London / meet+greet / pub / networking / BOF ? / pre J1

2004-05-25 Thread Pilgrim, Peter


> -Original Message-
> From: James Neville [mailto:[EMAIL PROTECTED]
> Sent: 24 May 2004 17:27
> To: Struts Users Mailing List
> Subject: Re: [OT] Struts Users in London / meet+greet / pub / 
> networking
> / BOF ? / pre J1
> 
> 
> Pilgrim, Peter wrote:
> 
> >Hi
> >
> >Are there any Struts user in or around London interested in meeting
> >up one evening informally in a pub somewhere in central London 
> >(England of course) for a pint or two, talking about their web user 
> >interface experiences? 
> >
> Peter,
> 
> If you get much interest, I may be persuaded to pop down.
> I was at J1 last year at the Moscone Centre. I hope its 
> better than last 
> years affair!
> 
> Cheers,
> James

James

This will be the first time over for me so I hope J1 does live up to 
what is supposed to be, "The Centre of the World, for all things
concerning Java". Particularly in the new stuff J2SE 1.5, J2EE 1.4
etc etc. Since I doubt that there will be ever be an "European J1"
event in London, Paris, Barcelona, or Hannover I guess I will lump
it. Anyway what was bad about last year's show?

If there are people interested in the pub meet and greet. I would
hazard a guess that any date on or before 11th Friday June will be 
good. (After that I suspect most people will be unvailable. 
I will be watching the international football [soccer] 
European Championship 2004 until I fly out to J1. Incidentally
I hope San Francisco has a couple of footie/sports bars so that
watch the part of the quarter finals and both semi-finals!!!
Yes I know there is major league soccer ... but I dont know.)

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: struts.meetup.com (Re: [OT] Struts users in [my city, my coun try])

2004-05-25 Thread Pilgrim, Peter
I just signed up to the Struts meet up subsite. For reasons
stipulated in my previous note I probably wont be there for 
proposed London June 17th meeting. 

When using struts.meetup.com I was curious to find out
how do you find out about the people meeting up? How many?
Where the venue is? Or is this site another message board
thing? I just dont want to waster anybodies time or mine.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: 24 May 2004 21:46
> To: Struts Users Mailing List
> Subject: struts.meetup.com (Re: [OT] Struts users in [my city, my
> country])
> 
> 
> Struts users interested in meeting other Struts users face-to-face 
> might want to have a look at http://struts.meetup.com/
> 
> Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
>"Imagine if every Thursday your shoes exploded if you 
> tied them 
> the usual way.  This happens to us all the time with computers, and 
> nobody thinks of complaining."
>  -- Jef Raskin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



multiple actionforms into one action

2004-05-25 Thread Peter Bosmans
Hello,
I was wondering if it's possible to use two actionforms in one action.
I'm playing with the following idea :
In my loginform, i will validate loginname and password,
Then i go to loginaction where i assemble a list for that user and want 
to put the result of this list into the listform that i use into the 
next jsp-file (to display the list in there browser). Is this possible ?

And how can i exctract multiple selections from a HTML-form in a 
actionform ?

Thanx,
--
Peter Bosmans
Katholieke Hogeschool Limburg
Universitaire Campus Gebouw B Bus 1
3590 Diepenbeek
Tel. +32 11 230 770
Fax. +32 11 230 789
Mail. [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Validator question

2004-05-25 Thread Peter Martin
I have a select list that I want to validate the user picked one of the
values.  The options in the select list are as follows:

option[0]value = "" label = "Please Select"
option[1]value = "P"   label = "Probation"
option[2]value = "T"   label = "Trial"
option[3]value = " "label = "None"

option[1], option[2], or option[3] where option[3] is one blank are valid
selections.  I know that I can't use "required" because required will not
except option[3] since it is blank.  I tried using a mask of [ TP].  That
worked for the JavaScript validation, but failed in the validate method of
the ValidatorActionForm.

Any thoughts?



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



RE: [OT] Struts Users in London / meet+greet / pub / networking / BO F? / pre J1

2004-05-26 Thread Pilgrim, Peter
UK Struts Users

We have three people (including myself) who are meeting for informal
drinks on Wednesday 9th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub) 
in central London, the West End.

    Peter Pilgrim
Tim Penhey
Niall Pemberton

If there's anyone else interested please contact me off-list.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: 26 May 2004 00:59
> To: Tim Penhey; Pilgrim, Peter; [EMAIL PROTECTED];
> [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [OT] Struts Users in London / meet+greet / pub / 
> networking
> / BO F? / pre J1
> 
> 
> Me too.
> 
> - Original Message - 
> From: "Tim Penhey" <[EMAIL PROTECTED]>
> To: "Pilgrim, Peter" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, May 25, 2004 4:51 PM
> Subject: RE: [OT] Struts Users in London / meet+greet / pub / 
> networking /
> BO F? / pre J1
> 
> 
> > I'll pencil that in.
> >
> > > -Original Message-
> > > From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
> > > Sent: 25 May 2004 16:29
> > > To: Pilgrim, Peter; 'Tim Penhey'; '[EMAIL PROTECTED]';
> > > '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]';
> > > '[EMAIL PROTECTED]'
> > > Subject: RE: [OT] Struts Users in London / meet+greet / 
> pub / networking
> > > / BO F? / pre J1
> > >
> > >
> > > All
> > >
> > > How about Waxy O'conners situated between Picadilly Circus and
> > > Leicester Square on Wednesday 9th June 2004 starting say
> > > 7:00 - 7:15 pm
> > >
> > > Waxy O'Connors
> > > 14 - 16 Rupert Street, W1D 6DF
> > >
> > >
> http://www.londontown.com/LondonInformation/Bars_and_Clubs/Wax
y_OConnors/771d/
> >
>
>
>



==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Are there any IDE's that understand Struts tags?

2004-05-27 Thread Pilgrim, Peter
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 27 May 2004 10:33
> To: Struts Users Mailing List
> Subject: RE: Are there any IDE's that understand Struts tags?
> 
> 
> As a company we offer web design, programming, etc, etc.  We 
> have had the
> exact same problems you describe, but have gone down the 
> route of deciding
> that IDE's arn't the way forward for web design, and that a 
> text editor is a
> much better solution.
> 
> So, our web designers all work with raw html.
> 
> You may find resistance to this with designers who think html 
> is scarry, and
> would much rather stick with dreamweaver.  But when they get 
> into it, if
> they are supported well they will find it a breeze.
> 
> As an example, we took on a junior web designer in january who had no
> html/web design skills at all, but did have general design 
> skills.  Now he's
> producing great sites, and is up to speed with html and can 
> happily work
> with php sites, jstl/struts taglibs, etc.
> 
> We do a lot of subcontracting for other desing companies in 
> the area who get
> jobs that require these kinds of skills, but dont have the 
> people who can do
> it!
> 
> Daniel.
> 

For a previous banking client. They employed a freelance page designer
who mocked up from Excel spreadsheets. I took his HTML page then
converted them to JSTL when building the Struts front-end.

I fact I do work with Dreamweaver MX for building static web sites.
The HTML Table drawing editor is fantastic. I just dont know
about the JSP capabilities of DreamWeaver, because the things I want
to use JSTL are in fact part of Java IDE instead of a page dynamic.

So I would recommend using DreamWeaver for static design up to point
of creating a Look and Feel, then convert to JSP. Divide and conquer
one stage at a stage.

( There a market for the one product that does both page design 
and IDE debugging. Perhaps that is the true remit of Java Studio Designer. )

> > -Original Message-
> > From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> > Sent: 27 May 2004 10:03
> > To: Struts Users Mailing List
> > Subject: RE: Are there any IDE's that understand Struts tags?
> >
> >
> > I have had problems in the past getting a "web developer" from a
> > number of design companies that
> > a. understands what struts/jstl is
> > b. understands how to change html not using DW with no reworking
> > by a java developer of any tags after the redesign
> >
> > In my experience it has been easier to either
> > a. provide a static screen in Photoshop to the designer for
> > building up in a gui of their choice. A java dev then needs to
> > insert the jstl etc in to the page and ensure it still maintains
> > the design/layout after dynamic elements have been added.
> > b. get a java dev that has the ability to rework/create the html
> > inside the jsps to the required design.
> >
> >
> > a. is easier up front but more work in the long run as it
> > involves a lot more work for the java dev (especially if you are
> > using tiles).
> > b. is more work at first but works out better in the long run and
> > has more benefits.
> >
> >
> > There has been mention of a struts gui editor on this list
> > before. You may want to check the history for the threads with
> > struts+gui or struts+ide in them. I personally use 
> JDeveloper+Ultraedit32.
> >
> >
> > Chris McCormack
> >
> > -Original Message-
> > From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> > Sent: 27 May 2004 09:40
> > To: 'Struts Users Mailing List'
> > Subject: Are there any IDE's that understand Struts tags?
> >
> >
> > Folks,
> >
> > I am developing a J2EE server using Struts. The JSPs will be
> > constructed by
> > a web developer who is used to DreamWeaver.
> >
> > I imported the Struts tag libraries into DW, but the 
> "design view" doesn't
> > work.
> > He cant layout the pages visually.
> >
> > Is this a limitation of DW?
> > Are there any web IDE's that understand Struts tags and allow a
> > design view
> > to be used?
> >
> >
> > TIA Adam
> >

====
 
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Users BOF in London in Monday 7th June 2004

2004-05-28 Thread Pilgrim, Peter
UK Struts Users

We have more people (including myself) who are meeting for informal
drinks on Monday 7th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub) 
in central London, the West End.

    Peter Pilgrim / CSFB
Tim Penhey 
Niall Pemberton
Mike Raath / Bar Cap
Charles Cordingley

If there's anyone else interested please contact me off-list.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: nested tiles:insert tags

2004-06-01 Thread Pilgrim, Peter
Well the first thing I would suggest is that are you using a Struts Template
of Definition. I quick cursory glance looks like if you are just
using Tiles as a replacement for . It looks messy.

 does work very well. It returns a bean property just like 
a toString() method.


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: Colm Garvey [mailto:[EMAIL PROTECTED]
> Sent: 28 May 2004 12:04
> To: Struts Users Mailing List
> Subject: nested tiles:insert tags
> 
> 
> Has anyone been able to nest tiles such that 
> placeholders in the topmost frame can be populated by another 
> tile 2 levels
> down?
> For example, I have a base.jsp tile (which is used by all my 
> pages) which is
> responsible for color, global scripts etc..
> I would like to set up a generic search.jsp tile for use in 
> search pages as
> well as a generic list.jsp tile which could contain my 
> datagrid controls.
> So the page structure looks like this
>  widgetSearchResults.jsp inserts listTile.jsp which in turn inserts
> baseTile.jsp
> baseTile.jsp sets up most of the page structure, including 
> the page title,
> like so: 
> but I want to declare the pageTitle on my 
> widgetsearchresults.jsp page.
> I've tried nesting  tags within 
>  tags but I'm
> getting an error thrown back at me. (see sample code)
> Here's some sample code:
> baseTile.jsp
>  START
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
> %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
> %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
> %><%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"
> %><%@ page contentType="text/html; charset=utf-8" language="java"
> import="java.sql.*" errorPage="/error.jsp" %>
> 
> 
> 
> 
> 
>  type="text/css">
> 
>  
>  type="text/javascript">
> 
> 
>  >
> 
> 
> 
> 
> 
> 
> 
>  END
> listTile.jsp
>  START
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
> %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
> %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
> %><%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"
> %><%@ page contentType="text/html; charset=UTF-8" language="java"
> import="java.sql.*" errorPage="/error.jsp" %>
> 
>  
>   
> 
> 
>  rel=StyleSheet>
> 
> 
> 
>  type="text/javascript">
> 
> 
>   name="BODYPARAMS"/>

RE: [OT] Struts Users BOF in London in Monday 7th June 2004

2004-06-07 Thread Pilgrim, Peter
Final Call!

> 
> UK Struts Users
> 
> We have more people (including myself) who are meeting for informal
> drinks on Monday 7th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub) 
> in central London, the West End.
> 
>   Peter Pilgrim / CSFB
>   Tim Penhey 
>   Niall Pemberton
>   (  Mike Raath / Bar Cap )
>   Charles Cordingley
> 

If there's anyone else interested please contact me off-list.

This is sort of pre-Java One warm-up for me. So it does not have to
be about exclusive talk about Struts. Any aspect of J2EE would do.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] [SUCCESS] Struts Users in London / meet+greet / pub / netwo rking / BOF? / pre J1

2004-06-08 Thread Pilgrim, Peter
Dear Global Struts Users

I am writing to you all in order to report that we had a sucessful 
first meeting in London, last night.

Monday 7th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub) 
in central London, the West End.

The following person were in attendance:

    Peter Pilgrim / CSFB / Contractor
Tim Penhey / Bar Cap / Contractor
Niall Pemberton / 
Christopher Marsh-Bourdon / Pyplia
Charles Cordingley / RBS

(Mike Raath could not make it over at the last minute)

The discussions were on Struts and other technologies.

  (*) Struts Validator
  (*) Postgres database backup using a web container
  (*) Tiles
  (*) Eclipse
  (*) My Eclipse
  (*) JBuilder X
  (*) JDeveloper
  (*) Professional working life
  (*) Recruitment agents
  (*) Recruitment agent software ( I mention no names)
  (*) Struts Committer status
  (*) State of art in Struts developer
  (*) JSF
  (*) My SQL
  (*) Australian Snake-bite drink. (I tried one.)
  (*) The rest I can't remember.

In all I think we all had a good jolly time. It was certainly
worthwhile putting faces to electronic mail addresses.

The next meeting / network opportunity probably is in mid-July
after my trip to Java One and further spanish horizons. My calendar
is free after or on Monday 19th July 2004. 

( Andrew Hill is coming over to UK towards the end of July. 
Andrew, please let me know your preferred dates. If there is 
another interest we can do it again :-)

If there's anyone else interested in London, England, UK please 
contact me off-list. Also if you want to suggest locations
that's pretty cool as well.

PS: There is exactly a £5.80p in the treasury "kitty" for the next 
time.

Finally, here is a great UK government site 
http://www.businesslink.gov.uk/bdotg/action/layer?r.s=sl&topicId=1074456765 

Thanks for your time.
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received this 
message in error please delete it and notify us. If this message was misdirected, CSFB 
does not waive any confidentiality or privilege. CSFB retains and monitors electronic 
communications sent through its network. Instructions transmitted over this system are 
not binding on CSFB until they are confirmed by us. Message transmission is not 
guaranteed to be secure.
==


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



RE: [OT] Expresso

2004-06-09 Thread Pilgrim, Peter
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]

> 
> Any Expresso users out there?
> Id be interested in hearing your comments and evaluation of 
> this framework.
> 
> It uses Struts as the basis for the presentation layer, Id be 
> especially
> interested to know if it maintains Struts flexibility of 
> allowing you to use
> any (ie: not JSP) view rendering technology, or will one have 
> to depend
> heavily on Expresso tags for a lot of things when doing the view?
> 
Hello Andrew

I am meaning to give a response as an Expresso core committer, but 
I am tied up with project requirements meetings all day. I will
sent a full reply at home, if you can wait until then.


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Expresso

2004-06-10 Thread Pilgrim, Peter
> From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Andrew Hill [mailto:[EMAIL PROTECTED]
> 
> > 
> > Any Expresso users out there?
> > Id be interested in hearing your comments and evaluation of 
> > this framework.
> > 
> > It uses Struts as the basis for the presentation layer, Id be 
> > especially
> > interested to know if it maintains Struts flexibility of 
> > allowing you to use
> > any (i.e.: not JSP) view rendering technology, or will one have 
> > to depend
> > heavily on Expresso tags for a lot of things when doing the view?
> > 
> Hello Andrew
> 
> I am meaning to give a response as an Expresso core committer, but 
> I am tied up with project requirements meetings all day. I will
> sent a full reply at home, if you can wait until then.
> 

====

I have been Expresso developer since December 2000 when I got involved 
with the framework for electronic MIS project way back for 
Deutsche Bank in London. I was evaluating various MVC frameworks. 
At the time Struts was in its infancy (0.5 version). Web Macro and
Velocity were available, Tapestry, and Barracuda were already
sharpened tools. I looked at the J2EE compatibility. The number of
users that supported the product. How many subscribers were on 
the mailing list? Was it popular? Could get support? 
How helpful were the developers? I downloaded the source 
code and had a look at it to see the actual design.

We choose Expresso because it was more J2EE standards compatible 
and closer to the Java Servlets and Java Server Pages specs at the time.

Expresso has a number of features. It had its own MVC framework. It had
web security. It had HTTP Controllers and most important for Deutsche
back then it had DBObjects. We are talking 2001 so Hibernate was still
very young, and JDO did not quite the maturity. DBObjects appealed
because they were like `Generic Data Transfer Object'. All the 
data columns could be accessed by using key just like a HashMap.
Since a lot of the columns were going to be generically and dynamic
generated using stored procedure engine. Also at the time DBObject
supported full CRUDS (Create, Retrieve, Update, Delete & Search)
functionality pretty easily, plus it had nice search and retrieve
mechanism. Our MIS solution was targeted to a single web application,
sitting on one Tomcat / Apache Stronghold server, so we didn't require 
entity EJBs or session beans (J2EE 1.1) and an expensive application 
server to go with it. 

I would say the value-add to Expresso was the DBObjects (data objects)
and the fact we did not have re-invent the wheel creating a
security matrix, MVC framework, HTTP controllers. Additionally
Deutsche got other features like Jobs and Long running Queues
and a couple of useful utilities thrown in for free.

The picture in 2004 is a little different. Contemporary thinking has
changed for J2EE developer. 

(*) We are fast moving to lighter weight framework

(*) Dependency injection is the "in-thing"

(*) Build web applications using an abundance of other libraries and
frameworks is now a reality. We have an environment of 
``mix-in technologies''.

{ Flash / JSP / XML } : 
{ Struts / Tapestry / Velocity } : 
{ Castor JDO / Coco Base / Hibernate [ / EJB 3.0 ] )
{ Pico / Avalon / Spring }

(*) Other elements of technology that deal with specific problem 
domains in technology have become stronger and better at what
they do. e.g. Struts or Hibernate.


The current Expresso Framework as a "heavy" framework is especially 
good for building a web application with a load of the heavy duty
Tonka Toy work is done for you. 

What are the benefits of Expresso

Somebody else has built the user login controller and implemented
a web security matrix. You as a developer don't have to do it.

Somebody else has built the finite state controller, which is a
Action subclass and with state method, and you can effectively
transition between controllers and state (i.e. Action Chain safely)
You as a developer don't have to write this.

Somebody else has built as a abstraction of controller request and response
and guess what you call Controller from a command line program,
as if you call pure Struts Actions from the DOS or UNIX shell.
You as a developer don't have to write this.

To top it all off, somebody else said, let us have a Administration screen
function where all DBObjects and Controllers and their corresponding
security matrices can be manipulated at the front end. She also said
let have a lot of other configuration stuff that we can use in a 
web application. That somebody and her good ship mate eventually
went off and wrote it. Again you as a developer don't
need to re-invent the wheel.

This is what Expresso has now.

RE: [OT] A first look at Spring vs Struts

2004-06-15 Thread Pilgrim, Peter
g are former Struts users and they seem to like 
> Spring better 
> - although, they haven't given me enough compelling reasons 
> to jump ship.
> 

Not mention that Spring has its own MVC layer within the
framework itself. I think the real destination is where
will JSF and Struts juxtapose in the future. I would
assume that I will be probably using the following 
this time next year

1) JSF 1.1 or better
2) JSTL 1.1 (Tomcat 5.x / BEA WebLogic 9 / JBoss 4 )
3) Struts still

I am not sure if Spring MVC layer has support for migrating 
to JSF.

> I've only begun to start looking into Spring so I'm sure I'm 
> missing a 
> TON of points that could be made. I'd appreciate any other 
> comments good 
> or bad concerning either framework. I'm sure many of you fall 
> into the 
> same frustration-boat that I feel like I'm in- "So many 
> technologies out 
> there - only so much time." I've trying to determine if I 
> really need to 
> be investing the time to explore this framework more when I could be 
> exploring other things I need to learn more about. I'm sure 
> many of you 
> can relate:)
> 
> Thanks,
> 
> -- 
> Rick
> 

That's all part of the fun of technology. It just never stops, because
somebody out there is pushing it along. The one thing that has
Struts out for almost four years is the design principles 
are rooted on solid foundations. You cannot go wrong with
a framwork that implements the J2EE blueprints and does
it very well.

FrontController, Application Controller, 
Model View Controller, View Helper, Service to Worker

There are probably one or two others I have forgotten that are
not strictly pattern merely idioms: Digester XML, Bean Utils
introspection.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Caching data from resultset

2004-06-16 Thread Pilgrim, Peter

> -Original Message-
> From: Kies, Daniel [mailto:[EMAIL PROTECTED]
> Sent: 14 June 2004 17:52
> To: 'Struts Users Mailing List'
> Subject: RE: Caching data from resultset
> 
> 
> I recently implemented pagination for resultsets using Oracle 
> 9i.  Instead
> of loading up the entire resultset into memory, I just 
> queried based on the
> records that the user requested.  
> 
> 1) Before getting the records, I first counted the records 
> that were coming
> back in the result.  That way I can say to the user...showing 
> results 26-50
> of 2,183.  
> 2) For the first resultest, I would run my query appended 
> with a "rownum
> between 1 and 25" 
> 3) If the user paginates, then I throw the pagination numbers 
> into the query
> so the query would be appended with "rownum between x and y"
> 

MySQL supports the same idea. It has a great finite set optimisation

SELECT a,b,c,d * 
FROM  A, B, C 
WHERE ...
ORDER BY ...
GROUP BY ...
LIMIT 500, 100

This will retrieve just rows number from 500 to but including 600.

I just love MySQL for this sort of optimisation. It is so easy 
you can RAD up large result set or page by page interator 
in a couple JSTL:sql custom actions. I dont know if Postgres has it.

> This is a pretty simple solution to pagination with Oracle.  
> You may have
> some issues getting your resultset ordered properly coming 
> from Oracle, but
> using inline views should take care of that.
> 

If you search the Internet on Oracle 9i and ROWNUM you will 
find that the ROWNUM is quite confusing for joining
up several tables especially those queries with outer join.

Unfortunately there no ANSI SQL for this type of query of
counting rows or more accurately getting the database
server to return a selected view of the data. Every database
server seems to have a different way.

Also check out the ``Value List Handler'' pattern in J2EE 
blueprints. I wrote an extension of this patern using Oracle 9i
for a client last year, but it got bollocked for a 
brain dead API that some other developer achieved. 
Ah well you can't win 'em all.

> The advantage to doing this is scaleability.  I am running 
> this code on top
> of a Data Warehouse where every milisecond counts.  Using 
> rownum for the
> resultset off the database limits query execution time and allows for
> resultsets of any size.  Using resultsets with a rownum will 
> allow Oracle to
> cache the SQL you are using to execute quicker.
> 
> Let Oracle do the work.
> 
> My $ .02

In my last contract I could not agree more, to let Oracle do
the query if you can code right a ROWNUM SQL statement. 
I think we decided delegate the database query to actual 
specific PL/SQL stored procedures. The database guys added
some another column `position' and did some magic to get
the row number to work. Oh yes I remember now, that rownum
extension for Oracle applies to the final virtual 
cartesian product for all the joined database tables
specified in a SQL query. 

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Query question

2004-06-16 Thread Pilgrim, Peter

> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: 14 June 2004 18:13
> To: '[EMAIL PROTECTED]'
> Subject: Query question
> 
> 
> Anyone here familiar with using CATSEARCH type oracle 
> queries?  If so, I am
> trying to do something like:
> SELECT COLNAME
>FROM MYTABLE
>  WHERE CATSEARCH(MYFIELD,'motor',NULL) > 0 
>  OR SHORT_DESCRIPTION LIKE '%motor%'
> The problem is I get an oracle error about functional 
> invocation; however I
> and use an AND in my where clause and no errors occur.  
> Thanks for any help
> anyone can provide.

Ok with the Value List Handler pattern. There are two options
to consider

1. Deterministic result set

   In this case you are actually sure the SQL query will return
   a set of results that will not exhaust the memory and will
   not overload the network transfer between data and controller tiers.

2. Non deterministic result set

   In this case you are NOT actually sure the SQL query will return
   a set of results. Either it will exhaust the memory and take
   in reality to transfer the data.

The difference between (1) and (2) is whether you can call

   SELECT COUNT(*) FROM ...

to get the finite size of the database result set. So therefore it
decide how you implement the Value List Handler pattern. If you cannot
be sure how data you have, then you have write an optimistic version.
This also affects how you design the GUI. In other words the web user
will alway be able to click on the [NEXT] button in (2). Also you
cannot tell the user exactly how much data is really available 
on page 1 of the iteration. Interesting stuff.

For case (1) also consider the trade off between calling SQL 
to retrieve the size and to query the data. Effectively you are
executing the same SQL twice. So what you might want to do is
retrieve all the data first (if that is actually realistically)
and then give the user the size as the size of the cache.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: exception handling

2004-06-16 Thread Pilgrim, Peter
Please, really! Do you really want to us to design and 
develop your application for you?
Check out Struts global exception configuration. HTH

> -Original Message-
> From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
> 
> Please verify the below exception handling scenario.

-1

> 
> Struts Action class --> Business Delegate --> EJB (Uses OR Mapping Top
> link to talk to database) 
> 
> Also, we have a ServiceLocator class which is used to get the EJBHome
> reference. 
> 
> There are three layers at which we need to handle the exception.
> 
> At EJB layer, at business delegate and at struts layer.
> 
> EJB layer (session bean) methods will throw the (Application) business
> exceptions. 
> 
> At business delegate layer, application exceptions will be thrown by
> methods, same as EJB methods.
> 
> At struts layer, in the Action class's execute(), we will catch all
> these business exceptions. 
> 
> For Runtime exceptions, we will catch the ToplinkException 
> (this extends
> RuntimeException and this is root of all runtime exceptions) in ejb
> methods and this catch block will throw SystemException (a checked
> exception). 
> 
> Action will catch this SystemException.
> 
> Please provide your valuable inputs.

-1000
 
====
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Setting locale for the webapp

2004-06-17 Thread Pilgrim, Peter

> -Original Message-
> From: Tim Penhey [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 08:51
> To: Struts-User
> Subject: Setting locale for the webapp
> 
> 
> I have a web application where I want to have the locale 
> defined in the deployment
> descriptor somewhere.
> 
> The web application acts as the GUI for a system that will be 
> sold to clients.  The
> clients will then have their own tomcat / DB instance 
> running.  I am using the struts I18N
> to allow multiple language versions of the software, but I 
> would like to define the locale
> for the installation rather than by the users browser languages.
> 
> Any clues on how to do this?
> 
> Thanks,
> Tim

You may need to set the default locale explicitly. I got a feeling
it will be in the web.xml as a ActionServlet init parameter.

If not you can change the Struts Locale dynamically for a HttpSession.
Therefore you could program a ServletFilter.

http://www.anassina.com/struts/i18n/i18n.html

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447



==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Soccer portal released goal.com

2004-06-17 Thread Pilgrim, Peter
> -Original Message-
> From: Simone - Dev [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 13:25
> To: 'Struts Users Mailing List'
> Subject: [OT] Soccer portal released goal.com
> 
> 
> Hello All,
> I know this is a lot off-topic, but I'm so proud of the portal I
> designed and developed that I'd like you all know that it has 
> just been
> released a worldwide soccer portal named Goal.com (www.goal.com) and
> that now it's having a lot of news and live results and live 
> netcasting
> on the european championship 2004.
>  
> I aplogize for the "invasion" also becuase it's not developed 
> in Struts,
> but with ASP.NET but as I said, it took me the last 6 
> month of work
> to develop the engine that drives that portal (and all its netwok: all
> main italian soccer teams).
>  
> I use Struts in my spare time but in my "real" work I develop 
> with .NET
> and C# (not my decision, of course)... but I prefer Struts.
>  
> Simone
> -
> Simone Chiaretta

Hi Simone

Congratulations on the portal. I really do like the look and feel
of the pages. In terms of the web design it has a consistent.
You know where you are. You instantly know what you can click on.
The colours are consistent. The menus work.

The only sore point is the search facility. Every web site including
a portal needs a search and advanced search.

`Now To My Real Point'

Having using C# and .Net and also used Struts, obviously you
must be a good Server side Java developer, could you relate
to the list what are pros and cons (advangtages and disadvantages)
between C# / ASP and Java / J2EE / ASP? Could you also highlight
any architectural differences or pitfalls in both?

>From yours web site portal, I pressume your ASP.Net skills are good.
You are in a unique position, because you have real experience
of using both technologies and can see the `No Man's Land' from
both sides of the divide.

TIA

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Soccer portal released goal.com

2004-06-17 Thread Pilgrim, Peter

> -Original Message-
> From: mike [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 14:10
> To: Struts Users Mailing List; Struts Users Mailing List
> Subject: RE: [OT] Soccer portal released goal.com
> 
> 
> I personally object to this crass commercialism injected into 
> a wholly 
> inappropriate environment.  I especially dislike people who 
> apologize while 
> doing something they know is wrong.  I would encourage 
> members of this list 
> not to look at this site because of this.  I know I won't.
> 
> Michael
> 

Which is why I exacted from Simone, a __cost__. . 
Tell us what are the good and bad points between ASP/.Net and 
Struts/J2EE in his experience. We can judge him then by the answer
we receive, if we get it.
 
"Our individual mindshares are not free?"
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Soccer portal released goal.com

2004-06-17 Thread Pilgrim, Peter

> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 15:09
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Soccer portal released goal.com
> 
> 
> Hey,
>   Cool site!! Congratulations... and one little request: 
> More space for Roberto Baggio!

I second that emotion! What a truly fantastic player he was in 1994
and at Juventus.

Anyway moving back into Struts/J2EE orbit, did you develop
this site with Visual C# and tools? How did you find the
tools IDE? 

If you are using Struts in your spare time. Do you use Eclipse
or MyEclipse or the Struts Console? Basically my question is
who is doing it better (Java/Sun or C#/Microsoft) from the 
view point of tools (ease of development and deployment) 
for web application?

Way back in April I was quite impressed by a demonstration 
Visual .Net / Managed C++ / C# talking directly to a J2EE 1.4
web service. The guy demonstrated the whole thing in under
five minutes. So I have been wondering what is the state of the
art of tools under J2EE, but I guess I will find in two weeks 
at J1.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Soccer portal released goal.com

2004-06-17 Thread Pilgrim, Peter

> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 16:03
> To: Struts Users Mailing List
> Subject: RE: [OT] Soccer portal released goal.com
> 
> 
> > Way back in April I was quite impressed by a demonstration
> > Visual .Net / Managed C++ / C# talking directly to a J2EE 1.4
> > web service. The guy demonstrated the whole thing in under
> > five minutes. So I have been wondering what is the state of the
> > art of tools under J2EE, but I guess I will find in two weeks
> > at J1.
> 
> 
> I wish i shared that experience. My complaints about .NET all 
> stem back to
> one thing - it's a closed source MS product.  They are about 
> as good at
> fixing bugs as complying with standards!
> 
> I find open source java solutions far better - you find a bug 
> you ask for a
> fix, or fix it yourself.  You find the software doesnt do 
> what you want, you
> hack the code to do it!  With .NET this is impossible.
> 
> I have recently written web services for our software to 
> interoperate with
> an MS .NET system.  It was an absolute nightmare.  Bugs in MS's soap
> implementation stopped it from accessing our service.  This 
> was eventually
> overcome, but accessing the .NET service was even more 
> painful.  I cannot
> use Apache AXIS (directly) to access the service because AXIS 
> generates a
> request with slightly different namespace declaration (but an 
> equally valid
> one) than MS expects:
> 
>  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="http://tempuri.org";>
> 
> The example SOAP XML which MS gives you as an example (which works):
> 
> http://tempuri.org/";>
> 
> The only solution to this i found was to generate my own 
> "SoapEnvelope"
> object and use axis to send it, which makes for an ugly solution.
> 
> Generally i find the state of J2EE tools to be better than 
> .NET, however
> they are harder to find and sometimes get started with.  MS's 
> one benefit
> here is everything comes in the one box! There are some 
> things i quite like
> about .NET but i just dont like microsofts implementation.  
> Hopefully MONO
> are going to do better :)
> 
> Daniel.

Thnaks for that. Sounds like another open source project needs to
be written "Wrapper Around Mycrosoft .Net" in ernest. Your experience
is exactly my experience with Visual C++ back in 1999. Confused I'ill
alway be once you get beyond the tutorial examples!

I am a Linux phile so I would like to get into C# and stuff using MONO. 
It does look like an interesting language to learn too. 

At CSFB in Operations/IT it is all J2EE at the moment, but you just 
never know, The world could turn on its head any day.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Soccer portal released goal.com

2004-06-18 Thread Pilgrim, Peter
Hi Simone

I tried your site last night on my new Dell Inspiron at home. 
It was rendering very slowly ("I mean ssslllooo"). 
I think Internet Explorer 6.0 SP 1 as delivered by DELL OEM 
has some current issues with it when you are using large 
BITMAP BLITTING operations. I think IE was confused rendering 
"onmouseover" and "onmouseout" javascript operations, 
which is a damn shame, because I use
this myself on menus, but not over large complex areas like
you have done.

You might have to rethink the hover focus. Why not change the
border colours around the sections instead, and make borders
bigger. i.e blue -> red -> blue again. 

Web design authors beware. Test your site across many
browser and viewers as you can.

> -Original Message-
> From: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 20:49
> To: Struts Users Mailing List
> Subject: Re: [OT] Soccer portal released goal.com
> 
> 
> Hi Simone,
> 
>   Good job. Looks a very interesting soccer portal, but i 
> agree with my brazilian mate. Where is
> all the content deserved by the 5 times world champions? A 
> soccer website is not a real soccer
> website without content about the best soccer players in the 
> Earth: brazilian players.
>   By the way, i had some problems to navigate at your website 
> using Mozilla 1.6. You told you used
> M$ stuff at server side. But please, don't forget that client 
> site is diverse. I love Mozilla, and
> use it all the time. I do wish you didn't design goal.com 
> just for IE users.
> 
> Regards,
>  Daniel Silva.

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Theoretical debate

2004-06-18 Thread Pilgrim, Peter
> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 20:58
> To: 'Struts Users Mailing List'
> Subject: RE: Theoretical debate
> 
> 
> I completely agree with what Crysalis is trying to push, also 
> a framework
> called VRaptor (vraptor.org) also pushes the same idea of 
> moving away from
> the procedural weight that Struts promotes.
> 
> Look at JSF, do you have actions? No, JSF just updates your 
> POJO beans and
> calls methods on them.  Why have an ActionForm or have to 
> create all of
> these Actions that are simply getter/setter adapters?  Please 

Can't you use DispatchAction or LookupDispatchAction?

What if your Action is not a simple getter or setter adapter?

If you need to call a Business Delegate or perform some 
customer specifier validation for input or make a 
series of call outs then you cannot easily say Struts
is wrong.

The Action is where you bind the presentation tier and the
business logic tier.

> don't be too
> quick to retort to my supposed anti-struts mindset, but there 
> are other
> frameworks out there that allow direct interaction with my 
> business objects
> and don't require a heck of a lot of framework specific coding.
> 

I think what you are alluding to is a generic XML action controller
that you can bind using yet another XML configuration file.

If you can build such a beast and sell it to the mindshare then
the world is your ...

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Theoretical debate

2004-06-18 Thread Pilgrim, Peter

> -Original Message-
> From: mike [mailto:[EMAIL PROTECTED]
> Sent: 18 June 2004 15:31
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Theoretical debate
> 
> 
> At 07:18 AM 6/18/2004, Bill Schneider wrote:
> 
> >Form beans can be thought of as a special case of DTOs: they are the 
> >argument the client (web browser) passes to the remote 
> method call (HTTP 
> >POST).  So passing form beans directly to business logic is _almost_ 
> >reasonable, putting the dependency issue aside for now (form 
> beans have to 
> >extend ActionForm).
> >
> >The difference is, form beans are a model of the /user 
> input/, and since 
> >there may be invalid inputs (for example: "asdfjkjkd" in a 
> field that's 
> >supposed to be numeric) form bean fields often need to be 
> Strings when the 
> >corresponding field in a "real" DTO would be a Date or Integer.
> >
> >To deal with this, I've used a tool called XSnapshot (just 
> released to 
> >SourceForge: http://xsnapshot.sourceforge.net) to generate 
> form beans and 
> >other DTOs from XDoclet tags in a POJO data model.  That way you get 
> >_both_ real DTOs and Form Beans without writing all the 
> classes by hand, 
> >and you can copy between DTOs and form beans with 
> BeanUtils.copyProperties.
> >
> >-- Bill
> >--
> >Bill Schneider
> >Chief Architect
> 
> I don't think we should be thinking of action forms as DTOs.  
> DTOs or VOs 
> have a special use and a special problem that they are meant to 
> solve.  Action forms are related to an entirely different set 
> of issues 
> about data farming.  I don't think we can put the dependency issue 
> aside.  That is really the whole point of frameworks like 
> Struts.  If you 
> can put the dependency issues aside, you probably don't need 
> Struts.  If 
> you don't need a hammer, that is not a critique of a hammer.  
> Likewise, 
> Struts has an objective and, with clear areas that could be 
> improved, does 
> that really well.  There is a good reason that Struts is so 
> successful.  Craig is a sweetheart, but that is not the 
> reason for the 
> success of Struts.
> 
> I think that a lot of the problems people have with 
> repetitive programming 
> is not the fault of the framework but the failure to use 
> coding techniques 
> that are readily available, such as dynamic proxies.
> 
> Michael
> 
> 

Yes I could not agree more. This why Commons BeanUtils 
and PropertyUtils was invented. It sound like people
have an itch for a mapping properties that converts
ActionForm (Dyna also) to a Value Object. Convert me X into Y whilst
copying the attributes as best I can from X to Y.
Sounds like a very old OO problem: Morphing Eclispe into 
Round Rectangle into a Triangle. I wonder.


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] JavaOne Struts User Gathering

2004-06-22 Thread Pilgrim, Peter

> -Original Message-
> From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
> Sent: 19 June 2004 22:11
> To: 'Struts Users Mailing List'
> Cc: '[EMAIL PROTECTED]'
> Subject: [OT] JavaOne Struts User Gathering
> 
> 
> Hi Everyone,
> 
> Depending upon the interest level, I'm willing to organize a social
> gathering at a bar or restaurant in San Francisco during the upcoming
> JavaOne conference. It would either be around 8:30pm on 
> Sunday, June 27th,
> after the Welcome Reception ends. Or it would be around 
> 8:00PM on Thursday,
> July 1st, at the very end of the conference.
> 
Yes count me in

I'd rather prefer Sunday. Most people I bet, will be packing 
their stuff, preparing to go home on the Thursday.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447
====

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [ANNOUNCEMENT] 6/27 Struts User Gathering at JavaOne

2004-06-22 Thread Pilgrim, Peter
> -Original Message-
> From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
====
> 
> Since there were no strong preferences stated in the initial 
> responses, I
> made an executive decision and went with Sunday evening after 
> the conference
> opening reception. We'll be gathering around 8:30pm at the 
> Thirsty Bear less
> than a block from Moscone Center. The full announcement 
> including directions
> can be found here:
> 
>   http://tinyurl.com/2mpsq

Hello Mike

I recently organised a Struts Networking event in London.
I will be there in San Francisco for J1. See you there.

> 
> RSVP requested to [EMAIL PROTECTED] with the subject 
> "Struts User
> Gathering." Please RSVP by 5:00pm on Saturday, June 26th.
> 

====

Thanks

http://www.jroller.com/page/peter_pilgrim

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447



==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Have Great One!

2004-06-24 Thread Pilgrim, Peter
Hi

I am subscribing from the user list for now. See you, maybe, in person for
JavaOne 2004.
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447  http://www.jroller.com/page/peter_pilgrim

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Users Networking London / post J1 / meet up

2004-07-06 Thread Pilgrim, Peter
Hello

For those of you who are still awaiting news for the next Struts 
User Networking meet-up in London after the last one that
took place at Waxy O'Connors on Monday 7th June.

Well, to be perfectly honest there is no firm date as of 
writing this note. Yesterday I re-subscribed to the user list, 
and tomorrow I will be away for a week's holiday in the 
Canary Islands, but I am hoping to set up another good night 
in the next month or so when I come back ...

Struts Networking: a loose coupling of Struts users from
beginner to expert (we don't really care) who talk about the 
MVC framework or anything else you care to like in Java/J2EE. 
(If you want to b**ch off about a bad web project, then I'm all
ears to your sorrows too. To be frank I'd like to hear strong 
empirical evidence from other pro software developers about
failed projects just like Mr. Rod Johnson recommends )
If you're interested in the next Struts Networking meet-up, then
please contact me off-list. BTW: Anyone want a change a venue? 

PS: It was good to meet Simon Brown, Larry Hamel, Craig M, etc
in person at the Thirsty Bear on Sunday 27/June for Bay Area
SIG meet up, even though I ended up gatecrashing the wrong party. 
Whoops it was the [O'Reilly] private party, bumping into those
Atlassian dudes, including Ben and the other fella. Sorry I was
too buzzed to remember their exact names. I remember we were
talking about Open Symphony and OSCache for some strange reason.
Electronic wave / heads up to all you that I met in San Francisco.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447
Blog: http://www.jroller.com/page/peter_pilgrim

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: some best practices questions

2004-07-19 Thread Pilgrim, Peter
 >   > previously retrieved data without requerying the db? Would it
> make
>   >   > sense to hide the data in the page? (i.e. either using hidden
> fields
>   >   > or hidden select lists or to generate a JavaScript 
> array). What
> are
>   >   > the risks, if any, of hiding the data in the page? (i.e.
>   >   > performance).
>   >   >
>   >   > If anyone has developed similar pages, can you tell me if you
> decided
>   >   > for or against placing data in session scope and why?
>   >
>   >   Here's is my 2cents. Personally I'm not as anti-session as most
> people,
>   >   and I think to use it or not use has to be taken on a case per
> case
>   >   basis. If your queries to generate the lists are not going be
> cached in
>   >   anyway by the backend and/or they are expensive queries to run,
> the
>   >   Session can be a better place to temporarilly store this
> information as
>   >   the user progresses through the 'flow' as you've 
> described above.
> Sure
>   >   the data each time might not be perfectly fresh, so if that is a
>   >   requirement than you will need to query after each new selection
> is
>   >   chosen. I'd opt for testing out performance making a new query
> each time
>   >   to generate your lists for the drop downs and see how 
> it behaves.
> (If
>   >   your data in the database will never be altered by an external
> process
>   >   you can really leverage something like iBATIS that will cache
> queries
>   >   for you so everything is golden).
>   >
>   >   You are asking a two part question, though, and one 
> thing I think
> that
>   >   you 'might' be confusing is the use of the lists in 
> Session versus
> the
>   >   ActionForm in Session (retaining user's selections). 
> From what you
> are
>   >   describing I would DEFIINITELY keep your form bean in Session
> scope for
>   >   this. This way any chosen parameters will be remembered 
> as you are
>   >   brought back to the page. This is a perfectly legit use of the
> Session
>   >   and don't let anyone convince you in to using a bunch of hidden
>   >   variables and storing your form bean in request scope each time.
> (To me
>   >   that is so stupid, how much memory is a Form bean going 
> to take up
> in
>   >   Session scope weighed out agains the ugliness and maintenance of
> dealing
>   >   with a bunch of hidden variables and making sure they are always
> set
>   >   etc. USE the Session in this case for you form bean). You are
> basically
>   >   describing in a sense a "wizard" where the user might be brought
> along
>   >   to different pages to collect data in a form, only you 
> are simply
>   >   reusing the same form with different lists.
>   >
>   >   --
>   >   Rick
>   >
>   >
> -
>   >   To unsubscribe, 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]
> 


> 

If you can 

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: some best practices questions

2004-07-19 Thread Pilgrim, Peter

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2004 09:14
> To: Struts Users Mailing List
> Subject: RE: some best practices questions
> 
> 
> At 12:36 AM 7/8/2004, you wrote:
> >For this particular use case I would either just use the session, or
> >alternatively I would just look up the dropdowns from db 
> each time and
> >accept the performance hit, but its (probably) not worth the 
> development
> >time - including ongoing maintenance - to do anything overly 
> tricky just for
> >a few dropdowns.
> >
> >my 2c
> 
> The thing is, though, Andrew, these are recurrent issues and seem to 
> require a generic solution.  Having a small manager in 
> application scope 
> which can create and monitor a scope which is not 
> application, not session, 
> and not request, is worth the while for these recurrent problems, I 
> think.  The persistence of such a scope can be made a 
> function of the data 
> rather than the interest of the clients.  That is worth 
> having to use on a 
> general basis, I think, and can be done with a very small performance 
> hit.  In fact, my guess is that it would be a performance plus.
> 
> Michael 
> 
> 
> 

Well this is astounding, because I looking at JCache JSR whatever?
and looking at alternatives like OSCache for a caching the look up
of login user accounts. So where the hell is JCache or the standard.

If it was there, I think it would give you what you want?

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: application configuration

2004-07-19 Thread Pilgrim, Peter
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2004 12:26
> To: Struts Users Mailing List
> Subject: RE: application configuration
> 
> 
> I tend to put such things in XML files rather than properties files
> nowadays.
> 
> When the app starts up I have a plugin read the files and create
> configuration objects (using Digester), and put these objects into the
> servlet context (application scope) where my code can get at 
> them easily.
> 
> 

Agreed +1

Basically this is the same I am persuaded to. I written some Digester
stuff in the past for simple and complex XML configuration

I have a simple property file for a service layer.

org.foobar.somelayer.MyPOJI = org.foobar.somelayer.impl.MyPOJOImpl

"MyPOJI" is a service Java interface.

"MyPOJOImpl" is a concreate java class that implements the service "MyPOJI"

I can easily turn this into a XML file or allow a light weight framework
to load. Such a simple service layer could load up the service implementations
and stick in the application scope where Struts action (or Expresso
Controllers)
can get them. I have come around to the thinking that Business Delegate
and Service Locator can be overfluous ( I have been reading Rod Johnson's
new book also).

The problem is that I want my services to be lazy loaded. If there
a complex service that pulls in XYZ number of Java class, very resource
intensive, or is generally particular heavy, then I dont want all of 
my service to "spring" into life.

Is there any IoC frameworks out there that do lazy loading?
Or has anyone on the knowledgeable Struts user done something like this?

Tia

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Networking in London (BOF #2)

2004-07-23 Thread Pilgrim, Peter
Hello

Before I forget again, are there Struts / J2EE developers / users 
interested in another informal together in London? 
This would be birds-of-feather number two. Please reply off-list
if you are interested.

The last meeting took place at Monday 9th June 2004 19:15 GMT @ 
Waxy O'Connor (Irish Pub) in central London, the West End.

Suggestion for a change in venue are welcome.

Have a nice weekend! 
(Most of you in the GMT timezone will have gone home already)
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447
http://www.jroller.com/page/peter_pilgrim

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Struts Networking in London (BOF #2)

2004-07-29 Thread Pilgrim, Peter

TWIMC

The second Struts Networking in London BOF will take on


Monday 9th, August 2004
At Waxy O'Connors Pub in Picadilly /Leicester Square
starting around 7:15 pm 


If you want to come along send me an email off-list.

BTW: Location details are here
http://www.waxyoconnors.co.uk/london/index.asp


> -Original Message-
> From: Pilgrim, Peter 

====

> 
> Before I forget again, are there Struts / J2EE developers / users 
> interested in another informal together in London? 
> This would be birds-of-feather number two. Please reply off-list
> if you are interested.
> 
> The last meeting took place at Monday 9th June 2004 19:15 GMT @ 
> Waxy O'Connor (Irish Pub) in central London, the West End.

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Struts Networking BOF II in London - Monday Aug 9th

2004-08-06 Thread Pilgrim, Peter

Here is a reminder

====
> 
> The second Struts Networking in London BOF will take on
> 
> 
>Monday 9th, August 2004
>At Waxy O'Connors Pub in Picadilly /Leicester Square
>starting around 7:15 pm
> 
> 
> If you want to come along send an email offline to [EMAIL PROTECTED]
> 
>BTW: Location details are here
>http://www.waxyoconnors.co.uk/london/index.asp

The following people have confirmed:

Alan Mehio
John Bell
Christopher Marsh-Bourden
Charles Cordingley
Niall Pemberton
Jonathan Butler
Alex McLintock
Thomas Plumpe
Peter Pilgrim

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: Alan Mehio [mailto:[EMAIL PROTECTED]
> Sent: 06 August 2004 09:51
> To: Pilgrim, Peter
> Subject: Struts Meeting on Monday please send us a reminder 
> e-mail with
> the address and place and time
> 
> 
> Peter, 
> Sorry to disturb you with my e-mail, Can you please send a reminder to
> every body about the meeting (Monday 9th August) Time, Place, Address
> 
> Cheers 
> 
> Alan 
> 
> 
> __
> __
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> __
> __
> 

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Struts Networking BOF II in London - Monday Aug 9th

2004-08-10 Thread Pilgrim, Peter
Hi

Thanks to all who attended the Struts Networking last night.

Topics Discussed, the list is not exhaustive

(*) What's the future of Struts?
Obviously Faces and Struts will live side-by-side happily (we hope).
Commons Chain / Request Processor enhancements.
Different ways of doing the same thing better.
(*) The most infuriating thing in the current Struts. (See below LazyDynaBean)
(*) How to get Struts specifics patches reviewed by the committers?
(*) Persistence Architecture / Hibernate caching
(*) Struts IDEs
(*) Why is Struts 1.2.2 taking so long to release?
(*) LazyDynaBeans and Bean Validator Form 
   ( Niall, thanks for coming along anyway ;-)
(*) EJB 3.0
(*) Lightweight frameworks
(*) A short treatise benefits of Inverse of Control, and dependency injection
(*) Setting a web site and pop3 account for meet up. 
Taking everything off-line. 
Expanding the group meetings to generic J2EE user
(*) What I got out of attending JavaONE 2004? 
Worthwhile stuff to get into for the next 6-12 months 
Eclipse 3/ JSF Faces / Tiger / Hibernate (EJB 3)
(*) And of course general Struts


There is £16.55 in the kitty. Until the next time ... (probably in September)

http://jroller.com/page/peter_pilgrim/20040810#summary_struts_networking_in_london

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: Pilgrim, Peter 
> Sent: 06 August 2004 10:17
> To: 'Alan Mehio'; Alan Mehio (E-mail); Alex McLintock 
> (E-mail); Charles
> Cordingley (E-mail); Christopher Marsh-Bourdon (E-mail); Daniel Perry
> (E-mail); Duncan Mills (E-mail); Hue Holleran (E-mail); John Bell
> (E-mail); Jonathan Butler (E-mail); Niall Pemberton (E-mail); Peter
> Pilgrim (Xenonique); Pilgrim, Peter; Suman Prashanth. S 
> (E-mail); Thomas
> Plümpe (E-mail); Tim Penhey (E-mail)
> Cc: Struts User Apache (E-mail)
> Subject: [OT] Struts Networking BOF II in London - Monday Aug 9th
> 
> 
> 
> Here is a reminder
> 
> ====
> > 
> > The second Struts Networking in London BOF will take on
> > 
> > 
> >  Monday 9th, August 2004
> >  At Waxy O'Connors Pub in Picadilly /Leicester Square
> >  starting around 7:15 pm
> > 
> > 
> > If you want to come along send an email offline to 
> [EMAIL PROTECTED]
> > 
> >  BTW: Location details are here
> >  http://www.waxyoconnors.co.uk/london/index.asp
> 
> The following people have confirmed:
> 
> Alan Mehio
> John Bell
> Christopher Marsh-Bourden
> Charles Cordingley
> Niall Pemberton
> Jonathan Butler
> Alex McLintock
> Thomas Plumpe
> Peter Pilgrim
> 
> --
> Peter Pilgrim
> Operations/IT - Credit Suisse First Boston, 
> 10 South Colonnade, London E14 4QJ, United Kingdom
> Tel: +44 (0)207 883 4447
> 
> 
> > -Original Message-
> > From: Alan Mehio [mailto:[EMAIL PROTECTED]
> > Sent: 06 August 2004 09:51
> > To: Pilgrim, Peter
> > Subject: Struts Meeting on Monday please send us a reminder 
> > e-mail with
> > the address and place and time
> > 
> > 
> > Peter, 
> > Sorry to disturb you with my e-mail, Can you please send a 
> reminder to
> > every body about the meeting (Monday 9th August) Time, 
> Place, Address
> > 
> > Cheers 
> > 
> > Alan 
> > 
> > 
> > __
> > __
> > This e-mail has been scanned for all viruses by Star Internet. The
> > service is powered by MessageLabs. For more information on 
> a proactive
> > anti-virus service working around the clock, around the 
> globe, visit:
> > http://www.star.net.uk
> > __
> > __
> > 
> 

==
This message is for the sole use of the intended recipient. If you received this 
message in error please delete it and notify us. If this message was misdirected, CSFB 
does not waive any confidentiality or privilege. CSFB retains and monitors electronic 
communications sent through its network. Instructions transmitted over this system are 
not binding on CSFB until they are confirmed by us. Message transmission is not 
guaranteed to be secure.
==


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



RE: Templates to Tiles opinion

2004-08-20 Thread Pilgrim, Peter
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> 
> 
> I've recently inherited a system in development that was started using
> templates instead of tiles.  My question is - is there much effort to
> convert from templates to tiles.  Secondly, is it recommended?

Yes it is 

> 
> I'm in a time crunch as I'm learning Struts as I go and 
> deadlines have to
> be met.  I'm not even sure if the templates are being used 
> properly.  I've
> made the switch to point to tiles tld but now I'm 
> reconsidering if I should
> go further.  The template is below for opinions.
> 
> TIA, Bart
> 
> The template jsp
> 
> 
> <%@ taglib uri='/WEB-INF/struts-tiles.tld' prefix='tiles' %>
> 
>   
>   
> 
> <%--
> 
> 
> The layout jsp
> 
> <%@ taglib uri='/WEB-INF/struts-tiles.tld' prefix='template' %>
> 
> 
>   
>   
>   
>   
> 
> 

Try looking at Cedric Dumoulin original documentation. 
Also there are few Tiles specific articles on the web. Search for them.
Also look at Cedric's contributions inside "Struts In Action" Manning.
Chuck Cavaness's book "Programming Jakarta Struts", O'Reilly also
has a decent Tiles introduction.

You want to work with Tiles

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447



==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Customizable View For A Given Action

2004-08-26 Thread Pilgrim, Peter
You would need to write a view handler to handle in direction.

Basically a wrapper framework around the basic
ServletRequest.getRequestDispatcher()
code. This would produce one view per one page.

If you are wanted to customise what is inside the view then
that is different, e.g. skinning controls or custom look and feels
with stylesheet. Struts does handle the rendering side of things
for you if you want that rquirement



--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Marty Jones
> Sent: 26 August 2004 16:27
> To: [EMAIL PROTECTED]
> Subject: Customizable View For A Given Action
> 
> 
> I was wondering if Struts supports a way of supporting 
> customized views for a
> given action?  For instance, a particular group of users may 
> have a different
> look and feel to a given web application that another group 
> of users.  Looking
> at the Struts configuration file, it seems that you have to 
> specify the .jsp
> file that will be used for a given action result.  
> 
> Does anyone know if struts can do this?
> 
> Marty Jones
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] Sorry could not resist [was RE: [OT] Tomcat MD5 Authenticati on ]

2004-08-31 Thread Pilgrim, Peter
> -Original Message-
> From: klute [mailto:[EMAIL PROTECTED]
==///==

> have not done it myself but hopefully this thread is
> of some help..


[ Now, I remember ... ] 

Klute

Weren't you the tearful little girl who found herself left alone 
after all the settlers had been murdered on the primordial 
rimworld? Didn't Ripley plead and finally tease you out of 
your cubby nestlay in between the ducts and pipes.  
``Aliens: In space no one could hear you scream''. Or maybe
it was the film with Jane Fonda, back in the seventies ...

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447



==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Hibernate VS ibatis, which is better?

2004-09-02 Thread Pilgrim, Peter

> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: 01 September 2004 21:47
> To: 'Struts Users Mailing List'
> Subject: RE: Hibernate VS ibatis, which is better?
> 
> 
> I love Hibernate. Really do.
> 
> Only bad thing about it is that I find is that I get better 
> Hibernate help
> here than I do in the Hibernate forum. Which well...you see what that
> doesn't bother me :-)
> 

See blog entry
http://www.jroller.com/page/peter_pilgrim/20040826#tried_to_get_simply_hibernate1

> Apparently Spring fixes my gripe with Hibernate/Struts about 
> constantly
> opening sessions/transactions, so I'm *very* curious. I just 
> need someone to
> beat me over the head with why else it is so wonderful.
> 

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



FW: [ANN] Bridgetown IoC Framework

2004-09-08 Thread Pilgrim, Peter
FYI

> -Original Message-
> From: Peter A. Pilgrim [mailto:[EMAIL PROTECTED]
> Sent: 08 September 2004 07:12
> To: Struts Developers List
> Subject: [ANN] Bridgetown IoC Framework
> 
> 
> 
> Hi
> 
> I have been quietly working on my own Inversion of Control lightweight
> framework over the last couple of months.
> 
> My itch was scratched when I suddenly realised that ``Commons 
> BeanUtils''
> and ``Common Digester'' could be simply combined together into a
> bean assembly factory. An assembly factory could manage service beans
> in a lightweight container. Services could then be retrieved
> by name, and one doesn't have to worry about connecting
> different services together. Experiments showed that this idea
> was pretty cool and have implemented property and method dependency
> injection (aka ``BeanUtils'' and ``MethodUtils''). [Constructor
> injection is on the todo list. ]
> 
> I am at the point where the current codebase is stable enough 
> for development,
> but if I want the container to be more useful, then I need to open-
> source the project. It would allow others to write Dynamic proxy
> service beans, integrate with Struts 1.2/2+, or extend with 
> AOP library,
> or whatever persistence layer EJB 3.0 decides to become. It 
> cannot be down
> by just one man writing software. As an independent 
> consultant I simply
> have not got the time to build everything.
> 
> Moreover, I intend to follow the Struts style ``open integration''
> philosophy that should allow Bridgetown IoC container to be added
> any other framework. (I intend add support to the Expresso 
> Framework in
> the near term, since I am a core committer there)
> 
> So my simple IoC Test Container became ``Bridgetown IoC''. I 
> uploaded the
> source code to ``Sourceforge'' and slapped on it an Apache License 2.0
> badge. The software is ALPHA quality but it compiles and run
> with Eclipse SDK 3, and there are junit test and a couple of examples.
> 
> 
>   `` http://bridgetown.sf.net ''  is the hook.
> 
> 
> I'd like publicly thank the man, Craig McClanahan, for his 
> two inventions
> `BeanUtils' and `Digester'. Without those two components it 
> just wouldn't
> have happened.
> 
> 
> Enjoy baby bop#
> 
> -- 
> Peter Pilgrim
> __ _ _ _
>/ //__  // ___// ___/   +  Serverside Java
>   / /___/ // /__ / /__ +  Struts
>  / // ___// ___// ___/ +  Expresso Committer
>   __/ // /__ / /__ / /__   +  Independent Contractor
>  /___///////   +  Intrinsic Motivation
> On Line Resumehttp://jroller.com/page/peter_pilgrim
> ||
> \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

[ Not subscribed to the users list at home ;-( ]

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] RE: [ANN] Bridgetown IoC Framework

2004-09-08 Thread Pilgrim, Peter
This is off topic to the Struts list.

Also not forgetting Avalon, PicoContainer, etc from my POV. Admittedly
these "mature" containers have been around for sometime.

Here are my motivations:

1) To scratch the itch. Build a tiny container/kernel that
I could experiment with in Expresso / Struts. The idea is make
an assembler that can be merged into another toolkit.
(My goal is to make Bridgetown a first class citizen in Expresso, but
I am still scratching my head about this issue.)
2) I wanted to implement ``method injection''.
3) Build a pizza base, that I could extend later with a 
dynamic proxy generation / interceptors.  
Maybe directly support or use the Commons Chain (this is still
very fuzzy in my mind.)
4) Eventually make services beans and service oriented 
architecture first class citizen of a ioc framework.
5) Fun: I wanted to experiment with Jakarta technologies.
6) Learning: I wanted to build something small and wonderful and 
it will be always free and open source.

I enabled the sf.net mailing lists, so if you want to discuss
further I suggest we take this thread over there.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]
> Sent: 08 September 2004 14:10
> To: Struts Users Mailing List
> Subject: RE: [ANN] Bridgetown IoC Framework
> 
> 
> Peter, this sounds interesting, but what would Bridgetown offer
> over a more mature IoC container like Spring?
> 
> robert
> 
> > -Original Message-
> > From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 08, 2004 3:52 AM
> > To: Struts User Apache (E-mail)
> > Subject: FW: [ANN] Bridgetown IoC Framework
> > 
> > 
> > FYI
> > 
> > > -Original Message-
> > > From: Peter A. Pilgrim [mailto:[EMAIL PROTECTED]
> > > Sent: 08 September 2004 07:12
> > > To: Struts Developers List
> > > Subject: [ANN] Bridgetown IoC Framework
> > > 
> > > 
> > > 
> > > Hi
> > > 
> > > I have been quietly working on my own Inversion of 
> Control lightweight
> > > framework over the last couple of months.
> > > 
> > > My itch was scratched when I suddenly realised that ``Commons 
> > > BeanUtils''
> > > and ``Common Digester'' could be simply combined together into a
> > > bean assembly factory. An assembly factory could manage 
> service beans
> > > in a lightweight container. Services could then be retrieved
> > > by name, and one doesn't have to worry about connecting
> > > different services together. Experiments showed that this idea
> > > was pretty cool and have implemented property and method 
> dependency
> > > injection (aka ``BeanUtils'' and ``MethodUtils''). [Constructor
> > > injection is on the todo list. ]
> > > 
> > > I am at the point where the current codebase is stable enough 
> > > for development,
> > > but if I want the container to be more useful, then I 
> need to open-
> > > source the project. It would allow others to write Dynamic proxy
> > > service beans, integrate with Struts 1.2/2+, or extend with 
> > > AOP library,
> > > or whatever persistence layer EJB 3.0 decides to become. It 
> > > cannot be down
> > > by just one man writing software. As an independent 
> > > consultant I simply
> > > have not got the time to build everything.
> > > 
> > > Moreover, I intend to follow the Struts style ``open integration''
> > > philosophy that should allow Bridgetown IoC container to be added
> > > any other framework. (I intend add support to the Expresso 
> > > Framework in
> > > the near term, since I am a core committer there)
> > > 
> > > So my simple IoC Test Container became ``Bridgetown IoC''. I 
> > > uploaded the
> > > source code to ``Sourceforge'' and slapped on it an 
> Apache License 2.0
> > > badge. The software is ALPHA quality but it compiles and run
> > > with Eclipse SDK 3, and there are junit test and a couple 
> of examples.
> > > 
> > > 
> > >   `` http://bridgetown.sf.net ''  is the hook.
> > > 
> > > 
> > > I'd like publicly thank the man, Craig McClanahan, for his 
> > > two inventions
> > > `BeanUtils' and `Digester'. Without those two components it 
> > > just wouldn't
> > > have happened.
&g

Struts London Networking BOF #3 / 13 Sept 2004 / Venue [THE GRIFF IN]

2004-09-09 Thread Pilgrim, Peter
Hi

I am pleased to announce that the Third Birds of Feather Struts London
Networking is
taking place in the West End, London at "The Griffin" pub. Event is starting
at
around 19:15

(1) "The Griffin", just off The Strand, short walk down from
Charing Road or walk up the hill from Embankment.
http://ultimatepubguide.com/pubs/info.phtml?pub_id=34
 
The nearest underground tubes are:

Charing Road, just around corner
Northern Line, Bakerloo Line

Leicester Square, you need to walk south 10 minutes
Picadilly Line, Bakerloo

Embankment, you need to walk up the hill from the station 3 minutes 
District, Northern, and Bakerloo lines

British Rail
Charing Cross Station.


See you there!

FYI: We now have a dedicated website http://www.strutslondon.com/ at a
preliminary stage.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Single sign-on

2004-09-13 Thread Pilgrim, Peter
> -Original Message-
> From: Seaman, Sloan [mailto:[EMAIL PROTECTED]
> Sent: 09 September 2004 13:36
> To: 'Struts Users Mailing List'
> Subject: RE: Single sign-on
> 
> 
> We use JNDI to hit our MS Active Directory server.
> Works rather well :)
> --

[[Catching up with email]]

You also might want to allow the web app client to logon to a external
web server. In other words write a special Struts Action does make
use of HTTP over Java Socket and interact with the web server
( aka Commons HttpClient ).

I tried to suggest this idea a few years ago to a client of mine,
but they went with a JavaScript malarky to interface instead to
a popular reporting engine. HttpClient would have been the 
clean and pure Java way. Bah!

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Struts London Networking BOF #3 / 13 Sept 2004 / Venue [THE G RIF IN]

2004-09-13 Thread Pilgrim, Peter
> -Original Message-
> From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]

This is the FINAL CALL! 

> Hi
> 
> I am pleased to announce that the Third Birds of Feather Struts London
> Networking is
> taking place in the West End, London at "The Griffin" pub. 
> Event is starting
> at
> around 19:15
> 
> (1) "The Griffin", just off The Strand, short walk down from
> Charing Road or walk up the hill from Embankment.
> http://ultimatepubguide.com/pubs/info.phtml?pub_id=34
>  
> The nearest underground tubes are:
> 
>   Charing Road, just around corner
>   Northern Line, Bakerloo Line
> 
>   Leicester Square, you need to walk south 10 minutes
>   Picadilly Line, Bakerloo
> 
>   Embankment, you need to walk up the hill from the 
> station 3 minutes 
>   District, Northern, and Bakerloo lines
> 
> British Rail
>   Charing Cross Station.
> 
> 
> See you there!
> 
> FYI: We now have a dedicated website http://www.strutslondon.com/ at a
> preliminary stage.
 
This is not all Struts User, but include Java/J2EE. Anyone is, indeed,
welcome.

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Gmail invites, 2 available.

2004-09-14 Thread Pilgrim, Peter
What is this damn GMAIL thing!

Send me an invite whenever at peter.pilgrim at csfb dot com

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-14 Thread Pilgrim, Peter
ay be more 
> because I haven't >>chosen high quality lists.   This may 
> also be due to the higher incidence 
> >>of trained monkey's in the MS world then software engineered.
> >>
> >>Trained monkey's would be next.  MS seems to attract 
> developers who don't >>have any true understanding of how 
> things work.  I'm not sure why.  It >>might be because 
> they've made it so point and click that no one really 
> >>understands what's going on, and even if they did they 
> might not be able >>to do anything about it.  I've seen far 
> more "How do I show 1,000 items in 
> >>a drop down list box?" type questions on MS lists then I 
> have on Java 
> >>lists.  THe few I have seen, have all come from MS 
> developers.  MS has 
> >>focused on providing cheap easy solutions, which is fine 
> for the single >>computer model the has dominated so much of 
> MS's history.  There are very 
> >>few cheap and easy solutions when developing enterprise 
> wide software.
> >>
> >>Last, and to a large degree, the most important is choice.  
> I don't have >>to use Sun's VM.  I don't have to use 
> implementation of the JSP/Servlet >>spec.  I don't have to 
> use IBM's implementation either.  I'm not tied to a 
> >>database (ODBC is _NOT_ what I would call good database 
> independance) 
> >>vendor.  I'm not tied to an OS Vendor, which means I'm not 
> tied to a 
> >>hardware platform.  You can't run .Net on Sun, or AS400's 
> or any hardware >>other then Intel.  All of this means one 
> thing... I can customize any Java 
> >>based solution to fit any need.
> >>
> >>
> >>>Thanks in regards
> >>>Anders
> >>>
> >>>
====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[SUCCESS] Struts London Networking BOF #3 / 13 Sept 2004 / Venue [THE GRIF IN]

2004-09-14 Thread Pilgrim, Peter
Hi

I am pleased to announce that the Third Birds of Feather 
Struts London Networking is took place in the West End, London 
at "The Griffin" pub @ 19:15GMT

General Topics 

(*) Migrating to Eclipse SDK 3.0
(*) Not paying Borland new year-on-year license fees for latest and greater
JBuilder.
(*) Talked about the wonderful MyEclipse plug-in, which is very well regarded
(*) Hosting a web application and managed rack server.
(*) Performing back up of said sessions, taking over the responsibility of
web application administration as a service to the client.
Good olde application server providers.
(*) What happens to JavaScript CDATA file in 1.2 Struts Validator
(*) I talked about my pet project, Bridgetown IoC briefly.
(*) Discussion about Hibernate and Axis for web services.
(*) Contracting and other professional work experiences
(*) Getting some sponsorship, alternative venues
(*) Bring the web site strutslondon.com up to scratch
(*) Embedded Java program controllers for a mobile phone. Imagine
using Java to control your garage or set the thermostat of the
central heating system. Cool!
(*) A BOF dinner at supposedly the best Italian pizzeria in the London,
apparently it is called "The Furnace", nearest tube is Old Street.
(*) Probable BOF meeting on a Friday night, for the out-of-towner
(people who dont live in or find difficult to commute to London )

See you all next time

Attendees:

Peter Pilgrim
Christopher Marsden-Bourden
Niall Pemberton
Tim Penhey
and Allie(?)


> -Original Message-
> From: Pilgrim, Peter 
> > -Original Message-
> > From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
> 
> This is the FINAL CALL! 
> 
> > 
> > (1) "The Griffin", just off The Strand, short walk down from
> > Charing Road or walk up the hill from Embankment.
> > http://ultimatepubguide.com/pubs/info.phtml?pub_id=34
> >  
> > The nearest underground tubes are:
> > 
> > Charing Road, just around corner
> > Northern Line, Bakerloo Line
> > 
> > Leicester Square, you need to walk south 10 minutes
> > Picadilly Line, Bakerloo
> > 
> > Embankment, you need to walk up the hill from the 
> > station 3 minutes 
> > District, Northern, and Bakerloo lines
> > 
> > British Rail
> > Charing Cross Station.
> > 
> > 
> > See you there!
> > 
> > FYI: We now have a dedicated website 
http://www.strutslondon.com/ at a
> preliminary stage.
 
This is not all Struts User, but include Java/J2EE. Anyone is, indeed,
welcome.

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-14 Thread Pilgrim, Peter


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic
> Sent: 14 September 2004 14:48
> To: [EMAIL PROTECTED]
> Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
> 
> 
> Pilgrim, Peter wrote:
> > 
> > The trouble with RIA is that there is no universal defacto
> > browser technology. There are lots of interesting solutions
> > for rich functionality. My gut feeling it is gooing to take
> > a twentieth-first century equivalent of Netscape and Microsoft
> > to really push forward a next generation [XML/XSLT/ T(x)] browser
> > 
> > Where T(x) stands for some new technology.
> > Hint substitute T(x) for SVG, XUL, Flex, or whatever you
> > think it is going happen.
> > 
> 
> Hey Peter, I saw your post on TSS or RiA.
> Rich Internent Application, key word is *APPLICATION*. There is no 
> browser, that would make 2 sets of windowing API. Like iTunes is an 
> aplication.  Or Limewire is an application. It makes it 
> simpler and more 
> powerfull w/o browser, just use browser for launch. I think Java 
> WebStart is big, no such thing in .NET . (Java of course for cross 
> platform, how do I do a network launch w/ .NET on Mac?). Look 
> who owns 
> the browser standard. (IE of course, with all the plug in, so 
>  lets 
> just  bypass it, nothing worse than coding JSP for IE)

RIA sounds like an advancement that I did four years ago before
Struts. It was an HTTP Tunnelling application with Java Plug-in
Swing Client communicating with a Servlet. Basically I built
a massive registry editor (JTree) and serialise MutableTreeNode
down the pipe to the applet, of which a selected or edited node
was sent back to the servlet. 

I guess it is, "How long is a piece of String?" nope let me
paraphrase "How thin is thin?" The RiA can be Swing / 
Webstart, complete and very self-contained application. 
But it could be a build as as application running on someone
else's framework, such as a browser.

If I was to redo my application I would do it with Struts still
to at least to divorce myself from Servlet code. In fact it is
the sort of stuff that lends itself to web services or Struts 2.0
Jericho, where we have abstracted away the HttpServletRequest
etc.

The other thing about RiA I can think of, who standardises
the user interface. Surely if you use an application then
you cannot use it on a WAP/Cellphone device, whereis the
XML and XSLT should allow you do this for you.

> As far as development enviroment, if you compare Sun's JCP 
> Java ... we 
> lose, we lose big:
> http://theserverside.com/news/thread.tss?thread_id=28695
> (See the GridBag demo)
> 
> But if you include O/S, like JGoodies (iBatis, etc.) ... we win. I do 
> think there will be O/S for .NET (like Apache is porting, Ant is 
> porting, iBatis is porting so it will be closer. More of 
> a tanget: I 
> think Unix is MUCH more stable than viruses on Windoze. Just 
> check out 
> Redhat Fedora. So ... for heavy lifting, Linux. For departmental, 
> WinAntiVirusCitySlowPoke)
> 
> Anyway, I think future is iTunes-like-applications concept (with 
> "distributed web services" arcitecture), I will have a sample next 
> month, posted on my site only.
> 
> 
> .V
> boardVU.com
> 




--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] ANN: Bridgetown IoC 0.80B-53

2004-10-12 Thread Pilgrim, Peter
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
====

> 
> Anyways, this is the way I see it: You can talk all you want, 
> and malign 
> struts and its developers all you want, but until you start 
> implementing 
> what you want, nothing will happen.
> 
> Matt

LOL but very well said ...

====

Ok I ill just make this announcement a quickie, then

``Bridgetown'' concentrates on just being a ``Inversion of Control''
framework for now and provides a service oriented architecture through
``Service Beans'' configuration.

VERSION INFO

The current version is 0.8-B53.

(*) AOP Service Assembler default implementation
(*) Pointcut and Joinpoint XML configuration
(*) Convenience advice classes for method interceptor
(*) Method injection
(*) Constructor injection

The project page for Bridgetown can be found at
http://sourceforge.net/projects/bridgetown

There is also a web site dedicated to the project
http://bridgetown.sourceforge.net/

"That's all she wrote ... Enjoy"

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



OT: [FRIDAY] RE: Arzttermin

2004-10-15 Thread Pilgrim, Peter

> -Original Message-
> From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
> Sent: 14 October 2004 08:31
> To: Struts Users Mailing List
> Subject: Re: Arzttermin
> 
> 
> Markus Heck wrote:
> > Hallo Andreas,
> > 
> > ich hab um 9:50 Uhr einen Arzttermin; ich meld mich dann noch mal
> > und sag Bescheid, wann und ob ich heute noch komme.
> > 

Na Ja! Da tut mir auch leid, aber es ist bei mir egal ob Du kommst or
nicht kommst.

> > Zu MAP:
> > Dein Programm hab ich gestern noch getestet (mit einer Schleife über
> > alle Sätze aus vip_products), ich hab noch eine Änderung eingebaut,
> > dann war's korrekt. Programm steht unter 
> h:\orawork\map\stringpattern3.sql
> > 

Warum ist mein Programm immer gar nichts angetestet. Ich bitte ein Bit.

> > zu Excel-Reports:
> > Da hab ich gestern das mit dem Password gemacht, hab das 
> aber nur einmal
> > kurz in der Entwicklung getestet. Da stehen die aktuellen 
> Sourcen unter
> > h:\work\java\article\reports\src...\servlet (3 neue 
> Servlets). Falls Ihr
> > eine Übergabe machen müßt.
> > 

Na das Quelle steht under den Verzeichniss H:\dem\naechste\galaxy\oder\winkel

> > für Stefan zu Kostenlieferanten (hab weder Telefonnummer 
> noch Emailadresse):
> > Die Patche, ich meine *9320 und *9360 stehen im 
> Project-Verzeichnis und
> > sind bis auf die Änderungen vom Torsten vollständig. Die 
> müssen nur in
> > PVCS eingecheckt werden und können hochgeschickt werden.
> > 

Warum benutzen Sie, die Gruppen, solche beschiessenden software als PCVS.
Haben Sie nicht nocht ClearCase gehoren?

Grussen Toersten an

> > Damit Du noch an meine Sachen rankommst, mein Password (alles
> > kleingeschrieben):
> > Stadt, wo ich letzte Woche war mit angehängter 
> vierstelliger Jahreszahl.
> 
> LOL
> 
Verwirrendend laecherlich!

Well that is the extent of my spoken and written German, 
which I have forgetten in the past decade. 
So I guess it is quite crap now.


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


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

==
This message is for the sole use of the intended recipient. If you received this 
message in error please delete it and notify us. If this message was misdirected, CSFB 
does not waive any confidentiality or privilege. CSFB retains and monitors electronic 
communications sent through its network. Instructions transmitted over this system are 
not binding on CSFB until they are confirmed by us. Message transmission is not 
guaranteed to be secure.
==


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



global forwards in module config files

2004-10-05 Thread Peter Werno
Hello,

I am just in the course of moving from 1.0.x to 1.2 and the new version
should make heavy use of the modules that came with 1.1.
Now here is my problem:

I want to store a global forward in any module's config file named
"moduleHome" where "module" would be replaced with the actual module name.

In the "main" app, I want to have an action "loadModule.do" that should be
told where to forward to via a parameter.

While this works well, as long as the global forwards are all in the
"main" config file, it fails as soon as I put them in the individual
module-config-files.
Is this a "known feature", or am I just doing something wrong?

This is how it works:

- struts-config.xml --


...







 more 

...


- end -

this is how it does NOT work:

- struts-config.xml --


...







...


- index-config.xml --


...
    
    

...


- end -

many thanks,

Peter

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



Re: global forwards in module config files

2004-10-06 Thread Peter Werno
Hello Jeff,

thanks for the hint. I had tested multiple variations of it, including
/index/index.do, but to no avail. I have checked in the Action Class that
tries to get it. It does

-

ActionForward myForward = mapping.findForward("indexHome");
if(myForward == null)
System.out.println("Forward is null!!!");

-
and it returns null allways. I even tried different names
("index/indexHome", "/index/indexHome", etc.)

This Action Class is actually belonging to the "DEFAULT" part of the
webapp. Is it possible that "global" forwards are only global for the
module that they are defined in?

In that case, modules will probably be a no-go for me :/

Regards,

Peter


> Peter Werno wrote:
>> This is how it works:
>>
>> - struts-config.xml --
>>
>> 
>> ...
>>
>> 
>> 
>> 
>> > redirect="false"/>
>> > redirect="false"/>
>> > path="/index/index.do" redirect="true"/>
>>  more 
>> 
>> ...
>> 
>>
>> - end -
>>
>> this is how it does NOT work:
>>
>> - index-config.xml --
>>
>> 
>> ...
>> 
>> > redirect="true"/>
>> 
>> ...
>> 
>>
>> - end -
>>
>> many thanks,
>>
>> Peter
>
> I think you're confused on the meaning of contextRelative.
> contextRelative means to interpret the path relative to the web
> application root, not the module root.  So in your second example, the
> forward named 'indexHome' will attempt to find /index.do, not
> /index/index.do as the first example.
>
> -- Jeff
>
> -
> To unsubscribe, 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 in module config files

2004-10-06 Thread Peter Werno
Hi Jeff,

thanks for the hint. Using the "include file" variant is probably a
work-around for my problem, but it doesn't really allow for what I was
planning.
My idea was to have a global forwards section in each module that would be
global for the application. Each module could that way define, how it can
be "contacted" from other modules.
Apparently, "global" seems to only mean "global for the module" and not
"global for the application".

Writing it in a separate file and include this in all config files will
work, but it's just as good as writing the global forwards form moduleX in
all other module's config files.

I will probably try to write config files for my modules, defining those
globals in each of the module-config-files, but instead of including them
as modules in the web.xml, I just include them as a comma-separated list
in the config parameter

If you know of any other way to solve this issue, please let me know.

Regards,

Peter

> Have you read
> http://struts.apache.org/userGuide/configuration.html#module_config-switching?
>   It explains how to use contextRelative forwards in Module A to forward
> to pages in Module B.
>
> If that's not what you need, you could define all of your
> application-global forwards in an XML external entity file and reference
> that in the global-forwards section of each of your module configuration
> files.
>
> 1) Create a file called global-forwards.xml that looks like this:
>
>  redirect="true"/>
>  redirect="true"/>
>
> ... and so forth
>
> 2) Declare this file as an external entity in each of your module
> configuration files:
>
>  [ ENTITY globalForwards SYSTEM "../path/to/global-forwards.xml" ]>
>
> 3) Create a global-forwards section in each module that looks like so:
> 
>   
>   
>   
>   
>   &globalForwards;
> 
>
> Peter Werno wrote:
>> Hello Jeff,
>>
>> thanks for the hint. I had tested multiple variations of it, including
>> /index/index.do, but to no avail. I have checked in the Action Class
>> that
>> tries to get it. It does
>>
>> -
>>
>> ActionForward myForward = mapping.findForward("indexHome");
>> if(myForward == null)
>> System.out.println("Forward is null!!!");
>>
>> -
>> and it returns null allways. I even tried different names
>> ("index/indexHome", "/index/indexHome", etc.)
>>
>> This Action Class is actually belonging to the "DEFAULT" part of the
>> webapp. Is it possible that "global" forwards are only global for the
>> module that they are defined in?
>>
>> In that case, modules will probably be a no-go for me :/
>>
>> Regards,
>>
>> Peter
>>
>>
>>
>>>Peter Werno wrote:
>>>
>>>>This is how it works:
>>>>
>>>>- struts-config.xml --
>>>>
>>>>
>>>>...
>>>>
>>>>
>>>>
>>>>
>>>>>>>redirect="false"/>
>>>>>>>redirect="false"/>
>>>>>>>path="/index/index.do" redirect="true"/>
>>>> more 
>>>>
>>>>...
>>>>
>>>>
>>>>- end -
>>>>
>>>>this is how it does NOT work:
>>>>
>>>>- index-config.xml --
>>>>
>>>>
>>>>...
>>>>
>>>>>>> path="index.do"
>>>>redirect="true"/>
>>>>
>>>>...
>>>>
>>>>
>>>>- end -
>>>>
>>>>many thanks,
>>>>
>>>>Peter
>>>
>>>I think you're confused on the meaning of contextRelative.
>>>contextRelative means to interpret the path relative to the web
>>>application root, not the module root.  So in your second example, the
>>>forward named 'indexHome' will attempt to find /index.do, not
>>>/index/index.do as the first example.
>>>
>>>-- Jeff
>>>
>>>-
>>>To unsubscribe, 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] Struts Networking / BOF IV / Friday / October 22 @ 19:30 / Restaurant / The Furnace

2004-10-08 Thread Pilgrim, Peter
Hi

The reservation for the BOF IV at The Furnace has been confirmed
yesterday. The following people are attending so far:

Peter Pilgrim
Alan Mehio
Christopher Marsh-Bourdon
Thomas Pluempe
Tim Penhey
Charles Cordingley
Marco Mistroni
( Niall Pemberton - always has arrived later )

If you want to also __definitely__ attend then please contact me 
off-list ASAP.

Thanks

> 
> During the last BOF III on the 13th September, Tim and Ali
> suggested that a nice Italian Pizzeria in and around
> Old Street, "The Furnace".  I am thinking this would be a 
> very good idea for the next BOF night on a Friday, 
> because it would avoid neatly the pub weekend madness.
> We will get a decent chance to speak to eachother inside
> a restuarant.
> 
> (24)
> The Furnace
> 1 Rufus Street
> London
> n1 6pe
> t - 020 7613 0598
> Italian restaurant serving to notch pizzas, pastas and seafood. 
> http://www.shoreditchmap.co.uk/venu_eati.html#F
> 
> 
> I am looking to set a definite date, the number of people
> for a reservation, and roughly a meet up time.
> 
> Unfortunately I cant find a website for the restaurant but
> the location is familar to me at least. It is next door
> to 333 club, I think, and not fair Herbal.
> 
>
http://www.streetmap.co.uk/newmap.srf?x=533222&y=182647&z=0&sv=n1+6pe&st=2&pc=n1+6pe&mapp=newmap.srf&searchp=newsearch.srf


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] Struts Networking / BOF IV / Friday / October 22 @ 19: 3 0 / Restaurant / The Furnace

2004-10-19 Thread Pilgrim, Peter
Hi 

Please see intermixed

> -Original Message-
> From: Pilgrim, Peter 
> 
> Hi
> 
> The reservation for the BOF IV at The Furnace has been confirmed
> yesterday. The following people are attending so far:
> 
>   Peter Pilgrim
>   Alan Mehio
>   Christopher Marsh-Bourdon
>   Thomas Pluempe
>   Tim Penhey
>   Charles Cordingley
>   Marco Mistroni
>   ( Niall Pemberton - always has arrived later )
> 
> If you want to also __definitely__ attend then please contact me 
> off-list ASAP.
> 

I added two more people who confirmed

Niall Pemberton
Allister Sneddon

Here are the reservations details agains:

> > 
> > During the last BOF III on the 13th September, Tim and Ali
> > suggested that a nice Italian Pizzeria in and around
> > Old Street, "The Furnace".  I am thinking this would be a 
> > very good idea for the next BOF night on a Friday, 
> > because it would avoid neatly the pub weekend madness.
> > We will get a decent chance to speak to eachother inside
> > a restuarant.
> > 
> > (24)
> > The Furnace
> > 1 Rufus Street
> > London
> > n1 6pe
> > t - 020 7613 0598
> > Italian restaurant serving to notch pizzas, pastas and seafood. 
> > http://www.shoreditchmap.co.uk/venu_eati.html#F
> > 

Here is the online map from Streetmap UK

http://www.streetmap.co.uk/newmap.srf?x=533222&y=182647&z=0&sv=n1+6pe&st=2&pc=n1+6pe&mapp=newmap.srf&searchp=newsearch.srf

There is a web site dedicated to Struts Networking London www.strutslondon.com

Thanks for listening
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



[OT] BOF V / Coffee Shop / Starbucks / Oxford Street / Monday 8 Nov 2004 19:00

2004-10-28 Thread Pilgrim, Peter

Ok 

I am setting a preliminary date for BOF V for Monday 8th November 2004
@ 19:30. This will take place at the Starbucks Coffee shop on 
New Oxford Street. Anyway it is 150 yards from the
Tottenham Court Road tube. The shop
stays open until to 10PM Monday-Thursdays. 

StarBucks
New Oxford Street WC1
112/116 New Oxford Street
London, England  WC1A 1HH

http://starbucks.co.uk/en-GB/_Our+Stores/_Store+Locator/StoreLocatorMap.htm?a=1&StoreKey=25147&IC_O=51.5159402487287%3a-0.135845058773215%3a32%3aOxford+St&GAD1_O=&GAD2_O=Oxford+St&GAD3_O=London+W1D+1&GAD4_O=United+Kingdom&Radius=5&CountryID=242&DataSource=MapPoint.EU&DistanceUnit=Kilometer

Or here

http://www.streetmap.co.uk/streetmap.dll?G2M?X=529894&Y=181411&A=Y&Z=1


I am doing this because there was no agenda at the last BOF.
Some of the feedback I have had so far includes a wishlist
to discuss other open source projects. e.g. Jakarta Commons / Using
MySQL / Postgres SQL / Setting up Validator.  
So obviously this style is a little bit more formal 
and discussive than the other BOFs.

So let's talk for a hour about about "Design Patterns and Practical 
User Experiences" for BOF V. ( Hint: obviously the 
"Chain of Responsibility" and its implementation in Commons Chain / 
Struts Chain are quite relevant here.) 

Those of you who want slip off the pub for a tipple afterwards 
can do so, because the "The Moon Underwater" is a 5 minutes walk 
around the corner, from Tottenham Court Road tube, 
down Charing Cross Road.



I am still in the process of organising BOF VI for Xmas / 
December preliminary date for that one is either 
[ ] Monday 6th December
[ ] Friday 10th December

The venue is either going to be a 
[ ] Pub
[ ] Restaurant (any suggestions Pizzaland, Wagamamas in Leicester Square)

I wont try agenda-rise the Xmas BOF because of the spirit and
festivities that are going to take place by then, but if any one 
has a hot topic that they really want to discuss then 
you know who to call ...



mtia

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: [OT] BOF V / Coffee Shop / Starbucks / Oxford Street / Monday 8 Nov 2004 19:00

2004-10-28 Thread Pilgrim, Peter
Okay that does it for me. ;-)

We will make the Xmas BOF on a Friday 10th December 2004 @19:30, 
then. I got my heart set on Wagamammas just off Leicester Square, 
there abouts on Charing Cross Road. So unless there are some 
objections ...

www.strutslondon.com

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447



> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: 28 October 2004 11:09
> To: 'Pilgrim, Peter'; 'Alan Mehio (E-mail)'; 'Alex McLintock 
> (E-mail)';
> 'Allister Sneddon (E-mail)'; 'Charles Cordingley (E-mail)'; 
> 'Christopher
> Marsh-Bourdon (E-mail)'; 'Daniel Perry (E-mail)'; 'Duncan Mills
> (E-mail)'; 'Hue Holleran (E-mail)'; 'John Bell (E-mail)'; 'Jonathan
> Butler (E-mail)'; 'Niall Pemberton (E-mail)'; 'Peter Pilgrim
> (Xenonique)'; 'Suman Prashanth. S (E-mail)'; 'Thomas Plümpe (E-mail)';
> 'Tim Penhey (E-mail)'
> Cc: 'Struts User Apache (E-mail)'
> Subject: RE: [OT] BOF V / Coffee Shop / Starbucks / Oxford Street /
> Monday 8 Nov 2004 19:00
> 
> 
> Hi guys,
>   Apologize..can't make it... and don't wanna force 'whole group'
> to make it on a Friday...
> I will however appreciate if someone can posts the content of the
> discussion..
> 
> With best regards
>   marco
> 
> -Original Message-
> From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] 
> Sent: 28 October 2004 10:54
> To: Alan Mehio (E-mail); Alex McLintock (E-mail); Allister Sneddon
> (E-mail); Charles Cordingley (E-mail); Christopher Marsh-Bourdon
> (E-mail); Daniel Perry (E-mail); Duncan Mills (E-mail); Hue Holleran
> (E-mail); John Bell (E-mail); Jonathan Butler (E-mail); Marco Mistroni
> (E-mail); Niall Pemberton (E-mail); Peter Pilgrim 
> (Xenonique); Pilgrim,
> Peter; Suman Prashanth. S (E-mail); Thomas Plümpe (E-mail); Tim Penhey
> (E-mail)
> Cc: Struts User Apache (E-mail)
> Subject: [OT] BOF V / Coffee Shop / Starbucks / Oxford Street 
> / Monday 8
> Nov 2004 19:00
> 
> 
> Ok 
> 
> I am setting a preliminary date for BOF V for Monday 8th November 2004
> @ 19:30. This will take place at the Starbucks Coffee shop on 
> New Oxford Street. Anyway it is 150 yards from the
> Tottenham Court Road tube. The shop
> stays open until to 10PM Monday-Thursdays. 
> 
> StarBucks
> New Oxford Street WC1
> 112/116 New Oxford Street
> London, England  WC1A 1HH
> 
> http://starbucks.co.uk/en-GB/_Our+Stores/_Store+Locator/StoreL
> ocatorMap.
> htm?a=1&StoreKey=25147&IC_O=51.5159402487287%3a-0.135845058773
> 215%3a32%3
> aOxford+St&GAD1_O=&GAD2_O=Oxford+St&GAD3_O=London+W1D+1&GAD4_O
> =United+Ki
> ngdom&Radius=5&CountryID=242&DataSource=MapPoint.EU&DistanceUn
> it=Kilomet
> er
> 
> Or here
> 
> http://www.streetmap.co.uk/streetmap.dll?G2M?X=529894&Y=181411&A=Y&Z=1
> 
> 
> I am doing this because there was no agenda at the last BOF.
> Some of the feedback I have had so far includes a wishlist
> to discuss other open source projects. e.g. Jakarta Commons / Using
> MySQL / Postgres SQL / Setting up Validator.  
> So obviously this style is a little bit more formal 
> and discussive than the other BOFs.
> 
> So let's talk for a hour about about "Design Patterns and Practical 
> User Experiences" for BOF V. ( Hint: obviously the 
> "Chain of Responsibility" and its implementation in Commons Chain / 
> Struts Chain are quite relevant here.) 
> 
> Those of you who want slip off the pub for a tipple afterwards 
> can do so, because the "The Moon Underwater" is a 5 minutes walk 
> around the corner, from Tottenham Court Road tube, 
> down Charing Cross Road.
> 
> 
> 
> I am still in the process of organising BOF VI for Xmas / 
> December preliminary date for that one is either 
> [ ] Monday 6th December
> [ ] Friday 10th December
> 
> The venue is either going to be a 
> [ ] Pub
> [ ] Restaurant (any suggestions Pizzaland, Wagamamas in Leicester
> Square)
> 
> I wont try agenda-rise the Xmas BOF because of the spirit and
> festivities that are going to take place by then, but if any one 
> has a hot topic that they really want to discuss then 
> you know who to call ...
> 
> 
> 
> mtia
> 
> --
> Peter Pilgrim
> Operations/IT - Credit Suisse First Boston, 
> 10 South Colonnade, London E

RE: Refresh - Duplicate Records Issue.

2004-05-14 Thread Pilgrim, Peter

> -Original Message-
> From: Tarun Dewan [mailto:[EMAIL PROTECTED]
> Sent: 14 May 2004 11:47
> To: 'Struts Users Mailing List'
> Subject: Refresh - Duplicate Records Issue.
> 
> 
> Dear All, 
> 
> I'm facing one problem in my application. If user clicks 'REFRESH'
> (through right click menu) duplicate records gets inserted in my
> application. 
> 
> Pls. Suggest best way to handle the same. 
> 
> Thanks & regards,
> 
> Tarun.
>

You should investigate Struts Token tag action () and also

``Action.isTokenValid( HttpServletRequest request)''

etc

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 10 South Colonnade, London E14 4QJ
United Kingdom
Tel: +44 (0)207 883 4447
 

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



struts-scaffold and commons-scaffold

2004-05-04 Thread Peter Martin
I have seen the 2 scaffolds referenced in the Struts book "Struts in
Action", but they are in the Jakarta sandbox.  Are these products usable?
If so, where would I find the current jar files and current source files?



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



validation -- best practices

2005-06-08 Thread Peter Maas
I have a question about the validation in struts.

Imagine that we have:

- jsp page containing the form to be validated
- formbean extending from ValidatorForm
- action to be executed on submit
- validation rules using the validation plugin

If we put the 'validate' attribute to true in the struts-config and call
the action the form is validated correctly... but even before actually
submitting data! 

I know this can be avoided by directy calling the jsp, but especially in
the case of 'retrofitting' an application by adding validation to form
this quite often needs refactoring of links and forwards...

What would be the way to do this?


-- 
Ing. P.F.M. Maas M.A.
Application Architect / Streaming
 
Noterik Multimedia BV
Prins Hendrikkade 120
1011 AM Amsterdam
The Netherlands

Tel: +31 (0)205929966 (office)
Tel: +31 (0)205929973 (direct line)
Fax: +31 (0)204688405

Web: www.noterik.nl
--
Take a look at our streaming solutions: 
http://www.streamedit.com/demo.html

Get firefox: 
http://www.mozilla.org/products/firefox/
---

:wq!


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



RE: validation -- best practices

2005-06-08 Thread Peter Maas
I also perform client side validation, however what I don't want is
validation BEFORE the user actually got a change to enter data... which
is what happens now...


On Wed, 2005-06-08 at 07:45 -0400, Kalyanasundaram, Arun Sakthi
(Cognizant) wrote:
> Hi Peter,
> 
> The validation that is basically performed in the approach you have
> specified is client side validation. 
> 
> Please elaborate more why you want to make a server hit before the data
> is validated and corrected in Client side itself.
> 
> Thanks and Regards,
> Arun Sakthi
> -----Original Message-
> From: Peter Maas [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 08, 2005 5:08 PM
> To: Struts Users Mailing List
> Subject: validation -- best practices
> 
> I have a question about the validation in struts.
> 
> Imagine that we have:
> 
> - jsp page containing the form to be validated
> - formbean extending from ValidatorForm
> - action to be executed on submit
> - validation rules using the validation plugin
> 
> If we put the 'validate' attribute to true in the struts-config and call
> the action the form is validated correctly... but even before actually
> submitting data! 
> 
> I know this can be avoided by directy calling the jsp, but especially in
> the case of 'retrofitting' an application by adding validation to form
> this quite often needs refactoring of links and forwards...
> 
> What would be the way to do this?
> 
> 
-- 
Ing. P.F.M. Maas M.A.
Application Architect / Streaming
 
Noterik Multimedia BV
Prins Hendrikkade 120
1011 AM Amsterdam
The Netherlands

Tel: +31 (0)205929966 (office)
Tel: +31 (0)205929973 (direct line)
Fax: +31 (0)204688405

Web: www.noterik.nl
--
Take a look at our streaming solutions: 
http://www.streamedit.com/demo.html

Get firefox: 
http://www.mozilla.org/products/firefox/
---

:wq!


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



RE: [Tiles]

2005-06-10 Thread Pilgrim, Peter
See intermixed

> -Original Message-
> From: Ray Madigan [mailto:[EMAIL PROTECTED]
====
> 
> 
> I read the paper
> 
> http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp
> 
> which explains how to add attributes into a tile of a 
> definition then it
> invokes the page.
> 
> Unfortunatly all I want to do is replace the page that the 
> layout uses to
> render the layout, without the calling page having to care about it.
> 
> Humpf!
> 

This is a limitation of Tiles. If I remember rightly, it was slightly
disconsenting to look in Ted' books "Struts In Action" and see an
example where there is a Tiles Definition with $ dollar notation
and then read the text that it will never work.


   
   





I think the only to do is with a special Struts or Tiles Action class.




In other word you write an action `ViewInterceptor' that accepts a 
parameter `pageInclude' which is URL to a page in your application.
You translate the token ${skin-directory} to whatever in relevant e.g a Folder 
name 
for skin path. You can invent an token and semantics you want.
This actions simply request dispatch includes the transformed page URL.
You tell the request processor not to perform action forward by returning
`null' in your action. 

The above works because Tiles is itself performing a request dispatcher include,
so the `ViewInterceptor' is just another level of indirection. The advantage
is you can also set tiles attributes and push them to the request scope
for example. etc etc

It would be better if Struts Tiles had dynamic binding on the values of 
definitions (or components).We could employ the following schemes, then :

(*) allowed String token substitution
(*) access to Expression Language evaluator
(*) had hooks like JSF with it VariableResolver interface. 


> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 3:36 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles]
> 
> 
> Ray,
> 
> If Xinsheng [mike] Huang's suggestion about using the JSP ($) 
> dollar sign
> notation doesn't work, I'd suggest looking at giving your 
> template a tiles
> controller so you can set the navi attribute to some object 
> and scope.  That
> way the controller can specify the insert automatically 
> before the tile is
> rendered and without having to put code into every action, 
> just that one
> tile's controller class.
> 
> Regards,
> David
> 
> -Original Message-
> From: Ray Madigan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 5:18 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles]
> 
> 
> I have a fairly simple situation where a set of pages are 
> used throughout
> the application.   Based on a set of crriteria known about 
> the user, I want
> the page to use a set of common tiles to fill some parts of 
> the page, like
> the header of the page.  Other parts of the page are filled 
> with specific
> tiles relative to what the page is attempting to show.  
> Instead of each of
> the pages that use the layout setting the attribute, I 
> thought if it was
> computed in the layout, I would save some management of these entries.
> 
> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 1:58 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles]
> 
> 
> Ray,
> 
> What architectural problems prevent you from either using a 
> TilesAction,
> instead of a regular action, or a tiles controller to look 
> those things up
> and set them for you so the page doesn't need to be 'that smart?'
> 
> Regards,
> David
> 
> -Original Message-
> From: Ray Madigan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 5:01 PM
> To: Struts Users Mailing List
> Subject: [Tiles]
> 
> 
> I have beat this situation to death without coming up with an answer.
> 
> I want to create a tile layout that includes a composed tile 
> in the layout
> definition.
> 
> Any suggestions would be appreciated
> 
> It needs to look like
> 
>   
>   
>   
>   
>   
> 
>   
> **
> 
> OR
> **
> **
> **

RE: [ANN] JavaOne Social Gathering in San Francisco on 6/26 at 8p m

2005-06-10 Thread Pilgrim, Peter

I think I already said "Yes" to this one.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


> -Original Message-
> From: Don Brown [mailto:[EMAIL PROTECTED]
> Sent: 09 June 2005 17:44
> To: Struts Users Mailing List
> Subject: [ANN] JavaOne Social Gathering in San Francisco on 
> 6/26 at 8pm
> 
> 
> As the attached message describes, there is a meeting of Java web
> developers the night before JavaOne starts.  I'm planning on attending
> and hope to see many of you there.
> 
> Don
> 
>  Original Message 
> Subject: [sv-web-jug] JavaOne Social Gathering in San 
> Francisco on 6/26 at 8pm
> Date: Mon, 30 May 2005 16:51:02 -0700
> From: Van Riper, Mike <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: <[EMAIL PROTECTED]>
> 
> Please join us for the third annual web developer gathering during
> JavaOne in San Francisco. After the JavaOne alumni reception at 8:00pm
> on Sunday evening, we will meet for drinks one short block 
> from Moscone
> Center at the Thirsty Bear. All Java web developers are encouraged to
> participate in this event whether they are signed up to attend JavaOne
> this year or not.
> 
> For those of you fortunate enough to be there last year, we had a good
> turnout including Don Brown (Struts Committer), Matt Raible (appFuse)
> and Craig McClanahan (Mr. Struts himself). The full event details for
> this year including RSVP instructions is here:
> 
>   http://www.baychi.org/bof/java/20050626/
> 
> I don't anticipate any changes, but, I recommend bookmarking the URL
> above and checking back the day of the event for any last minute
> updates. If there were a change of venue or start time, I will be
> certain to update the online event announcement to include the new
> information.
> 
> Thanks, Van
> 
> Mike "Van" Riper
> mailto:[EMAIL PROTECTED]
> 
> Silicon Valley Web Developer JUG
> https://sv-web-jug.dev.java.net
> 
> A.K.A. Java Web Developer BayCHI BOF
> http://www.baychi.org/bof/java/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: [Tiles]

2005-06-10 Thread Pilgrim, Peter
See intermixed

> -Original Message-
> From: Ray Madigan [mailto:[EMAIL PROTECTED]
====
> 
> 
> I read the paper
> 
> http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp
> 
> which explains how to add attributes into a tile of a 
> definition then it
> invokes the page.
> 
> Unfortunatly all I want to do is replace the page that the 
> layout uses to
> render the layout, without the calling page having to care about it.
> 
> Humpf!
> 

This is a limitation of the current released Tiles implementation. 
If I remember rightly, it was slightly disconcerting, to look in 
Ted Husted's books "Struts In Action" and see an example where there 
is a Tiles Definition with $ dollar notation and then read the 
text closer that it cannot never work.
Let say we have a master layout definitions in Tiles.


   
   





This cannot work because Tiles has no information or hooks to handle
special syntaxes.

I think the only way to do this, is with a special Struts or Tiles 
Action class. If we make the value now dynamic then I think you
can get closer to what you want to achieve. 

Here is how I would do this to "skin" an page layout view with a
different look-and-feel




In other words you write an action `ViewInterceptor' that accepts a 
parameter `pageInclude', which is an URL to the target page in your 
application.
You translate the token ${skin-directory} to whatever is relevant 
e.g a Folder name for skin path. You can any invent an token, tokenising
and semantics you want in the action.

This actions simply request dispatch includes the transformed page URL.
You tell the request processor not to perform action forward by returning
`null' in your action. 

The above works because Tiles is itself performing a request dispatcher include,
so the `ViewInterceptor' is just another level of indirection. The advantage
is you can also set tiles attributes and push them to the request scope
for example. etc etc

It would be better if Struts Tiles had dynamic binding on the values of 
definitions (or components).We could employ the following schemes, then :

(*) allowed String token substitution
(*) access to Expression Language evaluator
(*) had hooks like JSF with it VariableResolver interface. 


> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 3:36 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles]
> 
> 
> Ray,
> 
> If Xinsheng [mike] Huang's suggestion about using the JSP ($) 
> dollar sign
> notation doesn't work, I'd suggest looking at giving your 
> template a tiles
> controller so you can set the navi attribute to some object 
> and scope.  That
> way the controller can specify the insert automatically 
> before the tile is
> rendered and without having to put code into every action, 
> just that one
> tile's controller class.
> 
> Regards,
> David
> 
> -Original Message-
> From: Ray Madigan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 5:18 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles]
> 
> 
> I have a fairly simple situation where a set of pages are 
> used throughout
> the application.   Based on a set of crriteria known about 
> the user, I want
> the page to use a set of common tiles to fill some parts of 
> the page, like
> the header of the page.  Other parts of the page are filled 
> with specific
> tiles relative to what the page is attempting to show.  
> Instead of each of
> the pages that use the layout setting the attribute, I 
> thought if it was
> computed in the layout, I would save some management of these entries.
> 
> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 1:58 PM
> To: Struts Users Mailing List
> Subject: RE: [Tiles]
> 
> 
> Ray,
> 
> What architectural problems prevent you from either using a 
> TilesAction,
> instead of a regular action, or a tiles controller to look 
> those things up
> and set them for you so the page doesn't need to be 'that smart?'
> 
> Regards,
> David
> 
> -Original Message-
> From: Ray Madigan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 08, 2005 5:01 PM
> To: Struts Users Mailing List
> Subject: [Tiles]
> 
> 
> I have beat this situation to death without coming up with an answer.
> 
> I want to create a tile layout that includes a composed tile 
> in the layout
> definition.
> 
> Any suggestions would be appreciated
> 
> It needs to look like
> 
>   
>   
>   
>   
>   
> 
>   
> **
> 
> OR
> **
> **
> **

RE: [ANN] BOF X / Monday / 20 June 2005

2005-06-20 Thread Pilgrim, Peter
> -Original Message-
> From: Pilgrim, Peter 
====

This is just a reminder message.

> 
> > -Original Message-
> > From: Pilgrim, Peter 
> ====
> > 
> > 
> > WHAT:
> >  
> > I would like to formally announce that ``The Struts-JSF 
> > London Networking'' 
> > group is holding the tenth meet-up event on Monday 20th June 2005.
> > 
> > This is a Pre-Java ONE meet-up
> >  
> > WHERE:
> > 
> > I will attempt to suggest a location by close-of-business 
> > Thursday 2nd June 
> > 2005 or ``you'' can suggest a venue somewhere in the city.
> > 
> 
> At this moment in time I am suggesting that we meet up in 
> "The Theodore Bullfrog", Caring Cross
> 
> http://www.beerintheevening.com/pubs/s/21/211/Theodore_Bullfrog/Charing_Cross
> 
====

So The Theodore Bullfrog, Charing Cross it is on Monday 20th June 2005 at 6:45PM
The last meet up before getting on the transatlantic flight JavaONE 2005.

26 John Adam Street
Charing Cross 
London
WC2N 6HL
020 7839 2697

http://www.beerintheevening.com/pubs/s/21/211/Theodore_Bullfrog/Charing_Cross
Nearest tube is "Charing Cross" Bakerloo or Northern lines or 
"Embankment" Bakerloo, Northern, Circle, or District lines.
Street map UK
http://www.streetmap.co.uk/newmap.srf?x=530291&y=180547&z=0&ar=Y



====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: Newbie questions

2005-06-22 Thread Pilgrim, Peter

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
====
> 
> 
> From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]>
> 
> > What I would like to learn right now is how to get 
> information from a
> > Select statement from a database and display it on a HTML 
> table. That
> > is, first I have a search form
> > and them a search result with records from a MySQL 
> database. I know how
> > to do it with Servlets and JSPs but I would like to see a 
> piece of code
> > using the Struts framework.
> 
> It's the same piece of code, assuming you've designed it 
> right. :)  Struts
> has nothing to do with reading from the database.
> 
> Hopefully, you haven't embedded a bunch of JDBC in your 
> Servlet.  If you
> have, now would be a good time to move it out into a separate 
> class (or
> layer, depending on how complex it is).  Even better, use 
> Hibernate or one
> of the other existing O/R mapping tools.
> 
> Once you have a good system for retrieving data, you can use 
> it with any
> application, Struts, Swing, or command-line.
> 
> Have you installed the examples that ship with Struts?  
> Particularly, the
> 'struts-mailreader' example will show you how to accept input 
> from HTML
> forms and work with it.
> 
> For paging results, I hear good things about DisplayTag
> http://displaytag.sourceforge.net/ but I haven't used it myself.
> 
> -- 
> Wendy Smoak

I would second Wendy's advice, try to follow the example mailreader.

The best advice with Struts is try to understand how all the parts
of the framework fit together. 

Action, ActionForm, ActionServlet, View Helpers [Custom Tag libraries]

The good news is that Struts framework is relatively a small scale 
library compared to larger library, e.g. Hibernate. Look for articles
on Struts on the TheServerSide.com, Javaworld.com and OnJava.com and
you will be fine.


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: Storing data in session scope

2005-06-22 Thread Pilgrim, Peter
> -Original Message-
> From: Rafael Taboada [mailto:[EMAIL PROTECTED]
====
> 

I am suprise that no body mention a ServletFilter as also
another possibility.

> 
> I really appreciate ur help, thanks to everybody for ur reply.
>  In my web.xml file I have:
>  
> /index.jsp
> 
>  So when the user write the URL 
> http://localhost:8084/SanCristobal... It 
> calls the index.jsp file.
>  This file has a frameset (I didn't use tiles).
>  So, My doubt is how to store some data in application scope.

The above reminds me of my design error when try to implement
a website authentication scheme. I went down the plug-in, 
specific action and welcome file road until I realise that
some parts of the website content may simple be static, 
but also need securing. So I used a ServletFilter.

>  What data do I need to store???. Data that it has to be 
> updated if the user 
> goes to a module which update that data but in database. So 
> If the user 
> updates the data, it has to be updated automatically in the 
> application 
> scope.

This is different kettle of fish. You need to implement in
your application architecture the "Reference Data Cache"
idiom. 

In this case you do not need to store data in application scope
at all. Rather all your database access comes through
business data access delegate. 

>  This data is not big... Here in Peru we have to know how 
> much a dolar costs 
> in Soles (our coin). So the entire application needs to know the cost.
> Another data is about TAX and it's the same for all users.
>  Ey Dave Newton, I don't practice Kali/Arnis
> -- 
> Rafael Taboada
> Software Engineer
> 
> Cell : +511-97753290
> "No creo en el destino pues no me gusta tener la idea de 
> controlar mi vida"
> 

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: Storing data in session scope

2005-06-22 Thread Pilgrim, Peter

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: 22 June 2005 11:54
> To: Struts Users Mailing List
> Subject: Re: Storing data in session scope
> 
> 
> On 22/06/05 08:54 Pilgrim, Peter wrote:
> >> What data do I need to store???. Data that it has to be updated if
> >> the user goes to a module which update that data but in database.
> >> So If the user updates the data, it has to be updated automatically
> >> in the application scope.
> 
> > 
> > This is different kettle of fish. You need to implement in your
> > application architecture the "Reference Data Cache" idiom.
> > 
> > In this case you do not need to store data in application scope at
> > all. Rather all your database access comes through business data
> > access delegate.
> 
> Peter,
> this caught my eye because I wasn't aware of this one - 
> "Reference Data
> Cache" sounds like a useful pattern and one that I have probably
> implemented independently.
> 
> Do you have a reference (bad pun) so I can check out this out 
> ?  I just
> searched thro Gang of Four and Marinescou's EJB Des. Patts. without
> seeing anything similar.
> 
> 
> Adam
> 
I am unsure if this is a pattern or idiom. If it is the former I 
thought I saw in a borrowed copy Java Patterns, one of Mark Grand's
epic bestsellers. Possibly in Java Enterprise Patterns by Wiley.

Actually the idiom is simply cache or the flyweight with a little
modifications for web applications. 

The data access object pattern is re-use to make sure that every
request for data goes the cache.

The actual cache implementation is irrelevant TTL (time-to-live expiration 
times), SoftReferences (garbage collection) and/or destroyer Thread.

For Web application you need to front-end your cache in control
administration, or synchronise the cache from the database or because
an external program has update the database behind the cache's back.
YMMV because if you have an external (legacy) process that creates
transient static data periodically then you need to architect
some form re-synchronisation. Throws out the old cache, create
a brand new cache. For example this could be a MDB (JMS) or 
come a J2EE connector. This is the use-case that takes the actually
takes simple-in-memory and in-same-VM Java caching into the 
enterprise world of reference data. 

As I said before, first if you decide to use reference data cache, 
then you must make sure that you never access the data by going around 
the back of it.
(What would be the point, then?). Second decide on compromise if
your reference data does change regularly, and especially if it is
external legacy process.

Actually Wendy's suggestion ehcache would be good for an implementation.
The same technology used by the Hibernators.

HTH


--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Extending ForwardAction

2005-06-27 Thread Peter . Zoche
Hi all!

Here a question from a newbie:

Is it possible to extend the ForwardAction class to add some functionality
chained to the forward?
My struts-config entry would look like this:



Does Struts recognize that MyForwardAction extends ForwardAction so that is
uses the parameter-attribute?

Peter

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



Struts and Sessions Problem

2005-06-29 Thread Peter . Zoche
Hello all!

I have a problem with struts and sessions, perhaps someone has an idea:

My web.xml contains the following welcome file list:


  index.jsp


My index.jsp only forwards like this:

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

  
 
  


My struts-config uses a global forward to map it like this:


  



In the struts-config the final mapping to the action is this one:


  
  


In CheckCookiesAction which extends Action, in the execute(...) method I get
the HTTPSession like this:

HttpSession session = request.getSession( false ) );

My problem: when a user accesses my webapp for the first time this method
does not return null,
although it should do so! It is no problem of Tomcat 5.5.9 I am using, the
Servlet I wrote for testing does
its work properly and returns null if the user accesses my page for the
first time. So why does Struts behave
like this? Is it because of all the forwarding and redirecting, although it
should have no effect in my opinion?

Perhaps someone knows whats going wrong

Peter

--

MATERNA GmbH Information & Communications
Vosskuhle 37
44141 Dortmund
Tel:  +49-231-5599-8868
Fax: +49-231-5599-678868

[EMAIL PROTECTED]
www.annyway.dewww.materna.de
www.annyway.com  www.materna.com

Visit us at the following events:
ACI EUROPE, Munich
June, 22 - 24, 2005

ACI EUROPE, Verona
September, 26 - 28, 2005

CTIA Wireless I.T. & Entertainment 2005, San Francisco
September, 27 - 29, 2005

Con4, Cologne
September, 27 - 29, 2005


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



AW: Struts and Sessions Problem

2005-06-29 Thread Peter . Zoche
Hello again

As Michael suggested I put a session="false" in the page directive in my
index.jsp like this

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page session="false" %>

 
 
 


but the problem still is there. my session is not null!

Peter
-Ursprüngliche Nachricht-
Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 29. Juni 2005 18:16
An: Struts Users Mailing List
Betreff: Re: Struts and Sessions Problem


Hmm, I don't see how the session can be null. If you start from JSP,
and you did not set session="false" in the page directive, then to my
understanding, session should be created right in the JSP.

Michael.

> My index.jsp only forwards like this:
> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> 
>   
> 
>   
> 

[skipped]

> My problem: when a user accesses my webapp for the first time this method
> does not return null,
> although it should do so! It is no problem of Tomcat 5.5.9 I am using, the
> Servlet I wrote for testing does
> its work properly and returns null if the user accesses my page for the
> first time. So why does Struts behave
> like this? Is it because of all the forwarding and redirecting, although
it
> should have no effect in my opinion?
> 
> Perhaps someone knows whats going wrong
> 
> Peter

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

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



AW: Struts and Sessions Problem

2005-06-29 Thread Peter . Zoche
No, there is no filter or something else, only the things I included
in my first mail (besides the login.jsp and home.jsp to which the
success and failure forwards point to)

Peter


-Ursprüngliche Nachricht-
Von: Ed Griebel [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 29. Juni 2005 18:53
An: Struts Users Mailing List
Betreff: Re: Struts and Sessions Problem


Is it possible that you have a servlet filter set up which creates a
session? Possibly one that checks if the user is logged in?

-ed

On 6/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello again
> 
> As Michael suggested I put a session="false" in the page directive in my
> index.jsp like this
> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ page session="false" %>
> 
>  
> 
>  
> 
> 
> but the problem still is there. my session is not null!
> 
> Peter
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 29. Juni 2005 18:16
> An: Struts Users Mailing List
> Betreff: Re: Struts and Sessions Problem
> 
> 
> Hmm, I don't see how the session can be null. If you start from JSP,
> and you did not set session="false" in the page directive, then to my
> understanding, session should be created right in the JSP.
> 
> Michael.
> 
> > My index.jsp only forwards like this:
> >
> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> > 
> >   
> > 
> >   
> > 
> 
> [skipped]
> 
> > My problem: when a user accesses my webapp for the first time this
method
> > does not return null,
> > although it should do so! It is no problem of Tomcat 5.5.9 I am using,
the
> > Servlet I wrote for testing does
> > its work properly and returns null if the user accesses my page for the
> > first time. So why does Struts behave
> > like this? Is it because of all the forwarding and redirecting, although
> it
> > should have no effect in my opinion?
> >
> > Perhaps someone knows whats going wrong
> >
> > Peter
> 
> -
> To unsubscribe, 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]



logic:forward and session

2005-07-01 Thread Peter . Zoche
Hello all!

I still have a problem that struts creates a session although it should not
do so.
I have isolated the problem and there are only two possible locations left.
One of
them is this:
I have an index.jsp specified in my welcome.file-list in web.xml. This
index.jsp does
the following:

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/taglibs-log.tld" prefix="log" %>
<%@ page session="false" %>



 
 
 


As expected ${pageContext.session.id} returns an empty string in my log
because
the page-directive tells session="false"
But right after the logic:forward a session is created! Is it possible that
the
logic:forward is bound to creation of a session? Is there a way to eliminate
this
behaviour? I found nothing on the WWW so I will try here.

Thanks

Peter

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



AW: log4j log

2005-07-04 Thread Peter . Zoche
Its the filename, but where is it stored on your harddisk?
With Win2003 and Tomcat I found my log-file in C:\WINNT\SYSTEM32!

Peter

-Ursprüngliche Nachricht-
Von: Vijay K Anand [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 4. Juli 2005 14:58
An: Struts Users Mailing List
Betreff: Re: log4j log


Hi
This is the file name i have specified below  --> npi_log

Vijay K Anand wrote:

> Hi
> Here  goes my log4j property file
>
> log4j.rootLogger=ERROR, A2
> log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.A2.Threshold=DEBUG
> log4j.appender.A2.file=npi_log
> log4j.appender.A2.append=true
> log4j.appender.A2.layout=org.apache.log4j.PatternLayout
> log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>
> here is the code where i want to log
>
> static Logger logger = 
> Logger.getLogger(HighLevelAction.class.getClass());
>
> logger.debug("test");
>
> th eproblem is : it is not logging anything
>
> -
> To unsubscribe, 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]



Newbie: Where to put instance for database access?

2005-07-06 Thread Peter . Zoche
Hi!

I have maybe a simple question:

My web-app has to get data out of a database. I have a class DatabaseHandler
which
holds a connection to the database and provides methods to query it. I would
like to
have only one instance of this class in my web-app. But I don't know where
to put it.
Should it be stored in the ServletContext for application scope? But how do
I access
this instance from my Actions? Or would it be better to use data-sources? If
I should
use them, does anybody know a good tutorial on the internet? Perhaps
hibernate would
be a good choice too, but I think its a bit oversized for my application.
You see - I
am a total newbie concerning the use of databases with struts. Please
help!!!

Peter

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



AW: Newbie: Where to put instance for database access?

2005-07-06 Thread Peter . Zoche
>Should it be stored in the ServletContext for application scope? But
>how do I access this instance from my Actions? 

>getServlet().getServletContext().getAttribute(xxx)

is it the same as request.getSession().getServletContext().getAttribute(xxx)
?

Peter

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



AW: Tomcat5.exe Holds Onto Struts.jar

2005-07-07 Thread Peter . Zoche
Are you using Windows? Than this it no tomcat specific problem. yout
struts.jar
is not deleted because windows locks this file. i had the same problem. the
solution is
to add the directory META-INF to your project. put a file named context.xml
into it with
the following lines: 




when the attribute antiResourceLocking is set to true tomcat does not use
this one
but works with an internal copy of it so that windows does not lock it. then
everything
works fine...

Peter

-Ursprüngliche Nachricht-
Von: Robert Nicholls [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. Juli 2005 15:48
An: user@struts.apache.org
Betreff: Tomcat5.exe Holds Onto Struts.jar


Hi:
Perhaps this is a Tomcat question but it applies only to Struts.
I have Tomcat 5.5 running under Windows 2000 with Eclipse as the IDE. Ant is
used to assemble, compile and deploy the applications. However, the process
Tomcat5.exe accesses the struts.jar at /WEB-INF/lib/struts.jar.  The result
is that when we run Ant and try to undeploy the application all files but
the struts.jar are removed and the deployment process fails.  Although
Tomcat has access to all the jars in the various libs (common, shared and
server) it only has access to the struts jars in the application libs. We
use Process Explorer to verify this.

There seem to be several threads reporting similar behavior.  Our present
solution is to operate with unpacked wars (it works) but we would like to
improve the performance with unpacked wars.

Any thoughts?

Regards,

Bob Nicholls
MIT Lincoln Laboratory



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

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



Forwarding in custom RequestProcessor

2005-07-14 Thread Peter . Zoche
Hi!

I have extended the RequestProcessor's processPreprocess() method
in order to perform a simple user authentication mechanism using
cookies. If a cookie identifying a user is found, but the users member-
ship has expired, I would like him to be forwarded/redirected to a
corresponding error page. What is the best way to do this? I tried
the following:

request.getRequestDispatcher( "membershipExpired.jsp" ).forward( request,
response );

which works fine. But this is surely not how struts should work because
I have hardcoded the target in my code, and not configured in my
struts-config.xml for example. So if the error page changes I have to
chnage my code and not only the struts-config.xml. Does anybody know
a better solution? I tried a global-forward like this but it didn't work:





with

request.getRequestDispatcher( "nodb" ).forward( request, response );

Perhaps I made a mistake somewhere...

Peter


--

MATERNA GmbH Information & Communications
Vosskuhle 37
44141 Dortmund
Tel:  +49-231-5599-8868
Fax: +49-231-5599-678868

[EMAIL PROTECTED]
www.annyway.dewww.materna.de
www.annyway.com  www.materna.com

Visit us at the following events:
ACI EUROPE, Munich
June, 22 - 24, 2005

ACI EUROPE, Verona
September, 26 - 28, 2005

CTIA Wireless I.T. & Entertainment 2005, San Francisco
September, 27 - 29, 2005

Con4, Cologne
September, 27 - 29, 2005


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



RE: Struts 1.2 v 1.3

2005-07-15 Thread Pilgrim, Peter

What does 1.3 bring to the party?

I know there will be with the composable request processor and 
commons chain integration. What other innovations are there
in the new version?


> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
====
> 
> 
> On 7/14/05, Access Denied <[EMAIL PROTECTED]> wrote:
> > I just bought and am reading James Holmes' book, "Struts: 
> The Complete
> > Reference" (Osborne 2004), which covers 1.2.  I just 
> learned from one
> > of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
> > wasting my time and should be studying other literature?
> 
> Hmmm, I may have said "almost", but I did not mean to imply "soon". 
> 
> Right now, no one seems to be trying to push 1.3 out the door. There
> is not even a release plan. The only timeframe for 1.3 is
> "indefinate". It could be a week, or a month, or five months. It all
> depends when a volunteer can step up to the plate.
> 
> Of course, should "indefinate" happen, it would not make any 1.2
> material obsolete. By "1.3", we mean the release would be backwardly
> compatible with 1.2.
====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



[ANN] BOF XI Struts JSF London / 7:00PM / Kettners

2005-07-19 Thread Pilgrim, Peter
JUST A REMINDER

The Eleventh Struts/JSF London Networking BOF is taking place on 
Tuesday 19 July 2005 at 19:00 or afterwards at Kettners Restaurant 
in SOHO, West End, London.

29 Romilly Street, London, W1D 5HP  Telephone: 0871 223 8103 
Nearest Tube: Leicester Square [3 minutes]
(or Picadilly Circus [5 minutes], Tottenham Court Road [7 min] or 
Charing Cross [15 min ] )
 
> http://www.london-eating.co.uk/2025.htm
> http://www.multimap.com/map/browse.cgi?client=public&pc=W1D%205HP&cat=res
> http://travel.guardian.co.uk/restaurants/story/0,13739,1007545,00.html
> http://www.pizzaexpress.com/kettners/rest.htm

Kettner looks swanking, but it's really just smoke and mirrors. 
So dont worry.

> 
> To join up or confirm attendence send me an email off mailing 
> list. If you want to bring a friend as well, then that fine. Just 
> turn up
> at the scheduled time. Thanks in advance/.
> 
> PS: BOF == Birds of a feather

Some themes

Free summer discussion on the forthcoming Struts 1.3 release
and what is the next path to innovation with JSF. Should 
enterprises develop with JSF instead of Struts on new projects?

On-going discussion with the Meetup replacement site?

Plus any other business, members own experiences e.g. how to develop 
a project for the first-time with Spring and another IoC container?

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Showing stacktrace in jsp

2005-07-22 Thread Peter . Zoche
Hi!

I wolud like to do the following:

If an Action catches an Exception, I would like to forward to an error
page that shwos some general message, such as "There has been
an error accessing tha database." But I would like to provide a
link or something else (which is shown to for example all admins),
so that the user can watch the whole stacktrace of the exception.
You could store the original Exception in request-scope, but
is there a simple way/ a tag to print out the whole stacktrace
of my exception in the jsp? Or do I have to do it on my own?

Thanks,
Peter

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



RE: [OT] Hibernate vs. iBatis vs. POJO

2005-07-22 Thread Pilgrim, Peter

I think the jewel in the crown with the EJB 3 specification
is actually the new persistent model sub part of it. 
Following Linda De Michels and Scott Crawford presentations
at JavaONE this year, you should be able to persist POJOs
with any O/RM implementation that supplies a `javax.ejb.EntityManager' 
interface.

If you would rather execute your own mapped SQL statements,
then iBatis or similar is the choice.

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: Re: JSF is the beginning of the end of Struts !!!

2005-07-27 Thread Pilgrim, Peter
 years, but its complexity of
 > > > configuration (at least before mature tools were developed)
 kept
 > > > many J2EE projects expensive and over budgets (bad ROI
 examples).
 > > >
 > > > Thus we have so many frameworks in Java. Sun is to be blamed
 for
 > > > always providing UNPROVEN technologies for java. In many cases,
 > > > following sun too closely is not wise.
 > > >
 > > > PHP was great but I hope java can catch up in real application.
 > > >
 > > > John H. Xu
 > > >
 > > >
 > > > http://www.usanalyst.com
 > > >
 > > > http://www.GetusJobs.com (The largest free job portal in North
 > America)
 > > >
 > > >
 > > >
 > > > - Original Message -
 > > > From: netsql
 > > > To: user@struts.apache.org
 > > > Subject: Re: JSF is the beginning of the end of Struts !!!
 > > > Date: Mon, 25 Jul 2005 20:13:05 -0500
 > > >
 > > > >
 > > > > John Public wrote:
 > > > > > After just finishing my JSF class, I can confidently
 > > > > > confirm that JSF will eventually lead to Struts
 > > > > > becoming OBSOLETE.
 > > > >
 > > > > :-) Enhydra and Torque would say that too circa 2001.
 > > > > Put up a site and lets see it.
 > > > >
 > > > > > Let's all get
 > > > > > behind JSF before MS takes over the web.
 > > > >
 > > > > Nothing wrong w/ C# IMO.
 > > > > I think PHP is "best(fast and cheap, lowest risk, most roi)"
 > for
 > > > > "genric" server side rendering applications. (But then... I
 > think
 > > > > the future is client side rendering )
 > > > > If JSF(or EJB) fails, it won't be becuase somone did not "get
 > > > behind it".
 > > > >
 > > > > Competition should give us best answer, and I am all for
 using
 > > > > better tech. Every few years I'd like a new tech please.
 > > > >
 > > > >
 > > > > -- .V
 > > > >
 > > > > People are conversing... without posting their email or
 filling
 > up
 > > > their
 > > > > mail box.
 > > > > roomity.com
 > > > >
 > > > > No sign up to read or search this Rich Internet App.
 > > > >
 > > > >
 > > > >
 > > >
 >
 -
 > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > > > > For additional commands, e-mail: [EMAIL PROTECTED]
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > > Jack H. Xu
 > > > Technology columnist and editor
 > > >
 > > > http://www.usanalyst.com
 > > >
 > > > http://www.getusjobs.com (The largest free job portal in North
 > America)
 > > >
 > > > --
 > > > ___
 > > > Sign-up for Ads Free at Mail.com
 > > > http://promo.mail.com/adsfreejump.htm
 > > >
 > > >
 > >
 > >
 > >
 >
 -
 > > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > > For additional commands, e-mail: [EMAIL PROTECTED]
 >
 >
 >
 >
 >
 >
 > Jack H. Xu
 > Technology columnist and editor
 >
 > http://www.usanalyst.com
 >
 > http://www.getusjobs.com (The largest free job portal in North
 America)
 >
 > --
 > ___
 > Sign-up for Ads Free at Mail.com
 > http://promo.mail.com/adsfreejump.htm
 >
 >
 >
 -
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]






Jack H. Xu
Technology columnist and editor

http://www.usanalyst.com

http://www.getusjobs.com (The largest free job portal in North America)

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


  
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston,
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: [STRUTS 2X]: Ideas

2005-08-01 Thread Pilgrim, Peter
> -Original Message-
> From: Paul Benedict [mailto:[EMAIL PROTECTED]
====
> 
> Frank,
> 
> I am fond of these two ideas (see following). Heck, I
> would be willing to even write them if I think there
> would be a chance of someone actually commiting them
> into the Trunk!!
> 
> There are four things that I am very fond of and they
> are all tightly integrated:
> (1) POJO for forms

See below

> (2) Stubbing of abstract attributes for framework
> implementation like Tapestry.

Are you talking abouting the ``jwcid'' attribute?

> (3) The use of native data types in forms without
> worrying of validation.

A new validation methodology is required. 
With JSF there is processing render life cycle,
now the new version could borrow that model, or
better analyse it and come with something better.

> (4) Action methods being part of the POJO.

Agreed here. I would like the flexible to make the action form
and the action seperate or be part of the same class.

Struts uses the BeanUtil library so in order to change the
use of native types in form without validations may require
changes to that library.

I believe Struts 2 should inject dependencies into the actions
or action forms. It is a little contraversial as there 
are many IoC frameworks out to there to do this already.

Struts 2 should force an Action or ActionForm to be interface
or subclass of an abstract type, hence dependency injection.

If the former is the case, then it follows that calling the
action method should be flexible

   public void bluegrass(ActionContext ac) { /* ... */}

or

   public void bluegrass() { 
  ActionContext ac = typeOfThreadLocal.getFromSomeWhere();
/* ... */
   }

then you need to handle absurdities like so (the general case )

   public void bluegrass( A a, B b, ... ActionContext ac, ... Y y, Z z ) { /* 
... */}

Also remember we have the chain of responsible stuff and the 
Struts action extension to factor, which most developer
haven't even use yet in real anger, into a new version of 
Struts 2. Proviso backwards compatibility

> 
> Just imagine how cool it would be to have something
> like:
> 
> public class MyActionForm {
>   // stub out properties
>   public abstract String getFirstName();
>   public abstract String getLastName();
>   public abstract intgetAge();
> 
>   public void save(ActionContext ac) {
> // save form here
>   }
> 
>   public void edit(ActionContext ac) {
> // edit form here
>   }
> 
>   public void bluegrass(ActionContext ac) {
> // do something else here
>   }
> }
> 
> In this example, all four things happen:
> (1) The object is a POJO and (3) uses native data
> types. If any conversion failure happens, it is
> considered an automatic validation error.
> 
> (2) The attributes are stubbed out for implementation
> like done in Tapestry. This allows the type-checking
> at runtime found in ActionForms (important to me) with
> the flexibility of defining forms like DynaActionForms
> (used heavily by me).
> 
> (3) Action methods are now part of the action form
> itself. Here I used the Struts 1.3 method of having
> the Chain-of-command object be the only thing passed
> in, which should contain references to any other web
> object you need to complete this request. I believe
> JSF does something similar, and why not imitate this
> good idea? Besides, I think the Struts Roadmap has a
> similar idea planned for 1.5???
> 
> Thanks guys.
====

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Loading properties

2005-08-02 Thread Peter . Zoche
Hi!

I would like my web-app to read in a *.properties file at startup (not for
i18n, but the good old
java.util.Properties, for example to get the e-mail address of the admin of
the web-app). So
I wrote a ServletContextListener which will load the properties-file and
store it into servlet
context from where it can be accessed throughout my web-app. But where I do
have to
put the myProps.properties file? I tried WEB-INF/classes, but I get a
FileNotFoundException.
Or do I have to configure web.xml or struts-config.xml in some way? Or is
there a better
way to store the required data (such as admin's e-mail)?

Thanks

Peter

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



RE: [STRUTS 2X]: Ideas

2005-08-02 Thread Pilgrim, Peter

> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
====
> 
> On 7/31/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> > > I think there are a lot of people out there who feel as 
> you do, but
> > > backwards-compatibility has always been a major theme for those
> > 
> > While backwards compatibility is nice, I would rather see a better
> > framework for the 2.x release.  My personal opinion is that version
> > compatibility should be required between point releases, 
> but all bets
> > are off for major revisions.
> 
> I would tend to agree. 
> 
> Personally, I think a great place to start would be a Struts codebase
> for Java 5. It's not something I can work on myself right now, but if
> I start coding in Java again, I'd definately want to get up to speed
> with everything that Java 5 has to offer.
> 
> A lot of frameworks that are very different from Struts are able to
> read the Struts configuration and allow use of Struts actions and
> such, while also allowing use of the native framework members.
> 
> But any proposals for a new Struts subproject or revolution have to be
> based on an existing codebase. Discussions and debates will never be
> enough. Someone has to show us the code, and more importantly, the
> community behind the code.
> 

Yes I tend to agree that just discussions is not equal to code, but 
one must have "the vision", and for a vision you must eventually 
come up with a design. 

> When a coder is a committer, like Craig or I, we can start whiteboards
> in the Apache repository, mainly to avoid putting the code through the
> Incubator later. But, we still have to go through the same guantlet
> with the Struts PMC that a codebase that originated at SourceForge
> goes through.
> 
> What we want to most in a proposal is an indication that the project
> will go on whether Struts accepts it or not. We want codebases that
> can stand on their own feet, but would prefer to stand with us, if
> they can. If the only way a codebase will get written is if we accept
> it, then the codebase will never be written :)
> 
> Every major codebases we've ever accepted, Validator, Tiles, Nesting,
> EL, Scripting, Flow, and Shale, were all written and attracting
> communities before we considered them for subprojects. And, had we
> passed, each one of these would have gone on to live indepedant lives
> with their own communities..

So what you saying one can take the existing codebase and build 
a next generation derivative. Publish it around, wait for the
community to build up, and then you will get a chance to be
considered among equals.

> 
> HTH. Ted.
> 
====

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: [STRUTS 2X]: Ideas

2005-08-02 Thread Pilgrim, Peter

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
====
> 
> 
> Pilgrim, Peter on 01/08/05 09:30, wrote:
> > Struts 2 should force an Action or ActionForm to be interface or 
> > subclass of an abstract type, hence dependency injection.
> > 

Oops! My wording was wrong.

Struts 2 should [definitely] __NOT__ force an Action or ActionForm 
implement an a particular interface or interfaces, or be a 
concrete subclass of any abstract type. 

Hence dependency injection presupposes the existance of a container
and also a lifecycle manager.

> > If the former is the case, then it follows that calling the action
> > method should be flexible
> > 
> > public void bluegrass(ActionContext ac) { /* ... */}
> > 
> > or
> > 
> > public void bluegrass() { 
>  >   ActionContext ac = typeOfThreadLocal.getFromSomeWhere();
>  >   /* ... */ }
> > 
> > then you need to handle absurdities like so (the general case )
> > 
> > public void bluegrass( A a, B b, ... ActionContext ac, ... 
> Y y, Z z )
> > { /* ... */}
> > 
> 
> Dependency injection lets me swap implementations really 
> easily, so for
> instance in testing for business tier, I can have either real DAOs or 
> Mock DAOs depending on the XML configuration I choose.
> 
> So in the servlet tier, what would be the advantages? In 
> testing again I 
> guess, choosing to inject either the real Factories or Mock Factories 
> (or Delegates or Session Facade, choose your pattern).
> 
> You could put this IoC in the struts-config. It could also inject the 
> form bean, if the plan allows for its seperation from the action. The 
> action would have to be instantiated for each request in that case, 
> rather than having one per container.
> 
And in particular putting this dependency injection and 
assembly information also inside the struts-config would remove 
one more XML file to configure.

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Problems configuring Tiles

2005-08-08 Thread Peter . Zoche
Hi all!

I would like my web-app (using Struts 1.2.7, Tomcat 5.5.9, Windows 2000)
to use Tiles, and so I updated my struts-config.xml with a tiles plugin


  
  
  
  
  


In my WEB-INF folder there is the following tiles-defs.xml:


http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>
  

  
  


(with an empty definition for now)

On deploying my web-app to Tomcat I get the following exception(s):
(see attachment for full stacktrace)

javax.servlet.ServletException: IO Error while parsing
file '/WEB-INF/tiles-defs.xml'. Connection refused: connect

What is going wrong here? There is tiles-config_1_1.dtd in my
WEB-INF folder, too? Is there something I am missing?

Peter


 <> 


13:10:25,396 - TilesPlugin - ERROR [http-80-Processor25] Can't create Tiles 
definition factory for module ''.
13:10:25,406 - ActionServlet - ERROR [http-80-Processor25] Unable to initialize 
Struts ActionServlet due to an unexpected exception or error thrown, so marking 
the servlet as unavailable.  Most likely, this is due to an incorrect or 
missing library dependency.
javax.servlet.ServletException: IO Error while parsing file 
'/WEB-INF/tiles-defs.xml'. Connection refused: connect
at 
org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:233)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:788)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
at 
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
at 
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
at 
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
at 
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:636)
at 
org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:423)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:712)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  

Re: Problems configuring Tiles

2005-08-08 Thread Peter . Zoche
Turning validation off and changing tiles-config.dtd into
tiles-config_1_1.dtd like suggested by Laurie Harper did not
work. So I removed the DOCTYPE declaration and it seems to work.
I wonder why the xml parser tries to connect to
http://jakarta.apache.org/ for my tiles-defs.xml, I always thought
it is only a describing name rather than a real URL to connect to.
I also use the following declaration in my struts-config-xml,
and there have not been any problems.

http://struts.apache.org/dtds/struts-config_1_2.dtd";>

Has anyone a suggestion?

Peter

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



Tiles showing directory listing inside WEB-INF

2005-08-09 Thread Peter . Zoche
Hi all!

I got confused when I experimented with tiles to learn how it works. Here is
what I have done.
I have created a DeafultLayout.jsp:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


  
TilesTest


  
  



  


So there are three regions, which I populate in a tiles definition
like this:


  
  
  


When I use this definition in an jsp like this:



my web-app shows the directory listing of WEB-INF/jsp/layout (besides
the header and footer). So the line



seems to be the problem. Is it ok for my web-app to show directory listings
inside my WEB-INF folder? How can I prevent Tomcat to do so, if i forget to
put a tile into my layout? More basically: Why does Tomcat list my directory
when a tile is put with value=""? Or is it a problem of tiles? There is
another
problem, too. My stylesheets are ignored. If I use navigation.jsp for the 
navigation tile, everything is fine. Why aren't the stylesheets used in case
of value=""? You see, I only scratch the surface of tiles and need some more
in-depth covering of it.

Peter

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



RE: [OT] JSF style-ability (was: Terrific into to JSF)

2005-08-09 Thread Pilgrim, Peter
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]

====

What do you have to do to get on Creator 2 EA?

> 
> On 8/8/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > Craig McClanahan wrote:
> >  > And you were so ***good*** about the Maven thread!  :-) :-) :-)
> > 
> > You can't expect me to turn around all at once can you 
> Craig?!? :) LOL
> > 
> 
> :-)
> 
> > You know, I started making this a reply to that thread 
> because I didn't
> > think it would go any further, and I originally said if it 
> did then I'd
> > start a new thread... but, as I was typing my response I started to
> > realized is probably *would* go a message or two more, so better to
> > start that new thread now :)
====

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: [OT]Terrific intro to JSF

2005-08-10 Thread Pilgrim, Peter
> -Original Message-
> From: C.F. Scheidecker Antunes [mailto:[EMAIL PROTECTED]
====
> 
> Well. It seems that all articles were written already.
> 
> http://www-128.ibm.com/developerworks/views/java/libraryview.jsp?search_by=nonbelievers:
> 
> [EMAIL PROTECTED] wrote:
> 
> >Hi all:
> >
====
> 
I was trying to print out the above documents so I could read
them on the train last night. I cant believe that IBM Developer
does not have a "Printer Friendly" link for its online stuff.
I could be wrong!

> >i know it isn't Friday yet.. ;) but .. in case you have been 
> looking for a 
> >nice and clear introduction to JSF, look no further. Here it is:
> >
> >http://www-128.ibm.com/developerworks/java/library/j-jsf1/
> >
> >I have only just completed the first article - and can't 
> wait to get to 
> >the next three! - but the first article is just *fantastic*.  It's 
> >articles like these which make Java almost too much fun..:)
> >
> >Geeta
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: [OT]Terrific intro to JSF

2005-08-10 Thread Pilgrim, Peter

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
====
> 
> From: "Pilgrim, Peter" <[EMAIL PROTECTED]>
> 
> >> 
> http://www-128.ibm.com/developerworks/views/java/libraryview.jsp?search_by=nonbelievers:
> 
> > I was trying to print out the above documents so I could read
> > them on the train last night. I cant believe that IBM Developer
> > does not have a "Printer Friendly" link for its online stuff.
> > I could be wrong!
> 
> It does... on the right hand side below the orange 
> 'DeveloperWorks' tab 
> there is a box with 'Document Options.'  The first one is 
> 'Print this page'. 
> My copy is at work, but IIRC it printed out nicely-- they did 
> a good job 
> with the stylesheets for screen vs. print.

====

I saw this button / link already. However I dont get good result.
It did not print out correctly because the stylesheet and scaling 
are chomped to the right hand side even scaling down to 82%.

I guess I could try 50% scale and a get myself a nice magnifying glass!

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



  1   2   3   4   5   >