[ot]Hashtable like fifo que?

2005-11-17 Thread Mick Knutson
I am trying to create a FIFO que that I can add items, then they fall
off like a standard FIFO, but, I want to be able to get an item from the
que like a Hashtable.

 

I.E. Object obj = fifoQue.get(stringKey);


MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


RE: Message Resources from DB

2005-11-17 Thread Mick Knutson
I got one of these solutions out and it talks about setting up the
resource like this:

  message-resources 
 
factory=net.sf.reloadable.resource.messageresources.DBMessageResourcesF
actory
  parameter=java:comp/env/jdbc/myusersDS|SELECT messagekey, value
from Messages where locale=?|30
  null=false /
  



1. I do not want to put jndi information in my struts
2. I do not want to put any SQL or SQL-Like pieces into my struts.

So, is there a way to configure this to call a Service Object instead of
the JNDI | SQL above?




-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 16, 2005 3:56 PM
To: Struts Users Mailing List
Subject: Re: Message Resources from DB

No, you are not wrong.  Struts will likely be changed to use Commons  
Resources after a 1.3.x goes GA.  Of course, Commons Resources  
needs to go GA itself soon.

I have already written several Database implementations for Commons  
Resources (Hibernate, iBatis, JDBC-only).  However, some of that work  
is not checked into SVN and some of it (at the time it was written)  
was not allowed in SVN due to incompatible licensing with ASL.

I don't really have a lot of free time to assist, but I'll do what I  
can.

Are you using any O/R frameworks or are you just doing straight jdbc?

--
James Mitchell
678.910.8017
Skpe: jmitchtx



On Nov 16, 2005, at 4:08 PM, Brian Russell wrote:

 I got James's solution from:

 http://sourceforge.net/project/showfiles.php? 
 group_id=49385package_id=7
 6369

 I also found another solution at:

 http://sourceforge.net/project/showfiles.php? 
 group_id=49385package_id=1
 49742

 And I know the team is working on a solution to be included in
 Commons-Resources and hopefully Struts 1.3.. but I may be wrong about
 that.

 Brian Russell
 www.closerware.com


 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 16, 2005 4:00 PM
 To: Struts Users Mailing List
 Subject: RE: Message Resources from DB

 Can you send me the solution to that? I don't have that book, I  
 have an
 older version without that solution.

 -Original Message-
 From: Brian Russell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 16, 2005 12:58 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Message Resources from DB

 Ah.. the man himself! I'm using MySql. I set up my database with the
 tables from the scripts in the /sql directory. And of course did the
 rest of the steps (i.e. updating struts-config, placing xml files in
 /WEB-INF/classes dir, etc.)

 Thanks!

 Brian Russell
 www.closerware.com


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 16, 2005 3:47 PM
 To: Struts Users Mailing List
 Subject: Re: Message Resources from DB

 What database would you like to use?

 --
 James Mitchell
 678.910.8017
 Skpe: jmitchtx



 On Nov 16, 2005, at 3:41 PM, Brian Russell wrote:

 I know this topic has come up before but.. Does anyone have a
 suggestion
 on a method for pulling Message Resources from a DB, as well as  
 making
 sure a restart of the app isn't required when the message key/ 
 value is
 updated in the db? Is there a recommended, working, solution out  
 there
 (i.e. OJB solution by James Mitchell, Commons-Resources, etc.)?

 I tried to implement the solution found in Jakarta Struts Cookbook
 Chapter 2 Section 7 Accessing Message Resources from a Database. As
 you may know, the OJB Message Resources distribution by James  
 Mitchell
 requires an OJB jar to be available to a webapp attempting to use  
 this
 approach. However, I am unable to pin down exactly what version of  
 OJB
 is required to work with this solution. I have currently tried 0.9.4,
 1.0.0, 1.0.1, 1.0.1, 1.0.3, with invalid class or class not found
 errors
 on any that I choose.

 My current environment is as such:

 Java: 1.5.0_05
 Tomcat: 4.1.29
 Mysql: 3.2.3.58
 Struts: 1.2.7

 If anyone has been able to implement this and can give me a
 recommended
 solution, that would be great.

 Thank you.

 Brian Russell
 www.closerware.com




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



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



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



 MMS safeway.com made the following annotations.
 --

 --
 --
 Warning:
 All e-mail sent to this address will be received by the Safeway
 corporate e-mail system, and is subject to archival and review by
 someone other than the recipient.  This e-mail may contain information
 proprietary to Safeway

RE: returning user to the page they where on when they submitted the form?

2005-11-16 Thread Mick Knutson
My issue is that this action is called from many different pages. How do
I accomplish that?


-Original Message-
From: Deepa Khetan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 15, 2005 7:38 PM
To: Struts Users Mailing List
Subject: Re: returning user to the page they where on when they
submitted the form?

in ur action mappings in struts-config.xml , u can specify the
input=tile-def-name and so whenevr u want the user to return to the
input page, u can say mapping.getInput() anf forward the user to the
page
they were on when they submitted the form
 HTH
Deepa

 On 11/16/05, Mick Knutson [EMAIL PROTECTED] wrote:

 I have a tile component that I use many places in my app, and I want
to
 return the user back to the page they where on when they submitted the
 component form.

 How can I do this?


 MMS safeway.com http://safeway.com made the following
annotations.



--
 Warning:
 All e-mail sent to this address will be received by the Safeway
corporate
 e-mail system, and is subject to archival and review by someone other
than
 the recipient. This e-mail may contain information proprietary to
Safeway
 and is intended only for the use of the intended recipient(s). If the
reader
 of this message is not the intended recipient(s), you are notified
that you
 have received this message in error and that any review,
dissemination,
 distribution or copying of this message is strictly prohibited. If you
have
 received this message in error, please notify the sender immediately.




==



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



RE: Message Resources from DB

2005-11-16 Thread Mick Knutson
Can you send me the solution to that? I don't have that book, I have an
older version without that solution.

-Original Message-
From: Brian Russell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 16, 2005 12:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Message Resources from DB

Ah.. the man himself! I'm using MySql. I set up my database with the
tables from the scripts in the /sql directory. And of course did the
rest of the steps (i.e. updating struts-config, placing xml files in
/WEB-INF/classes dir, etc.)

Thanks!

Brian Russell
www.closerware.com 
 

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 16, 2005 3:47 PM
To: Struts Users Mailing List
Subject: Re: Message Resources from DB

What database would you like to use?

--
James Mitchell
678.910.8017
Skpe: jmitchtx



On Nov 16, 2005, at 3:41 PM, Brian Russell wrote:

 I know this topic has come up before but.. Does anyone have a  
 suggestion
 on a method for pulling Message Resources from a DB, as well as making
 sure a restart of the app isn't required when the message key/value is
 updated in the db? Is there a recommended, working, solution out there
 (i.e. OJB solution by James Mitchell, Commons-Resources, etc.)?

 I tried to implement the solution found in Jakarta Struts Cookbook
 Chapter 2 Section 7 Accessing Message Resources from a Database. As
 you may know, the OJB Message Resources distribution by James Mitchell
 requires an OJB jar to be available to a webapp attempting to use this
 approach. However, I am unable to pin down exactly what version of OJB
 is required to work with this solution. I have currently tried 0.9.4,
 1.0.0, 1.0.1, 1.0.1, 1.0.3, with invalid class or class not found  
 errors
 on any that I choose.

 My current environment is as such:

 Java: 1.5.0_05
 Tomcat: 4.1.29
 Mysql: 3.2.3.58
 Struts: 1.2.7

 If anyone has been able to implement this and can give me a  
 recommended
 solution, that would be great.

 Thank you.

 Brian Russell
 www.closerware.com




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



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



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



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



best way to add a confirmation dialog when submitting a struts form?

