EL Tag Libraries

2004-03-24 Thread Pat Quinn
Hi Guys,

I have an action form with a get method (i.e. getValue(String)) which takes 
a string value, its working fine when i render the data in a text field.

E.g.

c:set var=uniqueKey
c:out value=${CustomerTO.id}/-c:out value=${CustomerTO.orderNo}/
/c:set
html-el:text name=myForm property=value(${uniqueKey})/



Now i want to render the data as a label on screen i've tried using the 
C:out/ tag lib but i cant get it to work

e.g.

c:out value=${myForm.value(${uniqueKey})}/

and c:out value=${myForm.value(uniqueKey)}/

Any ideas how i might do this?

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


RE: EL Tag Libraries

2004-03-24 Thread Pat Quinn
I want to pass uniqueKey as a parameter to the getValue method on my action 
form, i dont want to render the uniqueKey value i want to render the return 
value from the getValue(String) method call


From: Pady Srinivasan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: EL Tag Libraries
Date: Wed, 24 Mar 2004 08:57:41 -0500
Why not use c:out value=${uniqueKey} / instead of
c:out value=${myForm.value(${uniqueKey})} / ???
This works for me:

c:set var=testVar value=Hello  /
c:set var=testVar1 value=World /
c:set var=hello
c:out value=${testVar} /-c:out value=${testVar1} /
/c:set
c:out value=${hello} /


Thanks

-- pady
[EMAIL PROTECTED]
-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:11 AM
To: [EMAIL PROTECTED]
Subject: EL Tag Libraries
Hi Guys,

I have an action form with a get method (i.e. getValue(String)) which takes
a string value, its working fine when i render the data in a text field.
E.g.

c:set var=uniqueKey
c:out value=${CustomerTO.id}/-c:out
value=${CustomerTO.orderNo}/
/c:set
html-el:text name=myForm property=value(${uniqueKey})/



Now i want to render the data as a label on screen i've tried using the
C:out/ tag lib but i cant get it to work
e.g.

c:out value=${myForm.value(${uniqueKey})}/

and c:out value=${myForm.value(uniqueKey)}/

Any ideas how i might do this?

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
__
This email has been scanned by the Heroix e-mail Security System
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


RE: data transfer from Action class to jsp page

2004-02-25 Thread Pat Quinn
You should place it in the request scope if the data is required for the
next view only You should avoid placing such objects in the session as
this will remain in memory until the users HttpSession expires. 

-Original Message-
From: Pradeep, PK [mailto:[EMAIL PROTECTED] 
Sent: 25 February 2004 16:51
To: Struts Users Mailing List
Subject: RE: data transfer from Action class to jsp page

Sending the same question again..


I have this basic question.

Suppose action class calls some business object and fetches some data (say
employee detail). How to transfer this data to jsp page which is reached
through ActionForward?

One way I know is storing the data in session object..is there any
better/different way

-
To unsubscribe, 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]



Preparing Multiple DynaValidatorForm’s with one action

2003-10-06 Thread Pat Quinn
I currently have an action (Action A) which is associated with Action_Form_A 
( i.e. org.apache.struts.validator.DynaValidatorForm) i want to forward to 
another tile definition which requires Action_Form_B. I want to initialise a 
List in Action_Form_B how can i do this as the action i'm currently in only 
knows about ACTION_FORM_A. I only want to intialise actionforms within a 
common action i'll have seperate action to deal with submits.

I've tried casting the inbound Action Form to type DynaValidator and calling 
the relevant set methods but this fails as you'd expect as its referencing 
ACTION_FORM_A only.

Next i tried to create a new instance of DynaValidator  called initialise:

DynaValidatorForm dynaForm2 = new DynaValidatorForm();
dynaForm2.initialize(pMapping);
dynaForm2.set(name, Joe Bloggs;
This too fails with a nullpointer... i could forward to another action which 
prepares the actionform for the next view... is there another way i could do 
this?

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

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


Re: Preparing Multiple DynaValidatorForm?s with one action

2003-10-06 Thread Pat Quinn
Cheers guys I kinda knew this was the response I’d get separate actions it 
is then


From: Adam Hardy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Preparing Multiple DynaValidatorForm?s with one action
Date: Mon, 06 Oct 2003 23:16:21 +0200
Hi Pat,

are you sure you've got the best approach? Trying to shoe-horn two forms 
into one request tells me generally (when it happens to me) that I should 
refactor the design of whatever use-case I'm working on.

If I have a submit to one action mapping that on success must forward to 
another action mapping with a completely different form, I use a re-direct. 
Of course it drops all the data in-between but you're better off in the 
long run.

Adam

On 10/06/2003 06:09 PM Pat Quinn wrote:
I currently have an action (Action A) which is associated with 
Action_Form_A ( i.e. org.apache.struts.validator.DynaValidatorForm) i want 
to forward to another tile definition which requires Action_Form_B. I want 
to initialise a List in Action_Form_B how can i do this as the action i'm 
currently in only knows about ACTION_FORM_A. I only want to intialise 
actionforms within a common action i'll have seperate action to deal with 
submits.

I've tried casting the inbound Action Form to type DynaValidator and 
calling the relevant set methods but this fails as you'd expect as its 
referencing ACTION_FORM_A only.

Next i tried to create a new instance of DynaValidator  called 
initialise:

DynaValidatorForm dynaForm2 = new DynaValidatorForm();
dynaForm2.initialize(pMapping);
dynaForm2.set(name, Joe Bloggs;
This too fails with a nullpointer... i could forward to another action 
which prepares the actionform for the next view... is there another way i 
could do this?

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

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

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


DynaValidatorActionForm Setting Properties

2003-09-29 Thread Pat Quinn
I have an Action to prepare a JSP view which uses a DynaValidatorActionForm. 
When i try to set a Form property i get a NullPointerException my source is 
as follows:

-
Struts-Config.xml
-
form-bean name=MyForm 
type=org.apache.struts.action.DynaValidatorActionForm
  form-property name=myTestTO type=com.mycompany.to.myTestTO/
/form-bean

action path=/viewTest
type=com.mycompany.actions.myTestAction
   scope=request
input=my-tile-view
   name=MyForm
   validate=false
   forward name=success path=success-tile/
/action


--
VALIDATION.xml
--
form-validation
  formset
 form name=MyForm
field property=myTestTO.name
   depends=required,minlength
var
  var-nameminlength/var-name
  var-value10/var-value
/var
/field
 /form
  /formset
/form-validation



--
ACTION SOURCE CODE (i.e. com.mycompany.actions.myTestAction)
--
DynaValidatorActionForm  myForm = new DynaValidatorActionForm();

myForm.set(myTestTO, new myTestTO()); /* THROWS NullPointerException 
Here*/

pRequest.setAttribute(MyForm, myForm );

I've also tried casting the inbound ActionForm to DynaValidatorActionForm 
but i still get the same error when i invoke the set method.



Any Ideas?

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

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


Re: DynaValidatorActionForm Setting Properties

2003-09-29 Thread Pat Quinn
Hi Adam,

Cheers for your efforts turns out it a silly mistake i've made i.e. i 
entered an invalid class name for my form defintion i.e.

form-bean name=MyForm
type=org.apache.struts.action.DynaValidatorActionForm
Should be:

form-bean name=MyForm
type=org.apache.struts.validator.DynaValidatorActionForm
Casting the inbound action form now works fine.

Cheers

Pat


From: Adam Hardy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: DynaValidatorActionForm Setting Properties
Date: Mon, 29 Sep 2003 14:19:20 +0200
Hi Pat,

if you have to instantiate it yourself, you should call the initialize() 
method on the form first so that struts configures it to the struts-config 
settings.

However that probably won't help in this case since your in-bound form 
doesn't work either. I doubt it would help, but you could try naming your 
class with an initial capitalized letter. Secondly, does the exception from 
the inbound form have a message?

Regards
Adam
On 09/29/2003 01:35 PM Pat Quinn wrote:
I have an Action to prepare a JSP view which uses a 
DynaValidatorActionForm. When i try to set a Form property i get a 
NullPointerException my source is as follows:

-
Struts-Config.xml
-
form-bean name=MyForm 
type=org.apache.struts.action.DynaValidatorActionForm
  form-property name=myTestTO type=com.mycompany.to.myTestTO/
/form-bean

action path=/viewTest
type=com.mycompany.actions.myTestAction
   scope=request
input=my-tile-view
   name=MyForm
   validate=false
   forward name=success path=success-tile/
/action


--
VALIDATION.xml
--
form-validation
  formset
 form name=MyForm
field property=myTestTO.name
   depends=required,minlength
var
  var-nameminlength/var-name
  var-value10/var-value
/var
/field
 /form
  /formset
/form-validation



--
ACTION SOURCE CODE (i.e. com.mycompany.actions.myTestAction)
--
DynaValidatorActionForm  myForm = new DynaValidatorActionForm();

myForm.set(myTestTO, new myTestTO()); /* THROWS NullPointerException 
Here*/

pRequest.setAttribute(MyForm, myForm );

I've also tried casting the inbound ActionForm to DynaValidatorActionForm 
but i still get the same error when i invoke the set method.



Any Ideas?

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

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

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Jasper Pre-Compiling JSPs with the same name

2003-09-26 Thread Pat Quinn
Hi,

I have JSPs in seperate folders with the same name and when i try to 
precompile them (Using ANT) i get a duplicate class name error... as you'd 
expect when i pass in one class package name e.g.

jasper package=com.mycompany.servlets
uriroot=jsps
webXmlFragment=jsp-fragments.xml
outputDir=src/jsp/
Any ideas how i might resolve this issue?

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

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


Re: Jasper Pre-Compiling JSPs with the same name

2003-09-26 Thread Pat Quinn
I already have my jsps in folders like this... but thats doesn't resolve the 
problem of duplicate class name as jasper adds the same package name for all 
jsps regradless of there location.


From: Robert Leland [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Jasper Pre-Compiling JSPs with the same name
Date: Fri, 26 Sep 2003 12:08:35 -0400
Pat Quinn wrote:

Hi,

I have JSPs in seperate folders with the same name and when i try to 
precompile them (Using ANT) i get a duplicate class name error... as you'd 
expect when i pass in one class package name e.g.

I organize my JSP folders the same way I organize the java folders:
src/java/com/mycompany/servlets
web/com/mycompany/servlets
-Rob

jasper package=com.mycompany.servlets
uriroot=jsps
webXmlFragment=jsp-fragments.xml
outputDir=src/jsp/
Any ideas how i might resolve this issue?

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

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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


Re: Template Method Design

2003-09-18 Thread Pat Quinn
Take a look at Chapter 10 - Exception Handling in Programming Jakarta Struts 
by chuck cavaness.. i think you'll find this very helpful.

I've implement this with Action but ill soon need to do the same for 
Dispatch Action too... has anyone done likewise for Dispatch and other such 
actions?



From: Vijay K Hegde [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Template Method Design
Date: Thu, 18 Sep 2003 15:01:59 +0530
Hi,

  I have a requirement. Anybody has created an abstract action class that 
extends Action. It makes the perform method as final. And creates an 
abstract method satPerform that has to implemented by the classes extending 
thus providing sort of a base class.

The intention behind is to take care of exception handling in the abstract 
class and rest in the child classes.

Action   perform()
Abstract Class extends Action final perform(), abstract satPerform()
SatAction extends Abstract - satPerform().
The pattern is Template Method Design.

If anybody has used such approach, please share the details.

If somebody could shed some light in this topic i would be grateful.

Vijay K. Hegde
Software Engineer
Infosys Technologies Limited, Hyderabad
* (040) 2300 5222 extn 23239


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


Global Forwards Request Attributes

2003-09-16 Thread Pat Quinn
I have a struts action which sets a String value as an attribute in the 
request scope i then redirect to a global forward. But the value never 
appears in my jsp i'm using the c:out/ tag lib.

Any ideas what i could be doing wrong here or do global forwards support 
request attribute population??

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

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


html:link/ URL Parameters

2003-09-11 Thread Pat Quinn
Hi Guys,

I trying to use the html:link/ tag library with dynamic url parameters e.g 
(which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out 
value=${order.ponum}/View Order/html:link



How should i do this with out using the standard HTML Href tag?

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

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


Re: html:link/ URL Parameters

2003-09-11 Thread Pat Quinn
Cheers guys i'll have a look into JSTL URL.


From: Vic Cekvenic [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link/  URL Parameters
Date: Thu, 11 Sep 2003 08:39:14 -0400
Consider using JSTL URL for link, it is much more sophisticated.
hth,
.V
Pat Quinn wrote:
Hi Guys,

I trying to use the html:link/ tag library with dynamic url parameters 
e.g (which doesn't work).

html:link action=/viewOrder.do?orderNo=c:out 
value=${order.ponum}/View Order/html:link



How should i do this with out using the standard HTML Href tag?

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Setting a Welcome File + Tiles + PreCompiled JSP's

2003-08-21 Thread Pat Quinn
I'm using tiles and i know i can't set the welcomefile/ attribute in 
web.xml to a tile definition or a struts action url. I'm also precompiling 
all my JSP's so i can't assign it to a JSP... i was thinking about assign it 
to a html file and then onLoad i could redirect to my logon action url... to 
do this i'd have to hard code the ipaddress and port number into my url so i 
don't really want to do that. Any ideas how i might do this?

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


RE: [OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Pat Quinn
where do you keep the initial resultset? Or do you execute the query each 
time the user requests to page?

What would be nice if i could execute an sql statement which would give me a 
sub set of the results as contolled by a start and end position i specify 
e.g.

Select code, desc from products where ROW_NUM = 1 and ROW_NUM = 10


From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: RE: [OT] Rendering Large ResultSet - Value List Handler Design 
Pattern
Date: Tue, 12 Aug 2003 12:52:13 -0400

I send elements of the ResultSet to a String[] and pass it to the
presentation tier.
Mark

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 12:43 PM
You can't store a ResultSet in an HttpSession because it's not 
Serializable.
If you can't fit the result into memory, I would create an Iterator
implementation that loops over a ResultSet and pass that to the 
presentation
tier (Servlet or JSP) for rendering.  That way you isolate the data
retrieval details (ie. ResultSet) from the next layer.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


[OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Pat Quinn
I have a requirement to cater for a large number of results returned to the 
presentation tier. I've taken a quick look into the Value List Handler 
Design pattern 
(http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html).

I do agree it offers some advantages but in my opinion it doesn't satisfy 
its goal. From the sample code it appears that the SQL Resultset is 
completely loaded and represented as a list of Transfer Objects. When 
dealing with a large result this will have a negative impact on performance 
as it must create a TO for each record.

I could make some changes to increase performance i.e.

Store the ResulSet as a member of the ValueListHandler Object and only load 
the data from the resultset as and when i need it. If i store the 
ValueListHandler in HttpSession i got to ensure i close all connections 
before disposing of it, other wise i could max out on cursors.

Anyone got any ideas/suggestion as to how best to implement such 
functionality?

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

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


Re: [OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Pat Quinn
 hows my SQL not great me thinks its got to be something to do with 
rownum in my case as its an oracle database.




From: Erik Price [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Rendering Large ResultSet - Value List Handler Design 
Pattern
Date: Tue, 12 Aug 2003 13:06:59 -0400



Pat Quinn wrote:

where do you keep the initial resultset? Or do you execute the query each 
time the user requests to page?

What would be nice if i could execute an sql statement which would give me 
a sub set of the results as contolled by a start and end position i 
specify e.g.

Select code, desc from products where ROW_NUM = 1 and ROW_NUM = 10
Some databases let you specify a LIMIT clause, which limits the results to 
whatever you specify, and an OFFSET clause, which starts the results at the 
indicated offset.  Using these you can achieve an elegant subset of results 
based on start and end position (and it is IMHO the best way to implement 
the kind of feature you're describing).

Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


RE: Dynamic Tree Menus --- HELP!!!

2003-08-01 Thread Pat Quinn
Thanks for you effort in resolving this issue its working perfectly now.

It might be a good idea to include the changes i've made to the 
DisplayMenuTag class i.e.

in the doStartTag() method after we fetch the menu from the repository we 
could add the following:

/* If no menu was found in the repository*/
   if ( menu == null ) {
   /*check Request for menu component*/
   menu = (MenuComponent) 
this.pageContext.getRequest().getAttribute(this.name);

   /*check session for menu component*/
   if ( menu == null ) {
   menu = (MenuComponent) 
this.pageContext.getSession().getAttribute(this.name);
   }
   }

Anyways thanks again its really appreciated.

Pat



From: Raible, Matt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 13:21:26 -0600
Thanks Pat - I confirmed that this is a bug, and fixed it in CVS.  You can
see an example at the following URL:
http://raibledesigns.com/struts-menu/test1.jsp

Download the updated JAR at:

http://raibledesigns.com/downloads/struts-menu.jar

or build struts-menu from CVS.

HTH,

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!
I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.
---
Menu-Config.xml
---
?xml version=1.0 encoding=UTF-8 ?
MenuConfig
  Displayers
Displayer   name=ListMenu
type=com.fgm.web.menu.displayer.ListMenuDisplayer/
  /Displayers
  Menus
Menu  name=test1  title=test1  description=test width=200
   Item   name=test2   title=test2 width=200
   Item   name=test3   title=test3 width=200
Item   name=test4   title=test4 location=index.jsp
width=200/
/Item
   /Item
/Menu
  /Menus

/MenuConfig

-
JSP Code
-
%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%
menu:useMenuDisplayer name=ListMenu
menu:displayMenu name=test1/
/menu:useMenuDisplayer
From: Raible, Matt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 09:22:04 -0600

I'm willing to help if you send me the code.  Which Displayer are you
using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!


Is anyone out there working with dynamic HTML trees at the moment (i.e.
displaying data loaded from a data base) as i'm pulling my hair out here 
at
the moment.

I downloaded the source for Struts Menu and implemented a change to allow
me

to place a java bean with my tree menu details into HttpSession rather 
than
loading it from the menu xml file. Every thing works fine until i tried 
to
add triple nested node to the tree and it totally screws up presentation
i.e. The node image is repeatedly displayed. Its not due to my changes as 
i
tested it in the latest stable version and it fails also to render with 
the
same results.

I've also taken a look into using http://www.kobrix.com/ offering but 
their
configuration requirements to integrate with struts seems abit too much 
for
my liking.




Any suggestions, or should i just go find the JavaScript i require
elsewhere

and wrap it with my own custom tag library



 From: Pat Quinn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Dynamic Html Tree Menus - Java Beans.
 Date: Thu, 31 Jul 2003 10:22:51 +0100
 
 I'm looking for a tag library to aid the rendering of a Tree Menu using
 session/request stored objects.
 I want to included the menu data as a Java Bean in HttpSession for each
 user and then use tag libs in my JSP's. I've looked into the StrutsMenu
 Offering for Dynamic Menus but it loads menu data from an XML file.
 
 Any ideas or am i better off to develop my own custom tag lib?
 
 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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

Dynamic Html Tree Menus - Java Beans.

2003-07-31 Thread Pat Quinn
I'm looking for a tag library to aid the rendering of a Tree Menu using 
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each user 
and then use tag libs in my JSP's. I've looked into the StrutsMenu Offering 
for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

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

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


Re: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Pat Quinn
Is anyone out there working with dynamic HTML trees at the moment (i.e. 
displaying data loaded from a data base) as i'm pulling my hair out here at 
the moment.

I downloaded the source for Struts Menu and implemented a change to allow me 
to place a java bean with my tree menu details into HttpSession rather than 
loading it from the menu xml file. Every thing works fine until i tried to 
add triple nested node to the tree and it totally screws up presentation 
i.e. The node image is repeatedly displayed. Its not due to my changes as i 
tested it in the latest stable version and it fails also to render with the 
same results.

I've also taken a look into using http://www.kobrix.com/ offering but their 
configuration requirements to integrate with struts seems abit too much for 
my liking.



Any suggestions, or should i just go find the JavaScript i require elsewhere 
and wrap it with my own custom tag library



From: Pat Quinn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Dynamic Html Tree Menus - Java Beans.
Date: Thu, 31 Jul 2003 10:22:51 +0100
I'm looking for a tag library to aid the rendering of a Tree Menu using 
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each 
user and then use tag libs in my JSP's. I've looked into the StrutsMenu 
Offering for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Pat Quinn
I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third 
node will appear with a series of plus images.

---
Menu-Config.xml
---
?xml version=1.0 encoding=UTF-8 ?
MenuConfig
 Displayers
   Displayer   name=ListMenu 
type=com.fgm.web.menu.displayer.ListMenuDisplayer/
 /Displayers
 Menus

   Menu  name=test1  title=test1  description=test width=200
  Item   name=test2   title=test2 width=200
  Item   name=test3   title=test3 width=200
   Item   name=test4   title=test4 location=index.jsp 
width=200/
   /Item
  /Item
   /Menu

 /Menus

/MenuConfig

-
JSP Code
-
%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%
menu:useMenuDisplayer name=ListMenu
   menu:displayMenu name=test1/
/menu:useMenuDisplayer

From: Raible, Matt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 09:22:04 -0600
I'm willing to help if you send me the code.  Which Displayer are you 
using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!
Is anyone out there working with dynamic HTML trees at the moment (i.e.
displaying data loaded from a data base) as i'm pulling my hair out here at
the moment.
I downloaded the source for Struts Menu and implemented a change to allow 
me

to place a java bean with my tree menu details into HttpSession rather than
loading it from the menu xml file. Every thing works fine until i tried to
add triple nested node to the tree and it totally screws up presentation
i.e. The node image is repeatedly displayed. Its not due to my changes as i
tested it in the latest stable version and it fails also to render with the
same results.
I've also taken a look into using http://www.kobrix.com/ offering but their
configuration requirements to integrate with struts seems abit too much for
my liking.


Any suggestions, or should i just go find the JavaScript i require 
elsewhere

and wrap it with my own custom tag library



From: Pat Quinn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Dynamic Html Tree Menus - Java Beans.
Date: Thu, 31 Jul 2003 10:22:51 +0100

I'm looking for a tag library to aid the rendering of a Tree Menu using
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each
user and then use tag libs in my JSP's. I've looked into the StrutsMenu
Offering for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

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


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

_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Pat Quinn
I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third 
node will appear with a series of plus images.

---
Menu-Config.xml
---
?xml version=1.0 encoding=UTF-8 ?
MenuConfig
 Displayers
   Displayer   name=ListMenu 
type=com.fgm.web.menu.displayer.ListMenuDisplayer/
 /Displayers
 Menus

   Menu  name=test1  title=test1  description=test width=200
  Item   name=test2   title=test2 width=200
  Item   name=test3   title=test3 width=200
   Item   name=test4   title=test4 location=index.jsp 
width=200/
   /Item
  /Item
   /Menu

 /Menus

/MenuConfig

-
JSP Code
-
%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%
menu:useMenuDisplayer name=ListMenu
   menu:displayMenu name=test1/
/menu:useMenuDisplayer

From: Raible, Matt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 09:22:04 -0600
I'm willing to help if you send me the code.  Which Displayer are you 
using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!
Is anyone out there working with dynamic HTML trees at the moment (i.e.
displaying data loaded from a data base) as i'm pulling my hair out here at
the moment.
I downloaded the source for Struts Menu and implemented a change to allow 
me

to place a java bean with my tree menu details into HttpSession rather than
loading it from the menu xml file. Every thing works fine until i tried to
add triple nested node to the tree and it totally screws up presentation
i.e. The node image is repeatedly displayed. Its not due to my changes as i
tested it in the latest stable version and it fails also to render with the
same results.
I've also taken a look into using http://www.kobrix.com/ offering but their
configuration requirements to integrate with struts seems abit too much for
my liking.


Any suggestions, or should i just go find the JavaScript i require 
elsewhere

and wrap it with my own custom tag library



From: Pat Quinn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Dynamic Html Tree Menus - Java Beans.
Date: Thu, 31 Jul 2003 10:22:51 +0100

I'm looking for a tag library to aid the rendering of a Tree Menu using
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each
user and then use tag libs in my JSP's. I've looked into the StrutsMenu
Offering for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

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


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

_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


[OT] HTML Manipulation of Dynamic Tree Menus

2003-07-23 Thread Pat Quinn
I'm looking for a good example of HTML manipulation of dynamic tree menus 
i.e. adding nodes dynamically, reshuffling of nodes, deletion of nodes etc.

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

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


Struts Expandable Trees

2003-07-22 Thread Pat Quinn
I'm currently developing a prototype using struts tiles for my layout 
definition. I want to have a dynamic html tree (i.e. 
http://raibledesigns.com/struts-menu/dhtmlExpandable.jsp) on the left hand 
side, this menu will control the body content.

I'm trying to avoid using frames as i understand tiles to be a suitable 
replacement for frames in some cases. My problem however is when i navigate 
down the tree and select a node (i.e. request a new view) my tree resort 
back to it intial state i.e. root node visible only.

I could use a frameset and refresh only the main content area but this means 
using javascript and possibly not using tiles... am i correct in assuming 
this or is there an alternative solution???

Any comments or suggestions appreciated.

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

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


Struts Expandable Trees

2003-07-22 Thread Pat Quinn
I'm currently developing a prototype using struts tiles for my layout 
definition. I want to have a dynamic html tree (i.e. 
http://raibledesigns.com/struts-menu/dhtmlExpandable.jsp) on the left hand 
side, this menu will control the body content.

I'm trying to avoid using frames and javascript as i really like the clean 
development process i get from using tiles. My problem however is when i 
navigate down the tree and select a node (i.e. request a new view) my tree 
resort back to it initial state i.e. root node visible only.

I could use a frameset and refresh only the main content area but this means 
using javascript and possibly not using tiles... am i correct in assuming 
this or is there an alternative solution???

Any comments or suggestions appreciated.

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


Re: [OT] Precompiling JSP with JSTL tag Libs

2003-07-21 Thread Pat Quinn
Cheers Craig you were spot on.


From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Precompiling JSP with JSTL tag Libs
Date: Fri, 18 Jul 2003 09:14:45 -0700 (PDT)


On Fri, 18 Jul 2003, Pat Quinn wrote:

 Date: Fri, 18 Jul 2003 16:41:33 +0100
 From: Pat Quinn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [OT] Precompiling JSP with JSTL tag Libs

 Sorry guys this is not a struts question but i'm hoping someone on here 
has
 had this problem before ive got an ANT task to precompile my jsp's
 everything worked fine until i decided to upgrade to use JSTL tag libs 
not i
 get the following error,

 [echo] Precompiling JSPS
 2003-07-18 04:27:26 - Internal Error: File /WEB-INF/web.xml not found
 2003-07-18 04:27:29 - ERROR-the file '\jsp\myjsp.jsp'
 generated the following general exception: 
org.apache.jasper.JasperException

 : XML parsing error on file /WEB-INF/tld/c.tld: (line 307, col 39):
 The string -- is not permitted within comments.
 [jasper] Error in class org.apache.jasper.JspC

 MyJsp.jsp is the only jsp which is currently using the c.tld.


 My ANT Task is as follows:


 target name=jsp  depends=webinf
 taskdef name=jasper
  classname=org.apache.jasper.JspC
  classpath=${class.path}/

 echo message=Precompiling JSPS/

 jasper package=com.my.web.servlets
 uriroot=${web.basedir}
 webXmlFragment=${jsp.web.fragment.file}
 outputDir=${web.src.dir} /
 /target


 Any Ideas as i'm going crazy now I've tried upgrading to xerces 
2.4.0
 but i still get the same error.

I suspect that it really is related to your XML parser ... this looks
suspiciously like a bug in earlier versions of Xerces.  It turned out that
one of our Struts DTDs had a comment line longer than 80 characters, but
caused Xerces to output a totally bogus error just like this, pointing at
a place totally unrelated to where the problem really was.
Note that, if you're using JDK 1.4, simply putting Xerces 2.4 into your
classpath does *not* replace the use of the built-in parser.  You have to
put it in the endorsed standards directory ($JAVA_HOME/jre/endorsed I
*think* -- it's in the JDK docs), or use a system property to declare the
directory containing this JAR to be your endorsed directory.
To use an updated parser in Tomcat 4.1 or later, put it in
$CATALINA_HOME/common/endorsed.
Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


[OT] Precompiling JSP with JSTL tag Libs

2003-07-18 Thread Pat Quinn
Sorry guys this is not a struts question but i'm hoping someone on here has 
had this problem before ive got an ANT task to precompile my jsp's 
everything worked fine until i decided to upgrade to use JSTL tag libs not i 
get the following error,

[echo] Precompiling JSPS
2003-07-18 04:27:26 - Internal Error: File /WEB-INF/web.xml not found
2003-07-18 04:27:29 - ERROR-the file '\jsp\myjsp.jsp'
generated the following general exception: org.apache.jasper.JasperException
: XML parsing error on file /WEB-INF/tld/c.tld: (line 307, col 39):
The string -- is not permitted within comments.
[jasper] Error in class org.apache.jasper.JspC
MyJsp.jsp is the only jsp which is currently using the c.tld.

My ANT Task is as follows:

   target name=jsp  depends=webinf
   taskdef name=jasper
classname=org.apache.jasper.JspC
classpath=${class.path}/
   echo message=Precompiling JSPS/

   jasper package=com.my.web.servlets
   uriroot=${web.basedir}
   webXmlFragment=${jsp.web.fragment.file}
   outputDir=${web.src.dir} /
   /target
Any Ideas as i'm going crazy now I've tried upgrading to xerces 2.4.0 
but i still get the same error.

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

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


[Menus Trees in Struts]

2003-07-16 Thread Pat Quinn
Hi Guys,

I'm sorry if this question has been asked hundreds of times before but as 
things are changing all the time i wondering if anyone has come across a 
good menu/tree tab library that i could use with java beans  CSS to aid the 
rendering of the menu items?

Its doesn't necessary have to be open source i'm willing to pay a small 
license fee as i really don't enjoy working with javascript...

I have looked at http://sourceforge.net/projects/struts-menu/ just wondering 
if there are any other alternatives out there that would be quick to setup.

Regards

Pat

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

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


Extending RequestProcessor with Tiles

2003-07-15 Thread Pat Quinn
I have extended the org.apache.struts.action.RequestProcessor (i.e. 
processPreprocess() method) then i continued to implement tiles i.e. 
defining the plugin in my struts-config.xml.

Now on startup i get the following error:

TilesPlugin : Specified RequestProcessor not compatible with 
TilesRequestProcessor; - nested throwable: (javax.servlet.ServletException: 
TilesPlugin : Specified RequestProcessor not compatible with 
TilesRequestProcessor)
	at org.jboss.jetty.Jetty.deploy(Jetty.java:436)
	at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)

I've also upgraded to struts 1.1 and still get the same error

any ideas???

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


[OT]Struts ISP Hosting

2003-06-23 Thread Pat Quinn
Hey Guys,

I'm about to embark on my first every attempt at deploying a struts website. 
I've just signed up http://www.cqhost.com as my ISP. They currently deploy 
on resin 2.1.4 and JDK 1.3 but i've developed using Tomcat 4.0.3 and JDK 1.4 
and Struts 1.1RC1.

My account is not active at the moment so i wondering if my WAR file i 
deployed to Tomcat will deploy successfully on resin? I'm thinking it should 
be fine as long as i'm not using any updates or changes to the JDK 1.4.

Also if anyone has any other tips with regards web deployment i'd love to 
hear them.

Regards,

Pat

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

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


[OT] - Lucene Intergration with Struts/Struts Jobs

2003-06-12 Thread Pat Quinn
Hey guys, I know its not really a struts question but is anyone out there 
using Jakarta Lucene with struts. I've started looking into it to enable 
full text searching of product catalogues rather than screwing around with 
SQL Like statements.

Any Comments??

Anyone know where i might find some Struts work Contract/Permanent... theres 
not much of a demand here in Ireland for struts skills at the moment, just 
been laid off so its time to getting looking... any suggestions? I guess it 
all happening in the USA if its happening anywhere what's the chances of 
getting company visa sponsorship in the USA theses days?

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

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


RE: [OT] - Lucene Intergration with Struts/Struts Jobs

2003-06-12 Thread Pat Quinn
Cool!!

I just got a basic version up and running i.e. indexing my product catalogue 
from the database. I guess this is one good thing about getting laid off 
. more thing to check out all that cool stuff you've never had time to 
look at!!



From: Brandon Goodin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] - Lucene Intergration with Struts/Struts Jobs
Date: Thu, 12 Jun 2003 18:42:32 -0600
It wasn't with Struts. But, Patagonia.com uses it for product searches. I
worked on that. It was great!
Brandon Goodin

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 6:11 PM
To: [EMAIL PROTECTED]
Subject: [OT] - Lucene Intergration with Struts/Struts Jobs
Hey guys, I know its not really a struts question but is anyone out there
using Jakarta Lucene with struts. I've started looking into it to enable
full text searching of product catalogues rather than screwing around with
SQL Like statements.
Any Comments??

Anyone know where i might find some Struts work Contract/Permanent... 
theres
not much of a demand here in Ireland for struts skills at the moment, just
been laid off so its time to getting looking... any suggestions? I guess it
all happening in the USA if its happening anywhere what's the chances 
of
getting company visa sponsorship in the USA theses days?

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


[Tiles Beginner Question] Href Tile Definitions

2003-06-08 Thread Pat Quinn
I've successfully got tiles up and running... I do understand how i can use 
a tile definition as a struts forward for my actions but i'm looking to 
redirect to a tile definition using a href link. E.g.

I have the following tile definition:

definition name=my.home extends=default 
put name=title value=MY PAGE TITLE HERE/
put name=body-content value=home-body.jsp/
/definition
I have tried the following but it doesn't work (i.e. passing the tile id as 
a parameter to the ForwardAction):

action path=/home
parameter=my.home
scope=request
   type=org.apache.struts.actions.ForwardAction
validate=false
/action
I guess what i'm really asking is there a predefined Action which will take 
my tile Id and forward to this view

Its not that i'm lazy as i could write one if i need too but this would mean 
that i have to create a global forward for any tiles i want to access using 
a href and then pass the global id to a temporary action in order to view my 
definition which sounds like a very round about way to achieve this.

Any ideas guys??

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


[log4j]

2003-04-01 Thread Pat Quinn
Has anyone tried using log4j-1.2.7.jar with Struts





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

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


Catalogue Paging storing selected items

2003-03-25 Thread Pat Quinn
Hi Guys,

I have a paging catalogue of items which all works fine but i'm 
wondering how do i store selected items across multiple pages??

As i move to another page should i store the select item keys in my session 
before displaying the next page???

Any ideas??





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

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


LookupDispatchAction + Paging with form submit

2003-03-25 Thread Pat Quinn
I have a LookupDispatchAction as follows:

protected Map getKeyMethodMap() {
   Map map = new HashMap();
   map.put(label.catalogue.find, doFind);
   map.put(label.catalogue.addtoCart, doAddToCart);
   map.put(label.paging, doPaging);
   return map;
}
I display my paging details using a Href's for eg.
a 
href=/myWebApp/myLookupDispatchAction.do?action=pagingpager.offset=82/a

This all worked fine for me... but i then need to change my href to submit 
the form as i page to the next page (I want to pick up client changes as 
they page...
redirecting to the next view doesn't work as you'd expect)
.
So i changed my paging href's to the following:

a href=# onClick=dopaging(8)2/a

I have the following javascript method defined in the same jsp file:

function dopaging(offset) {
document.forms[0].submit.value = 
/myLookupDispatchAction.do?action=pagingpager.offset= + offset;
document.forms[0].submit();
	}

I then get the following error:

ERROR BaseAction::execute unexpected exception
javax.servlet.ServletException: Request[/myLookupDispatchAction] does not 
contain handler parameter named
action
   at 
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:200)



Any ideas guys... is there a better way to do this???







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

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


[Design] User Customisable Views

2003-03-24 Thread Pat Quinn
Hi Guys,

I have a requirement as follows:

I want each user within my web app to be able to customise their views for 
individual screens independently, I want users to be able to customise 
attributes such as:

·   Turn on/off certain columns when displaying tabular data.
·   Customise Header colour, data row colours, onMouseOver colours
·   Text Alignment with cells, Font etc…
I’m thinking I need to persist the above attributes for each user i.e. using 
some Tables in my database. My application will have a large number of users 
i.e. (600+ but only 200 concurrent users) so I’m little concerned at this 
approach.

Has anyone out there tried something similar to this before with Struts and 
if so should you provide me a few pointers i.e.

How did you persist user view details… how did you plug it in with Struts…. 
I want to avoid adding logic to my view layer to control the displaying of 
the above attributes.

Any Ideas gurus… by the way I’m not looking for a solution just a few 
pointers.

Cheers

Pat





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

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


RE: [Design] User Customisable Views

2003-03-24 Thread Pat Quinn
Cheers for prompt reply Andrew, sorry about sendind my reply direct...



From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [Design] User Customisable Views  Date: Mon, 24 Mar 2003 
17:40:09 +0800

IMHO you would probably want to create bean(s) that contain the relevant
preferences. Ie:
getFavouriteMouseOverColour()
getPreferredAlignment()
isShowColumnX()
In your business tier of course these get persisted to / retrieved from the
database (a few hundred rows isnt going to hurt much (I think)).
If these prefs dont get changed on the fly by other users (ie: only that
user changes them usually) then the best place to retrieve is when the user
does a login and you can cache the bean(s) for that user in their session.
I personally don't like the idea of loading user preferences ever time they 
log on so i was thinking about caching their pref details e.g. a singleton 
object to cache all user prefs then having a thread to remove prefs which 
have not been accessed with a set time frame.



In your JSP (or velocity template or whatever you use for rendering) you 
can
access the getters to provide you the appropriate values you need, and of
course make use of such things as the equals / notEquals tags etc... (this
isnt 'logic' its just hiding/showing stuff depending on whats set in your
prefs...)
I was trying to avoid this... it adds more complexity to the JSP making 
mantience and UI updates a nightmare, i want to keep my jsp's
as simple as possible as i don't want to be the only who can make UI 
updates... after all i'm a java developer not a web designer.









If attributes of the prefs beans need to be passed as attributes to jsp 
tags
Id suggest you look into making the jump to JSTL (or struts EL) if you
havent done so as the expression language will save you a lot of hassle
writing the JSP code...

Havent had to do user prefs yet in my app so cant tell you from experience
how well this will work, but I cant think of a simpler way! (Though I
suppose for a lot of the simpler prefs, such as colours,  you could handle
it by generating on the fly (and caching) a css style sheet customised for
that particular user.)
-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Monday, 24 March 2003 17:21
To: [EMAIL PROTECTED]
Subject: [Design] User Customisable Views
Hi Guys,

I have a requirement as follows:

I want each user within my web app to be able to customise their views for
individual screens independently, I want users to be able to customise
attributes such as:
·   Turn on/off certain columns when displaying tabular data.
·   Customise Header colour, data row colours, onMouseOver colours
·   Text Alignment with cells, Font etc…
I’m thinking I need to persist the above attributes for each user i.e. 
using
some Tables in my database. My application will have a large number of 
users
i.e. (600+ but only 200 concurrent users) so I’m little concerned at this
approach.

Has anyone out there tried something similar to this before with Struts and
if so should you provide me a few pointers i.e.
How did you persist user view details… how did you plug it in with Struts….
I want to avoid adding logic to my view layer to control the displaying of
the above attributes.
Any Ideas gurus… by the way I’m not looking for a solution just a few
pointers.
Cheers

Pat





_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Request Attributes + Iframe

2003-03-24 Thread Pat Quinn
Hi Guys,

I've got an action which pops a java bean into the request... the action 
redirects to a jsp which in turn contains an Iframe...

How do get a handle on the java bean from within the jsp which is the src 
for my iframe i don't want to send all the parameters in
the url to the iFrame source jsp... is there another way i can do this??





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

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


[OT] Dynamic UI configuration

2003-03-18 Thread Pat Quinn
Hi Guys,

I've got a java bean stored in the application context. This java bean 
stores UI color details for the entire website. I've tried doing something 
as follows in my jsp but it doesn't work:

table width=100% border=0 bgColor='bean:write name=appConfigBean 
scope=application property=screenColor/'

Any ideas how i should go about this???





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

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


RE: [OT] Dynamic UI configuration

2003-03-18 Thread Pat Quinn
Sorry about the delay in getting back to this but i was away from the 
office. I figured it out... i'm using a struts plug in with dreamweaver mx 
and when i opened my jsp up in notepad i found it was inserting loads of 
absolute rubbish around my bean tags.

Cheers for your help guys.











From: Brandon Goodin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Dynamic UI configuration Date: Tue, 18 Mar 2003 09:24:58 
-0700

ake sure you have imported your taglib:-D.

Brandon Goodin

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 7:52 AM
To: Struts Users Mailing List
Subject: RE: [OT] Dynamic UI configuration
How will that help? It should be just fine in application scope. Pat, what
does
the rendered HTML look like for the table tag? It should end up something
like:
table width=100% border=0 bgColor='#F0'

or:

table width=100% border=0 bgColor='azure'

Quoting du Plessis, Corneil  C [EMAIL PROTECTED]:

 Place the bean in the session as well.

 -Original Message-
 From: Pat Quinn [mailto:[EMAIL PROTECTED]
 Sent: 18 March, 2003 16:22
 To: [EMAIL PROTECTED]
 Subject: [OT] Dynamic UI configuration


 Hi Guys,

 I've got a java bean stored in the application context. This java bean
 stores UI color details for the entire website. I've tried doing 
something
 as follows in my jsp but it doesn't work:


 table width=100% border=0 bgColor='bean:write name=appConfigBean
 scope=application property=screenColor/'


 Any ideas how i should go about this???





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


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

 __

 Disclaimer and confidentiality note


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

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

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

 __

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


--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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

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


logic:iterate/ 2D String Array without a Form Bean

2003-03-14 Thread Pat Quinn
Hi Guys,

Sorry to ask such a basic question but i've searched the archive and failed 
to find a suitable answer to my question so heres my problem:

I'm having some trouble getting logic:iterate/ to work with a 2D String 
array when using it without a form bean. Heres what i'm trying to do:

I have an action which inserts a two dimensional String Array (i.e. 
tabledata) in to the request.



In my JSP i do the following:

logic:iterate id=datarow name=tabledata indexId=counter
tr
tdbean:write name=%=datarow[counter][0]%//td
tdbean:write name=%=datarow[counter][1]%//td
   /tr
/logic:iterate
Any ideas???

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

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


Re: logic:iterate/ 2D String Array without a Form Bean

2003-03-14 Thread Pat Quinn
Sorry Guys,

Please ignore this email i used nested logic tags to do what i wanted to do






From: Pat Quinn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: logic:iterate/  2D String Array without a Form Bean
Date: Fri, 14 Mar 2003 14:06:36 +
Hi Guys,

Sorry to ask such a basic question but i've searched the archive and failed 
to find a suitable answer to my question so heres my problem:

I'm having some trouble getting logic:iterate/ to work with a 2D String 
array when using it without a form bean. Heres what i'm trying to do:

I have an action which inserts a two dimensional String Array (i.e. 
tabledata) in to the request.



In my JSP i do the following:

logic:iterate id=datarow name=tabledata indexId=counter
tr
tdbean:write name=%=datarow[counter][0]%//td
tdbean:write name=%=datarow[counter][1]%//td
   /tr
/logic:iterate
Any ideas???

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

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


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

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


Re: Data driven struts application

2003-03-14 Thread Pat Quinn
I spent some time thinking over this very topic. I finally went with the 
following approach:

* I used JDBC (NO Entity Beans got bitten bably there in the past) to query 
the data base and then created value objects which i then inserted into Form 
beans.

* For read only data access i used an optimised SQL statement (plse see 
below) which returns only enough data to render the current screen to the 
client.

As the user pages through the results i use the paging start index to 
control the SQL select statement so that i only ever fetch enough data for 
the next screen.

So if the user pages from page 1 to 20, and i display 10 records per page i 
don't need to process from record 1 to 200 to get the data i need, nor do i 
need to keep my connection open. I always get back my data in blocks of 10 
records.

select [$ColumnNames], counter from ( select [$ColumnNames], rownum as 
counter from (select [$ColumnNames] from my_table where [$WhereClause])) 
where counter between [Start Index] and [End Index]

The SQL could be optimised a little more I’m not an SQL  guru!!!

I could also implement a caching mechanism to increase performance a little 
more.

Any ways thats my two cents







From: Robert McIntosh [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Data driven struts application
Date: Fri, 14 Mar 2003 09:38:50 -0600
Using a ResultSet directly is generally seen as bad practice.

At a minimum you should probably use the ResultSetDynaClass then next in 
line would be a RowSetDynaClass, then JavaBeans. As for the JavaBean 
properties question, it would be easier to return a Collection of JavaBeans 
where each bean represented each row in the resultset.

~Robert

Guido wrote:

95% of my struts web apps follow this flow:

1. User selection in a JSP
2. Action class performs a SQL query
3. Return ActionForward to a new JSP that renders the query ResultSet
What is the best practice to show SQL query results (ResultSet) to the 
user? (I mean how communication between view and controller should be when 
I do extensive use of ResulSets)

Actually, we are including the ResultSet in the request :(, and processing 
it in the JSP (using a scriptlet). But I dont like this aproach very much, 
so I wonder if it would be better to:

+ solution 1. Use a RowSetDynaClass instead of the ResultSet.
+ solution 2. Use a JavaBean with getters and setters (maybe as database 
column names) and include a JavaBean collection in the request as a Value 
Object (?)
+ solution 3. I don't know... :(

Thank you very much,
Guido.
PD. Is it better to use a collection of JavaBeans or use just one JavaBean 
whose properties return a collection??



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


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


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

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


Re: Data driven struts application

2003-03-14 Thread Pat Quinn
I agree Craig, I'm actually storing my SQL in a properties file, and i use a 
singleton object to load  cache it i didn't want to go into too much 
detail!!!

Cheers for your other point with regards column names






From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Data driven struts application
Date: Fri, 14 Mar 2003 08:24:58 -0800 (PST)


On Fri, 14 Mar 2003, Pat Quinn wrote:

 Date: Fri, 14 Mar 2003 16:05:34 +
 From: Pat Quinn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Data driven struts application

 I spent some time thinking over this very topic. I finally went with the
 following approach:


 * I used JDBC (NO Entity Beans got bitten bably there in the past) to 
query
 the data base and then created value objects which i then inserted into 
Form
 beans.


This is pretty much what RowSetDynaClass does for you, without the need to
create classes for your value objects.
 * For read only data access i used an optimised SQL statement (plse see
 below) which returns only enough data to render the current screen to 
the
 client.


This is almost always a really smart strategy -- not only should you limit
which columns are retrieved to only those that meet the requirements, you
should (more importantly) limit the number of rows that is retrieved, as
Pat points out below.
Two possible concerns are that you'll be tying the persistence tier and
the view tier together, because (for example) the page author has to know
about the column names in the database, and the business logic has to be
tweaked every time the page author needs a new column added.  To mitigate
these problems, I suggest using two strategies:
* Store the actual SQL query sources into properties files, so that
  it can be modified easily without touching the business logic
  classes.  (This can also be a lifesaver if you have to support
  more than one database, where the SQL query syntax has to change
  slightly.)
* Use the column aliasing capability of SQL (the as modifier) to
  convert the database column names into simple names that the
  page author can expect, and document (for him or her) only those
  names.  For example, a query might say something like:
select customer-account-number as account,
   external-display-name as name
  from customers
 where ...;
  and the page author will see properties named account and name,
  no matter what the database actually uses.
 As the user pages through the results i use the paging start index to
 control the SQL select statement so that i only ever fetch enough data 
for
 the next screen.

 So if the user pages from page 1 to 20, and i display 10 records per 
page i
 don't need to process from record 1 to 200 to get the data i need, nor 
do i
 need to keep my connection open. I always get back my data in blocks of 
10
 records.


 select [$ColumnNames], counter from ( select [$ColumnNames], rownum as
 counter from (select [$ColumnNames] from my_table where [$WhereClause]))
 where counter between [Start Index] and [End Index]

 The SQL could be optimised a little more I’m not an SQL  guru!!!


 I could also implement a caching mechanism to increase performance a 
little
 more.


 Any ways thats my two cents


Craig McClanahan

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


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

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


Action Forwarding within Frames

2003-02-05 Thread Pat Quinn
Hi Guys,

I have a jsp which contains two frames and each frame refers to its own 
action. I want to forward from the bottom frame
to another jsp which contains no frames. How can i set the target for the 
next view... at the moment when i forward to a global forward it appear in 
the bottom frame. Whats the cleanest way to forward in a case like this 
using struts??

Any ideas???






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


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



Re: Action Forwarding within Frames

2003-02-05 Thread Pat Quinn
Cheers for the info,

I have four buttons which map to their own actions only one needs to forward 
the entire window. I know i could use javascript
to control the form target... but is there any other way i can do this 
without javascript i'm think not... but i really don't like javascript 
and try to avoid it as much as possible.

Cheers

Pat






From: ashokd [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Action Forwarding within Frames
Date: Wed, 30 Jan 2002 16:19:45 +0530

Hi,

In bottom frame form tag place target=_top.

Thanks  Regards,
Ashok.D
- Original Message -
From: Pat Quinn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 6:43 PM
Subject: Action Forwarding within Frames


 Hi Guys,

 I have a jsp which contains two frames and each frame refers to its own
 action. I want to forward from the bottom frame
 to another jsp which contains no frames. How can i set the target for 
the
 next view... at the moment when i forward to a global forward it appear 
in
 the bottom frame. Whats the cleanest way to forward in a case like this
 using struts??

 Any ideas???






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


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



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


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


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



Re: [OT] concurrent updates

2003-02-05 Thread Pat Quinn

I need to do something like this very soon... but haven't given it much 
thought I'm using Oracle 8i is there a way i query the RDMS for the 
datestamp when the record was last updated rather than storing it as an 
extra column in every table




From: Anil Amarakoon [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] concurrent updates
Date: Wed, 05 Feb 2003 08:25:14 -0600

I guess your choices are:

1. last one wins.
2. Check last modified time in each row before commiting changes. so you 
have a
select before update.

there could be more..


anil

Jerome Jacobsen wrote:

 Very good question on a very difficult topic.  This is one of the 
hardest
 things in a transactional application.  The a-d choices you listed are 
all
 possibilities and the one you select depends on your 
situation/requirements.
 What does the customer want to happen in this case?  This topic is 
discussed
 in Martin Fowler's new book Patterns of Enterprise Application 
Architecture.

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 05, 2003 6:41 AM
  To: [EMAIL PROTECTED]
  Subject: [OT] concurrent updates
 
 
  pls excuse my struts-[OT] question, but I would appreciate to
  learn how you
  handle the situation of concurrent data update within your web
  applications.
 
  think about the following situation:
  1. user A fetches customer 007 and displays 007 within his browser
  2. user B fetches customer 007 as well and displays 007 within his 
browser
  3. user A updates customer 007
  4. user B updates customer 007 as well...
 
  How do your systems react?
  a) the last update wins?
  b) trying to merge updates of user A and B?
  c) sending a message to user B that customer 007 was changed
  since loading,
  and that user B has to re-enter his update
  or d) do you have a locking mechanism which prevents this
  situation - user
  B has no update button if customer 007 is already in somebody else's
  update screen
  or e) ???
 
  thanks for sharing your solutions to this common problem
  rene
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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


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


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Message Resource Bundle from an action

2003-02-03 Thread Pat Quinn
hi guys,

Anyone know how i can access the message resource bundle from an action 
class??

Cheers

Pat





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


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



RE: Message Resource Bundle from an action

2003-02-03 Thread Pat Quinn
Cheers for that i forgot my locale setting thats why it blew up on me




From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Message Resource Bundle from an action
Date: Mon, 3 Feb 2003 09:56:42 -0500

From the example app:

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/example/org/apache/
struts/webapp/example/EditRegistrationAction.java?rev=1.10content-type=
text/vnd.viewcvs-markup




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

	// Extract attributes we will need
	Locale locale = getLocale(request);
	MessageResources messages = getResources(request);






--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

The man who does not read good books has no advantage over the man who
cannot read them.
	- Mark Twain (1835-1910)







 -Original Message-
 From: Pat Quinn [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 03, 2003 9:50 AM
 To: [EMAIL PROTECTED]
 Subject: Message Resource Bundle from an action


 hi guys,

 Anyone know how i can access the message resource bundle from
 an action
 class??

 Cheers

 Pat





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


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




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



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


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



xdoclet struts

2003-02-03 Thread Pat Quinn
I was taking a quick read through the xdoclet documentation and noted it 
offers some support for struts. Is anyone out there using xdoclet with 
struts and if so what are the benefits and typical usages???

Cheers

Pat




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


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



Href's and LookupDispatchActions

2003-01-29 Thread Pat Quinn
Hi guys,

I have a href link which submits back to a LookupDispatchAction. When i 
submit the form using this approach my formBean doesn't contain client 
changes.

What the best way to use a href but yet submit the form with client changes 
using Struts.

Cheers,

Pat




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


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



JSP under WEB-INF

2003-01-28 Thread Pat Quinn
Hi Guys,

I've just moved all my JSP's into a folder under WEB-INF so i have something 
like this:

WEB-INF\jsp\catalogue

I've got some global forward defined as follows:

global-forwards
	forward name=viewcatalogue
   path=WEB-INF\jsp\catalogue\maincatalogue.jsp
   redirect=true/
/global-forwards


But now when i foward to this it fails to locate the jsp, i've also got a 
similar problem when i try to reference and action from within my html files 
i.e.

html
frameset rows=195,* frameborder=NO border=0 framespacing=0
 frame src=../../catalogueheader.do name=topFrame scrolling=NO 
noresize 
 frame src=../../maincatalogue.do?action=paging name=mainFrame
/frameset
/html

I know its something really silly that i'm doing wrong...





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


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



Re: JSP under WEB-INF

2003-01-28 Thread Pat Quinn
Cheers Guys,


setting redirect to false worked for me i'm using the Orion Webserver... 
but it seems it was't webserver related just me being very stupid.

Thanks again guys





From: Emmanuel Boudrant [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: JSP under WEB-INF
Date: Tue, 28 Jan 2003 13:26:58 +0100 (CET)

Hi,

You need to set redirect to false, all JSP behind WEB-INF are not visible 
for redirection.
... and add a '/' before WEB-INF, like this :


 global-forwards
 	forward name=viewcatalogue
 path=/WEB-INF/jsp/catalogue/maincatalogue.jsp
 redirect=false/
 /global-forwards

-emmanuel

 --- Pat Quinn [EMAIL PROTECTED] a écrit :  Hi Guys,

 I've just moved all my JSP's into a folder under WEB-INF so i have 
something
 like this:

 WEB-INF\jsp\catalogue

 I've got some global forward defined as follows:

 global-forwards
 	forward name=viewcatalogue
 path=WEB-INF\jsp\catalogue\maincatalogue.jsp
 redirect=true/
 /global-forwards


 But now when i foward to this it fails to locate the jsp, i've also got 
a
 similar problem when i try to reference and action from within my html 
files
 i.e.

 html
 frameset rows=195,* frameborder=NO border=0 framespacing=0
   frame src=../../catalogueheader.do name=topFrame scrolling=NO
 noresize 
   frame src=../../maincatalogue.do?action=paging name=mainFrame
 /frameset
 /html

 I know its something really silly that i'm doing wrong...





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


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


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

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


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


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



Design Patterns/Examples

2003-01-28 Thread Pat Quinn

Hi Guys,

Any one know of some design patterns or examples i could use with struts. I 
want to access a database(Value Objects) allow the user to change the VO 
data, perform some business validation and update the database. I’d like 
some pointers also when working with form beans and vo object whats the best 
way to transfer data between them... should i use vo’s as instance variable 
instead form bean... if so how will i handle java primitives like double’s 
etc..


I'm not looking for the answers to all the above but i'd like to review a 
pattern or example which demonstrates the best approach for the above.


I have my own ideas but would like to look over some design 
patterns/examples before commencing this work.

Cheers,

Guys






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


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



LookupDispatchAction

2003-01-15 Thread Pat Quinn
Hi guys,

I have a form with three submit buttons using the lookupDispatchAction 
approach. I want to add some href's for paging... so whats the best way to 
submit the paging request.. i will need all the form data on paging... in 
order to force an update in the event that the user has entered some data.

Cheers,

Pat




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


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



RE: LookupDispatchAction

2003-01-15 Thread Pat Quinn
I'm also using the lookupDispatch action... is it possible to use HREF to 
submit a form using this approach... if so whats the cleanest way to do it 
please personally i try to avoid javascript and scriptlet code in my 
jsp's

Any ideas guys






From: Alvarado, Juan (c) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: LookupDispatchAction
Date: Wed, 15 Jan 2003 12:01:50 -0500

This is something I have done from an onchange event in my forms:

function loadCompanyInfoByContract(objForm){

	objForm.userAction.value = bean:message
key='prompt.load.contracts'/;
	objForm.action = %= request.getContextPath()
%/selectContractForOrder.do?userAction=+objForm.userAction.value;
	objForm.submit();

}

Let me know if that helps.


-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 11:09 AM
To: '[EMAIL PROTECTED]'
Subject: LookupDispatchAction


Hi

Is there anyway to use LookupDispatchAction with onChange events on the 
JSP.
Basically, I want to call my LookupDispatchAction (when a user changes a
HTML field) and return either an error, or update one of the fields in the
form bean.  In my config file I have a parameter defined as doaction and 
all
the HTML buttons call the LookupDispatchAction okay.

Im only having a problem when simulating the doaction field through
JavaScript. Ideally, I would like to do this with no JavaScript but I dont
think thats going to be possible.? Any thoughts




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




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




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


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


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



RE: LookupDispatchAction

2003-01-15 Thread Pat Quinn
Ok so how do i map the href submit to its relevant method in
getKeyMethodMap(). I send a paramter and map it in this method???







From: Alvarado, Juan (c) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: LookupDispatchAction
Date: Wed, 15 Jan 2003 14:38:50 -0500

The only way I can think of submitting a form without actually having the
user click on a submit button is to have some type of javascript on the
page.

You can avoid the scriptlets with jstl I'm pretty sure.

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: RE: LookupDispatchAction


I'm also using the lookupDispatch action... is it possible to use HREF to
submit a form using this approach... if so whats the cleanest way to do it
please personally i try to avoid javascript and scriptlet code in my
jsp's

Any ideas guys






From: Alvarado, Juan (c) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: LookupDispatchAction
Date: Wed, 15 Jan 2003 12:01:50 -0500

This is something I have done from an onchange event in my forms:

function loadCompanyInfoByContract(objForm){

	objForm.userAction.value = bean:message
key='prompt.load.contracts'/;
	objForm.action = %= request.getContextPath()
%/selectContractForOrder.do?userAction=+objForm.userAction.value;
	objForm.submit();

}

Let me know if that helps.


-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 11:09 AM
To: '[EMAIL PROTECTED]'
Subject: LookupDispatchAction


Hi

Is there anyway to use LookupDispatchAction with onChange events on the
JSP.
Basically, I want to call my LookupDispatchAction (when a user changes a
HTML field) and return either an error, or update one of the fields in 
the
form bean.  In my config file I have a parameter defined as doaction and
all
the HTML buttons call the LookupDispatchAction okay.

Im only having a problem when simulating the doaction field through
JavaScript. Ideally, I would like to do this with no JavaScript but I 
dont
think thats going to be possible.? Any thoughts


***
*

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



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




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


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


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




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


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



Paging using struts

2003-01-14 Thread Pat Quinn
Does anyone have a good example of Paging using struts??


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



LookupDispatchAction

2003-01-14 Thread Pat Quinn
Hi Guys,

Can i submit a page using a html HREF (i.e. myLookupAction.do?offset=10) 
when using a LookupDispatchAction. Up until now i submitted the page using 
the following format:

html:submit property=actionbean:message 
key='label.update'//html:submit

Cheers

Pat




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


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



RE: LookupDispatchAction

2003-01-14 Thread Pat Quinn
So i guess all i need do is check the request object for my parameter as set 
in the URL of the href???

protected Map getKeyMethodMap(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request) {


 Map map = new HashMap();
 map.put(button.add, add);
 map.put(button.delete, delete);
 return map;
}








From: Alvarado, Juan (c) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: LookupDispatchAction
Date: Tue, 14 Jan 2003 15:42:58 -0500

Yes I've done it that way many times and it works.

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:42 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction


Hi Guys,

Can i submit a page using a html HREF (i.e. myLookupAction.do?offset=10)
when using a LookupDispatchAction. Up until now i submitted the page using
the following format:

html:submit property=actionbean:message
key='label.update'//html:submit

Cheers

Pat




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


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




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


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


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



RE: LookupDispatchAction

2003-01-14 Thread Pat Quinn
I have a form with three submit buttons using the lookupDispatchAction 
approach. I want to add some href's for paging... so whats the best way to 
submit the paging request.. i will need all the form data too... in order to 
force an update in the event that the user has entered some data.






From: Wendy Smoak [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: LookupDispatchAction
Date: Tue, 14 Jan 2003 13:53:44 -0700


 So i guess all i need do is check the request object for my parameter as
set
 in the URL of the href???
 protected Map getKeyMethodMap(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request) {
  Map map = new HashMap();
   map.put(button.add, add);
   map.put(button.delete, delete);
   return map;
 }

Check it for what?  That's what LookupDispatchAction does for you.  It
figures out what method to call.  I use it, but I had to override the
execute method to provide a default behavior, otherwise it blows up if the
specified parameter isn't present.

In your first message you asked about submitting the form with a link.  If
that one parameter is the only one you need, fine, you can specify it at 
the
end of the link.  But you can't submit a form with a link and expect all
of the form elements to get sent to the server.  (Barring the use of
JavaScript, anyway!)

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



_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



Custom Message Resources

2003-01-13 Thread Pat Quinn
Hi Guys,

Has anyone ever extended the functionality as offered by the 
org.apache.struts.util.RequestUtils? I want to be able to substituted 
keywords in my messages as loaded from my properties file with values from 
the database. I got this up an running by extending the MessageReources and 
defining my custom message factory in my Struts-config.xml.

So when getMessage() is called my keyword are loaded from the database via a 
thread etc.. My problem with this is as follows:

My keywords are substituted before my message keys are substituted.

Example in my properties file i have the following:
error.invalidtypes=Invalid {0} entered

//creating my ActionError
new ActionError(error.invalidtypes,#ACCOUNT);


So in my messageRecourse i have a hashMap of values as loaded from the 
database eg.
#ACCOUNT_EN - account code

This works fine if i had my message defined as the following in my 
properties file:
error.invalidtypes=Invalid #ACCOUNT entered


But i want to control the actual keyword i.e. #ACCOUNT, #SORT-CODE etc

So in short i want to check my messages for keywords (i.e. Anything starting 
with a #) after message keys have been substituted. After some initial 
investigation the best place to add this functionality would be in the 
RequestUtils.message() after it makes the call to 
resources.getMessage(userLocale, key, args)... It doesn't seem like a wise 
idea to extend RequestUtil. any ideas or suggestions gratefully 
appreciated??





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


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



Re: Custom Message Resources

2003-01-13 Thread Pat Quinn
Sorry Guys --- Please ignore my last email all i needed to do was overload 
the

getMessage(Locale pLocale, String pKey, Object pArgs[])

and add my keyword replacement there also previously i only overloaded
getMessage(Locale pLocale, String pKey) I hang my head in shame, but it 
is late hear so time to go home me thinks







From: Pat Quinn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Custom Message Resources
Date: Mon, 13 Jan 2003 19:52:23 +

Hi Guys,

Has anyone ever extended the functionality as offered by the 
org.apache.struts.util.RequestUtils? I want to be able to substituted 
keywords in my messages as loaded from my properties file with values from 
the database. I got this up an running by extending the MessageReources and 
defining my custom message factory in my Struts-config.xml.

So when getMessage() is called my keyword are loaded from the database via 
a thread etc.. My problem with this is as follows:

My keywords are substituted before my message keys are substituted.

Example in my properties file i have the following:
error.invalidtypes=Invalid {0} entered

//creating my ActionError
new ActionError(error.invalidtypes,#ACCOUNT);


So in my messageRecourse i have a hashMap of values as loaded from the 
database eg.
#ACCOUNT_EN - account code

This works fine if i had my message defined as the following in my 
properties file:
error.invalidtypes=Invalid #ACCOUNT entered


But i want to control the actual keyword i.e. #ACCOUNT, #SORT-CODE etc

So in short i want to check my messages for keywords (i.e. Anything 
starting with a #) after message keys have been substituted. After some 
initial investigation the best place to add this functionality would be in 
the RequestUtils.message() after it makes the call to 
resources.getMessage(userLocale, key, args)... It doesn't seem like a wise 
idea to extend RequestUtil. any ideas or suggestions gratefully 
appreciated??





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


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


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


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



RE: Internationalisation and Database/EJB data

2002-12-17 Thread Pat Quinn

I've done something like this. i.e. i have extended the 
PropertyMessageResources etc. and add extra stuff to fetch data in the 
relevant locale depending on the browsers locale. It works a really well for 
me.








From: Joe Barefoot [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Internationalisation and Database/EJB data
Date: Tue, 17 Dec 2002 13:16:56 -0800

Your database schema will largely depend on the amount/type of data that 
you need to internationalize...are you internationalizing entire documents, 
paragraphs of text, just messages, all three?  Do you need localized images 
too?

Once you settle on a database schema, you can write a custom 
MessageResources implementation to fetch your messages.  Your impl will be 
used by Struts for the bean:write tag and any other Struts classes/tags 
which fetch localized content.  The MessageResources implementation factory 
is specified by an ActionServlet init parameter:
init-param
param-namefactory/param-name
   
param-valuecom.mycompany.strutsstuff.myubercoolresourcesfactory/param-value
/init-param

You can easily extend the MessageResources if you wish, and write other 
custom tags to retrieve, say, XML-based localized documents, if need be.  
If you search the archive( 
http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ), you should 
find plenty of posts on the topic, and I believe someone has written a 
standard DB-based implementation of MessageResources to replace the 
file-based one.


hope this helps,
Joe

 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 12:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Internationalisation and Database/EJB data


 You need to design multiple language ability into your
 database schema.  I
 would create a view to make the queries easier.

 David






 From: Jordan Thomas [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts-User [EMAIL PROTECTED]
 Subject: Internationalisation and Database/EJB data
 Date: Tue, 17 Dec 2002 20:50:18 +0100
 
 Hi,
 
 What is the best way to make the data in my Database tables/EJB's
 internationalised? Is there a standard pattern for having seamlessly
 internationalised data in a database that I can use with struts?
 Essentially, based on the user's locale I want different
 data displayed and
 unfortunately, resource files won't suffice.
 
 thanks
 
 Jordan
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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


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


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


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


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



Map-backed ActionForms

2002-12-11 Thread Pat Quinn
I'm using the Map-Backed action form approach as detailed here:

http://jakarta.apache.org/struts/userGuide/building_controller.html#map_action_form_classes

I have a form bean with a one instance of a Value Object(i.e.customersVO), 
this value object contain an ArrayList(i.e. CustomerDetails) of other Value 
objects(i.e. CustomerDetailsVO).

--
Form Bean
--
public class customersForm extends ActionForm {


   private customersVO customers = null;


   /*Get  Set methods for the customers Value Object*/
   public void setCustomers(customersVO pCustomersVO ) {
   customers = pCustomersVO;
   }


   public customersVO getCustomers() {
   return customers;
   }


   /*Get  Set methods for the ArrayList of VO's contained within the 
customersVO*/
   public Object getCustomerDetail(int key) {
   return customers.getCustomerDetails().get(key);
   }

   public void setCustomerDetail(int key, Object value) {
  customers.getCustomerDetails().set(key, value);
   }
}


---
JSP Source
---
logic:iterate name=myForm  property=CustomerDetails indexId=rowIndex
	% String name = customerDetail[+rowIndex+];%
	html:text property=%=name + .firstName%/



This works fine but i personally don't like including scriplet code like 
this in my jsp's. Is there another way can do this??






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


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



Re: DynaForm example

2002-12-11 Thread Pat Quinn

If you look at my last posting i've detailed how i'm using a List-Backed 
action form... mapped-backed is very similar.





From: Mark [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: DynaForm example
Date: Wed, 11 Dec 2002 15:06:53 +0100

Hello

Anybody have any pointers for using Mapped backed Action forms (MBAF).

I've read the documentation, MBAF fits the task in hand. I just need an
example or a clear explaination of how to get something up and running.

Many thanks in advance

mark


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


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Re: Map-backed ActionForms

2002-12-11 Thread Pat Quinn
You access your form bean in the very same way as before theres nothing new 
there.






From: Mark [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Map-backed ActionForms
Date: Wed, 11 Dec 2002 15:54:36 +0100

Pat

How do i get to my FormBean in my action class

usually:

MyForm theForm = (MyForm) form;

But when i try to compile javac says 'no', is there something i'm missing 
or
does javac hate me :)?


On 11-12-2002 14:49, Pat Quinn [EMAIL PROTECTED] wrote:

 I'm using the Map-Backed action form approach as detailed here:

 
http://jakarta.apache.org/struts/userGuide/building_controller.html#map_action
 _form_classes

 I have a form bean with a one instance of a Value 
Object(i.e.customersVO),
 this value object contain an ArrayList(i.e. CustomerDetails) of other 
Value
 objects(i.e. CustomerDetailsVO).

 --
 Form Bean
 --
 public class customersForm extends ActionForm {


   private customersVO customers = null;


   /*Get  Set methods for the customers Value Object*/
   public void setCustomers(customersVO pCustomersVO ) {
   customers = pCustomersVO;
   }


   public customersVO getCustomers() {
   return customers;
   }


   /*Get  Set methods for the ArrayList of VO's contained within the
 customersVO*/
   public Object getCustomerDetail(int key) {
   return customers.getCustomerDetails().get(key);
   }

   public void setCustomerDetail(int key, Object value) {
  customers.getCustomerDetails().set(key, value);
   }
 }


 ---
 JSP Source
 ---
 logic:iterate name=myForm  property=CustomerDetails 
indexId=rowIndex
 % String name = customerDetail[+rowIndex+];%
 html:text property=%=name + .firstName%/



 This works fine but i personally don't like including scriplet code like
 this in my jsp's. Is there another way can do this??






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


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




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


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


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



Struts UML Diagrams

2002-12-11 Thread Pat Quinn
Hi guys,

Does any one know where I might find the complete or partial UML diagrams of 
struts??


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


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



Re: Struts UML Diagrams

2002-12-11 Thread Pat Quinn
I've looked on there James but failed to find any... can you point me in the 
right direction please






From: James Holmes [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts UML Diagrams
Date: Wed, 11 Dec 2002 13:37:11 -0800 (PST)

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

--- Pat Quinn [EMAIL PROTECTED] wrote:
 Hi guys,

 Does any one know where I might find the complete or
 partial UML diagrams of
 struts??



_
 Protect your PC - get McAfee.com VirusScan Online

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



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

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


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


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



Re: Struts UML Diagrams

2002-12-11 Thread Pat Quinn
I too found that site... i was looking for a UML Diagram to outline the
MessageResourcesFactory and its various components. I wish to extend this 
functionality but wanted a clear understanding of what was in place already.






From: Khalid K. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts UML Diagrams
Date: Wed, 11 Dec 2002 13:51:51 -0800

a quick google search with Struts UML Diagram yielded the following
website..check it out..

http://rollerjm.free.fr/pro/Struts11.html

Khalid

- Original Message -
From: James Holmes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 1:46 PM
Subject: Re: Struts UML Diagrams


 http://jakarta.apache.org/struts/resources/tutorials.html
 http://jakarta.apache.org/struts/resources/articles.html

 Gotta dig a little...there's probably more than
 that...

 -james


 --- Pat Quinn [EMAIL PROTECTED] wrote:
  I've looked on there James but failed to find any...
  can you point me in the
  right direction please
 
 
 
 
 
 
  From: James Holmes [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
  [EMAIL PROTECTED]
  To: Struts Users Mailing List
  [EMAIL PROTECTED]
  Subject: Re: Struts UML Diagrams
  Date: Wed, 11 Dec 2002 13:37:11 -0800 (PST)
  
 
 http://jakarta.apache.org/struts/resources/index.html
  
  --- Pat Quinn [EMAIL PROTECTED] wrote:
Hi guys,
   
Does any one know where I might find the
  complete or
partial UML diagrams of
struts??
   
   
   
 
 _
Protect your PC - get McAfee.com VirusScan
  Online
   
 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
   
   
--
To unsubscribe, e-mail:
   
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up
  now.
  http://mailplus.yahoo.com
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 _
  Protect your PC - get McAfee.com VirusScan Online
 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


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

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





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


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


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



Re: Struts UML Diagrams

2002-12-11 Thread Pat Quinn
Cheers James but i was looking for something a little more informative than 
that... i guess JavaDoc will have to do






From: James Holmes [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts UML Diagrams
Date: Wed, 11 Dec 2002 13:46:25 -0800 (PST)

http://jakarta.apache.org/struts/resources/tutorials.html
http://jakarta.apache.org/struts/resources/articles.html

Gotta dig a little...there's probably more than
that...

-james


--- Pat Quinn [EMAIL PROTECTED] wrote:
 I've looked on there James but failed to find any...
 can you point me in the
 right direction please






 From: James Holmes [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: Re: Struts UML Diagrams
 Date: Wed, 11 Dec 2002 13:37:11 -0800 (PST)
 

http://jakarta.apache.org/struts/resources/index.html
 
 --- Pat Quinn [EMAIL PROTECTED] wrote:
   Hi guys,
  
   Does any one know where I might find the
 complete or
   partial UML diagrams of
   struts??
  
  
  

_
   Protect your PC - get McAfee.com VirusScan
 Online
  

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
  
  
   --
   To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



_
 Protect your PC - get McAfee.com VirusScan Online

http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



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

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


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


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



Form Bean with Lists client updates

2002-12-10 Thread Pat Quinn
I have a form bean with an List(i.e. Lines) of Value Objects with the normal 
get/set method for the List only. Every thing works
fine when i display the data to the client. I have some thing like this:


-
Form Bean
-
public class myForm extends ActionForm {
	 private List lines = null;

   public List getLines() {
   return lines;
   }

   public void setLines(List lines){
   this.lines= lines;
   }
}

--
JSP Source
--
logic:iterate name=myForm  property=lines id=line
tr
tdhtml:text name=line property=firstName size=10 
maxlength=15//td


My problem is trying to retrieve user changes when the form is submitted the 
variable firstName in my VO is null when it should contain the
users in put.

I guess i need to add extra methods to the form bean in order to populate my 
VO's correctly if so what format should they be??

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


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



Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Pat Quinn
Multiple Submit Buttons + Internationalisation

I have a jsp with three submit buttons (update, delete etc..) each with a 
value as loaded from the resource bundle:

input type=submit name=Submit value=bean:message key='label.update'/


In my action class i do the following to identify which button has submitted 
the form:

if (Update.equalsIgnoreCase(pRequest.getParameter(Submit))) {
	//Process my update
}

This works fine when viewed from a browser with an English locale, if the 
locale is anything different it fails.
Its obvious why this doesn't work as i've hardcode the action class to one 
locale (English).

Can someone please suggest a different approach?

Cheers





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


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



Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Pat Quinn
Cheers guys for all the feedback I used the LookupDispatchAction 
approach. Personally i don't like using JavaScript so i try to stay well 
clear of it as much as i can.

Cheers,

Pat





From: Gemes Tibor [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Multiple Submit Buttons + Internationalisation
Date: Mon, 9 Dec 2002 14:57:10 +0100

2002. december 9. 14:55 dátummal Edgar P. Dollin ezt írtad:
 LookupDispatchAction is not for everyone in every situation.
 Understanding the mechanism can help you really solve your issues.

Yes, you're right. But the details he provided us about his problem were
exactly the same LookupDispathAction was created for imho. So I dared to
suggest it. However if it doesn't fit the thread-starter I reckon he will
provide more details.

While I am writing this I try hard to come up with a case which
LookupDispathAction doesn't solve and has the same charasteristics the
thread-starter required. I cannot find it. Ideas?

Tib

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


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


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



Re: begginer help

2002-12-09 Thread Pat Quinn
Check out the Admin Module of Tomcat 4.1 download the src version. Its 
developed using Struts. I found it a good reference to work from when i 
started out.






From: David Rothschadl [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts User Mailing List [EMAIL PROTECTED]
Subject: begginer help
Date: Mon, 9 Dec 2002 06:48:50 -0800 (PST)


An addition to my help for a beginner question..A complete example of 
an index.jsp used within the struts framework would be so helpful to me and 
my colleagues. It seems that all that I have been able to find so far are 
snippets of code


Remember:
Peace, Love  Understanding
Always

David R


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


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



Re: Struts Form Beans Value Objects

2002-12-03 Thread Pat Quinn
Hi,

I have tried the below it works fine when i fetch the data but when i want 
to update a text field etc i get the following error:

java.lang.IllegalArgumentException: No bean specified
	at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
	at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
	at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)


any ideas???






From: Patrice [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts Form Beans  Value Objects
Date: Mon, 2 Dec 2002 19:28:00 +0100

I think you can place the VO in your form bean, and have text fields to
update the different properties.
For example, if you have a property header that contains your HeaderVO:
html:text property=header.myProperty/

After submission, the VO in the form bean will contain the data entered by
the user, without additional code.

Hope it helps
Patrice


- Original Message -
From: Pat Quinn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 7:08 PM
Subject: Struts Form Beans  Value Objects


 I have an EJB which returns me a HeaderVO (Value Object) inside this VO 
I
 have an Array List of LineVO's. As you'd except all my Value objects are
 Serializable. Ok now i want to display this data to my client so I will
have
 a header html table and a lines html table. My header and lines both
contain
 text fields to allow for client updates.

 Here's where i'm seeking some assistance: should I * Extract the data 
from
 my headerVO and insert it into a FormBean and then store my linesVO data
as
 a 2Dimensional Array in my form bean.

 Is there a better way to do this without writing extra code to deal with
 conversion between VO's and a Form Bean i.e. can i store the value 
objects
 instead a form bean but yet allow for user updates to the data.

 Your ideas and suggestions would be gratefully appreciated.







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


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



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


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


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



DynaAction Form

2002-12-03 Thread Pat Quinn
Hi all,

I have a java value object (i.e. MyVo) which i add the DynaAction Form 
Below. When i display my jsp it works fine using headerVO.firstName but when 
i submit the page to save user changes i get the following error:

java.lang.IllegalArgumentException: No bean specified
	at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)


My Details are as follows:

!-- FORM BEAN DETAILS --
form-beans
form-bean name=MyForm dynamic=true   
type=org.apache.struts.action.DynaActionForm
 form-property name=headerVO type=com.bla.bla.bla.MyVO /
 /form-bean
/form-beans

!-- SAVE ACTION --
action path=/saveHeader type=com.bla.bla.bla.actions.saveHeaderAction 
scope=request name=MyForm validate=true input=/jsp/header.jsp
/action


in my JSP i have the following:
html:text property=headerVO.firstName/


any ideas???









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


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



Struts Form Beans Value Objects

2002-12-02 Thread Pat Quinn
I have an EJB which returns me a HeaderVO (Value Object) inside this VO I 
have an Array List of LineVO's. As you'd except all my Value objects are 
Serializable. Ok now i want to display this data to my client so I will have 
a header html table and a lines html table. My header and lines both contain 
text fields to allow for client updates.

Here's where i'm seeking some assistance: should I * Extract the data from 
my headerVO and insert it into a FormBean and then store my linesVO data as 
a 2Dimensional Array in my form bean.

Is there a better way to do this without writing extra code to deal with 
conversion between VO's and a Form Bean i.e. can i store the value objects 
instead a form bean but yet allow for user updates to the data.

Your ideas and suggestions would be gratefully appreciated.







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


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



Sending parameters to form beans

2002-09-11 Thread Pat Quinn

hi Guys

I'm very new to the world of struts so please excuse me if this seems like a 
really stupid question. Ok my situation is as follows:

I have an action to display some application information, I also have a form 
bean which fetches the data I want to display.

The action takes a user name as a parameter in the request object and then 
set the value in the form bean in order to display the data for that user. 
But the reset method is called on the form bean and clears the contents of 
the form bean.

How should i implement this?


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: General Struts Question

2002-09-11 Thread Pat Quinn

Cheers Darren


From: Darren Hill [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: General Struts Question
Date: Wed, 11 Sep 2002 14:35:08 -0400

Wait to October ... and get Chuck Cavaness' Programming Jakarta Struts
Good stuff.

BTW ... do you coach the Toronto Maple Leafs.

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: September 11, 2002 2:25 PM
To: [EMAIL PROTECTED]
Subject: General Struts Question


Does any know of any good books on struts that are available at the
moment... or websites for an introduction to the struts world


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

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




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: General Struts Question

2002-09-11 Thread Pat Quinn

i'm a first year uni student actually and i've only been working with java 
for six weeks actually


From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: General Struts Question
Date: Wed, 11 Sep 2002 14:49:38 -0400



Really! You wonder if these people have jobs. Let's hope not.




Galbreath, Mark [EMAIL PROTECTED] on 09/11/2002 02:32:39 PM

Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:(bcc: Joseph Sadove/DKBDS USA/DKB)

Subject:  RE: General Struts Question


STFW, dude.  Don't expect us to do your homework for you.

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 2:25 PM

Does any know of any good books on struts that are available at the
moment... or websites for an introduction to the struts world

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








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




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: General Struts Question

2002-09-11 Thread Pat Quinn

Cheers man… its nice to know there are some decent people out there.

I have ordered Mastering Jakarta Struts by James Goodwill but its taking 
forever to go into dispatch.

Anyway thanks again.



From: Bartley, Chris P [PCS] [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: General Struts Question
Date: Wed, 11 Sep 2002 13:56:43 -0500

Hi, Pat, and welcome to the crappy Struts mailing list.  [sigh]

A lot of people have said good things about the preview chapters of Chuck's
book--freely available on theserverside.com:

http://www.theserverside.com/resources/strutsreview.jsp
http://www.amazon.com/exec/obidos/asin/0596003285/

There's also this one, which i know nothing about:

http://www.amazon.com/exec/obidos/asin/0471213020/

I'll probably wait for this one, though:

http://www.amazon.com/exec/obidos/ASIN/1930110502/

It's by Ted Husted et. al.  See Ted's great site for Struts info/best
practices at:

http://www.husted.com/struts/

Finally, if you haven't already, do check out the Struts Resources page:

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

Tons of great info there.

Hope this helps.

chris

  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 11, 2002 1:33 PM
  To: 'Struts Users Mailing List'
  Subject: RE: General Struts Question
 
 
  STFW, dude.  Don't expect us to do your homework for you.
 
  -Original Message-
  From: Pat Quinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 11, 2002 2:25 PM
 
  Does any know of any good books on struts that are available at the
  moment... or websites for an introduction to the struts world
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: General Struts Question

2002-09-11 Thread Pat Quinn

Ok Mark i just read that link and i hold my hands up you got me... time to 
do some research for myself... sorry


From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: General Struts Question
Date: Wed, 11 Sep 2002 15:03:54 -0400

That does not mean you can't (at least) go to amazon.com and search for
books on Java Struts.  You were smart enough to subscribe to this list,
after all.

http://www.tuxedo.org/~esr/faqs/smart-questions.html


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: RE: General Struts Question


i'm a first year uni student actually and i've only been working with java
for six weeks actually


 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: General Struts Question
 Date: Wed, 11 Sep 2002 14:49:38 -0400
 
 
 
 Really! You wonder if these people have jobs. Let's hope not.
 
 
 
 
 Galbreath, Mark [EMAIL PROTECTED] on 09/11/2002 02:32:39 PM
 
 Please respond to Struts Users Mailing List
 [EMAIL PROTECTED]
 
 To:   'Struts Users Mailing List' [EMAIL PROTECTED]
 cc:(bcc: Joseph Sadove/DKBDS USA/DKB)
 
 Subject:  RE: General Struts Question
 
 
 STFW, dude.  Don't expect us to do your homework for you.
 
 -Original Message-
 From: Pat Quinn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 11, 2002 2:25 PM
 
 Does any know of any good books on struts that are available at the
 moment... or websites for an introduction to the struts world
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

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




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: General Struts Question [LET US BE KINDER AND MORE SOPHISTICATED?]

2002-09-11 Thread Pat Quinn

I know how to search in google and I have ordered a book (Mastering Struts 
by James Goodwill) on this topic… but I just wanted to make sure it was a 
decent book as I’m living on a student allowance…



From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: General Struts Question [LET US BE KINDER AND MORE  
SOPHISTICATED?]
Date: Wed, 11 Sep 2002 14:48:08 -0500

LMAO - she said that?!  LOL ... that will last me THE REST OF THE WEEK!!!  
I *love* it!!

micael wrote:

Sometimes we forget how much we know and are not kind to those who are 
where we once were.  There is no point in giving this guy trouble.  He 
correctly identified his question, and he could have been redirected 
easily.  I remember my first day in a programming class.  I had to ask 
another student, a woman, how to turn the computer on.  I simply said How 
do you turn these on?  She said I am MARRIED!  Sometimes we forget the 
obvious is the hardest thing to find out.  How do you find out, if you 
don't know, how to make a space on the keyboard?




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




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: General Struts Question [OT]

2002-09-11 Thread Pat Quinn

Thats what i would have guessed but anyway the guys were very helpful in the 
end... so cheers guys now i've got some material i can take home... ok its 
late here so i'm off home

Thanks Guys


From: Michael Lee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: General Struts Question [OT]
Date: Wed, 11 Sep 2002 16:14:53 -0400

That just returns a list of books. It doesn't denote what we recommend. 
They
have user ratings but I would think that the struts email list would
probably be the best place to ask so I think it's a semi legitimate
question. I would like him to read a book...I have lots of questions. :)

BTW, buy.com has free shipping on its books.

My 5 c
Mike

- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 3:03 PM
Subject: RE: General Struts Question


  That does not mean you can't (at least) go to amazon.com and search for
  books on Java Struts.  You were smart enough to subscribe to this 
list,
  after all.
 
  http://www.tuxedo.org/~esr/faqs/smart-questions.html
 
 
  -Original Message-
  From: Pat Quinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 11, 2002 2:52 PM
  To: [EMAIL PROTECTED]
  Subject: RE: General Struts Question
 
 
  i'm a first year uni student actually and i've only been working with 
java
  for six weeks actually
 
 
  From: [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: RE: General Struts Question
  Date: Wed, 11 Sep 2002 14:49:38 -0400
  
  
  
  Really! You wonder if these people have jobs. Let's hope not.
  
  
  
  
  Galbreath, Mark [EMAIL PROTECTED] on 09/11/2002 02:32:39 PM
  
  Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
  
  To:   'Struts Users Mailing List' [EMAIL PROTECTED]
  cc:(bcc: Joseph Sadove/DKBDS USA/DKB)
  
  Subject:  RE: General Struts Question
  
  
  STFW, dude.  Don't expect us to do your homework for you.
  
  -Original Message-
  From: Pat Quinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 11, 2002 2:25 PM
  
  Does any know of any good books on struts that are available at the
  moment... or websites for an introduction to the struts world
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  
  
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  _
  Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 

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




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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