2005-11-15 Thread Mick Knutson
I have a dispatchAction form that is submitted, and I want to show a
confirmation (ok/cancel) dialog when I click submit.

What is the best struts way to do this please?


MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


returning user to the page they where on when they submitted the form?

2005-11-15 Thread Mick Knutson
I have a tile component that I use many places in my app, and I want to
return the user back to the page they where on when they submitted the
component form.

How can I do this?


MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


RE: [ANNOUNCE] Release of Commons Validator 1.2.0

2005-11-15 Thread Mick Knutson
When will this be available in the ibiblio Maven Repository?

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 15, 2005 3:30 PM
To: Struts User Jakarta
Subject: [ANNOUNCE] Relase of Commons Validator 1.2.0

The Jakarta Commons Validator team is pleased to announce the
availability
of  Commons Validator 1.2.0. For a summary of what's new in Validator
1.2.0
see the notes on the Commons Wiki:
http://wiki.apache.org/jakarta-commons/ValidatorVersion120

A complete list of changes is available in the change log:
http://jakarta.apache.org/commons/validator/changes-report.html

Validator is available in either binary or source form from the
Validator
downloads page:
http://jakarta.apache.org/site/downloads/downloads_commons-validator.cgi

For more information on Commons Validator, see the Validator web site:
http://jakarta.apache.org/commons/validator/


Niall Pemberton



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



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



RE: [ANNOUNCE] Release of Commons Validator 1.2.0

2005-11-15 Thread Mick Knutson
I think you just email them with the details and the jar

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 15, 2005 3:47 PM
To: Struts Users Mailing List
Subject: Re: [ANNOUNCE] Release of Commons Validator 1.2.0

Whenever I can find out how to get ibiblio updated.

Niall

- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 11:42 PM


 When will this be available in the ibiblio Maven Repository?

 -Original Message-
 From: Niall Pemberton [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 15, 2005 3:30 PM
 To: Struts User Jakarta
 Subject: [ANNOUNCE] Relase of Commons Validator 1.2.0

 The Jakarta Commons Validator team is pleased to announce the
 availability
 of  Commons Validator 1.2.0. For a summary of what's new in Validator
 1.2.0
 see the notes on the Commons Wiki:
 http://wiki.apache.org/jakarta-commons/ValidatorVersion120

 A complete list of changes is available in the change log:
 http://jakarta.apache.org/commons/validator/changes-report.html

 Validator is available in either binary or source form from the
 Validator
 downloads page:

http://jakarta.apache.org/site/downloads/downloads_commons-validator.cgi

 For more information on Commons Validator, see the Validator web site:
 http://jakarta.apache.org/commons/validator/


 Niall Pemberton



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



 MMS safeway.com made the following annotations.


--

 Warning:
 All e-mail sent to this address will be received by the Safeway
corporate
e-mail system, and is subject to archival and review by someone other
than
the recipient.  This e-mail may contain information proprietary to
Safeway
and is intended only for the use of the intended recipient(s).  If the
reader of this message is not the intended recipient(s), you are
notified
that you have received this message in error and that any review,
dissemination, distribution or copying of this message is strictly
prohibited.  If you have received this message in error, please notify
the
sender immediately.




==


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



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



RE: [ot] utility to verify if an Object implements all methods from Interface?

2005-11-08 Thread Mick Knutson
No, I am using the BeanUtils.copyProperties(target, orig);

 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 28, 2005 12:57 PM
To: Struts Users Mailing List
Subject: Re: [ot] utility to verify if an Object implements all methods
from Interface?

Mick Knutson wrote:

Because I would have to modify generated code to do that. And it only 
implements serializable. Nothing else.
  

And you can't subclass it and have the subclass implement the interface?

In any case, just loop through w/ reflection and check.

I'm still confused though; are you calling methods on these classes
through reflection, which is why you won't catch these issues during
compilation?

Dave



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



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



RE: [ot] utility to verify if an Object implements all methods from Interface?

2005-10-28 Thread Mick Knutson
Because I would have to modify generated code to do that. And it only
implements serializable. Nothing else. 

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 4:51 PM
To: Struts Users Mailing List
Subject: Re: [ot] utility to verify if an Object implements all methods
from Interface?

Interesting... why can't you implement the interface?  Just curious.

Does it implement any other interfaces to build up the method list?  If
so, you could just do a serious of instanceof's against all the
interfaces it implements.  Alternatively, you can use reflection to get
a list of the methods it contains and do your checks against that.

Frank

Mick Knutson wrote:
 I have some generated Objects that I CANT make implement my given 
 interface, but I would like to run a test at startup time, if the 
 Object has all the methods it is suppose to have?
  
 
 MMS safeway.com made the following annotations.
 --
 
 Warning: 
 All e-mail sent to this address will be received by the Safeway
corporate e-mail system, and is subject to archival and review by
someone other than the recipient.  This e-mail may contain information
proprietary to Safeway and is intended only for the use of the intended
recipient(s).  If the reader of this message is not the intended
recipient(s), you are notified that you have received this message in
error and that any review, dissemination, distribution or copying of
this message is strictly prohibited.  If you have received this message
in error, please notify the sender immediately. 
   
 ==
 
 

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



[ot] utility to verify if an Object implements all methods from Interface?

2005-10-27 Thread Mick Knutson
I have some generated Objects that I CANT make implement my given
interface, but I would like to run a test at startup time, if the Object
has all the methods it is suppose to have?
 

MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


[ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Mick Knutson
I have a WSDL that is managed and generated by a different group than mine.
This wsdl has many complex types within complex types for each service. Thus 
I get composite objects being generated, and we use a flattened version of 
these objects in our Struts UI. But Currently, we create an ActionForm and 
an interface that Mirrors the ComplextType that was generated, but has 
additional fields for the fields.

Like I have a micrType that is an RTN and BankAccount, and my Action form 
just has RTN and BankAccount instead of micrType.

I want to use the BeanUtils.copyProperties() but my names need to match. Thus 
when the names in the WSDL change, I am unable to get notified of that change 
directly, I just don't get those properties copied, and now I have a bug.

So, if I can't have the WSDL define Parent Abstract Classes for these types, 
What am I suppose to do to keep some type of interface between my 
ActionForms and my ComplextTypes? Besides going through by hand each time 
there is an update and making changes by hand, then having to verify by hand 
that the changes get reflected in my ActionForms?



Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)











MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



RE: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Mick Knutson
I am forced to use the Websphere Axis libraries, and yes  generate
classes just fine. But I can't get them to adhere to MY interface, or
MAKE these Types extend an Abstract Class of my own. At least that I can
see.
I also have about 1,000 different types being generated in our project.
So, is there a way to make these java files extend my own Abstract
Class? What about making them extend my interface as well?
This way my interface for my ActionForms and the ComplexTypes are the
same and always in Sync. 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 19, 2005 12:03 PM
To: Struts Users Mailing List
Subject: Re: [ot] Need Design help for Axis ComplextTypes to ActionForms
please...anyone?

Martin Gainty wrote:

 I'm assuming you have already used Axis wsdl2java to automate the 
 generation of the Java Class?
 http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsS
 keletonsAndDataTypesFromWSDL


Or if that doesn't do what you need, just write a simple script in
Perl/Python/Jython/Ruby/Lisp to parse the WSDL and write out the classes
for you; I use this strategy in one way or another quite often (usually
in Ruby now, used to use Jython).

Code generation good, hand-rolling bad.

Dave Newton
Technical Lead, Project MonkeyLips Omnigalgomon



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



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



[ot]Date utilitiy to take date String, add a day, and return sql date?

2005-10-17 Thread Mick Knutson
I need to see if anyone has a utility to take a String date, add 1 day,
and return a java.sql.Date


--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



startup time validator validation?

2005-10-11 Thread Mick Knutson
I am trying to figure out if there is a way to have the Validator
framwork verify that the form element names defined in the
validation.xml, are in synch with my ActionForms, but not jst at
runtime. Right now if there is a mismatch, then I get an error in the
form of an error, sometimes obscure, on the field that is mismatched.

So I would like to be able to enforce the validating of the
validation.xml forms at startup time if possible.

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: startup time validator validation?

2005-10-11 Thread Mick Knutson
It could be at build time just fine, but I am using maven.
So how could I integrate this into my build then?

Dave Newton wrote:

 Mick Knutson wrote:

 I am trying to figure out if there is a way to have the Validator
 framwork verify that the form element names defined in the
 validation.xml, are in synch with my ActionForms, but not jst at
 runtime. Right now if there is a mismatch, then I get an error in the
 form of an error, sometimes obscure, on the field that is mismatched.
 
 So I would like to be able to enforce the validating of the
 validation.xml forms at startup time if possible.
 
 
 I solved a similar problem at build using two different methods on
 several projects:

 1) Generated validation.xml, torque schema, chunks of
 DynaValidatorActionForm form-beans for struts-config.xml, parts of
 application resources, java classes for marshalling within Actions (I
 didn't always use this part, actually :/ and JSP chunks (form tiles)
 from an over-arching XML configuration file. This doesn't do what you're
 asking, but it does make sure that things are in sync, and was actually
 kinda nice.

 2) Used XML parser to check names of fields in validation.xml against
 struts-config action name attributes linked against struts-config
 form-bean defs, sort of like a 'diff' for various chunks of XML. This
 also ran as an ant task, not on startup or anything, but I suppose it
 could be adapted to that.

 To me, this seems like a problem better solved during the build process
 rather than deployment/startup.

 Dave Newton
 Technical Lead (MonkeyLips OmniGalgomon Project)

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: startup time validator validation?

2005-10-11 Thread Mick Knutson
no, because my code is being generated from wsdl2java, and not xdoclet.

David G. Friedman wrote:

 Wouldn't XDoclet's Struts Validator features work for you
 in this regard?  It wouldn't be i nthe JSP or at startup
 but at build/compile time.  See:

 http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED]
 evel_Tags

 I am trying to figure out if there is a way to have the Validator
 framwork verify that the form element names defined in the
 validation.xml, are in synch with my ActionForms, but not jst at
 runtime. Right now if there is a mismatch, then I get an error in the
 form of an error, sometimes obscure, on the field that is mismatched.
 
 So I would like to be able to enforce the validating of the
 validation.xml forms at startup time if possible.
 
 

 Regards,
 David

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



bean:message with dynamic key?

2005-10-05 Thread Mick Knutson
I want to write a bean:message with a dynamic key such as:
bean:message key=c:out value='$foo' /bar /
So that my ApplicationResources.properties can display:

foobar = A combined key resulting in text.

Can anyone help with this?

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: bean:message with dynamic key?

2005-10-05 Thread Mick Knutson
Can you please explain  this a bit more?:

If you're using c:out, (JSTL 1.0 on a Servlet 2.3 container,) you should
be using the Struts-EL tags instead of the original ones.  Then you can use
an ${expression} for the 'key' attribute.




Wendy Smoak wrote:

 From: Mick Knutson [EMAIL PROTECTED]

 I want to write a bean:message with a dynamic key such as:
  bean:message key=c:out value='$foo' /bar /
  So that my ApplicationResources.properties can display:
 
  foobar = A combined key resulting in text.

 If you're using c:out, (JSTL 1.0 on a Servlet 2.3 container,) you should
 be using the Struts-EL tags instead of the original ones.  Then you can use
 an ${expression} for the 'key' attribute.

 Or, use JSTL's fmt:message tag.  In that case, you'll need to add a
 context param to web.xml so JSTL can see the .properties file:
context-param
   param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
   param-valueApplicationResources/param-value
/context-param

 HTH,
 --
 Wendy Smoak
 http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsMessagesAndJSTL

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: logic tag question about identifying a specific item in acollection

2005-10-01 Thread Mick Knutson
I am not having luck here.

I have a collection of cards (Card class)  that I am iterating through.
Then, I also have a form that has a cardValidatorForm (DynaForm).

cardForm.cardNumber is going to be equal to one of the card.cardNumber's
When I create the logic tag like you stated:
logic:equal property=cardNumber value=%= card.cardNumber %...

I get an error about missing a parameter/header/name

What am I missing?



Murray Collingwood wrote:

 Will the following work?

 html:form ...
 logic:iterate...through collection
  logic:equal property=foo value=bar
html:text ...display in form fields/
html:submit .../
  /logic:equal
  logic:notEqual property=foo value=bar
jsp:getProperty property=foo/
  /logic:notEqual
 /logic:iterate
 /html:form

 Kind regards
 mc


 On 29 Sep 2005 at 15:41, Mick Knutson wrote:

  I have a collection of cards. and I want to create a table fo thos
  cards, but if I get to a card where foo=bar, then I want to paint that
  row as a form with updateable fields and 1 submit for just that row.
  How would I do this please?
 
  --
 
  Thanks
  Mick Knutson
  (925) 951-4126
  HP Consulting Services
  Safeway (Blackhawk Fastword Project)
  J2EE Architect
  ---
 
 
 
  MMS safeway.com made the following annotations.
  --
  Warning:
  All e-mail sent to this address will be received by the Safeway corporate 
  e-mail
 system, and is subject to archival and review by someone other than the 
 recipient.  This
 e-mail may contain information proprietary to Safeway and is intended only 
 for the use
 of the intended recipient(s).  If the reader of this message is not the 
 intended
 recipient(s), you are notified that you have received this message in error 
 and that any
 review, dissemination, distribution or copying of this message is strictly 
 prohibited.  If
 you have received this message in error, please notify the sender immediately.
 
 
 =
 =
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
 

 FOCUS Computing
 Mob: 0415 24 26 24
 [EMAIL PROTECTED]
 http://www.focus-computing.com.au

 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



logic tag question about identifying a specific item in a collection

2005-09-29 Thread Mick Knutson
I have a collection of cards. and I want to create a table fo thos
cards, but if I get to a card where foo=bar, then I want to paint that
row as a form with updateable fields and 1 submit for just that row.
How would I do this please?

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: logic tag question about identifying a specific item in acollection

2005-09-29 Thread Mick Knutson
Thanks so much!

Murray Collingwood wrote:

 Will the following work?

 html:form ...
 logic:iterate...through collection
  logic:equal property=foo value=bar
html:text ...display in form fields/
html:submit .../
  /logic:equal
  logic:notEqual property=foo value=bar
jsp:getProperty property=foo/
  /logic:notEqual
 /logic:iterate
 /html:form

 Kind regards
 mc


 On 29 Sep 2005 at 15:41, Mick Knutson wrote:

  I have a collection of cards. and I want to create a table fo thos
  cards, but if I get to a card where foo=bar, then I want to paint that
  row as a form with updateable fields and 1 submit for just that row.
  How would I do this please?
 
  --
 
  Thanks
  Mick Knutson
  (925) 951-4126
  HP Consulting Services
  Safeway (Blackhawk Fastword Project)
  J2EE Architect
  ---
 
 
 
  MMS safeway.com made the following annotations.
  --
  Warning:
  All e-mail sent to this address will be received by the Safeway corporate 
  e-mail
 system, and is subject to archival and review by someone other than the 
 recipient.  This
 e-mail may contain information proprietary to Safeway and is intended only 
 for the use
 of the intended recipient(s).  If the reader of this message is not the 
 intended
 recipient(s), you are notified that you have received this message in error 
 and that any
 review, dissemination, distribution or copying of this message is strictly 
 prohibited.  If
 you have received this message in error, please notify the sender immediately.
 
 
 =
 =
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
 

 FOCUS Computing
 Mob: 0415 24 26 24
 [EMAIL PROTECTED]
 http://www.focus-computing.com.au

 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: How can I use my DTO POJO's as ActionForms?

2005-08-09 Thread Mick Knutson
Do you have some examples of both viewing, and posting of such nested pojo's?


Michael Jouravlev wrote:

 Instead -- no. But you can use them as nested properties.

 On 8/8/05, Mick Knutson [EMAIL PROTECTED] wrote:
  I have many DTO's and do not want to duplicate code my creating
  ActionFOrms that are identical to my DTO's. Can I used the DTO's instead
  of ActionForms?

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



get MessageResources Key from tiles

2005-08-09 Thread Mick Knutson
I have the following tag in my defaultLayout:
put name=title value=label.default.title type=string /

and I want to show the label.default.title text from my
ApplicationResources.properties file instead of my page showing:
label.default.title

How can I do this please?

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: get MessageResources Key from tiles

2005-08-09 Thread Mick Knutson
What is this used for though:
fmt:param value=${someOtherParam}/

? I don't know what someOtherParam is for, or where it comes from.

Wendy Smoak wrote:

 From: Mick Knutson [EMAIL PROTECTED]

 I have the following tag in my defaultLayout:
  put name=title value=label.default.title type=string /
 
  and I want to show the label.default.title text from my
  ApplicationResources.properties file instead of my page showing:
  label.default.title
 
  How can I do this please?

 Does this thread from last week help?

 http://www.mail-archive.com/user%40struts.apache.org/msg31857.html

 --
 Wendy Smoak

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Nested navigation items not working

2005-08-09 Thread Mick Knutson
I also need to see if anyone has any other nested navigation element
examples as I can't get mine to show up.
I get a resource not available error on the jsp:


!-- ===  --
!-- Menus definitions --
!-- ===  --

!-- Menu bar definition
This definition describe a bar of menu stacked verticaly.
 Each menu is describe elsewhere.
 Add new entry in the list to add new menu.
--
definition name=.default.menu.layout
path=/WEB-INF/default/navigationLayout.jsp 
putList name=list 
add value=.menu.consumer.search /
putList name=list 
add value=.menu.consumer.detail /
/putList
/putList
/definition

!-- ===  --
!-- Menus Items   --
!-- ===  --

definition name=.menu.default path=/WEB-INF/default/navigation.jsp

put name=section_url value=/index.jsp /
/definition

definition name=.menu.admin path=/WEB-INF/default/navigation.jsp 

put name=title value=Admininstration Menu /
put name=section_url value=/index.jsp /
/definition

!-- These are the sub items under the navigation section --
definition name=.menu.consumer.search extends=.menu.admin
putList name=items 
item   value=label.menu.consumerQuery
 link=/toConsumerQuery.do
   icon=/default/images/folder_open.gif
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
item   value=label.menu.consumerSearch
 link=/toConsumerSearch.do
   icon=/default/images/folder_open.gif
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
/putList
/definition

!-- These are the sub items under the navigation section --
definition name=.menu.consumer.detail extends=.menu.default
putList name=items 
!-- add value=/examples/tiles/portal/login.jsp / --
item   value=label.menu.consumer.detail
 link=/consumer.do
   icon=/default/images/folder_open.gif
   classtype=org.apache.struts.tiles.beans.SimpleMenuItem /
/putList
/definition







Mick Knutson wrote:

 I have started to use the menu.jsp example to create a dynamic menu for
 my application.
 But there are certain links that I only want to show if a given
 actionForm is present.
 I also have a few of the links that are created using the std taglibs
 when a given actionForm is present.
 I have it working with a static jsp, but want to use a more dynamic
 tiles creation, but can't figure out how to create dynamic URL's with
 the menu.jsp example.
 Any help?

 --

 Thanks
 Mick Knutson
 (925) 951-4126
 HP Consulting Services
 Safeway (Blackhawk Fastword Project)
 J2EE Architect
 ---

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: get MessageResources Key from tiles

2005-08-09 Thread Mick Knutson
Thanks.

Dave Newton wrote:

 Mick Knutson wrote:

 What is this used for though:
 fmt:param value=${someOtherParam}/
 
 ? I don't know what someOtherParam is for, or where it comes from.
 
 
 I believe that would be a parameter replacement for the resource?

 Like, say, in your case, if:

 label.default.title=Replace {0} with the first parameter

 then the ${someOtherParam} would be inserted for the {0}

 Since that isn't what you want to do I don't think you need to worry
 about it. It's the other part of the thread that you care about.

 Dave

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



How can I use my DTO POJO's as ActionForms?

2005-08-08 Thread Mick Knutson
I have many DTO's and do not want to duplicate code my creating
ActionFOrms that are identical to my DTO's. Can I used the DTO's instead
of ActionForms?

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: My first JAAS implementation. Part 2

2005-08-08 Thread Mick Knutson
Where does the user get sent to if they are not in the role? Or is it just an 
ActionError message?

[EMAIL PROTECTED] wrote:

 Mark, sorry to not be a ton of help here, but I'm away from some code I have 
 where I know I did this (meaning, I invoked my LoginModule manually instead 
 of using container-based auth). I did this with JBoss, not Tomcat, as I 
 recall. And yes, it does have something to do with writing a CallbackHandler. 
 That is the guy who gathers credentials at the time of authentication. In 
 your case, the CallbackHandler implementation would have the username and 
 password for example as instance fields. When the callback methods are 
 invoked, your handler simply returns the values of those fields. You set the 
 values of those fields when you instantiate your CallbackHandler in your 
 Action code (based on whatever you gathered from your form). This seems 
 weird, but the callback design makes more sense when you consider that the 
 username and password might need to be provided right then and there on the 
 command line in some other type of setup.

 There is a white paper out there on the Web by Scott Stark (JBoss) on JAAS (I 
 think it is called JAAS HowTo). It shows you how to write a 
 CallbackHandler, how to invoke the LoginModule, etc. I couldn't find it in 
 the quickest of searches but I still see many mentions of it. I'm not sure 
 though how much adaptation will be involved if you are doing this with 
 Tomcat. I remember trying to get help with this on the Tomcat User list, but 
 got none. At least the source is available if you're really tenacious.

 If you cannot find the paper, I know I have a copy of it on another box. I 
 could find it and send it to you . . . . I think I have that code lying 
 around somewhere too (I hope I haven't lied about what I did . . . ).

 Good luck,

 Erik

 -Original Message-
 From: Mark Benussi [EMAIL PROTECTED]
 Sent: Aug 8, 2005 6:37 PM
 To: 'Struts Users Mailing List' user@struts.apache.org
 Subject: My first JAAS implementation. Part 2

 OK. So I got the code working. Great! I can now login using form
 authentication and call the all important request.isUserInRole and more
 importantly action roles=role1



 I now want to ditch this form authentication. It's not what I need as it
 doesn't give me enough control over my individual sites.



 My simple question is this.



 How can I submit a Struts form to a Struts action and then invoke my
 LoginModule? Is it something to do with writing a CallbackHandler?



 Your help and time is appreciated.. (Hate saying that but it sums it up
 nicely).





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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: submitting an array of objects with 1 submit?

2005-07-27 Thread Mick Knutson
 I have a consumer Object that has an array of cards i.e.:

 consumer.java
 
 name
 address
 Card[]

 Card
 --
 cardNumber
 status

 Now, this is being displayed in the consumer screen, and this displays
 all the cards the consumer has. Also the card.status needs to be updated
 the same time the consumer is updated.
 How would I be able to have this 1 page update the consumer and the
 consumers cards?

 --

 Thanks
 Mick Knutson
 (925) 951-4126
 HP Consulting Services
 Safeway (Blackhawk Fastword Project)
 J2EE Architect
 ---

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



How to access the first item in a Collection in a JSP?

2005-07-06 Thread Mick Knutson
I have a Collection in my ActionForm, and want to access just the
first object in that Collection.
How can I do this?

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: How to access the first item in a Collection in a JSP?

2005-07-06 Thread Mick Knutson
Worked. Thanks..

Zarar Siddiqi wrote:

  Wel, I catually have something like form.cards[0].cardNumber, but it is
  also not an array. It is a collection.

 Doesn't matter, it works for both as long as you got a getCardNumber() in
 there.

  Wendy Smoak wrote:
 
  From: Mick Knutson [EMAIL PROTECTED]
 
   I have a Collection in my ActionForm, and want to access just the
   first object in that Collection.
 
  How about...
 %@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
 c:out value=${form.property[0]}/
 
  --
  Wendy Smoak
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  --
 
  Thanks
  Mick Knutson
  (925) 951-4126
  HP Consulting Services
  Safeway (Blackhawk Fastword Project)
  J2EE Architect
  ---
 
 
 
  MMS safeway.com made the following annotations.
  --
  Warning:
  All e-mail sent to this address will be received by the Safeway corporate
  e-mail system, and is subject to archival and review by someone other than
  the recipient.  This e-mail may contain information proprietary to Safeway
  and is intended only for the use of the intended recipient(s).  If the
  reader of this message is not the intended recipient(s), you are notified
  that you have received this message in error and that any review,
  dissemination, distribution or copying of this message is strictly
  prohibited.  If you have received this message in error, please notify the
  sender immediately.
 
  ==
 
 
  -
  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]

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



need 2 parameters for html:link

2005-07-06 Thread Mick Knutson
I have the following that works almost fine:

html:link forward=historicalTransactions
paramId=commonEnrollmentID
paramName=consumerValidatorForm
paramProperty=commonEnrollmentID

bean:message key=label.menu.historicalTrx /
/html:link


Then what I get is http://URL?commonEnrollmentID=12345;

What I need to be generated is:
http://URL?action=historicalcommonEnrollmentID=12345;

Because historical is an action method on my LookupDispatchAction that
needs to be called when I click this link.
Thanks in advance for your help.

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: c:out not finding values that are in a pojo, inside an actionForm.

2005-06-29 Thread Mick Knutson
Not exactly. test1 actually is a pojo. Then there is a value in there called
lastPinChangeDate or getLastPinChangeDate().
And nothing I have tried will print that value out at all.

Kjersti Berg wrote:

 On 6/28/05, Dave Newton [EMAIL PROTECTED] wrote:
  Mick Knutson wrote:
 
  Here is my stack:
  As you can see, the values are there, but it just is not picking them
  up.
  Also, here is what I have in the jsp:
  
  bean:define id=test1 name=consumerValidatorForm
  property=activity.lastPinChangeDate/
  tr
  td class=textreq noWrapnbsp;bean:message
  key=label.consumer.lastPinChangeDate //td
  td class=textreq%--bean:write name=
  property=consumerActivity.lastPinChangeDate /--%
  [c:out
  value=${consumerValidatorForm.activity.lastPinChangeDate}/]
  
  What would be the bean:write equiv. tag be?
  

 If I understand you correctly, you want to write the contents of the
 bean you hav defined? Have you tried
 bean:write name=test1/

 Kjersti

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

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



c:out not finding values that are in a pojo, inside an actionForm.

2005-06-28 Thread Mick Knutson
Here is my stack:
As you can see, the values are there, but it just is not picking them
up.
Also, here is what I have in the jsp:

bean:define id=test1 name=consumerValidatorForm
property=activity.lastPinChangeDate/
tr
td class=textreq noWrapnbsp;bean:message
key=label.consumer.lastPinChangeDate //td
td class=textreq%--bean:write name=
property=consumerActivity.lastPinChangeDate /--%
[c:out
value=${consumerValidatorForm.activity.lastPinChangeDate}/]

What would be the bean:write equiv. tag be?



13:36:16,648 INFO  [ConsumerActions] returned IConsumer inside
ConsumerActions::query(...):
[EMAIL PROTECTED]
[EMAIL PROTECTED],[EMAIL PROTECTED],comm

onEnrollmentID=1,prefixName=,firstName=Robert,middleName=B,lastName=Watson,suffixName=,addressLine1=1228
Biltmore St.,addressLine2=,city=Concord,
state=CA,countryCode=USA,postalCode=91438,emailAddress=,phone=925-487-1234,idIssuingState=N1,idNumber=N1234567,idType=DL,dob=19801110,enrollUserI

d=N/A,enrollDate=20050615,enrollingRetailerId=N/A,enrollStoreNumber=00,referenceNumber=null,declineCode=-,activity=com.blackhawk.ff

[EMAIL 
PROTECTED]null,lastPinChangeDate=,lastPersonalCodeChangeDate=]]

13:36:18,398 ERROR [[jsp]] Servlet.service() for servlet jsp threw
exception
javax.servlet.jsp.JspException: Invalid argument looking up property
activity.lastPinChangeDate of bean consumerValidatorForm
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:1017)
at
org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:232)
at
org.apache.jsp.WEB_002dINF.default_.body.consumer_jsp._jspService(org.apache.jsp.WEB_002dINF.default_.body.consumer_jsp:384)






--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---


MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


unable to print nested values with bean:write, or c:out

2005-06-27 Thread Mick Knutson
I have an ActionForm (consumerValidatorForm) that contains a
ConsumerActivity object. The CA object contains a date
(lastPinChangeDate).

I am trying this in my jsp, and nothing seems to print:

bean:define id=lastPinChangeDate name=consumerValidatorForm
property=consumerActivity.lastPinChangeDate/
tr
td class=textreq noWrapnbsp;bean:message
key=label.consumer.lastPinChangeDate //td
td class=textreqc:set var=lastPinChangeDate
value=${consumerValidatorForm.consumerAct.lastPinChangeDate}/
[c:out value=${lastPinChangeDate}/]
/td
/tr

All I get is [] printed, and I know there is a date in that object as I
do a print in my action.


--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



Re: unable to print nested values with bean:write, or c:out

2005-06-27 Thread Mick Knutson
)

at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

at java.lang.Thread.run(Thread.java:534)
19:02:50,970 ERROR [InsertTag] ServletException in
'/WEB-INF/default/body/consumer.jsp': Invalid argument looking up property
consumerActivity.la
stPinChangeDate of bean consumerValidatorForm






Mick Knutson wrote:

 I have an ActionForm (consumerValidatorForm) that contains a
 ConsumerActivity object. The CA object contains a date
 (lastPinChangeDate).

 I am trying this in my jsp, and nothing seems to print:

 bean:define id=lastPinChangeDate name=consumerValidatorForm
 property=consumerActivity.lastPinChangeDate/
 tr
 td class=textreq noWrapnbsp;bean:message
 key=label.consumer.lastPinChangeDate //td
 td class=textreqc:set var=lastPinChangeDate
 value=${consumerValidatorForm.consumerAct.lastPinChangeDate}/
 [c:out value=${lastPinChangeDate}/]
 /td
 /tr

 All I get is [] printed, and I know there is a date in that object as I
 do a print in my action.

 --

 Thanks
 Mick Knutson
 (925) 951-4126
 HP Consulting Services
 Safeway (Blackhawk Fastword Project)
 J2EE Architect
 ---

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


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



RE: form problem

2004-08-20 Thread Mick . Knutson
Try the Bean.populate() method. This will make copying from different beans
much easier.


-Original Message-
From: Lucero, Dennis M [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 5:53 PM
To: [EMAIL PROTECTED]
Subject: form problem


Does anyone know how to do this or why it does not work?
 
Both these methods would be called from an action class.
 
 
Function void useMyForm(ActionForm form){
SomeFormClass myForm = new SomeFormClass();
myForm.setName(Blah);
myForm.setAge(289);
etc...
 
form = myForm;
}
 
When I get to the jsp the fields are not populated with the form
variables
.
why does this not work  but  the following way does.
 
Function void fillInForm(ActionForm form){
SomeFormClass myForm = (SomeFormClass)form;
myForm.setName(Blah);
myForm.setAge(289);
etc...
 
}
 
Using this normal way when I get to the jsp the fields are populated
with the form variables.
 
How can a use something similar to the first method?
 
 
 
 
I am he, as you are he, as you are me, and we are all together.
 

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



RE: OT - How to add icon in browser url field

2004-07-06 Thread Mick . Knutson
Are you talking about the Address:... field of the browser?
If so, just create an icon and call it favicon.ico and put it into your
root HTML directory. Then it just works


-Original Message-
From: David Gagnon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 1:42 PM
To: 'Struts Users Mailing List'
Subject: OT - How to add icon in browser url field


Hi 

Sorry for the OT topic :-).  I'm looking for a while now how you can add
icon that appears in the URL text field of a browser (example:
http://www.hicksdesign.co.uk/).  I heard it's something that I must do
server side.  Is there a way to have it works with Tomcat 4.x.


Thanks for your help

/David



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



Validation: How do I do a field check for NotEqual? (!=)

2004-07-01 Thread Mick . Knutson
I am having trouble getting a field check for a NOTEQUAL. How would I
implement that?


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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



RE: Validation: How do I do a field check for NotEqual? (!=)

2004-07-01 Thread Mick . Knutson
within my validation.xml?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 01, 2004 11:21 AM
To: Struts Users Mailing List
Subject: Re: Validation: How do I do a field check for NotEqual? (!=)



Assuming a String datatype:  if (!myString.equals(yourString))
{System.out.println(Not equal.}; 

Dennis 




[EMAIL PROTECTED] 


07/01/2004 02:15 PM 


Please respond to
Struts Users Mailing List [EMAIL PROTECTED]



To
[EMAIL PROTECTED] 

cc

Subject
Validation: How do I do a field check for NotEqual? (!=)






I am having trouble getting a field check for a NOTEQUAL. How would I
implement that?


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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






Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Mick . Knutson
How can I Use 1 Validator definition for 2 different forms?


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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



Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Mick . Knutson
How can I Use 1 Validator definition for 2 different forms?


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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


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



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Mick . Knutson
No, I mean I have a user1Form, and user2Form.
They are identical forms as we are using Tiles to display them.


-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 12:21 PM
To: Struts Users Mailing List
Subject: RE: Using 1 Validator definition for 2 different forms?


If you're talking about masks, then you can use globals.  You could also
create your own custom validator, iirc 1.2 will have some inheritance
features, but not sure what scope yet since I'm not using 1.2.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 29, 2004 12:12 PM
 To: [EMAIL PROTECTED]
 Subject: Using 1 Validator definition for 2 different forms?
 
 
 How can I Use 1 Validator definition for 2 different forms?
 
 
 ---
  Thanks...
  Mick Knutson
  
  525 Market Street, SF, CA  94103
  (415) 222-1020
  [EMAIL PROTECTED]
  MAC A0103-223
 ---
 
 
 
 -
 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]



Validation Mask help please

2004-06-24 Thread Mick . Knutson
I have the following field validation:
field property=bankerMacAddress depends=required,mask
msg name=required key=mask.bankerMacAddress/
msg name=mask key=mask.bankerMacAddress/
arg0 key=form.bankerMacAddress/
var
   var-namemask/var-name
   var-value^[A-Za-z]\d{4}-\d{3}$/var-value
/var
/field

I want to have a MAC address like follows _OLNY_:
1 letter, followed by 4 digits, a hyphen, then 3 digits
A8345-123

Can someone help with this REGEX please:
^[A-Za-z]\d{4}-\d{3}$


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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



RE: Validation Mask help please

2004-06-24 Thread Mick . Knutson
What is the $ for?
I know the ^ is to start at the beginning.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 12:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Validation Mask help please


try something like [a-zA-Z][0-9]{4}-\d{3}

-Ram

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 2:06 PM
To: [EMAIL PROTECTED]
Subject: Validation Mask help please


I have the following field validation:
field property=bankerMacAddress depends=required,mask
msg name=required key=mask.bankerMacAddress/
msg name=mask key=mask.bankerMacAddress/
arg0 key=form.bankerMacAddress/
var
   var-namemask/var-name
   var-value^[A-Za-z]\d{4}-\d{3}$/var-value
/var
/field

I want to have a MAC address like follows _OLNY_:
1 letter, followed by 4 digits, a hyphen, then 3 digits
A8345-123

Can someone help with this REGEX please:
^[A-Za-z]\d{4}-\d{3}$


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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

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

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



RE: Struts, War files, and WebLogic

2004-06-10 Thread Mick . Knutson
Sounds like you have a security realm on WebLogic that is causing this.
Is this a fresh install?

-Original Message-
From: David Meyer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 1:44 PM
To: [EMAIL PROTECTED]
Subject: Struts, War files, and Weblogic


I have a war file that I am trying to deploy on Weblogic 8.1.  I am able to
deploy and access jsp's within the WAR file.  However, when a Struts action
is requested, i.e. http://server/someAction.do, I get the following
NullPointerException:

java.lang.NullPointerException
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j
ava:1003)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
55)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubI
mpl.java:1070)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:893)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:842)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:782)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:50
4)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:349)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6291)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3575)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
 
It looks like that the Struts ActionServlet cannot find my struts config
files, even though they are in the correct location within the war file.

What's really odd is if I unwar and deploy the app as an exploded directory,
everything works fine, including the Struts pages.  Any ideas?

Thanks for the help,

David Meyer

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



Validating multiple DTO's within a single ActionForm.

2004-06-03 Thread Mick . Knutson
I am trying to design my forms and the way I need to validate them.

Here is what my Business Model Looks like:

CreditApplication
--Business
  |Business Account
---Banker
---Guarantor

Each of the Items above has their own HTML page and DynaValidationForm.

Now there are general validation needed at submit time for each Form, but
then there is additional validation needed when they try to save the
CreditApplication.

We were planning on saving all the DynaForms into Session Scope until a
Save is attempted. They validate the additional validation.
How do we go about doing this?


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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



RE: validator.xml usage

2004-06-02 Thread Mick . Knutson
That worked!
Thanks


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 2:11 PM
To: 'Struts Users Mailing List'
Subject: RE: validator.xml usage


type=org.apache.struts.validator.DynaValidatorActionForm

try type=org.apache.struts.validator.DynaValidatorForm



because of
 form name=productSelectionForm

---
form-bean name=productSelectionForm
type=org.apache.struts.validator.DynaValidatorActionForm

for ACTIONform you must (in validation.xml)
form name=/productSelection

Cheers,


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 01, 2004 10:56 PM
 To: [EMAIL PROTECTED]
 Subject: RE: validator.xml usage
 
 
 OK, Here is the lot then of what I have already configured. 
 Note that nothing happends though when I run it. So when I go 
 to productSelection.do and do not select anything, I should 
 get an error. I do not get any error.
 
 validation.xml
 ==
 !--
 This is the validator for the prouct selection page.
 --
 form name=productSelectionForm
 field  property=businessLineSelected
 depends=required
 
 arg0 key=form.businessLineSelected/
 /field
 /form
 
 
 productSelection.jsp
 
 ...
 html:form action=productSelection method=post
 ...
 html:checkbox property=businessLineSelected / ...
 html:submit property=actionbean:message 
 key=button.continue bundle=BUTTONS_KEY //html:submit ...
 
 
 
 
 
 struts-config.xml
 =
 form-bean name=productSelectionForm
  
 type=org.apache.struts.validator.DynaValidatorActionForm
 form-property name=businessLineSelected 
 type=java.lang.String /
 form-property name=businessCardSelected 
 type=java.lang.String /
 form-property name=businessSecuredCardSelected
 type=java.lang.String /
 form-property name=equipmentExpressSelected 
 type=java.lang.String /
 form-property name=action type=java.lang.String /
  /form-bean
 
 action path=/productSelection
 input=.productSelection
 name=productSelectionForm
 parameter=action
 scope=request
  
 type=com.wf.bd.ice.creditapplication.CreditApplicationActions
 validate=true
 
   forward name=error path=.productSelection 
 redirect=true /
   forward name=continue path=.business 
 redirect=true /
   !-- Start nav fwds --
   forward name=productSelection 
 path=.productSelection redirect=true /
   forward name=conclude 
 path=.acceptanceAgreement redirect=true /
 /action
 
 
 controller
 contentType=text/html;charset=UTF-8
 debug = 9
 locale = true
 nocache = true
 processorClass = 
 org.apache.struts.tiles.TilesRequestProcessor/
 
 
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
 set-property property=pathnames 
 value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml /
 /plug-in
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: Rodrigo Oliveira [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 1:31 PM
 To: Struts Users Mailing List
 Subject: Re: validator.xml usage
 
 
 That is true! if u specify that in the struts-config.xml!!! :)
 
 Rodrigo Oliveira
 [EMAIL PROTECTED]
 
 
 - Original Message - 
 From: gads zooks [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 5:32 PM
 Subject: Re: validator.xml usage
 
 
  that is trueif u want to use server side validation you can 
  specify
 that in the
  struts-config.html
  something like this
 
  action path=/Action
  name=FormToBeValidated
  validate=true  
 --- set true
 here
  parameter=function
  input=somepage.jsp   --- goes to this page 
 if validation
 fails
  /
 
  if you want to use javascript toowith the same setup 
  (validation.xml,
 validator-rules.xml) u can add the html:javascript/ tag to 
 your jsp and it will show u the errorsthere are also 
 html:messages /  , u can check out the info at 
 husted.com/struts site
 
  hope this helps
 
  amit
 
 
  Rodrigo Oliveira [EMAIL PROTECTED] wrote:
  The validation.xml you put the rules for client and server 
 validation. 
  The struts validator validate your forms based on same validation 
  rules.
 
  []´s
 
  Rodrigo Oliveira
  [EMAIL PROTECTED]
 
 
  - Original Message -
  From:
  To:
  Sent: Tuesday, June 01, 2004 5:15 PM
  Subject: validator.xml usage
 
 
   Is the validator.xml just for client-side validation? Or also for 
   server-side validation
  
  
   ---
Thanks...
Mick Knutson
   
525 Market Street, SF, CA 94103
(415) 222-1020
[EMAIL PROTECTED

[ot]Common-logging in EJB.jar issue

2004-06-02 Thread Mick . Knutson
I am trying to use commons-logging in my struts, as well as my ejb's, but I
get a log4j error instead.

Here is the declaration/usage in my ejb:

CreditApplicationBean:
===
...
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
private Log log = LogFactory.getLog( this.getClass() );
...
...
if( log.isInfoEnabled() ) {
log.info( = );
log.info( Process CreditApplicationManager.conclude(...)
);


Here is my simplelog.properties:

# Logging detail level,
# Must be one of (trace, debug, info, warn, error, or fatal).
org.apache.commons.logging.simplelog.defaultlog=trace

Here is my commons-logging.properties:
==
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog


Here is the print of what happens:
=

[INFO] CreditApplicationServicesDelegate -
-=
log4j:WARN No appenders could be found for logger
(com.wf.bd.ice.creditapplication.CreditApplicationManager_9j600a_Impl).
log4j:WARN Please initialize the log4j system properly.
[DEBUG] TilesRequestProcessor -
-processForwardConfig(.acceptanceAgreement, false)


I added the 2 properties files into my ear and my ejb.jar. But no luck



---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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



RE: jsp problem

2004-06-01 Thread Mick . Knutson
This is because the webserver looks for processing everything after
mydomain.com except for */examples, which is delegated to tomcat.

You need to configure tomcat and apache to delegate all requests on
mydomain.com/*.jsp to Tomcat.

-Original Message-
From: Charles Jordan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:34 AM
To: [EMAIL PROTECTED]
Subject: jsp problem


In my never ending quest to setup my server to use:
http://mydomain.com
instead of:
http://mydomain.com/examples

I am now able to use http://mydomain.com but my index.jsp source code
is being displayed, instead of it executing.

Any idess as to what I'm doing wrong?


Charles (Allen) Jordan   [EMAIL PROTECTED]
  System Administrator(407)771-8919
  Convergys
  285 International Parkway, 
  Lake Mary, FL 32746-5007


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



validator.xml usage

2004-06-01 Thread Mick . Knutson
Is the validator.xml just for client-side validation? Or also for
server-side validation


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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



RE: validator.xml usage

2004-06-01 Thread Mick . Knutson
I can't seem to find any examples about the server-side though. Can you
help?
I just can't use any JavaScript at all, and I need to get the validation
working.
I already have used the JavaScript on another project, so I am pretty
comfortable on the validation.xml

-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 1:21 PM
To: Struts Users Mailing List
Subject: RE: validator.xml usage


validation.xml and validator-rules.xml in Struts validation framework are
used for both client and server side validation.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:15 PM
To: [EMAIL PROTECTED]
Subject: validator.xml usage


Is the validator.xml just for client-side validation? Or also for
server-side validation


---
 Thanks...
 Mick Knutson
 
 525 Market Street, SF, CA  94103
 (415) 222-1020
 [EMAIL PROTECTED]
 MAC A0103-223
---



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


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

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



RE: validator.xml usage

2004-06-01 Thread Mick . Knutson
I tried to call form.validate(), but there was not any validation that was
performed.

Right now I have DynaValidationActionForm's.



-Original Message-
From: Rodrigo Oliveira [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 1:13 PM
To: Struts Users Mailing List
Subject: Re: validator.xml usage


The validation.xml you put the rules for client and server validation. The
struts validator validate your forms based on same validation rules.

[]´s

Rodrigo Oliveira
[EMAIL PROTECTED]


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 5:15 PM
Subject: validator.xml usage


 Is the validator.xml just for client-side validation? Or also for
 server-side validation


 ---
  Thanks...
  Mick Knutson
 
  525 Market Street, SF, CA  94103
  (415) 222-1020
  [EMAIL PROTECTED]
  MAC A0103-223
 ---



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



WHO IS shaikh.sohrab@rave-tech.com?

2004-06-01 Thread Mick . Knutson
[EMAIL PROTECTED] Keeps bouncing back to me when I post to this
group.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 1:29 PM
To: [EMAIL PROTECTED]
Subject: RE: validator.xml usage


I tried to call form.validate(), but there was not any validation that was
performed.

Right now I have DynaValidationActionForm's.



-Original Message-
From: Rodrigo Oliveira [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 1:13 PM
To: Struts Users Mailing List
Subject: Re: validator.xml usage


The validation.xml you put the rules for client and server validation. The
struts validator validate your forms based on same validation rules.

[]´s

Rodrigo Oliveira
[EMAIL PROTECTED]


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 5:15 PM
Subject: validator.xml usage


 Is the validator.xml just for client-side validation? Or also for
 server-side validation


 ---
  Thanks...
  Mick Knutson
 
  525 Market Street, SF, CA  94103
  (415) 222-1020
  [EMAIL PROTECTED]
  MAC A0103-223
 ---



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




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

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

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



RE: validator.xml usage

2004-06-01 Thread Mick . Knutson
Please see my last email. I have everything you mentioned

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 1:59 PM
To: 'Struts Users Mailing List'
Subject: RE: validator.xml usage


Did you got i work?

DynaValidatorActionForm is for PATH-attribute of
action path=/Action
name=FormToBeValidated
validate=true 
input=somepage.jsp 
/

so edit /Action in validation.xml like:

validation.xml
==
!--
This is the validator for the prouct selection page.
--
form name=/Action ...

the usage is for multipage-form (form-wizzard)

DynaValidatorForm is for validating a hole FormBean in one submit.

then enter form name=FormToBeValidated ...
in validatin.xml



hope it helps

Cheers Matze,
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 01, 2004 10:29 PM
 To: [EMAIL PROTECTED]
 Subject: RE: validator.xml usage
 
 
 I tried to call form.validate(), but there was not any 
 validation that was performed.
 
 Right now I have DynaValidationActionForm's.
 
 
 
 -Original Message-
 From: Rodrigo Oliveira [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 1:13 PM
 To: Struts Users Mailing List
 Subject: Re: validator.xml usage
 
 
 The validation.xml you put the rules for client and server 
 validation. The struts validator validate your forms based on 
 same validation rules.
 
 []´s
 
 Rodrigo Oliveira
 [EMAIL PROTECTED]
 
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 5:15 PM
 Subject: validator.xml usage
 
 
  Is the validator.xml just for client-side validation? Or also for 
  server-side validation
 
 
  ---
   Thanks...
   Mick Knutson
  
   525 Market Street, SF, CA  94103
   (415) 222-1020
   [EMAIL PROTECTED]
   MAC A0103-223
  ---
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



RE: I need an html:submit to act as html:link

2004-05-28 Thread Mick . Knutson
Is there a JavaScript item that will do that? Or CSS?

-Original Message-
From: ksitron [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 2:47 PM
To: Struts Users Mailing List
Subject: I need an html:submit to act as html:link


I need the cursor to change when over an html:submit button, similiar in 
behavior
to an html:link.

Possible or Not ??


Thanks in advance.


-- 





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

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



RE: Can I have multiple ApplicationResources from the same locale ?

2004-05-26 Thread Mick . Knutson
message-resources parameter=ApplicationResources null=false /
message-resources parameter=LookupMethodMessageResources
key=BUTTONS_KEY null=false /

And then in the use the 'bundle=' attribute on the bean:write tag to
specify the additional bundle to use, if different than the default.


-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 11:38 AM
To: Struts Users Mailing List
Subject: Q: Can I have multiple ApplicationResources from the same
locale?


This may be a RTFM situation, but I didn't want to take a break and try it
and 
then after a hour find out it didn't work so I was hoping (while I was 
coding) someone could let me know if the following is legal:

Situation:
I have an ApplicationResources_en.properties file that represents the
English 
locale of my app. This file is getting huge (to say the least) as I've 
internationalized pretty much all the text in my entire app. I was hoping to

break out this file into logical units that collective represented the 
English locale, for example:

ApplicationResources-User_en.properties
ApplicationResources-Product_en.properties
ApplicationResources-Module_en.properties
ApplicationResources-Administrator_en.properties.

and move the corresponding key/value strings into the appropriate
.properties 
files. But then I had a question about how my message-resources tag in my 
struts-config file should change... it currently looks like this:
message-resources parameter=a.b.c.d.ApplicationResources /

Thanks for any help you can provide.

Best,
Riyad

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

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



RE: Can I have multiple ApplicationResources from the same locale ?

2004-05-26 Thread Mick . Knutson
That is so if the key does not exist, you will get ???bundle.key.attr???
instead of a null string.



-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 11:44 AM
To: Struts Users Mailing List
Subject: Re: Can I have multiple ApplicationResources from the same
locale ?


Ahhh ok, thanks for the info. 

What is null=false for?

On Wednesday 26 May 2004 11:43 am, [EMAIL PROTECTED] wrote:
 message-resources parameter=ApplicationResources null=false /
 message-resources parameter=LookupMethodMessageResources
 key=BUTTONS_KEY null=false /

 And then in the use the 'bundle=' attribute on the bean:write tag to
 specify the additional bundle to use, if different than the default.


 -Original Message-
 From: Riyad Kalla [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 26, 2004 11:38 AM
 To: Struts Users Mailing List
 Subject: Q: Can I have multiple ApplicationResources from the same
 locale?


 This may be a RTFM situation, but I didn't want to take a break and try it
 and
 then after a hour find out it didn't work so I was hoping (while I was
 coding) someone could let me know if the following is legal:

 Situation:
 I have an ApplicationResources_en.properties file that represents the
 English
 locale of my app. This file is getting huge (to say the least) as I've
 internationalized pretty much all the text in my entire app. I was hoping
 to

 break out this file into logical units that collective represented the
 English locale, for example:

 ApplicationResources-User_en.properties
 ApplicationResources-Product_en.properties
 ApplicationResources-Module_en.properties
 ApplicationResources-Administrator_en.properties.

 and move the corresponding key/value strings into the appropriate
 .properties
 files. But then I had a question about how my message-resources tag in my
 struts-config file should change... it currently looks like this:
 message-resources parameter=a.b.c.d.ApplicationResources /

 Thanks for any help you can provide.

 Best,
 Riyad

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

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

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

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



RE: struts is giving error on weblogic81

2004-05-17 Thread Mick . Knutson
We might be interested in this. We are creating a new app on WLS 8.1
currently.
Are there a list of specific items that are being fixed associated with
WLS8.1?


-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 8:30 AM
To: Struts Users Mailing List
Subject: Re: struts is giving error on weblogic81


Could this be related to Bug #26322, which indicates that Weblogic 
8.1 expects just about everything to be serializeable?
http://issues.apache.org/bugzilla/show_bug.cgi?id=26322

It doesn't appear that BasicDataSource implements Serializeable:
http://cvs.apache.org/viewcvs/jakarta-commons/dbcp/src/java/org/apache/commo
ns/dbcp/BasicDataSource.java

Speaking of which, we need testers who use WL8.1 to test the patches 
in Bug #26322 -- right now, that would require applying the patches 
yourself, but after we cut Struts 1.2.1, I think the plan is to apply 
those patches so that they start getting tested.

Joe



At 8:18 PM +0530 5/17/04, Jignesh Patel wrote:
We are trying to deploy struts1.1 based application on weblogic8.1 which is
already working fine on tomcat5.19.
But it is giving problem because of following datasource code, if we remove
it
then we are not able to get the oracle database connection and if keep it,
the code is not deploying ActionServlet.

Does any body is having same kind of problem?

Data source code in struts-config.xml

data-sources
data-source type=org.apache.commons.dbcp.BasicDataSource
set-property property =driverClassName  
value=oracle.jdbc.driver.OracleDriver/  
   set-property property=url
value=jdbc:oracle:thin:@192.168.0.2:1521:db1/
!--   set-property property=url
value=jdbc:oracle:thin:@192.168.1.20:1521:orcl/--

  set-property property=username value=jpatel /
  set-property property=password value=jpatel /
  /data-source
   /data-sources 



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


-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
   Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining.
 -- Jef Raskin

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

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



Validating a composite object?

2004-05-05 Thread Mick . Knutson
I have dependencies between a composite object that needs validation.

I have a composite DTO (CA), that has 1 BI, 1..* OI's, and 1..* Prod's. But
there are fields in the BI that are dependant on fields in the various OI's?

I.E:

CA:
 |-- 1 BI
 |-- BI.EIN
 |-- BI.Type
 |-- 1..* OI
 |-- OI.SSN
 |-- 1..* PROD


For example, the BI.EIN# can not be the same as the OI.SSN# on any of
the OI's if the BI.Type is _NOT_ Sole Proprietor.

Can anyone help with a way to design my validation?


---
Thanks

Mick Knutson
415-222-1020
---



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