Re: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Mick Knutson
Are you saying that the fmt will get com.baselogic.text by default, but if
the Globals.LOCALE = DE, then fmt will get com.baselogic.text_de?
Or am I missing where fmt gets it's locale information from?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Paul McCulloch [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 2:21 AM
Subject: RE: IMPORTANT: internationalize large chunks of text/HTML


 I use a similair approach, but get fmt:message to deal with selecting the
 correct locale for me:

 bean:define id=localePage
 fmt:message key=some.langauage.specific.page/
 /bean:define
 jsp:include page=%=localePage% flush=true/

 I then define the path to the locale specific html page in the relvant
 .properties file.

 Paul

 -Original Message-
 From: Ted Husted [mailto:[EMAIL PROTECTED]
 Sent: 15 October 2003 10:14
 To: Struts Users Mailing List
 Subject: Re: IMPORTANT: internationalize large chunks of text/HTML


 I haven't had to do this myself, but I believe that when you have entire
 pages that can be maintained separately, people start developing
 separate page trees. The idea being that you can have an Action check
 the locale and fork to one set of ActionForwards or another, based on
 the locale.

 -Ted.

 Mick Knutson wrote:

  I have posted this before, and I still am trying to understand the best
 way
  to approach this.
 
  I have 100% of my labels in a Resource bundle currently. But I also have
  larger pages of text (1-2 pages at a time), that I need to be
  internationalized just like my labels. I am wondering what the best way
to
  do this is?
  I just want to know what other people are doing that is easy on
 maintenance.
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
  +00 1 (708) 570-2772 Fax
  MSN: mickknutson
  ICQ: 316498480
  ICQ URL: http://wwp.icq.com/316498480
 
  ---
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -- 
 Ted Husted,
Junit in Action  - http://www.manning.com/massol/,
Struts in Action - http://husted.com/struts/book.html,
JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.



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


 **
 Axios Email Confidentiality Footer
 Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and notify
us immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
 WARNING:
 While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.


 -
 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: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Mick Knutson
Well, I did not want to put URGENT, but yes, everything is a critical mass
as I have a 2 day expo starting tomorrow for 500+ people that I am
demonstrating my new application to. So with lack of sleep and heaps of
stress, I am sorry but everything is fairly important right now.

BTW, I really do appreciate the emails of help at this critical time for me.
It has helped out!


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 1:26 AM
Subject: RE: IMPORTANT: internationalize large chunks of text/HTML


 What! Can you not see that the very fate of human civilisation itself
 depends on it? Open your eyes man!

 -Original Message-
 From: Peter [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 15 October 2003 16:23
 To: [EMAIL PROTECTED]
 Subject: Re: IMPORTANT: internationalize large chunks of text/HTML


 IMPORTANT? Not for me sorry!

 Mick Knutson wrote:
 
  I have posted this before, and I still am trying to
  understand the best way
  to approach this.
 
  I have 100% of my labels in a Resource bundle
  currently. But I also have
  larger pages of text (1-2 pages at a time), that I
  need to be
  internationalized just like my labels. I am
  wondering what the best way to
  do this is?
  I just want to know what other people are doing that
  is easy on maintenance.
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our
  Personal Emergency Alert 
  Contact System can help you Play Smart.
 
  +00 1 (708) 570-2772 Fax
  MSN: mickknutson
  ICQ: 316498480
  ICQ URL: http://wwp.icq.com/316498480
 
  ---


 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com

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


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



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



[OT]formatting line breaks and tabs in emails?

2003-10-15 Thread Mick Knutson
I am trying to format email messages that need to contain line breaks, and tabs. But 
when I add \n\r or \t, they just seems to be ignored.
Is there a way to do this?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


Re: Urgent: username case insensitive for j_security_check?

2003-10-14 Thread Mick Knutson
The issues is that I have seen the users that will be on my system. and they
are already adding TheUserFromOhio as a username etc... Now I can always
change everything to lower case when they register. But then I still have
the issue about the login.
And many of my users are Mac users, so I seem to have heaps of JavaScript
issues.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 12:53 AM
Subject: Re: Urgent: username case insensitive for j_security_check?


 On 10/14/2003 06:06 AM Mick Knutson wrote:
  I guess I never thought about this, but all my usernames have not been
entered in a case insensitive fashion. I can easily enough fix this in the
Action Class to make everything lowercase, but how do I do this with the
j_security_check form?
  I also need a solution that does not rely on JavaScript. Maybe I can use
a filter?
 

 Hi Mick,
 a filter won't work. You won't be able to put anything between the
 browser submit and the container-managed authentication - it's
 completely tomcat and allows no programmatic interference. Can't you
 convert your user names with a script or something?

 Adam

 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9


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



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



Re: Urgent: username case insensitive for j_security_check?

2003-10-14 Thread Mick Knutson
Currently I am just using the JBoss framework, and have not done my own.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 7:27 AM
Subject: Re: Urgent: username case insensitive for j_security_check?


 Mick,
 it depends on your login framework. Are you using a tomcat realm or have
 you rolled your own? If you are using a JDBC realm with a database, you
 could change the query to make the conversion, for instance.


 Adam

 On 10/14/2003 04:06 PM Mick Knutson wrote:
  The issues is that I have seen the users that will be on my system. and
they
  are already adding TheUserFromOhio as a username etc... Now I can
always
  change everything to lower case when they register. But then I still
have
  the issue about the login.
  And many of my users are Mac users, so I seem to have heaps of
JavaScript
  issues.
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
  +00 1 (708) 570-2772 Fax
  MSN: mickknutson
  ICQ: 316498480
  ICQ URL: http://wwp.icq.com/316498480
 
  ---
 
  - Original Message - 
  From: Adam Hardy [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, October 14, 2003 12:53 AM
  Subject: Re: Urgent: username case insensitive for j_security_check?
 
 
 
 On 10/14/2003 06:06 AM Mick Knutson wrote:
 
 I guess I never thought about this, but all my usernames have not been
 
  entered in a case insensitive fashion. I can easily enough fix this in
the
  Action Class to make everything lowercase, but how do I do this with the
  j_security_check form?
 
 I also need a solution that does not rely on JavaScript. Maybe I can
use
 
  a filter?
 
 Hi Mick,
 a filter won't work. You won't be able to put anything between the
 browser submit and the container-managed authentication - it's
 completely tomcat and allows no programmatic interference. Can't you
 convert your user names with a script or something?


 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9


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



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



IMPORTANT: internationalize large chunks of text/HTML

2003-10-14 Thread Mick Knutson
I have posted this before, and I still am trying to understand the best way
to approach this.

I have 100% of my labels in a Resource bundle currently. But I also have
larger pages of text (1-2 pages at a time), that I need to be
internationalized just like my labels. I am wondering what the best way to
do this is?
I just want to know what other people are doing that is easy on maintenance.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



path=http://URL?????

2003-10-14 Thread Mick Knutson
Can I add a path statement that has a fully qualified URL in it?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



Urgent: issue with logic:present role=user, gold, platinum

2003-10-13 Thread Mick Knutson
I am sorry to say urgent, but I have to demo this to my boss this afternoon and I am 
stumped.
I have 3 different types of users. user, gold and platinum. I need to only show this 
edit button to those users with this tag as noted by Craig. But the button only shows 
up if I am logged in as a user, not gold, and not platinum.:

logic:present role=user, gold, platinum
html:submit property=action styleClass=form_button
bean:message key=button.edit/
/html:submit
/logic:present

Here is my web.xml setting.

servlet
servlet-nameaction/servlet-name

servlet-classcom.baselogic.yoursos.struts.ExtendedActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-value3/param-value
/init-param
init-param
param-namedetail/param-name
param-value1/param-value
/init-param
load-on-startup1/load-on-startup

security-role-ref
  role-nameuser/role-name
  role-linkuser/role-link
/security-role-ref
security-role-ref
  role-namegold/role-name
  role-linkgold/role-link
/security-role-ref
security-role-ref
  role-nameplatinum/role-name
  role-linkplatinum/role-link
/security-role-ref

/servlet


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


Re: Urgent: issue with logic:present role=user, gold, platinum

2003-10-13 Thread Mick Knutson
It seems as though I was assuming it did not matte about whitespace. I have
used this technique many other places to keep the code cleaner.
I am very sorry that I had such an issue for something so easy to fix.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Syed, Nazeer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Mick
Knutson [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 9:26 AM
Subject: RE: Urgent: issue with logic:present role=user, gold, platinum


Remove the space after , this may work.

logic:present role=user,gold,platinum


Thanks
Nazeer


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:20 PM
To: struts
Subject: Urgent: issue with logic:present role=user, gold, platinum

I am sorry to say urgent, but I have to demo this to my boss this
afternoon and I am stumped.
I have 3 different types of users. user, gold and platinum. I need to
only show this edit button to those users with this tag as noted by
Craig. But the button only shows up if I am logged in as a user, not
gold, and not platinum.:

logic:present role=user, gold, platinum
html:submit property=action styleClass=form_button
bean:message key=button.edit/
/html:submit
/logic:present

Here is my web.xml setting.

servlet
servlet-nameaction/servlet-name

servlet-classcom.baselogic.yoursos.struts.ExtendedActionServlet/servl
et-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-value3/param-value
/init-param
init-param
param-namedetail/param-name
param-value1/param-value
/init-param
load-on-startup1/load-on-startup

security-role-ref
  role-nameuser/role-name
  role-linkuser/role-link
/security-role-ref
security-role-ref
  role-namegold/role-name
  role-linkgold/role-link
/security-role-ref
security-role-ref
  role-nameplatinum/role-name
  role-linkplatinum/role-link
/security-role-ref

/servlet


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert
 Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



requested url within the j_security_check call?

2003-10-13 Thread Mick Knutson
When I get a logon form up from a secured area request, and the user adds a wrong 
username or password. They get an error logon form to re-logon. But then they get 
forwarded to the main home page, not their requested URL. How can I get that requested 
URL when inside the errorLogon.jsp page I created so I can then forward them to the 
correct page?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


validating not within a pull-down menu?

2003-10-13 Thread Mick Knutson
I have a pull-down menu with 3 values , gold, and platinum. How can I
validate that  is not the selected option?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



Urgent: username case insensitive for j_security_check?

2003-10-13 Thread Mick Knutson
I guess I never thought about this, but all my usernames have not been entered in a 
case insensitive fashion. I can easily enough fix this in the Action Class to make 
everything lowercase, but how do I do this with the j_security_check form?
I also need a solution that does not rely on JavaScript. Maybe I can use a filter?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


pull-down menu item question

2003-10-11 Thread Mick Knutson
I have seen some pull-down menus in the past that have allowed there to be a prompt 
text displayed first when you look at the menu, but then a soon as you go to select an 
item, that prompt is no longer available. How does this work? Is this possible in 
struts?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


Tiles help please...

2003-10-11 Thread Mick Knutson
I am getting a bean into a tile that has a checkbox in it. I get the NAME of the 
checkbox, but I need to see if the value is on or off, then set the disabled flay in 
an html:img.
But, I always get null errors.
Can someone help please?


tiles:useAttribute id=beanName name=property classname=java.lang.String 
ignore=true /
tiles:importAttribute name=bean /
bean:define id=isChecked name=bean property='%= beanName %' 
type=java.lang.String value= /


%
if( isChecked == null || !isChecked.equals( true ) )
{
   //isChecked = false;
%
html:img bundle=IMAGE_RESOURCES_KEY height=15 width=15 
srcKey=default.checked /
%
}
else
{
%
html:img bundle=IMAGE_RESOURCES_KEY height=15 width=15 
srcKey=default.unchecked /
%
}
%



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


Help with Tiles matching a checkbox

2003-10-10 Thread Mick Knutson
I am trying to have a Tile replace an html checkbox with an image. But I can't seem to 
get this to work.


tiles:useAttribute id=beanName name=property classname=java.lang.String 
ignore=true /
tiles:importAttribute name=bean /
bean:define id=checkbox name=bean property='%= beanName %' 
type=java.lang.String value= /

logic:present name=bean 
logic:match name=bean property='%= checkbox %' value=on 
%= checkbox %:::logicmatchhtml:img bundle=IMAGE_RESOURCES_KEY height=15 
width=15 srcKey=default.checked /
/logic:match
logic:notMatch name=bean property='%= checkbox %' value=on 
%= checkbox %logic:notMatchhtml:img bundle=IMAGE_RESOURCES_KEY 
height=15 width=15 srcKey=default.unchecked /
/logic:notMatch
/logic:present

logic:present name=bean 
logic:match name=bean property='%= checkbox %' value=on 
%= checkbox %:::logicmatchhtml:img bundle=IMAGE_RESOURCES_KEY height=15 
width=15 srcKey=default.checked /
/logic:match
logic:notMatch name=bean property='%= checkbox %' value=on 
%= checkbox %logic:notMatchhtml:img bundle=IMAGE_RESOURCES_KEY 
height=15 width=15 srcKey=default.unchecked /
/logic:notMatch
/logic:present
logic:notPresent name=bean 
logic:notPresenthtml:img bundle=IMAGE_RESOURCES_KEY height=15 width=15 
srcKey=default.unchecked /
/logic:notPresent



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert  Contact 
System can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---


Re: [OT]Keel

2003-10-10 Thread Mick Knutson
What is the url?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Butt, Dudley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 7:31 AM
Subject: [OT]Keel


 Hi anyone tried Keel  out yet?
 Reason why I'm asking here is because this mailing list is so active...


 NOTICE:

 This message contains privileged and confidential information intended
 only for the person or entity to which it is addressed.
 Any review, retransmission, dissemination, copy or other use of, or
 taking of any action in reliance upon this information by persons or
 entities other than the intended recipient, is prohibited.

 If you received this message in error, please notify the sender
 immediately by e-mail, facsimile or telephone and thereafter delete the
 material from any computer.

 The New Africa Capital Group, its subsidiaries or associates do not
 accept liability for any personal views expressed in this message.

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



[Really OT] Fw: Error in my DBUnit import syntax

2003-10-10 Thread Mick Knutson
I am very sorry for this off topic posting, but after a week, there is just
no response, nor much traffic on the DBUnit site to help with this. Maybe
someone here is using DBUnit and could help me figure out this issue.


 I am getting an error importing my DB.xml file. I export it, then try to
  import it again just for checking out the product.
  I am using MySql 3 not 4 and not inodb. here is my ant script:

  Export:
  target name=dbunitexport depends=build_unittest

  dbunit
  driver=${db.driver}
  url=${db.url}
  userid=${db.username}
  password=${db.password}
  export dest=${class.unittest.dir}/${db.exportfile}
  format=xml /
  /dbunit
  /target


  Import:
  target name=dbunitimport depends=junittest

  dbunit
  driver=${db.driver}
  url=${db.url}
  userid=${db.username}
  password=${db.password}
  operation type=UPDATE
  src=${class.unittest.dir}/${db.exportfile} format=xml /
  /dbunit
  /target


  ERROR:

  BUILD FAILED
  file:C:/Documents and Settings/Owner/My Documents/My
  Data/Projects/YourSos/build.xml:589: org.dbunit.DatabaseUnitException:
  java.sql.SQLException: Syntax error or access violation,  message from
  server: You have an error in your SQL syntax.  Check the manual that
  corresponds to your MySQL server version for the right syntax to use near
  'where alert_id = '7595c950c0a801020019a9d17d814d51' and contact


  ---
  Thanks
  Mick Knutson

  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.


  +00 1 (708) 570-2772 Fax
  ---


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



help with requiredIf validation

2003-10-10 Thread Mick Knutson
I have the following requiredIf that does not seem to actually work:

field  property=phone1
 depends=required,minlength,maxlength
arg0 key=form.phone1/
  arg1 name=maxlength key=${var:maxlength}
resource=false/
var
var-nameminlength/var-name
var-value2/var-value
/var
var
var-namemaxlength/var-name
var-value32/var-value
/var
/field
field  property=phone1type
depends=requiredif
arg0 key=form.phone1type/
var
var-namefield[0]/var-name
var-valuephone1/var-value
/var
var
var-namefieldTest[0]/var-name
var-valueNOTNULL/var-value
/var
/field

field  property=phone2
 depends=minlength,maxlength
arg0 key=form.phone1/
  arg1 name=maxlength key=${var:maxlength}
resource=false/
var
var-nameminlength/var-name
var-value2/var-value
/var
var
var-namemaxlength/var-name
var-value32/var-value
/var
/field
field  property=phone2type
depends=requiredif
arg0 key=form.phone2type/
var
var-namefield[0]/var-name
var-valuephone2/var-value
/var
var
var-namefieldTest[0]/var-name
var-valueNOTNULL/var-value
/var
/field

I have tried amking the phone reuired, and also not having the phone
required.
Here are the HTML elements. 1 is a text field, the other is a drop down:

html:text property=phone1 size=32 maxlength=32 /

then the dropdown is in a tile for re-usabilty:
html:select property='%= beanName + type %' 
html:option value= key=form.select/
html:option value=home key=form.phone.type.home /
html:option value=work key=form.phone.type.work /
html:option value=fax key=form.phone.type.fax /
html:option value=sms key=form.phone.type.sms /
html:option value=mobile key=form.phone.type.mobile /
html:option value=pager key=form.phone.type.pager /
/html:select

Is the fact that the form.select option is ?

---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



[ot] Time format and time picking?

2003-10-10 Thread Mick Knutson
I need the ability to have a user choose their own Time. But, I can only
seem to get 24 hour time to work. So, Either I need to find a JavaScript
Time Chooser, or I need help to figure out how to convert the time (8:56PM)
to the Military time.

Any help on this?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

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



Re: [ot] Time format and time picking?

2003-10-10 Thread Mick Knutson
No, I understand how to get the time correct, I am just hoping someone has a
utility that will help me do this, as well as convert it back to 12 hour
formatted time. Just so I don't have to re-invent the wheel.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 9:38 AM
Subject: Re: [ot] Time format and time picking?


 Add 12 to the hour.

 8:30 AM ==  830
 8:30 PM == 2030
 1:00 PM == 1300

 ...is that what you wanted?

 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 770.822.3359
 AIM:jmitchtx



 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: struts [EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 11:59 AM
 Subject: [ot] Time format and time picking?


  I need the ability to have a user choose their own Time. But, I can only
  seem to get 24 hour time to work. So, Either I need to find a JavaScript
  Time Chooser, or I need help to figure out how to convert the time
 (8:56PM)
  to the Military time.
 
  Any help on this?
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
  +00 1 (708) 570-2772 Fax
  MSN: mickknutson
  ICQ: 316498480
  ICQ URL: http://wwp.icq.com/316498480
 
  ---
 
  -
  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: logic:present roles=... tag - how to specify permissions (on top of roles)?

2003-10-08 Thread Mick Knutson
I have actually been trying this to show or hide certain buttons. But I keep
getting an error

[ServletException in:/WEB-INF/default/body/medical/medicalHistory.view.jsp]
/WEB-INF/default/body/medical/allergies.view.jsp(140,4) Attribute roles
invalid according to the specified TLD'
org.apache.jasper.compiler.CompileException:
/WEB-INF/default/body/medical/allergies.view.jsp(140,4) Attribute roles
invalid according to the specified TLD at
org.apache.jasper.compiler.TagBeginGenerator.validate

Can someone please help me to get a functionality like this:
logic:present roles=gold, platinum
html:submit property=action styleClass=form_button
bean:message key=button.edit/
/html:submit
/logic:present


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Martin
Naskovski [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 10:28 PM
Subject: Re: logic:present roles=... tag - how to specify permissions
(on top of roles)?


 On Fri, 6 Jun 2003, Martin Naskovski wrote:

  Date: Fri, 6 Jun 2003 16:57:08 -0700
  From: Martin Naskovski [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
   Martin Naskovski [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: logic:present roles=... tag - how to specify permissions
(on
  top of roles)?
 
  Hi all - I have the following issue w/Struts' (or maybe even the Servlet
  API) role-based security model.
 
  If I had something like this in a JSP:
 
  logic:present roles=user, admin
  show an input field to change your password
  /logic
 
  how can I - within the current confines of Struts (1.1) and the Servlet
API
  (2.3), instead of hardcoding the roles in the JSP (user, admin) where a
  password change field (or some other common function across a set of
roles)
   is presented, do something like the following:
 
  logic:present permission=changePassword
  show an input field to change your password
  /logic:present
 
  I know the permission attribute currently does not exist, however,
IMHO,
  this (permissions based on roles) is a very valid concept. So, instead
of
  defining a changePassword _role_, I would have a 'changePassword'
  permission, which would be shared among a number of roles. Clearly,
being
  an admin or a user is a _role_ whereas changing a password is a
permission
  (or a functionality or a function...)
 
  I don't see anything of this nature that would facilitate this in
Struts,
  or Resin, which is what we are using to do our development... So I'm
  wondering, has someone else encountered a this issue and how did they
  resolve it?
 
  Does JAAS alleviate some of this? Does it apply to Resin 2.1.x somehow?
 

 JAAS doesn't have anything to do with this -- however, there is a
 little-known feature of container-managed authorization that should help
 you out in at least *some* of these use cases -- role links.

 The basic idea is that an application hard codes it's own notion of what
 role identifiers mean; but it turns out that the server you are deploying
 onto has a different meaining for those things.  To solve this, you can
 tweak the web.xml file with an element like this, inside the servlet
 element for ActionServlet:

   servlet
 servlet-nameStruts Controller Servlet/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 ...
 security-role-ref
   role-namefoo/role-name
   role-linkbar/role-link
 /security-role-ref
   /servlet

 What this means, essentially, is that if the Struts Controller Servlet
 asks if a user has role foo, the container should really check for role
 bar instead.  Using this, adapting the differences between how an
 application is coded and how the security infrastructure is really set up
 is not a problem.

 Note that security roles are defined on a per-servlet basis, so the above
 setting covers any checks of roles by the Struts Controller Servlet
 itself (and that means it covers checking the role attribute of action
 elements).  If you want to use things like logic:present role=foo in
 your JSP pages, you'll need to define individual servlet elements for
 them as well.


  Thank you.
  Martin

 Craig

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



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



Help with StrutsTestCase examples and usage.

2003-10-06 Thread Mick Knutson
I am having issues with getting StrutsTestCase to work. I have several
actions that I am checking for a given ActionForward, but the Forward is not
what was expected. However, it does not tell me what Forward was received.

Also, when there is an error returned, I keep getting Error was returned,
but no message was found. I am using message keys, and checking for them,
but none exist. And I am not told what error type was thrown, and why there
are no messages, or if there were any other messages.

So, if anyone has any Mock examples other than login examples, I would love
to see how others are testing there Actions.

---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

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



Re: Help with StrutsTestCase examples and usage.

2003-10-06 Thread Mick Knutson
How do you handle Database updates with these type of tests?
I have MySql and do not have inoDB support yet. So I need to ensure the DATA
is in a repeatable state. This is why I was starting with Mock tests
instead.

Not to mention, I use JAAS Container authentication, so wouldn't that
interfere with the tests? I thought that Cactus did not yet support testing
through container managed security, and my actions are all in a secured area
requiring authentication.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Matt Raible [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 10:29 AM
Subject: RE: Help with StrutsTestCase examples and usage.


 Here's an in-container StrutsTestCase:

 http://tinyurl.com/pwkp

 HTH,

 Matt

 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 06, 2003 11:29 AM
 To: struts
 Subject: Help with StrutsTestCase examples and usage.


 I am having issues with getting StrutsTestCase to work. I have several
 actions that I am checking for a given ActionForward, but the Forward is
not
 what was expected. However, it does not tell me what Forward was received.

 Also, when there is an error returned, I keep getting Error was returned,
 but no message was found. I am using message keys, and checking for them,
 but none exist. And I am not told what error type was thrown, and why
there
 are no messages, or if there were any other messages.

 So, if anyone has any Mock examples other than login examples, I would
love
 to see how others are testing there Actions.

 ---
 Thanks
 Mick Knutson

 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.


 +00 1 (877) SoS-9119
 +00 1 (708) 570-2772 Fax
 ---

 -
 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: Help with StrutsTestCase examples and usage.

2003-10-06 Thread Mick Knutson
So, do you kick off DBUnit at the beginning and end of your testing? I am
running ant for my junit, and am trying to set my tests up correctly.

I also saw the j_security_check example on your site. Can I just run that
check as the init() of my tests with CactusTestCases?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Matt Raible [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 10:45 AM
Subject: RE: Help with StrutsTestCase examples and usage.


 I use DBUnit to ensure that the database is in a repeatable state.  Cactus
 does support container managed authentication, but I don't think it's in a
 released version yet.

 Here's my tests that prove it works:

 public void beginFormAuthentication(WebRequest theRequest) {
 theRequest.setRedirectorName(ServletRedirectorSecure);
 theRequest.setAuthentication(new FormAuthentication(rb.getString(
 username), rb.getString(password)));
 }

 /**
  * Test logging in as user a user
  */
 public void testFormAuthentication() {
 assertEquals(rb.getString(username),
 request.getUserPrincipal().getName());
 assertEquals(rb.getString(username), request.getRemoteUser());
 assertTrue(User not in ' + rb.getString(role) + ' role,
 request.isUserInRole(rb.getString(role)));
 }

 Where rb is a properties file for my test.

 HTH,

 Matt
 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 06, 2003 11:45 AM
 To: Struts Users Mailing List
 Subject: Re: Help with StrutsTestCase examples and usage.


 How do you handle Database updates with these type of tests?
 I have MySql and do not have inoDB support yet. So I need to ensure the
DATA
 is in a repeatable state. This is why I was starting with Mock tests
 instead.

 Not to mention, I use JAAS Container authentication, so wouldn't that
 interfere with the tests? I thought that Cactus did not yet support
testing
 through container managed security, and my actions are all in a secured
area
 requiring authentication.


 ---
 Thanks
 Mick Knutson

 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.


 +00 1 (877) SoS-9119
 +00 1 (708) 570-2772 Fax
 ---

 - Original Message - 
 From: Matt Raible [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Monday, October 06, 2003 10:29 AM
 Subject: RE: Help with StrutsTestCase examples and usage.


  Here's an in-container StrutsTestCase:
 
  http://tinyurl.com/pwkp
 
  HTH,
 
  Matt
 
  -Original Message-
  From: Mick Knutson [mailto:[EMAIL PROTECTED]
  Sent: Monday, October 06, 2003 11:29 AM
  To: struts
  Subject: Help with StrutsTestCase examples and usage.
 
 
  I am having issues with getting StrutsTestCase to work. I have several
  actions that I am checking for a given ActionForward, but the Forward is
 not
  what was expected. However, it does not tell me what Forward was
received.
 
  Also, when there is an error returned, I keep getting Error was
returned,
  but no message was found. I am using message keys, and checking for
them,
  but none exist. And I am not told what error type was thrown, and why
 there
  are no messages, or if there were any other messages.
 
  So, if anyone has any Mock examples other than login examples, I would
 love
  to see how others are testing there Actions.
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
 
  +00 1 (877) SoS-9119
  +00 1 (708) 570-2772 Fax
  ---
 
  -
  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: Help with StrutsTestCase examples and usage.

2003-10-06 Thread Mick Knutson
Here is a question then...
When do I use the MockStrutsTestCases then?
Aren't the Cactus TestCases actually integration testing? Not really just
testing the Action itself. Right?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Matt Raible [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 11:05 AM
Subject: RE: Help with StrutsTestCase examples and usage.


 Yes, all my junit tests (including cactus) depend on a db-load task that
 uses DBUnit.  As far as logging in before running your test (the
 j_security_check) that should work - at least it sounds like it should.

 You can check out my build.xml file (http://tinyurl.com/pwqt) for AppFuse
or
 download the whole project
 (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) to see how I'm doing
 it.

 Matt

 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 06, 2003 11:56 AM
 To: Struts Users Mailing List
 Subject: Re: Help with StrutsTestCase examples and usage.


 So, do you kick off DBUnit at the beginning and end of your testing? I am
 running ant for my junit, and am trying to set my tests up correctly.

 I also saw the j_security_check example on your site. Can I just run that
 check as the init() of my tests with CactusTestCases?


 ---
 Thanks
 Mick Knutson

 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.


 +00 1 (877) SoS-9119
 +00 1 (708) 570-2772 Fax
 ---

 - Original Message - 
 From: Matt Raible [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Monday, October 06, 2003 10:45 AM
 Subject: RE: Help with StrutsTestCase examples and usage.


  I use DBUnit to ensure that the database is in a repeatable state.
Cactus
  does support container managed authentication, but I don't think it's in
a
  released version yet.
 
  Here's my tests that prove it works:
 
  public void beginFormAuthentication(WebRequest theRequest) {
  theRequest.setRedirectorName(ServletRedirectorSecure);
  theRequest.setAuthentication(new
FormAuthentication(rb.getString(
  username), rb.getString(password)));
  }
 
  /**
   * Test logging in as user a user
   */
  public void testFormAuthentication() {
  assertEquals(rb.getString(username),
  request.getUserPrincipal().getName());
  assertEquals(rb.getString(username), request.getRemoteUser());
  assertTrue(User not in ' + rb.getString(role) + ' role,
  request.isUserInRole(rb.getString(role)));
  }
 
  Where rb is a properties file for my test.
 
  HTH,
 
  Matt
  -Original Message-
  From: Mick Knutson [mailto:[EMAIL PROTECTED]
  Sent: Monday, October 06, 2003 11:45 AM
  To: Struts Users Mailing List
  Subject: Re: Help with StrutsTestCase examples and usage.
 
 
  How do you handle Database updates with these type of tests?
  I have MySql and do not have inoDB support yet. So I need to ensure the
 DATA
  is in a repeatable state. This is why I was starting with Mock tests
  instead.
 
  Not to mention, I use JAAS Container authentication, so wouldn't that
  interfere with the tests? I thought that Cactus did not yet support
 testing
  through container managed security, and my actions are all in a secured
 area
  requiring authentication.
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
 
  +00 1 (877) SoS-9119
  +00 1 (708) 570-2772 Fax
  ---
 
  - Original Message - 
  From: Matt Raible [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Monday, October 06, 2003 10:29 AM
  Subject: RE: Help with StrutsTestCase examples and usage.
 
 
   Here's an in-container StrutsTestCase:
  
   http://tinyurl.com/pwkp
  
   HTH,
  
   Matt
  
   -Original Message-
   From: Mick Knutson [mailto:[EMAIL PROTECTED]
   Sent: Monday, October 06, 2003 11:29 AM
   To: struts
   Subject: Help with StrutsTestCase examples and usage.
  
  
   I am having issues with getting StrutsTestCase to work. I have several
   actions that I am checking for a given ActionForward, but the Forward
is
  not
   what was expected. However, it does not tell me what Forward was
 received.
  
   Also, when there is an error returned, I keep getting Error was
 returned,
   but no message was found. I am using message keys, and checking for
 them,
   but none exist. And I am not told what error type was thrown, and why
  there
   are no messages, or if there were any other messages

making strutsTestCarse more verbose?

2003-10-05 Thread Mick Knutson
I am finally getting my StrutsTestCase's working as I have put them off too
long.
But now that I am writing these test cases, I am finding my FORWARDS do not
match like:

Was expecting '/member.do' but it appears the Action has
tried to return an ActionForward that is not mapped correctly.

This is just very vague to me and was wondering if there is a way to add
more information out of the standard stutsTestCase?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

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



HELP: strutsTestCase with ant now sending too much stacktrace!

2003-10-05 Thread Mick Knutson
] [org.apache.commons.digester.Digester ]   Popping body text ''
[junit] [org.apache.commons.digester.Digester.sax ]
ignorableWhitespace()
[junit] [org.apache.commons.digester.Digester.sax ] ignorableWhitespace(
[junit] )
[junit] [org.apache.commons.digester.Digester.sax ]
ignorableWhitespace()
[junit] [org.apache.commons.digester.Digester.sax ]
startElement(,url-pattern,url-pattern)
[junit] [org.apache.commons.digester.Digester ]   Pushing body text ''
[junit] [org.apache.commons.digester.Digester ]   New
match='web-app/filter-mapping/url-pattern'
[junit] [org.apache.commons.digester.Digester ]   No rules found
matching 'web-app/filter-mapping/url-pattern'.
[junit] [org.apache.commons.digester.Digester.sax ] characters(/*)
[junit] [org.apache.commons.digester.Digester.sax ]
endElement(,url-pattern,url-pattern)
[junit] [org.apache.commons.digester.Digester ]
match='web-app/filter-mapping/url-pattern'
[junit] [org.apache.commons.digester.Digester ]   bodyText='/*'
[junit] [org.apache.commons.digester.Digester ]   No rules found
matching 'web-app/filter-mapping/url-pattern'.
[junit] [org.apache.commons.digester.Digester ]   Popping body text ''



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

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



Re: Compiling jsps/Tiles with ant?

2003-10-04 Thread Mick Knutson
I have looked through google. And there just seems to _not_ be a reason why
my JSP's work fine on JBoss, but when I compile them, I keep getting a NPE.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 6:45 PM
Subject: Re: Compiling jsps/Tiles with ant?


 I don't do it myself (yet), but here's a few places to start with...


http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=taskdef+name%3D%22jasper%22btnG=Google+Search



 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 770.822.3359
 AIM:jmitchtx



 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: struts [EMAIL PROTECTED]
 Sent: Friday, October 03, 2003 6:53 PM
 Subject: Compiling jsps/Tiles with ant?


  I am wondering if anyone has any examples of using ant to build their
 jsp's?
 
  I am using Tiles extensively, and keep getting NPE on jspc.
  Also, jspc keeps wanting me to add /WEB-INF/web.xml to my root build
 path.
  Currently it is not there, it is in ./src/web/WEB-INF/web.xml
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
 
  +00 1 (877) SoS-9119
  +00 1 (708) 570-2772 Fax
  ---
 
  -
  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: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
I have never run a testcase with XML, how would I do that?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Joe Germuska [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 6:55 AM
Subject: Re: Still an issue: Quartz plugin shutdown problem


 At 19:26 -0700 10/2/03, Mick Knutson wrote:
 
 After even more toying, I get a different error about the job not being
set:
 (any thoughts here?)

 Mick:

 Have you tried writing a simple test case that runs your XML file
 through the JGSI Quartz SchedulerBuilder?  You might be better off
 making sure that you can successfully parse the XML outside of your
 EJB container, instead of throwing it into the container for testing.

 Also, it would help confirm or reject the possibility that it's
 something to do with the container -- since other people say they can
 parse it, that's probably the case, but if you have a test case, you
 can quickly validate changes you make to the XML external to the more
 complex deployment environment.

 Joe

 -- 
 Joe Germuska
 [EMAIL PROTECTED]
 http://blog.germuska.com
   We want beef in dessert if we can get it there.
-- Betty Hogan, Director of New Product Development, National
 Cattlemen's Beef Association


 -
 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: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
?xml version=1.0 encoding=ISO-8859-1 ?
quartz-config
 trigger-group name=AlertSenderTriggerGroup
  trigger
   name=AlertSenderTrigger
   className=org.quartz.SimpleTrigger
   set-property
property=repeatCount
value=5/
   set-property
property=repeatInterval
value=100/
   set-property
property=startTime
value=04/04/1999 14:00:00/
   set-property
property=endTime
value=04/04/2999 15:00:00/
  /trigger
 /trigger-group
 job-group
  name=AlertSenderJobGroup
  job name=AlertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2
description=Alert sending Job
durability=true
volatility=true
requestsRecovery=true /
 /job-group
 schedule jobGroup=AlertSenderJobGroup
 triggerGroup=AlertSenderTriggerGroup
 job=AlertSenderJob
 trigger=AlertSenderTrigger/
/quartz-config



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 2:27 AM
Subject: RE: Still an issue: Quartz plugin shutdown problem


Mick Send me the contents of your quartz-config.xml and I will try to
execute again.  In this email looks like the job element is commented out.

Cal

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 22:26
To: Struts Users Mailing List
Subject: Re: Still an issue: Quartz plugin shutdown problem

After even more toying, I get a different error about the job not being set:
(any thoughts here?)

19:24:18,843 ERROR [Digester] Begin event threw exception
java.lang.IllegalStateException: Job Class is not yet set.
at org.quartz.JobDetail.isStateful(JobDetail.java:331)
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
What app server do you use?



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 9:41 AM
Subject: RE: Still an issue: Quartz plugin shutdown problem


Mick Sorry - loads fine - even added a class just to make sure it would
trigger a job and it all works just fine.  I would hack the config file to
the absolute minimum attributes and try to get it working - also make sure
all the xml parser jars are compatible - and not in the classpath twice.

Cal

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 11:16
To: Struts Users Mailing List
Subject: Re: Still an issue: Quartz plugin shutdown problem

?xml version=1.0 encoding=ISO-8859-1 ?
quartz-config
 trigger-group name=AlertSenderTriggerGroup
  trigger
   name=AlertSenderTrigger
   className=org.quartz.SimpleTrigger
   set-property
property=repeatCount
value=5/
   set-property
property=repeatInterval
value=100/
   set-property
property=startTime
value=04/04/1999 14:00:00/
   set-property
property=endTime
value=04/04/2999 15:00:00/
  /trigger
 /trigger-group
 job-group
  name=AlertSenderJobGroup
  job name=AlertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2
description=Alert sending Job
durability=true
volatility=true
requestsRecovery=true /
 /job-group
 schedule jobGroup=AlertSenderJobGroup
 triggerGroup=AlertSenderTriggerGroup
 job=AlertSenderJob
 trigger=AlertSenderTrigger/
/quartz-config



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message -
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 2:27 AM
Subject: RE: Still an issue: Quartz plugin shutdown problem


Mick Send me the contents of your quartz-config.xml and I will try to
execute again.  In this email looks like the job element is commented out.

Cal

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 22:26
To: Struts Users Mailing List
Subject: Re: Still an issue: Quartz plugin shutdown problem

After even more toying, I get a different error about the job not being set:
(any thoughts here?)

19:24:18,843 ERROR [Digester] Begin event threw exception
java.lang.IllegalStateException: Job Class is not yet set.
at org.quartz.JobDetail.isStateful(JobDetail.java:331)
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
Let me get this right, there is only this needed:

1 quartz.properties.
1. quartz-config.xml
1. AlertSenderJob class for the job


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 9:41 AM
Subject: RE: Still an issue: Quartz plugin shutdown problem


Mick Sorry - loads fine - even added a class just to make sure it would
trigger a job and it all works just fine.  I would hack the config file to
the absolute minimum attributes and try to get it working - also make sure
all the xml parser jars are compatible - and not in the classpath twice.

Cal

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 11:16
To: Struts Users Mailing List
Subject: Re: Still an issue: Quartz plugin shutdown problem

?xml version=1.0 encoding=ISO-8859-1 ?
quartz-config
 trigger-group name=AlertSenderTriggerGroup
  trigger
   name=AlertSenderTrigger
   className=org.quartz.SimpleTrigger
   set-property
property=repeatCount
value=5/
   set-property
property=repeatInterval
value=100/
   set-property
property=startTime
value=04/04/1999 14:00:00/
   set-property
property=endTime
value=04/04/2999 15:00:00/
  /trigger
 /trigger-group
 job-group
  name=AlertSenderJobGroup
  job name=AlertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob2
description=Alert sending Job
durability=true
volatility=true
requestsRecovery=true /
 /job-group
 schedule jobGroup=AlertSenderJobGroup
 triggerGroup=AlertSenderTriggerGroup
 job=AlertSenderJob
 trigger=AlertSenderTrigger/
/quartz-config



---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message -
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 2:27 AM
Subject: RE: Still an issue: Quartz plugin shutdown problem


Mick Send me the contents of your quartz-config.xml and I will try to
execute again.  In this email looks like the job element is commented out.

Cal

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 22:26
To: Struts Users Mailing List
Subject: Re: Still an issue: Quartz plugin shutdown problem

After even more toying, I get a different error about the job not being set:
(any thoughts here?)

19:24:18,843 ERROR [Digester] Begin event threw exception
java.lang.IllegalStateException: Job Class is not yet set.
at org.quartz.JobDetail.isStateful(JobDetail.java:331)
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit]  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
[junit]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)


[junit] (jobs.AlertSenderJob 31  ) initialize
AlertSenderJob
[junit] (jobs.AlertSenderJob 31  ) initialize
AlertSenderJob
[junit] (jobs.AlertSenderJob 43  ) Executing
AlertSenderJob. This is the only operation this job performs.
[junit] (jobs.AlertSenderJob 43  ) Executing
AlertSenderJob. This is the only operation this job performs.

---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Joe Germuska [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 8:54 AM
Subject: Re: Still an issue: Quartz plugin shutdown problem


 At 8:14 -0700 10/3/03, Mick Knutson wrote:
 I have never run a testcase with XML, how would I do that?

 The same way you'd run any other test case.  Write java that does
 just as much of the process you're trying to test as necessary,
 without doing anything that might mess up your test.

 In this case, I'd write a method that uses the API of ScheduleBuilder
 to parse the XML file.  Even if I were using JUnit, I might not
 bother asserting anything about it -- sometimes it's enough to know
 that it didn't choke.

 Then again, if the Quartz interface for a Schedule is reasonably
 open, it might not be hard to assert that the Schedule which was
 built has the right tasks, they have the right properties, etc.
 Remember that i know next to nothing about Quartz; that stuff was
 written by one of my colleagues who doesn't monitor the lists as
 carefully as I do.

 I'll give you a hint: there's a test case in the jgs-quartz
 distribution that does essentially what you want.  Get the source
 code and copy from it until you have what you need.

 Joe



 
 ---
 Thanks
 Mick Knutson
 
 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

 Contact System can help you Play Smart.
 
 
 +00 1 (877) SoS-9119
 +00 1 (708) 570-2772 Fax
 ---
 
 - Original Message -
 From: Joe Germuska [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, October 03, 2003 6:55 AM
 Subject: Re: Still an issue: Quartz plugin shutdown problem
 
 
   At 19:26 -0700 10/2/03, Mick Knutson wrote:
   
   After even more toying, I get a different error about the job not
being
 set:
   (any thoughts here?)
 
   Mick:
 
   Have you tried writing a simple test case that runs your XML file
   through the JGSI Quartz SchedulerBuilder?  You might be better off
   making sure that you can successfully parse the XML outside of your
   EJB container, instead of throwing it into the container for testing.
 
   Also, it would help confirm or reject the possibility that it's
   something to do with the container -- since other people say they can
   parse it, that's probably the case, but if you have a test case, you
   can quickly validate changes you make to the XML external to the more
   complex deployment environment.
 
   Joe
 
   --
   Joe Germuska
   [EMAIL PROTECTED]
   http://blog.germuska.com
 We want beef in dessert if we can get it there.
  -- Betty Hogan, Director of New Product Development, National
   Cattlemen's Beef Association
 
 
   -
   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]


 -- 
 Joe Germuska
 [EMAIL PROTECTED]
 http://blog.germuska.com
   We want beef in dessert if we can get it there.
-- Betty Hogan, Director of New Product Development, National
 Cattlemen's Beef Association


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



Compiling jsps/Tiles with ant?

2003-10-03 Thread Mick Knutson
I am wondering if anyone has any examples of using ant to build their jsp's?

I am using Tiles extensively, and keep getting NPE on jspc.
Also, jspc keeps wanting me to add /WEB-INF/web.xml to my root build path.
Currently it is not there, it is in ./src/web/WEB-INF/web.xml


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

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



[OT] International telephone number formatter component????

2003-10-02 Thread Mick Knutson
I am wondering if anyone has developed an International telephone number
formatter component?
I have International users, creating phone numbers that will be used to
generate emergency phone calls by a software package. So having the proper
International number is essential.
Just thought it might have already been done.

---
Thanks
Mick Knutson

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: [OT] International telephone number formatter component????

2003-10-02 Thread Mick Knutson
I do not disagree about the research part at all. I know it will take a
researcher on my staff a great deal of time to maintain, but it is never the
less, a needed feature.
I just thought that most Countries have a fairly well formatted number. And
mostly I am taking about supporting N.S. America, Western Europe only.
Later look at the far East.

But this would need to choose the whole part of the phone number then just
store the proper number into my DB for the user. Until they update the
number again, then they choose again.

---
Thanks
Mick Knutson

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Joe Germuska [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 6:54 AM
Subject: Re: [OT] International telephone number formatter component


 At 6:42 -0700 10/2/03, Mick Knutson wrote:
 I am wondering if anyone has developed an International telephone number
 formatter component?
 I have International users, creating phone numbers that will be used to
 generate emergency phone calls by a software package. So having the
proper
 International number is essential.
 Just thought it might have already been done.

 It's actually a very thorny problem, as in some countries, phone
 numbers don't even have a consistent number of digits, nor a common
 format.  So it's as much a research problem as a coding problem.  I
 took a stab at it a few years ago, but once I realized that the scope
 of the problem outweighed my immediate needs, I left it aside.

 I'd love to hear if anyone has such a thing...

 Joe

 -- 
 Joe Germuska
 [EMAIL PROTECTED]
 http://blog.germuska.com
   We want beef in dessert if we can get it there.
-- Betty Hogan, Director of New Product Development, National
 Cattlemen's Beef Association


 -
 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: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
... 18 more


---
Thanks
Mick Knutson

Play Hard, Live Smart

Your SOS: Your personal Emergency Alert  Contact System.
http://YourSoS.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Mick Knutson [EMAIL PROTECTED]; struts
[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 5:24 PM
Subject: Re: Still an issue: Quartz plugin shutdown problem


 I am still having issues with this, but I am at least getting more data
 collected so hopefully someone can enlighten me as to my errors:

 When I use the example1.bat file, the Quartz example works fine.
 Now, when I use the quartz, jgl-quartz lib or the jgl-struts plugin I get
 the NPE.

 Here is the DIR layout of my entire EAR file:

 EAR:
 --meta-inf/application.xml
 commons-dbcp.jar
 commons-discovery.jar
 commons-httpclient.jar
 commons-logging.jar
 commons-logging-api.jar
 commons-pool.jar
 commons-resources.jar
 jdbc2_0-stdext.jar
 quartz.jar
 quartz.properties
 app-ejbs.jar
 app-web.war
 |---meta-inf/jboss-web.xml
 |---meta-inf/quartz-config.xml
 |---meta-inf/struts*.tld
 |---meta-inf/tiles-defs.xml
 |---meta-inf/validation.xml
 |---meta-inf/web.xml
 |---web-inf/classes/quartz.properties
 |---web-inf/classes/com.baselogic.**.class's
 |---web-inf/**.jsp's
 |---web-inf/lib/commons-beanutils.jar
 |---web-inf/lib/commons-collections.jar
 |---web-inf/lib/commons-digester.jar
 |---web-inf/lib/commons-fileupload.jar
 |---web-inf/lib/commons-lang.jar
 |---web-inf/lib/commons-logging.jar
 |---web-inf/lib/commons-validator.jar
 |---web-inf/lib/jakarta-oro.jar
 |---web-inf/lib/jgs-quartz-0.2-dev.jar
 |---web-inf/lib/jgs-struts-0.2-dev.jar
 |---web-inf/lib/sslext.jar
 |---web-inf/lib/struts.jar
 |---web-inf/lib/struts-legacy.jar




 ---
 Thanks
 Mick Knutson

 coming soon:
 Your SOS: Your personal emergency contact system.
 http://YourSoS.com

 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: struts [EMAIL PROTECTED]
 Sent: Monday, September 29, 2003 8:13 AM
 Subject: Still an issue: Quartz plugin shutdown problem


  I am in a serious pickle here, as I have to get this running by
Wednesday.
 I
  am very sorry to be sending this again, but I have busted my head
against
 a
  wall on this all last week, and the weekend with no success.
  You help is very much appreciated.
 
  Here are the pertinant pieces:
 
  I have an EAR, with a common.jar, ejb.jar and app.WAR inside
  all the quartz, and jgs jars _all_ live in my WAR.
 
  struts-config.xml:
 
  plug-in className=com.jgsullivan.struts.plugins.QuartzPlugIn 
  set-property property=configPath
  value=/WEB-INF/quartz-config.xml /
  /plug-in
 
 
  WEB-INF/classes/quartz.properties:
 
  org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
  org.quartz.threadPool.threadCount = 5
  org.quartz.threadPool.threadPriority = 4
  org.quartz.jobStore.misfireThreshold = 5000
  org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
 
 
  WEB-INF/quartz-config.xml:
 
  ?xml version=1.0 encoding=ISO-8859-1 ?
  quartz-config
  !-- Create a Trigger --
  trigger-group name=alertSenderTriggerGroup
  trigger
  name=alertSenderTrigger
  className=org.quartz.SimpleTrigger
  description=A Trigger to send all Alert based messages
  volatility=false
  misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
  set-property property=repeatCount value=25/
  set-property property=repeatInterval value=5000/
  /trigger
  /trigger-group
 
 
!-- Create a Job --
   job-group name=alertSenderJobGroup
!--job name=alertSenderJob
  className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob
  description=alert Sender Job
  durability=true
  volatility=true
  requestsRecovery=true
/job--
job name=alertSenderJob
  className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob/
 
   /job-group
 
  !-- Schedule the Job/Trigger --
  schedule job=alertSenderJob trigger=alertSenderTrigger/
 
  schedule jobGroup

Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
I actually have posted this to the Quartz makers,  the struts plugin maker
JGS, JBoss site, and here. All with no luck.
I also have sent my configuration to several people, who say that is works
just fine on their installation, but none of them are packaging their app
like me with an EAR.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Adam L [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 4:39 PM
Subject: Re: Still an issue: Quartz plugin shutdown problem


 I'm going to go out on a limb here and suggest that:

 1) You haven't yet received an answer from this list after several
attempts,
 which is a struts list, on a component by somebody other than ASF.
Perhaps
 they'd be a better route?

 2) Not having used Quartz, the best guess i can suggest is that it looks
 like Quartz is choking on a configuration file somewhere, and my guess is
 quartz-config.xml


 - Original Message -
 From: Mick Knutson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, October 02, 2003 11:52 AM
 Subject: Re: Still an issue: Quartz plugin shutdown problem


  Still looking for help.
 
  Here is the Debug level trace of the startup.
 
  09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory
initialized
  from file '/WEB-INF/tiles-defs.xml'.
  09:35:18,687 ERROR [STDERR] [INFO] TilesPlugin - -Tiles definition
factory
  loaded for module ''.
  09:35:18,703 ERROR [STDERR] [DEBUG]
 

BeanUtils - -BeanUtils.populate([EMAIL PROTECTED]
  54f3, {configPath=/WEB-INF/quartz-conf
  ig.xml})
  09:35:18,734 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
  '/WEB-INF/quartz-config.xml' to class 'java.lang.String'
  09:35:18,750 ERROR [STDERR] [INFO] PlugInSupport - -Initializing
  QuartzPlugIn
  09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz
scheduler
  'QuartzScheduler' initialized from default resource file in Quartz
 package:
   'quartz.properties'
  09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz
scheduler
  version: 1.2.2
  09:35:18,890 ERROR [STDERR] [DEBUG] Digester - -addRuleSet() with no
  namespace URI
  09:35:18,906 ERROR [STDERR] [DEBUG]
 

sax - -setDocumentLocator([EMAIL PROTECTED]
  bb)
  09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startDocument()
  09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startElement(,,quartz-config)
  09:35:18,906 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text ''
  09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  New
 match='quartz-config'
  09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
  ObjectCreateRule[className=com.jgsullivan.quartz.config.QuartzConfig,
  attributeName
  =null]
  09:35:18,921 ERROR [STDERR] [DEBUG]
  Digester - -[ObjectCreateRule]{quartz-config}New
  com.jgsullivan.quartz.config.QuartzConfig
  09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
  09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters(
  )
  09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
  09:35:18,921 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger-group)
  09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
  '
  09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  New
  match='quartz-config/trigger-group'
  09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
 

ObjectCreateRule[className=com.jgsullivan.quartz.config.TriggerGroupConfig,
  attribu
  teName=null]
  09:35:18,984 ERROR [STDERR] [DEBUG]
  Digester - -[ObjectCreateRule]{quartz-config/trigger-group}New
  com.jgsullivan.quartz.config.TriggerGroupConfig
  09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
  [EMAIL PROTECTED]
  09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
  SetNextRule[methodName=addTriggerGroup, paramType=null]
  09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
  09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters(
  )
  09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
  09:35:19,046 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger)
  09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
  '
  09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  New
  match='quartz-config/trigger-group/trigger'
  09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
  ObjectCreateRule[className=org.quartz.SimpleTrigger,
  attributeName=className]
  09:35:19,109 ERROR [STDERR] [DEBUG]
  Digester - -[ObjectCreateRule]{quartz-config/trigger-group/trigger}New
  org.quartz.CronTrigger
  09:35:19,125 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
  SetPropertiesRule[]
  09:35:19,125 ERROR [STDERR] [DEBUG]
  Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger}
 Setting
  property 'name

Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
After even more toying, I get a different error about the job not being set:
(any thoughts here?)

19:24:18,843 ERROR [Digester] Begin event threw exception
java.lang.IllegalStateException: Job Class is not yet set.
at org.quartz.JobDetail.isStateful(JobDetail.java:331)
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:217)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:230)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:207)




---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.


+00 1 (877) SoS-9119
+00 1 (708) 570-2772 Fax
---

- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 9:52 AM
Subject: Re: Still an issue: Quartz plugin shutdown problem


 Still looking for help.

 Here is the Debug level trace of the startup.

 09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory initialized
 from file '/WEB-INF/tiles-defs.xml'.
 09:35

externalizing the button hashmap for the LookupDispatchAction?

2003-09-30 Thread Mick Knutson
I am just wondering if anyone has already made a nicer way to manage the
hashmap for the button labels on the LookupDispatchAction?
I hate having to continually add elements in the code when I add a new
button.

---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSoS.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: externalizing the button hashmap for the LookupDispatchAction?

2003-09-30 Thread Mick Knutson
Thanks. That is heaps easier than hacking the code each time.
Much appreciated!

---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSoS.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Matt Raible [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 12:41 PM
Subject: RE: externalizing the button hashmap for the LookupDispatchAction?


 I've done it with a LookupMethods.properties file that contains the
 following:
 
 button.add=add
 button.cancel=cancel
 button.copy=copy
 button.edit=edit
 button.delete=delete
 button.save=save
 button.search=search
 
 Then I have the following method in my BaseAction class:
 
 /**
  * Provides the mapping from resource key to method name
  *
  * @return Resource key / method name map
  */
 public Map getKeyMethodMap() {
 Map map = new HashMap();
 
 ResourceBundle methods =
  
 ResourceBundle.getBundle(org.appfuse.webapp.action.LookupMethods);
 
 Enumeration keys = methods.getKeys();
 
 while (keys.hasMoreElements()) {
 String key = (String) keys.nextElement();
 map.put(key, methods.getString(key));
 }
 
 return map;
 }
 
 It's not much better, but it does make it a *bit* easier to manage.
 
 HTH,
 
 Matt
 
 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 1:37 PM
 To: struts
 Subject: externalizing the button hashmap for the LookupDispatchAction?
 
 
 I am just wondering if anyone has already made a nicer way to manage the
 hashmap for the button labels on the LookupDispatchAction?
 I hate having to continually add elements in the code when I add a new
 button.
 
 ---
 Thanks
 Mick Knutson
 
 coming soon:
 Your SOS: Your personal emergency contact system.
 http://YourSoS.com
 
 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



[OT] JAVA_OPTS option starting Catalina/JBoss?

2003-09-30 Thread Mick Knutson
sorry for the OT message...
I have been suggested to add -Xrs to JAVA_OPTS to help with Catalina
shutting down on me after 30 minutes of inactivity.
Do I just add JAVA_OPTS=-Xrs to my global profile in /etc/profile and
Catalina will automatically add those arguments?

---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSoS.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Still an issue: Quartz plugin shutdown problem

2003-09-29 Thread Mick Knutson
I am in a serious pickle here, as I have to get this running by Wednesday. I
am very sorry to be sending this again, but I have busted my head against a
wall on this all last week, and the weekend with no success.
You help is very much appreciated.

Here are the pertinant pieces:

I have an EAR, with a common.jar, ejb.jar and app.WAR inside
all the quartz, and jgs jars _all_ live in my WAR.

struts-config.xml:

plug-in className=com.jgsullivan.struts.plugins.QuartzPlugIn 
set-property property=configPath
value=/WEB-INF/quartz-config.xml /
/plug-in


WEB-INF/classes/quartz.properties:

org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 4
org.quartz.jobStore.misfireThreshold = 5000
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore


WEB-INF/quartz-config.xml:

?xml version=1.0 encoding=ISO-8859-1 ?
quartz-config
!-- Create a Trigger --
trigger-group name=alertSenderTriggerGroup
trigger
name=alertSenderTrigger
className=org.quartz.SimpleTrigger
description=A Trigger to send all Alert based messages
volatility=false
misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
set-property property=repeatCount value=25/
set-property property=repeatInterval value=5000/
/trigger
/trigger-group


  !-- Create a Job --
 job-group name=alertSenderJobGroup
  !--job name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob
description=alert Sender Job
durability=true
volatility=true
requestsRecovery=true
  /job--
  job name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob/

 /job-group

!-- Schedule the Job/Trigger --
schedule job=alertSenderJob trigger=alertSenderTrigger/

schedule jobGroup=alertSenderJobGroup
 triggerGroup=alertSenderTriggerGroup
 job=alertSenderJob
 trigger=alertSenderTrigger/

/quartz-config


WEB-INF/classes/com.baselogic.yoursos.scheduler.jobs.AlertSenderJob:

package com.baselogic.yoursos.scheduler.jobs;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.Job;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * Class AlertSenderJob
 *
 * @author Mick Knutson
 */
public class AlertSenderJob implements Job
{
/** The codeLog/code instance for this application. */
private Log log = LogFactory.getLog( getClass().getName() );

/**
 * Constructor AlertSenderJob
 *
 *
 */
public AlertSenderJob()
{
log.info( initialize AlertSenderJob );
}

/**
 * Method execute
 *
 * @param jobExecCtx
 * @throws org.quartz.JobExecutionException
 */
public void execute( JobExecutionContext jobExecCtx )
throws org.quartz.JobExecutionException
{
log.info( Executing AlertSenderJob. This is the only operation this
job performs. );
}

}



---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Tom Howe [EMAIL PROTECTED]
To: 'Mick Knutson' [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 9:10 AM
Subject: RE: Quartz plugin shutdown problem


 Sure, send them to me.  Just so you know, I just started looking at it
 yesterday, so I can't guarantee I'll be hugely useful :), but I'll take
 a look at it, at least.

 -Tom

 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 11:09 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Quartz plugin shutdown problem


 I know you are having issues of your own, but I don't suppose that you
 could help me with just getting my Quartz to work at?

 I can send you the recent emails. I would appreciate it so much as I
 have been killing myself for 3 days now and can't get it to work at all.

 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com

 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---

 - Original Message - 
 From: Tom Howe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 9:01 AM
 Subject: Quartz plugin shutdown problem


  Hi,
  I'm having a problem with (I think) plugins that open a new thread,
  such as the Quartz plugin.  It starts up fine and appears to work
  alright, but when I try to shut down, the server appears to hang on
  that particular thread so that the process continues.  I tried to do
  this on a completely fresh tomcat/struts install with no forms,
  actions, etc. and still had no luck.  I'm using Tomcat 4.1.27, Struts
  1.1 on both windows xp and solaris 9.  Is there some kind of special
  configuration that I need to do when using threads in a plugin to get
  it to shutdown correctly.  Here is my struts-config.xml

Re: Still an issue: Quartz plugin shutdown problem

2003-09-29 Thread Mick Knutson
I am still having issues with this, but I am at least getting more data
collected so hopefully someone can enlighten me as to my errors:

When I use the example1.bat file, the Quartz example works fine.
Now, when I use the quartz, jgl-quartz lib or the jgl-struts plugin I get
the NPE.

Here is the DIR layout of my entire EAR file:

EAR:
--meta-inf/application.xml
commons-dbcp.jar
commons-discovery.jar
commons-httpclient.jar
commons-logging.jar
commons-logging-api.jar
commons-pool.jar
commons-resources.jar
jdbc2_0-stdext.jar
quartz.jar
quartz.properties
app-ejbs.jar
app-web.war
|---meta-inf/jboss-web.xml
|---meta-inf/quartz-config.xml
|---meta-inf/struts*.tld
|---meta-inf/tiles-defs.xml
|---meta-inf/validation.xml
|---meta-inf/web.xml
|---web-inf/classes/quartz.properties
|---web-inf/classes/com.baselogic.**.class's
|---web-inf/**.jsp's
|---web-inf/lib/commons-beanutils.jar
|---web-inf/lib/commons-collections.jar
|---web-inf/lib/commons-digester.jar
|---web-inf/lib/commons-fileupload.jar
|---web-inf/lib/commons-lang.jar
|---web-inf/lib/commons-logging.jar
|---web-inf/lib/commons-validator.jar
|---web-inf/lib/jakarta-oro.jar
|---web-inf/lib/jgs-quartz-0.2-dev.jar
|---web-inf/lib/jgs-struts-0.2-dev.jar
|---web-inf/lib/sslext.jar
|---web-inf/lib/struts.jar
|---web-inf/lib/struts-legacy.jar




---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSoS.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Monday, September 29, 2003 8:13 AM
Subject: Still an issue: Quartz plugin shutdown problem


 I am in a serious pickle here, as I have to get this running by Wednesday.
I
 am very sorry to be sending this again, but I have busted my head against
a
 wall on this all last week, and the weekend with no success.
 You help is very much appreciated.

 Here are the pertinant pieces:

 I have an EAR, with a common.jar, ejb.jar and app.WAR inside
 all the quartz, and jgs jars _all_ live in my WAR.

 struts-config.xml:

 plug-in className=com.jgsullivan.struts.plugins.QuartzPlugIn 
 set-property property=configPath
 value=/WEB-INF/quartz-config.xml /
 /plug-in


 WEB-INF/classes/quartz.properties:

 org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
 org.quartz.threadPool.threadCount = 5
 org.quartz.threadPool.threadPriority = 4
 org.quartz.jobStore.misfireThreshold = 5000
 org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore


 WEB-INF/quartz-config.xml:

 ?xml version=1.0 encoding=ISO-8859-1 ?
 quartz-config
 !-- Create a Trigger --
 trigger-group name=alertSenderTriggerGroup
 trigger
 name=alertSenderTrigger
 className=org.quartz.SimpleTrigger
 description=A Trigger to send all Alert based messages
 volatility=false
 misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
 set-property property=repeatCount value=25/
 set-property property=repeatInterval value=5000/
 /trigger
 /trigger-group


   !-- Create a Job --
  job-group name=alertSenderJobGroup
   !--job name=alertSenderJob
 className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob
 description=alert Sender Job
 durability=true
 volatility=true
 requestsRecovery=true
   /job--
   job name=alertSenderJob
 className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob/

  /job-group

 !-- Schedule the Job/Trigger --
 schedule job=alertSenderJob trigger=alertSenderTrigger/

 schedule jobGroup=alertSenderJobGroup
  triggerGroup=alertSenderTriggerGroup
  job=alertSenderJob
  trigger=alertSenderTrigger/

 /quartz-config


 WEB-INF/classes/com.baselogic.yoursos.scheduler.jobs.AlertSenderJob:

 package com.baselogic.yoursos.scheduler.jobs;

 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;

 import org.quartz.JobExecutionContext;
 import org.quartz.JobExecutionException;
 import org.quartz.Job;

 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;


 /**
  * Class AlertSenderJob
  *
  * @author Mick Knutson
  */
 public class AlertSenderJob implements Job
 {
 /** The codeLog/code instance for this application. */
 private Log log = LogFactory.getLog( getClass().getName() );

 /**
  * Constructor AlertSenderJob
  *
  *
  */
 public AlertSenderJob()
 {
 log.info( initialize AlertSenderJob );
 }

 /**
  * Method execute
  *
  * @param jobExecCtx
  * @throws org.quartz.JobExecutionException
  */
 public void execute( JobExecutionContext jobExecCtx )
 throws org.quartz.JobExecutionException
 {
 log.info( Executing AlertSenderJob. This is the only operation
this
 job performs. );
 }

 }



 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com

 +001(805) 563-0666 Office

[OT]Email formatter component?

2003-09-28 Thread Mick Knutson
I am wondering if anyone knows of a good component for formatting email messages in 
text and HTML.

---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSos.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---


[OT] Error Messages using standard security constraint?

2003-09-28 Thread Mick Knutson
I am using the standard web.xml security constraint with JBoss, and if a
user enters a wrong username and/or password, there is not an error message
generated to tell about the error. I just get the same logon form page. How
do I add an error message in the struts manner?

---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSos.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: Quartz plugin shutdown problem

2003-09-26 Thread Mick Knutson
MessageI am still having issues with Quartz, and would appreciate help from anyone as 
I am just lost on this one.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

  - Original Message - 
  From: Tom Howe 
  To: 'Mick Knutson' 
  Sent: Thursday, September 25, 2003 12:00 PM
  Subject: RE: Quartz plugin shutdown problem


  Well, that's clearly an xml problem.  Why not try dropping the XML declaration (It 
shouldn't really hurt anything).
quartz-config
!-- Create a Trigger --
trigger-group
!--trigger
name=alertSenderTrigger
className=org.quartz.SimpleTrigger
description=A Trigger to send all Alert based messages
volatility=false
misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
set-property property=repeatCount value=25/
set-property property=repeatInterval value=5000/
/trigger--

trigger
name=alertSenderTrigger
className=org.quartz.CronTrigger
set-property
property=cronExpression
value=0 0 12 * * ? /
/trigger
/trigger-group

!-- Create a Job --
job-group
job
name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob  
/   

/job-group

!-- Schedule the Job/Trigger --
schedule job=alertSenderJob trigger=alertSenderTrigger/

/quartz-config



Also, is the stack trace the same or is it somewhat different?  (When I 
changed some of these things, I got a different stacktrace)

-Tom 
---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

  - Original Message - 
  From: Tom Howe 
  To: 'Mick Knutson' 
  Sent: Thursday, September 25, 2003 11:03 AM
  Subject: RE: Quartz plugin shutdown problem


  I didn't use either, actually.  This looks more like a dtd problem, than a 
location problem.  Did you try the changes I made in your app?  It might be worth a 
try.

  -Tom
-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 12:23 PM
To: Tom Howe
Subject: Re: Quartz plugin shutdown problem


Do you use an EAR or WAR with yours?
I just think it might be JAR location in my EAR, but I thought I have 
tried everything.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

  - Original Message - 
  From: Tom Howe 
  To: 'Mick Knutson' 
  Sent: Thursday, September 25, 2003 10:14 AM
  Subject: RE: Quartz plugin shutdown problem


  This seemed to work for me in Tomcat (I don't do ejb's)  Let me know if 
it works out.

  ?xml version=1.0 encoding=ISO-8859-1 ?

  quartz-config

  !-- Create a Trigger --

  trigger-group

  !--trigger

  name=alertSenderTrigger

  className=org.quartz.SimpleTrigger

  description=A Trigger to send all Alert based messages

  volatility=false

  misfireConstant=INSTRUCTION_RE_EXECUTE_JOB

  set-property property=repeatCount value=25/

  set-property property=repeatInterval value=5000/

  /trigger--

  trigger 

  name=alertSenderTrigger

  className=org.quartz.CronTrigger

  set-property 

  property=cronExpression

  value=0 0 12 * * ?/

  /trigger

  /trigger-group


  !-- Create a Job --

  job-group

  job name=alertSenderJob

  className=thowe.SimpleJob

  description=alert Sender Job

  durability=true

  volatility=true

  requestsRecovery=true

  /job

  !--job name=alertSenderJob

  className=thowe.SimpleJob/--


  /job-group


  !-- Schedule the Job/Trigger --

  schedule job=alertSenderJob trigger=alertSenderTrigger/




  /quartz-config



  -Tom

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 11:21 AM
To: Tom Howe
Cc: Mick Knutson
Subject

[OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
I have a function function tooltips() and the call to that function is return 
tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something like args[0], 
and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---


Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
Thank you, but now another issue:

How do I dynamically use that argument in my bean:message???

function tooltip( tooltip_key )
{
return overlib(  'bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY /'
, STICKY, CAPTION
, 'bean:message key= +tooltip_key + 
bundle=TOOLTIP_RESOURCES_KEY /'
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title
}

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is
return tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended
solely for the addressees named above.  If you are not a named recipient, an
individual specifically authorized to receive this communication, or if this
message has been addressed to you in error, do not read, disclose,
reproduce,  or otherwise use this transmission in any manner.  If you have
received this transmission in error, please alert the sender by replying to
the e-mail or by contacting the sender by phone.  We also request that you
immediately delete this message, and attachments, if any.  This disclaimer
shall not be construed in any way to grant permission to transmit
confidential information via this firm's e-mail system.



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


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



Re: [OT] off topic, but I have a quick JavaScript question please...

2003-09-26 Thread Mick Knutson
It just makes my code much cleaner inside my function. But I do understand
the way you described.

Thanks

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 9:06 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


Well, the bean:message tag would need to be where the function is
called, not where it is defined.  The struts tags will execute on the
server side and the JavaScript executes on the client side.  When the
JavaScript runs, all the struts tags will have been executed and
converted into text.  So, you'd need something like:

function tooltip(message) {
return overlib(message, STICKY, CAPTION, message, CENTER);
}


And somewhere else:

... onMouseOver=return tooltip('bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY/') ...


Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:59 AM
To: Struts Users Mailing List
Subject: Re: [OT] off topic, but I have a quick JavaScript question
please...


Thank you, but now another issue:

How do I dynamically use that argument in my bean:message???

function tooltip( tooltip_key )
{
return overlib(  'bean:message key=tooltip_key
bundle=TOOLTIP_RESOURCES_KEY /'
, STICKY, CAPTION
, 'bean:message key= +tooltip_key + 
bundle=TOOLTIP_RESOURCES_KEY /'
, CENTER
  );
}


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Daniel Smeltzer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 8:52 AM
Subject: RE: [OT] off topic, but I have a quick JavaScript question
please...


In your function definition, just declare the input parameters and use
those names to refer to them, i.e.:

Function tooltips(message, title) {
  // now the input parameters are available as message and title }

Daniel

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 10:50 AM
To: struts
Subject: [OT] off topic, but I have a quick JavaScript question
please...


I have a function function tooltips() and the call to that function is
return tooltip('tooltip.msg.name', 'tooltip.title.name');

in my function, how do I access each of the arguments? Is it something
like args[0], and args[1]?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---



Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is
intended solely for the addressees named above.  If you are not a named
recipient, an individual specifically authorized to receive this
communication, or if this message has been addressed to you in error, do
not read, disclose, reproduce,  or otherwise use this transmission in
any manner.  If you have received this transmission in error, please
alert the sender by replying to the e-mail or by contacting the sender
by phone.  We also request that you immediately delete this message, and
attachments, if any.  This disclaimer shall not be construed in any way
to grant permission to transmit confidential information via this firm's
e-mail system.



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




Statement of Confidentiality

This e-mail message, and any attachments, is confidential and is intended
solely for the addressees named above.  If you are not a named recipient, an
individual specifically authorized to receive this communication, or if this
message has been addressed to you in error, do not read, disclose,
reproduce,  or otherwise use this transmission in any manner.  If you have
received this transmission in error, please alert the sender by replying to
the e-mail or by contacting the sender by phone.  We also request that you
immediately delete this message, and attachments, if any.  This disclaimer
shall not be construed in any way to grant permission to transmit
confidential information via this firm's e-mail system.



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



Including 4 form's into 1 page with includes?

2003-09-26 Thread Mick Knutson
I have 4 different read-only forms that are each in their own jsp page. I
want to create a master jsp page that has all 4 forms on it.
I can have the main action collect all 4 DTO's for each of the forms, and
then add it to a DyaActionForm, but I don't know if this is even going to
work.

I just don't want to copy-n-paste JSP code into this master view, as I also
will have the need to show the same FORM by itself.

Has anyone done anything like this and able to help me figure out what to
do?


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: Including 4 form's into 1 page with includes?

2003-09-26 Thread Mick Knutson
Can you please tell me what you me by adding it into the request object?
Do you mean adding each DTo into the DynaForm that gets sent to the user?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 5:50 PM
Subject: Re: Including 4 form's into 1 page with includes?


 I have used the jsp:include directive to include jsp pages that have other
 struts forms in them.  Works great as long as you make sure all the forms
 get added to the request object.

  I have 4 different read-only forms that are each in their own jsp page.
  I want to create a master jsp page that has all 4 forms on it.
  I can have the main action collect all 4 DTO's for each of the forms,
  and then add it to a DyaActionForm, but I don't know if this is even
  going to work.
 
  I just don't want to copy-n-paste JSP code into this master view, as I
  also will have the need to show the same FORM by itself.
 
  Has anyone done anything like this and able to help me figure out what
  to do?
 
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  -
  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: Including 4 form's into 1 page with includes?

2003-09-26 Thread Mick Knutson
OK, I got the forms to display, but I have an issue with the data in each
page being displayed. There is not data actually populating the pages, when
I  KNOW there is data in the given Form Object

I have several ActionForms that as a JSP alone, they work fine,
But then I have this new page that has as DynaActionForm with the following
attributes:

form-bean  name=medicalHistoryViewForm
dynamic=true
type=org.apache.struts.action.DynaActionForm
form-property name=cin type=java.lang.String /

form-property name=allergiesForm
type=com.baselogic.yoursos.user.AllergiesActionForm /
form-property name=diseaseForm
type=com.baselogic.yoursos.user.DiseaseActionForm /
form-property name=prosthesisForm
type=com.baselogic.yoursos.user.ProsthesisActionForm /
form-property name=surgeryForm
type=com.baselogic.yoursos.user.SurgeryActionForm /
form-property name=treatmentForm
type=com.baselogic.yoursos.user.TreatmentActionForm /
form-property name=vaccinationForm
type=com.baselogic.yoursos.user.VaccinationActionForm /
/form-bean

Then, I have the following includes:

jsp:include page=/WEB-INF/default/body/allergies.view.jsp /
jsp:include page=/WEB-INF/default/body/disease.view.jsp /
jsp:include page=/WEB-INF/default/body/prosthesis.view.jsp /
jsp:include page=/WEB-INF/default/body/surgery.view.jsp /
jsp:include page=/WEB-INF/default/body/treatment.view.jsp /
jsp:include page=/WEB-INF/default/body/vaccination.view.jsp /


Please help. I appreciate anyone taking a minute to look at this. I am
really in crunch time as I have a demo for over 2,000 persons in the next
1.5 weeks. So I am very stressed!
Again, heaps of appreciation in advance for you help!

---
Thanks
Mick Knutson

coming soon:
Your SOS: Your personal emergency contact system.
http://YourSos.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 5:50 PM
Subject: Re: Including 4 form's into 1 page with includes?


 I have used the jsp:include directive to include jsp pages that have other
 struts forms in them.  Works great as long as you make sure all the forms
 get added to the request object.

  I have 4 different read-only forms that are each in their own jsp page.
  I want to create a master jsp page that has all 4 forms on it.
  I can have the main action collect all 4 DTO's for each of the forms,
  and then add it to a DyaActionForm, but I don't know if this is even
  going to work.
 
  I just don't want to copy-n-paste JSP code into this master view, as I
  also will have the need to show the same FORM by itself.
 
  Has anyone done anything like this and able to help me figure out what
  to do?
 
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  -
  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: Issue with SSLExt and Tiles

2003-09-25 Thread Mick Knutson
Works great. Thank you very much...

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:28 PM
Subject: Re: Issue with SSLExt and Tiles


 I don't think it is valid JSP syntax to nest tags like that. I have tried
 stuff like that in the past and concluded that you cannot use one JSP
custom
 tag to render an attribute value for another JSP custom tag.

 This might be an alternative:

 tiles:useAttribute id=sectionURL name=section_url/
 sslext:link page=%=sectionURL%
 ...

 The tiles:importAttribute might be relevant to your situation. I am not
 sure which of these two tiles tags to use, but I think you will need to do
 something like this to do what you want.

 -Max

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: struts [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 10:13 PM
 Subject: Issue with SSLExt and Tiles


  I have the following code that does not get processed correctly.
 Currently,
  the tiles:getAsString name='section_url'/ gets rendered as
  http://localhost:8080/tiles:getAsString%20name='section_url'/
 
  sslext:link page=tiles:getAsString
  name='section_url'/
  strongbean:message key=%=title%
//strong
  /sslext:linknbsp;
 
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  -
  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: How to include part of a page dynamically?

2003-09-25 Thread Mick Knutson
This is easily done with Tiles.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Morten Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:57 PM
Subject: How to include part of a page dynamically?


 I'm developing a site where the pages consists of a number of different
parts:

 top, left, right, MAIN, footer, buttom

 I want to dynamically include the MAIN part, so that I include a page,
that
 I generate in the action that forwards to the page. For instance I would
 like to say:

 In
 ViewPage.action I do a: request.setAttribute(specialPage , search).

 Then in the jsp page I would like to write something like:
 jsp:include page=%specialPage%.jsp /  and get the search.jsp page
 included in the MAIN block.  This way I could extend the site by just
 adding a jsp page.

 How can that be done?


 Thanks


 Morten Andersen
 Master of applied mathematics and computer science
 Amanuensis (in e-learning)

 The Maersk Institute of Production technology at Southern Danish
University
 www.mip.sdu.dk
 Campusvej 55
 DK-5230 Odense M
 Denmark
 +45 6550-3654
 +45 6171-1103
 Jabber id: [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: Quartz error and Struts plugin for struts

2003-09-25 Thread Mick Knutson
Yes, here is an exact cut-n-paste:
plug-in className=com.jgsullivan.struts.plugins.QuartzPlugIn 
set-property property=configPath
value=/WEB-INF/quartz-config.xml /
/plug-in


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:58 AM
Subject: RE: Quartz error and Struts plugin for struts


I had no problem using the quartz-config you supplied.  Is your plugin
configured like this in the struts-config?

 plug-in className='com.jgsullivan.struts.plugins.QuartzPlugIn' 
  set-property  property='configPath'
value='/WEB-INF/quartz-config.xml'/
/plug-in

Cal

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 19:12
To: Struts Users Mailing List
Subject: Re: Quartz error and Struts plugin for struts

I also have the following execute method which is not called:

/**
 * Method execute
 *
 * @param jobExecCtx
 * @throws org.quartz.JobExecutionException
 */
public void execute( JobExecutionContext jobExecCtx )
throws org.quartz.JobExecutionException
{
log.info(Executing AlertSenderJob. This is the only operation this
job performs.);
}

I also have the following quartz-config.xml:

?xml version=1.0 encoding=ISO-8859-1 ?
quartz-config
 trigger-group
  trigger
   name=alertSenderTrigger
   className=org.quartz.SimpleTrigger
   description=Trigger for sending Alerts when they are due
   volatility=false
   misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
   set-property
property=repeatCount
value=900 /
   set-property
property=repeatInterval
value=5000 /
  /trigger
 /trigger-group

 job-group
  job name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob /
 /job-group


 schedule job=alertSenderJob
 trigger=alertSenderTrigger /

/quartz-config


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message -
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:05 PM
Subject: Re: Quartz error and Struts plugin for struts


 OK, I seem to be a little further.

 Here is the next error I get:
 ===
 16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler
'QuartzScheduler'
 initialized from default resource file in Quartz package:
 'quartz.properties'
 16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
 16:03:11,578 ERROR [Digester] Begin event threw exception
 java.lang.NullPointerException
 at org.quartz.JobDetail.toString(JobDetail.java:381)
 at java.lang.String.valueOf(String.java:2177)
 at java.lang.StringBuffer.append(StringBuffer.java:361)
 at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
 at

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
 59)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at
 org.apache.commons.digester.Digester.startElement(Digester.java:1273)
 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
 at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
 at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
 at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
 at
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at

com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
 199)
 at

com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
 176)
 at
 com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
 at
 com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
 at

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
 1158)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
 at

com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
 t.java:23)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
 org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
 at

org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
 ava:436)
 at

org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
 ationHandler.java:150

SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I have an HTML image map that needs to use the SSLExt links:

pmap name=Map2
  area shape=rect coords=17,0,84,26 href=/index.jsp
  area shape=rect coords=96,0,187,26 href=/member.do
  area shape=rect coords=204,0,284,26 href=/notification.do
  area shape=rect coords=302,0,406,26 href=/cms.do
  area shape=rect coords=415,0,483,26 href=/about.do


How do I do this with SSLExt as I can't find any examples for this issue.
Thanks in advance for your help.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Clearing a DynaActionForm values?

2003-09-25 Thread Mick Knutson
How do I clear a DynaActionForm values?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
 I have an HTML image map that needs to use the SSLExt links:
 
 pmap name=Map2
   area shape=rect coords=17,0,84,26 href=/index.jsp
   area shape=rect coords=96,0,187,26 href=/member.do
   area shape=rect coords=204,0,284,26 href=/notification.do
   area shape=rect coords=302,0,406,26 href=/cms.do
   area shape=rect coords=415,0,483,26 href=/about.do
 
 
 How do I do this with SSLExt as I can't find any examples for this issue.
 Thanks in advance for your help.
 
 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com
 
 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---

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



Re: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
Do you mean Like:
area shape=rect coords=17,0,84,26 href=sslext:rewrite
name='/member.do'/


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 1:29 PM
Subject: Re: SSLExt and useMap?


 sslext:rewrite / can render URLs to stick into the area href's.

 -Max

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: struts [EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 1:23 PM
 Subject: Re: SSLExt and useMap?


   I have an HTML image map that needs to use the SSLExt links:
  
   pmap name=Map2
 area shape=rect coords=17,0,84,26 href=/index.jsp
 area shape=rect coords=96,0,187,26 href=/member.do
 area shape=rect coords=204,0,284,26 href=/notification.do
 area shape=rect coords=302,0,406,26 href=/cms.do
 area shape=rect coords=415,0,483,26 href=/about.do
  
  
   How do I do this with SSLExt as I can't find any examples for this
 issue.
   Thanks in advance for your help.
  
   ---
   Thanks
   Mick Knutson
   http://www.baselogic.com
  
   +001(805) 563-0666 Office
   +001 (708) 570-2772 Fax
   ---
 
  -
  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: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I added this:
  area shape=rect coords=96,0,187,26 href=sslext:rewrite
name='/member.do'/ 

(and I also have this in other areas of the same JSP page: sslext:link
page=/member.do Log On/sslext:link)


I get this error when I did that:

!--- --E[ServletException in:/WEB-INF/default/index.jsp] Cannot
find bean /member.do in any scope'
javax.servlet.jsp.JspException: Cannot find bean /member.do in any scope
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
 at
org.apache.struts.util.RequestUtils.computeParameters(RequestUtils.java:286)
 at
org.apache.struts.taglib.html.SecureRewriteTag.doStartTag(SecureRewriteTag.j
ava:93)
 at org.apache.jsp.index$jsp._jspService(index$jsp.java:1004)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
 at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
 at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
 at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121)
 at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
20)
 at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
 at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja
va:881)
 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
 at org.apache.jsp.index$jsp._jspService(index$jsp.java:68)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
 at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
 at
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContex
tFilter.java:102)
 at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
 at
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilte
r.java:48)
 at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
 at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
 at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
 at org.mortbay.http.HttpServer.service(HttpServer.java:863)
 at org.jboss.jetty.Jetty.service(Jetty.java:460)
 at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
 at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
 at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
 at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
 at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
 at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 1:40 PM
Subject: Re: SSLExt and useMap?


 Yup, that's the technique I was thinking of. Even though that seems a
little
 like nested tags, it really is not (and should work fine) because the
area
 tag is just HTML rather than a JSP custom tag.

 -Max

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 1:36 PM
 Subject: Re: SSLExt and useMap?


  Do you mean Like:
  area shape=rect coords=17,0,84,26 href=sslext:rewrite
  name='/member.do'/
 
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  - Original Message - 
  From: Max Cooper [EMAIL PROTECTED

Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
In the Action itself, there is a form object already created. Then this
should work inside the action:
( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, 5);

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Barry Volpe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:16 PM
Subject: How do I populate a DynaValidatorForm?


 With an Action Form we do the following:

 form = new UserForm();
 form.setUserid(5);

 What is the equivalent for a DynaValidatorForm?

 Let's say my DynaValidatorForm is myForm

 Of course this does not work (compiler does not know what myForm is.)

 DynaValidatorForm dynaForm = (DynaValidatorForm)myForm;

 myForm.setUserid(5);


 Thanks,
 Barry


 -
 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: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
That was it. Thanks very much!

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Barry Volpe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:16 PM
Subject: How do I populate a DynaValidatorForm?


 With an Action Form we do the following:
 
 form = new UserForm();
 form.setUserid(5); 
 
 What is the equivalent for a DynaValidatorForm?
 
 Let's say my DynaValidatorForm is myForm
 
 Of course this does not work (compiler does not know what myForm is.)
 
 DynaValidatorForm dynaForm = (DynaValidatorForm)myForm; 
 
 myForm.setUserid(5);
 
 
 Thanks,
 Barry
 
 
 -
 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: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
Each JSP will have 1 DynaForm assigned to a given form. So the formA.units
is different than forB.units in the DynaForm.

So, when you submit a form, there is just 1 Dynaform that is submitted. Or
in your case you want to show formA DynaForm with forma.units.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Barry Volpe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:35 PM
Subject: Re: How do I populate a DynaValidatorForm?


 Hi Mick,

 This does not appear to be working.  I was also wondering let's say
 in my struts-config I have two different DynaValidator forms defined.
 Both forms have the same property say units.  I am not using a
Constants.
 but how would it know which units needs to be populated?

 Thanks,
 Barry


 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, September 25, 2003 2:24 PM
 Subject: Re: How do I populate a DynaValidatorForm?


  In the Action itself, there is a form object already created. Then this
  should work inside the action:
  ( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, 5);
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  - Original Message - 
  From: Barry Volpe [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, September 25, 2003 2:16 PM
  Subject: How do I populate a DynaValidatorForm?
 
 
   With an Action Form we do the following:
  
   form = new UserForm();
   form.setUserid(5);
  
   What is the equivalent for a DynaValidatorForm?
  
   Let's say my DynaValidatorForm is myForm
  
   Of course this does not work (compiler does not know what myForm
 is.)
  
   DynaValidatorForm dynaForm = (DynaValidatorForm)myForm;
  
   myForm.setUserid(5);
  
  
   Thanks,
   Barry
  
  
   -
   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]



Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Mick Knutson
How do I go from https on /member.do, back to http on index.jsp?
Must I make an /index.do and just eliminate the index.jsp?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



validating multi-select

2003-09-24 Thread Mick Knutson
How can I validate a multi-select box to have at least 1 option selected?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:217)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:230)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:207)
Caused by: javax.servlet.ServletException: Error initializing Quartz
scheduler
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:103)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
... 18 more
11:51:53,296 ERROR [URLDeploymentScanner] Failed to deploy:
[EMAIL PROTECTED]
url=file:/C:/usr/l
ocal/jboss-3.0.7/server/default/deploy/yoursos-app.ear,
deployedLastModified=1064426115890 }
org.jboss.deployment.DeploymentException: Error initializing Quartz
scheduler; - nested throwable: (javax.servlet.ServletException: Error
initializing
 Quartz scheduler)
at org.jboss.jetty.Jetty.deploy(Jetty.java:353)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:217)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:230)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:207)
Caused by: javax.servlet.ServletException: Error initializing Quartz
scheduler
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:103)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
... 18 more



---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
Are you using the quartz plugin?
In the examples, I did not see the quartz.properties.
I thought the quartz-config.xml is the replacement.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:58 PM
Subject: RE: Quartz error and Struts plugin for struts


In the war

.jars in the web-inf/lib
quartz-config in web-inf
quartz.properties in web-inf/classes

Cal

http://www.calandva.com/Last update 08/01/03

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 15:29
To: struts
Subject: Quartz error and Struts plugin for struts

I am having an error with the quartz plugin and need some help.
Below is the error I get.
I have an EAR, with a common.jar, ejbs.jar and an app.war.
Where is quartz.jar, jgs-struts-0.2-dev.jar, jgs-quartz-0.2-dev.jar and the
quartz-config.xml suppose to go in the above hierarchy?



===
11:51:52,625 ERROR [MainDeployer] could not start deployment:
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/yoursos-a
pp.ear/31.yoursos-app.ear-contents/yoursos-web-application.war
org.jboss.deployment.DeploymentException: Error initializing Quartz
scheduler; - nested throwable: (javax.servlet.ServletException: Error
initializing
 Quartz scheduler)
at org.jboss.jetty.Jetty.deploy(Jetty.java:353)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThr
ead.doScan(AbstractDeploymentScanner.java:217)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:230)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:207)
Caused by: javax.servlet.ServletException: Error initializing Quartz
scheduler
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:103)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
... 18 more
11:51:52,921 ERROR [MainDeployer] could not start deployment:
file:/C:/usr/local/jboss-3.0.7/server/default/deploy/yoursos-app.ear
org.jboss.deployment.DeploymentException: Error initializing Quartz
scheduler; - nested throwable: (javax.servlet.ServletException: Error
initializing
 Quartz scheduler)
at org.jboss.jetty.Jetty.deploy(Jetty.java:353)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
OK, I seem to be a little further.

Here is the next error I get:
===
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler'
initialized from default resource file in Quartz package:
'quartz.properties'
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
16:03:11,578 ERROR [Digester] Begin event threw exception
java.lang.NullPointerException
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan
==

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 2:35 PM
Subject: RE: Quartz error and Struts plugin for struts


Mick Yes I am using the plug in.  The properties configure Quartz - the
type of scheduler, misfire instructions, and other more advanced stuff.  It
my not e necessary -  ill try without.  I really only have the followling
items in the file:

org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 4
org.quartz.jobStore.misfireThreshold = 5000

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
I also have the following execute method which is not called:

/**
 * Method execute
 *
 * @param jobExecCtx
 * @throws org.quartz.JobExecutionException
 */
public void execute( JobExecutionContext jobExecCtx )
throws org.quartz.JobExecutionException
{
log.info(Executing AlertSenderJob. This is the only operation this
job performs.);
}

I also have the following quartz-config.xml:

?xml version=1.0 encoding=ISO-8859-1 ?
quartz-config
 trigger-group
  trigger
   name=alertSenderTrigger
   className=org.quartz.SimpleTrigger
   description=Trigger for sending Alerts when they are due
   volatility=false
   misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
   set-property
property=repeatCount
value=900 /
   set-property
property=repeatInterval
value=5000 /
  /trigger
 /trigger-group

 job-group
  job name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob /
 /job-group


 schedule job=alertSenderJob
 trigger=alertSenderTrigger /

/quartz-config


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:05 PM
Subject: Re: Quartz error and Struts plugin for struts


 OK, I seem to be a little further.

 Here is the next error I get:
 ===
 16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler
'QuartzScheduler'
 initialized from default resource file in Quartz package:
 'quartz.properties'
 16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
 16:03:11,578 ERROR [Digester] Begin event threw exception
 java.lang.NullPointerException
 at org.quartz.JobDetail.toString(JobDetail.java:381)
 at java.lang.String.valueOf(String.java:2177)
 at java.lang.StringBuffer.append(StringBuffer.java:361)
 at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
 at

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
 59)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at
 org.apache.commons.digester.Digester.startElement(Digester.java:1273)
 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
 at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
 at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
 at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
 at
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at

com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
 199)
 at

com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
 176)
 at
 com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
 at
 com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
 at

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
 1158)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
 at

com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
 t.java:23)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
 org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
 at

org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
 ava:436)
 at

org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
 ationHandler.java:150)
 at

org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
 java:442)
 at

org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
 ava:85)
 at

org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
 java:89)
 at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
 at
org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
 at
 org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
 at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
And com.baselogic.yoursos.scheduler.jobs.AlertSenderJob is in my WAR under
web-inf/classes

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:11 PM
Subject: Re: Quartz error and Struts plugin for struts


 I also have the following execute method which is not called:

 /**
  * Method execute
  *
  * @param jobExecCtx
  * @throws org.quartz.JobExecutionException
  */
 public void execute( JobExecutionContext jobExecCtx )
 throws org.quartz.JobExecutionException
 {
 log.info(Executing AlertSenderJob. This is the only operation
this
 job performs.);
 }

 I also have the following quartz-config.xml:

 ?xml version=1.0 encoding=ISO-8859-1 ?
 quartz-config
  trigger-group
   trigger
name=alertSenderTrigger
className=org.quartz.SimpleTrigger
description=Trigger for sending Alerts when they are due
volatility=false
misfireConstant=INSTRUCTION_RE_EXECUTE_JOB
set-property
 property=repeatCount
 value=900 /
set-property
 property=repeatInterval
 value=5000 /
   /trigger
  /trigger-group

  job-group
   job name=alertSenderJob
 className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob /
  /job-group


  schedule job=alertSenderJob
  trigger=alertSenderTrigger /

 /quartz-config


 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com

 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 4:05 PM
 Subject: Re: Quartz error and Struts plugin for struts


  OK, I seem to be a little further.
 
  Here is the next error I get:
  ===
  16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler
 'QuartzScheduler'
  initialized from default resource file in Quartz package:
  'quartz.properties'
  16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
  16:03:11,578 ERROR [Digester] Begin event threw exception
  java.lang.NullPointerException
  at org.quartz.JobDetail.toString(JobDetail.java:381)
  at java.lang.String.valueOf(String.java:2177)
  at java.lang.StringBuffer.append(StringBuffer.java:361)
  at
  org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
  at
 

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
  59)
  at org.apache.commons.digester.Rule.begin(Rule.java:200)
  at
  org.apache.commons.digester.Digester.startElement(Digester.java:1273)
  at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
  at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
  at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
  at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
  at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
  at
 org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
  at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
  at
  org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
  at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at
 

com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
  199)
  at
 

com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
  176)
  at
  com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
  at
  com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
  at
 

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
  1158)
  at
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
  at
 

com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
  t.java:23)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  at
  org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
  at
 

org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
  ava:436)
  at
 

org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
  ationHandler.java:150)
  at
 

org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
  java:442)
  at
 

org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
  ava:85)
  at
 

org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
  java:89)
  at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
  at
 org.jboss.jetty.JettyService.performDeploy(JettyService.java:242

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
I have used the example xml excerp from the src, but I don't know what would
be wrong with the file, or how to track it further.
Any ideas about where I can go to get help?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:27 PM
Subject: Re: Quartz error and Struts plugin for struts


Looks like the plug in is having trouble with parsing the quartz-config. I
cannot see any problem but I am on a blackberry so it is hard to compare
your file to the dtd.

Cal

-Original Message-
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wed Sep 24 19:05:51 2003
Subject: Re: Quartz error and Struts plugin for struts

OK, I seem to be a little further.

Here is the next error I get:
===
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler'
initialized from default resource file in Quartz package:
'quartz.properties'
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
16:03:11,578 ERROR [Digester] Begin event threw exception
java.lang.NullPointerException
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:435)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:561)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
I tried that and here is what I found:

JobDetail(381): return JobDetail '
as listed in the method below:

  public String toString() {
return JobDetail '
  + getFullName()
  + ':  jobClass: '
  + getJobClass().getName()
  +  isStateful: 
  + isStateful()
  +  isVolatile: 
  + isVolatile()
  +  isDurable: 
  + isDurable()
  +  requestsRecovers: 
  + requestsRecovery();
  }


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Joe Germuska [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:08 PM
Subject: Re: Quartz error and Struts plugin for struts


 At 5:45 PM -0700 9/24/03, Mick Knutson wrote:
 I have used the example xml excerp from the src, but I don't know what
would
 be wrong with the file, or how to track it further.
 Any ideas about where I can go to get help?

 I'd suggest going straight to the source code, seeing as all the
 pieces you are using are open source projects.

 For example:

 java.lang.NullPointerException
  at org.quartz.JobDetail.toString(JobDetail.java:381)
  at java.lang.String.valueOf(String.java:2177)
  at java.lang.StringBuffer.append(StringBuffer.java:361)
  at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
  at

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:
2
 59)

 Looking in the source for org.apache.commons.beanutils.BeanUtils, I
 see that line 792 is the call to log.debug():

  if (log.isDebugEnabled()) {
  log.debug(BeanUtils.populate( + bean + ,  +
  properties + ));
  }

 So one thing you've discovered is that Quartz has a bug in it's
 JobDetail.toString() implementation -- it should be doing a null
 check!  The other thing you see though, is that that's merely a
 debugging line.  So if you go to your commons-logging configuration
 and set the logging threshold for
 org.apache.commons.beanutils.BeanUtils to INFO or higher, you'll
 skip that call all together, and maybe get a little farther.

 You could also go and look at the code for Quartz and see what values
 in the JobDetail.toString() might possibly be dereferencing a
 property or method on a null object; that may help you figure out
 something that needs to be set, or help you track down some bug in
 the com.jgsullivan.quartz.SchedulerBuilder and/or
 com.jgsullivan.quartz.ConfigRuleSet -- I see from a brief look at
 ConfigRuleSet that Quartz requires some kind of complicated rules
 because it needs to establish relationships between a JobDetail
 object and a JobGroupConfig object.

 At the risk of sounding like a jerk, your posts don't give the
 impression that you are trying very hard yourself to get to the
 bottom of these problems.   I can't speak for anyone else, but if all
 you ever do is post the next stack trace that comes up, I'm
 personally not likely to put a whole lot more energy into helping you
 get to the bottom of your problem.  You've got to do some of your own
 legwork too.

 Joe
 -- 
 Joe Germuska
 [EMAIL PROTECTED]
 http://blog.germuska.com
   We want beef in dessert if we can get it there.
-- Betty Hogan, Director of New Product Development, National
 Cattlemen's Beef Association


 -
 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: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
in the openSource JobDetail.java, there is a getJobClass():
  /**
   * pGet the instance of codeJob/code that will be executed./p
   */
  public Class getJobClass() {
return jobClass;
  }


I also set the job in my quartz-config.xml:
  job name=alertSenderJob
className=com.baselogic.yoursos.scheduler.jobs.AlertSenderJob/

and the quartz-config.xml is in WEB-INF/
and com.baselogic.yoursos.scheduler.jobs.AlertSenderJob is in
WEB-INF/classes

Am I missing something else?


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Michael Nascimento Santos [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:26 PM
Subject: Re: Quartz error and Struts plugin for struts


 The only way to get a NPE in that use would be to have a null return for
 getJobClass(). Check it and let us know if that's the case.

 []s
 Michael Nascimento Santos
 JSR-207 Expert Group Member
 http://weblogs.java.net/pub/au/80
 htp://www.soujava.org.br

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 10:19 PM
 Subject: Re: Quartz error and Struts plugin for struts


  I tried that and here is what I found:
 
  JobDetail(381): return JobDetail '
  as listed in the method below:
 
public String toString() {
  return JobDetail '
+ getFullName()
+ ':  jobClass: '
+ getJobClass().getName()
+  isStateful: 
+ isStateful()
+  isVolatile: 
+ isVolatile()
+  isDurable: 
+ isDurable()
+  requestsRecovers: 
+ requestsRecovery();
}
 
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  - Original Message - 
  From: Joe Germuska [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 6:08 PM
  Subject: Re: Quartz error and Struts plugin for struts
 
 
   At 5:45 PM -0700 9/24/03, Mick Knutson wrote:
   I have used the example xml excerp from the src, but I don't know
what
  would
   be wrong with the file, or how to track it further.
   Any ideas about where I can go to get help?
  
   I'd suggest going straight to the source code, seeing as all the
   pieces you are using are open source projects.
  
   For example:
  
   java.lang.NullPointerException
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
   org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
  
 

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:
  2
   59)
  
   Looking in the source for org.apache.commons.beanutils.BeanUtils, I
   see that line 792 is the call to log.debug():
  
if (log.isDebugEnabled()) {
log.debug(BeanUtils.populate( + bean + ,  +
properties + ));
}
  
   So one thing you've discovered is that Quartz has a bug in it's
   JobDetail.toString() implementation -- it should be doing a null
   check!  The other thing you see though, is that that's merely a
   debugging line.  So if you go to your commons-logging configuration
   and set the logging threshold for
   org.apache.commons.beanutils.BeanUtils to INFO or higher, you'll
   skip that call all together, and maybe get a little farther.
  
   You could also go and look at the code for Quartz and see what values
   in the JobDetail.toString() might possibly be dereferencing a
   property or method on a null object; that may help you figure out
   something that needs to be set, or help you track down some bug in
   the com.jgsullivan.quartz.SchedulerBuilder and/or
   com.jgsullivan.quartz.ConfigRuleSet -- I see from a brief look at
   ConfigRuleSet that Quartz requires some kind of complicated rules
   because it needs to establish relationships between a JobDetail
   object and a JobGroupConfig object.
  
   At the risk of sounding like a jerk, your posts don't give the
   impression that you are trying very hard yourself to get to the
   bottom of these problems.   I can't speak for anyone else, but if all
   you ever do is post the next stack trace that comes up, I'm
   personally not likely to put a whole lot more energy into helping you
   get to the bottom of your problem.  You've got to do some of your own
   legwork too.
  
   Joe
   -- 
   Joe Germuska
   [EMAIL PROTECTED]
   http://blog.germuska.com
 We want beef in dessert if we can get it there.
  -- Betty Hogan, Director of New Product Development, National
   Cattlemen's Beef Association
  
  
   -
   To unsubscribe, e-mail: [EMAIL

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
I see now that you mean + getJobClass().getName(), but I do not know where
jobClass gets set.
I see a className attribute, but not where this is converted to a class.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Michael Nascimento Santos [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:26 PM
Subject: Re: Quartz error and Struts plugin for struts


 The only way to get a NPE in that use would be to have a null return for
 getJobClass(). Check it and let us know if that's the case.

 []s
 Michael Nascimento Santos
 JSR-207 Expert Group Member
 http://weblogs.java.net/pub/au/80
 htp://www.soujava.org.br

 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 10:19 PM
 Subject: Re: Quartz error and Struts plugin for struts


  I tried that and here is what I found:
 
  JobDetail(381): return JobDetail '
  as listed in the method below:
 
public String toString() {
  return JobDetail '
+ getFullName()
+ ':  jobClass: '
+ getJobClass().getName()
+  isStateful: 
+ isStateful()
+  isVolatile: 
+ isVolatile()
+  isDurable: 
+ isDurable()
+  requestsRecovers: 
+ requestsRecovery();
}
 
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  - Original Message - 
  From: Joe Germuska [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 6:08 PM
  Subject: Re: Quartz error and Struts plugin for struts
 
 
   At 5:45 PM -0700 9/24/03, Mick Knutson wrote:
   I have used the example xml excerp from the src, but I don't know
what
  would
   be wrong with the file, or how to track it further.
   Any ideas about where I can go to get help?
  
   I'd suggest going straight to the source code, seeing as all the
   pieces you are using are open source projects.
  
   For example:
  
   java.lang.NullPointerException
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
   org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
  
 

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:
  2
   59)
  
   Looking in the source for org.apache.commons.beanutils.BeanUtils, I
   see that line 792 is the call to log.debug():
  
if (log.isDebugEnabled()) {
log.debug(BeanUtils.populate( + bean + ,  +
properties + ));
}
  
   So one thing you've discovered is that Quartz has a bug in it's
   JobDetail.toString() implementation -- it should be doing a null
   check!  The other thing you see though, is that that's merely a
   debugging line.  So if you go to your commons-logging configuration
   and set the logging threshold for
   org.apache.commons.beanutils.BeanUtils to INFO or higher, you'll
   skip that call all together, and maybe get a little farther.
  
   You could also go and look at the code for Quartz and see what values
   in the JobDetail.toString() might possibly be dereferencing a
   property or method on a null object; that may help you figure out
   something that needs to be set, or help you track down some bug in
   the com.jgsullivan.quartz.SchedulerBuilder and/or
   com.jgsullivan.quartz.ConfigRuleSet -- I see from a brief look at
   ConfigRuleSet that Quartz requires some kind of complicated rules
   because it needs to establish relationships between a JobDetail
   object and a JobGroupConfig object.
  
   At the risk of sounding like a jerk, your posts don't give the
   impression that you are trying very hard yourself to get to the
   bottom of these problems.   I can't speak for anyone else, but if all
   you ever do is post the next stack trace that comes up, I'm
   personally not likely to put a whole lot more energy into helping you
   get to the bottom of your problem.  You've got to do some of your own
   legwork too.
  
   Joe
   -- 
   Joe Germuska
   [EMAIL PROTECTED]
   http://blog.germuska.com
 We want beef in dessert if we can get it there.
  -- Betty Hogan, Director of New Product Development, National
   Cattlemen's Beef Association
  
  
   -
   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: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
Yes, I am only using the 1.1 LIB release.
Do you mean the beanutils? Or Xerces?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 7:05 PM
Subject: Re: Quartz error and Struts plugin for struts


Are you using the struts 1.1 libs? Latest parser?

Cal

-Original Message-
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wed Sep 24 20:45:51 2003
Subject: Re: Quartz error and Struts plugin for struts

I have used the example xml excerp from the src, but I don't know what would
be wrong with the file, or how to track it further.
Any ideas about where I can go to get help?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:27 PM
Subject: Re: Quartz error and Struts plugin for struts


Looks like the plug in is having trouble with parsing the quartz-config. I
cannot see any problem but I am on a blackberry so it is hard to compare
your file to the dtd.

Cal

-Original Message-
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wed Sep 24 19:05:51 2003
Subject: Re: Quartz error and Struts plugin for struts

OK, I seem to be a little further.

Here is the next error I get:
===
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler'
initialized from default resource file in Quartz package:
'quartz.properties'
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
16:03:11,578 ERROR [Digester] Begin event threw exception
java.lang.NullPointerException
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

Re: Quartz error and Struts plugin for struts

2003-09-24 Thread Mick Knutson
Thanks for the help

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 7:25 PM
Subject: Re: Quartz error and Struts plugin for struts


Xerces. All the commons should be ok from the struts release. I will try
your quartz-config tomorrow.

Cal

-Original Message-
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wed Sep 24 22:11:24 2003
Subject: Re: Quartz error and Struts plugin for struts

Yes, I am only using the 1.1 LIB release.
Do you mean the beanutils? Or Xerces?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 7:05 PM
Subject: Re: Quartz error and Struts plugin for struts


Are you using the struts 1.1 libs? Latest parser?

Cal

-Original Message-
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wed Sep 24 20:45:51 2003
Subject: Re: Quartz error and Struts plugin for struts

I have used the example xml excerp from the src, but I don't know what would
be wrong with the file, or how to track it further.
Any ideas about where I can go to get help?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Holman, Cal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:27 PM
Subject: Re: Quartz error and Struts plugin for struts


Looks like the plug in is having trouble with parsing the quartz-config. I
cannot see any problem but I am on a blackberry so it is hard to compare
your file to the dtd.

Cal

-Original Message-
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wed Sep 24 19:05:51 2003
Subject: Re: Quartz error and Struts plugin for struts

OK, I seem to be a little further.

Here is the next error I get:
===
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler'
initialized from default resource file in Quartz package:
'quartz.properties'
16:03:11,515 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.2.2
16:03:11,578 ERROR [Digester] Begin event threw exception
java.lang.NullPointerException
at org.quartz.JobDetail.toString(JobDetail.java:381)
at java.lang.String.valueOf(String.java:2177)
at java.lang.StringBuffer.append(StringBuffer.java:361)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:792)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
199)
at
com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:
176)
at
com.jgsullivan.struts.plugins.QuartzPlugIn.init(QuartzPlugIn.java:97)
at
com.jgsullivan.struts.plugins.PlugInSupport.init(PlugInSupport.java:276)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServle
t.java:23)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.j
ava:436)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.
java:442)
at
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.j
ava:85)
at
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.
java:89)
at org.jboss.jetty.Jetty.deploy(Jetty.java

Issue with SSLExt and Tiles

2003-09-24 Thread Mick Knutson
I have the following code that does not get processed correctly. Currently,
the tiles:getAsString name='section_url'/ gets rendered as
http://localhost:8080/tiles:getAsString%20name='section_url'/

sslext:link page=tiles:getAsString
name='section_url'/
strongbean:message key=%=title% //strong
/sslext:linknbsp;


---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



issue with forwards

2003-09-23 Thread Mick Knutson
I have an Alert action that has an array of Contacts. If there have not been
any Contacts set up in the db already, I want to forward the user to the
addContact action, then when they add 1 Contact, forward them back to the
Alert action.

How can I do this?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: issue with forwards

2003-09-23 Thread Mick Knutson
 I have an Alert action that has an array of Contacts. If there have not
been
 any Contacts set up in the db already, I want to forward the user to the
 addContact action, then when they add 1 Contact, forward them back to the
 Alert action.

 How can I do this?

 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com

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



SSLExt and Struts Workflow?

2003-09-23 Thread Mick Knutson
Does SSLExt and Struts Workflow work together?

---
Thanks
Mick Knutson
http://www.baselogic.com
---

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



Re: Using Form Bean Java Bean....

2003-09-23 Thread Mick Knutson
I have a DynaActionForm that has several DTO's in an Array:

form-bean  name=locationListForm
dynamic=false
type=org.apache.struts.validator.DynaValidatorForm
form-property name=userLocations
type=com.baselogic.yoursos.location.LocationDto[] /
form-property name=locationId type=java.lang.String /
form-property name=cellColor type=java.lang.String
initial=content_tbl_white /
/form-bean

Works great.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Rajanala, Srinivas [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 4:04 PM
Subject: Using Form Bean  Java Bean



 Hi,

 Can I use both Form Bean  Java Bean inside a html:form?
 I have ManageProfileBean(java bean) which has availRoles and
 ManageProfileForm(Form bean) which has securityRoles. I need to iterate
 through availRoles and display it as checkbox. When the user selects one
or
 more check boxes the data should get populated in the securityRoles of the
 form bean.
 I am trying to use the following code:
 html:form action=/manageProfile


 td class=tr_headerSecurity Roles/td
logic:present name=availRoles
logic:iterate name=availRoles id=roles
 type=com.qwest.omt.bean.ManageProfileBean.availRoles
   td
   html:checkbox name=securityRoles property=key/
   bean:write name=roles property=value/br
   /logic:iterate
   /td
 /logic:present


 In the following code, I am trying to use availDepts from the
 ManageProfileBean(Java Bean) and
 department from the ManageProfileForm(Form Bean).


 logic:present name=availDepts
   logic:iterate name=availDepts id=dt
 td
 html:select property=department
   html:option value=key
  bean:write name=dt property=value
   /html:option
 /html:select
   /logic:iterate
   /td
/logic:present


 Is it a correct? I appreciate your suggesions.

 Thanks,
 Srini

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



derrive the form action name from the action mapping that called the JSP

2003-09-16 Thread Mick Knutson
Is it possible to derive the form action name from the action mapping that
called the JSP?
Like:
html:form action=${actionName} method=post

I have 2 different actions that calls a JSP page. I want each of them to
submit to the respective action
I.e action1 gets submitted to action1.do, and action2 get submitted to
action2.do

Is this possible?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



[OT]Translation components?

2003-09-16 Thread Mick Knutson
I am looking for a translation component to use in JBoss.
I have text that I need translated from 6 different languages, to 6
different language at real-time. They are fairly simple messages, and not
full documents.

IBM has the Websphere translation server but I don't want to convert to
websphere, nor can I afford Websphere.
I can't seem to find any competitors of WebSphere Translation Server.
Any ideas?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: assigning a value back to a bean in a logic:iterate?

2003-09-15 Thread Mick Knutson
Can't I just do something like:
logic:equal property=cColor value=content_tbl_white 
%= cColor = content_tbl_blue %
test cellColor
/logic:equal

But this does not work either. The logic _does_ find the cColor as
content_tbl_white

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:48 AM
Subject: RE: assigning a value back to a bean in a logic:iterate?



  If you just want to alternate within the loop you can do something like
 this

 logic:iterate id=item name=list indexId=index
 %=index%
 /logic:iterate

   This will print 'index'. So you can do something like this

if( index % 2 == 0 ){
// Do something
} else if( index % 2 == 1 ){
// Do something
}

  You might also use the logic:equal tag instead of scriptlets.
 Mohan

 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 8:06 PM
 To: Struts Users Mailing List
 Subject: Re: assigning a value back to a bean in a logic:iterate?


 I am basically trying to take cellColor which is a variable in my
DynaForm,
 and loop through an array of alerts[] that is also in this DynaForm. So I
 can then alternate the cell colors of the table. So alertForm.cellColor
need
 to be changed each iteration of this loop.

 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com

 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---

 - Original Message -
 From: Mohan Radhakrishnan [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 7:33 AM
 Subject: RE: assigning a value back to a bean in a logic:iterate?


 
   bean:parameter id=cellColor name=cellColor
  value=content_tbl_blue /
 
 
  This code defines a scripting variable but I think that since you don't
 have
  any html controls this value is not automatically sent with the request.
 
   In our JSP's where we don't have html controls we use the following
code.
 
logic:iterate id=timeSheetItem name=timeSheetEntryForm
  property=timeSheetItems
  bean:write name=timeSheetItem property=tuesdayTime /
  html:hidden name=timeSheetItem property=tuesdayTime/
/logic:iterate
  Mohan
 
  -Original Message-
  From: Mick Knutson [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 12, 2003 7:44 PM
  To: struts
  Subject: assigning a value back to a bean in a logic:iterate?
 
 
  I have the following code I want to make work:
 
  logic:iterate id=alert name=alertListForm
property=userAlerts
  stuff
  logic:equal name=alertListForm property=cellColor
  value=content_tbl_white 
  bean:parameter id=cellColor name=cellColor
  value=content_tbl_blue /
  /logic:equal
  logic:equal name=alertListForm property=cellColor
  value=content_tbl_blue 
  bean:parameter id=cellColor name=cellColor
  value=content_tbl_white /
  test blue
  /logic:equal
  /logic:iterate
 
  But I can't seem assign cellColor attribute back into alertListForm.
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
 
  +001(805) 563-0666 Office
  +001 (708) 570-2772 Fax
  ---
 
  -
  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: Newbie looking for resources to learn

2003-09-15 Thread Mick Knutson
onjava.com is pretty good.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Isaac [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 7:46 AM
Subject: Newbie looking for resources to learn


Hi,

Where can I find resources(tutorials, ides, articles  etc..) to learn?

Thanks.

Isaac



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



assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mick Knutson
I have the following code I want to make work:

logic:iterate id=alert name=alertListForm property=userAlerts
stuff
logic:equal name=alertListForm property=cellColor
value=content_tbl_white 
bean:parameter id=cellColor name=cellColor
value=content_tbl_blue /
/logic:equal
logic:equal name=alertListForm property=cellColor
value=content_tbl_blue 
bean:parameter id=cellColor name=cellColor
value=content_tbl_white /
test blue
/logic:equal
/logic:iterate

But I can't seem assign cellColor attribute back into alertListForm.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mick Knutson
I am basically trying to take cellColor which is a variable in my DynaForm,
and loop through an array of alerts[] that is also in this DynaForm. So I
can then alternate the cell colors of the table. So alertForm.cellColor need
to be changed each iteration of this loop.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 12, 2003 7:33 AM
Subject: RE: assigning a value back to a bean in a logic:iterate?



  bean:parameter id=cellColor name=cellColor
 value=content_tbl_blue /


 This code defines a scripting variable but I think that since you don't
have
 any html controls this value is not automatically sent with the request.

  In our JSP's where we don't have html controls we use the following code.

   logic:iterate id=timeSheetItem name=timeSheetEntryForm
 property=timeSheetItems
 bean:write name=timeSheetItem property=tuesdayTime /
 html:hidden name=timeSheetItem property=tuesdayTime/
   /logic:iterate
 Mohan

 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 7:44 PM
 To: struts
 Subject: assigning a value back to a bean in a logic:iterate?


 I have the following code I want to make work:

 logic:iterate id=alert name=alertListForm property=userAlerts
 stuff
 logic:equal name=alertListForm property=cellColor
 value=content_tbl_white 
 bean:parameter id=cellColor name=cellColor
 value=content_tbl_blue /
 /logic:equal
 logic:equal name=alertListForm property=cellColor
 value=content_tbl_blue 
 bean:parameter id=cellColor name=cellColor
 value=content_tbl_white /
 test blue
 /logic:equal
 /logic:iterate

 But I can't seem assign cellColor attribute back into alertListForm.

 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com

 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---

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



validating dates as Dates, or Strings?

2003-09-12 Thread Mick Knutson
I have a Value Object with java.sql.Dates, and I use String's on the front
end. I do a simple conversion, but I now need to compare a starting and
ending Date.
How can I do this with the Validation?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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




Re: Extending DynaActionForm

2003-09-11 Thread Mick Knutson
 name. This is
* a convience method.
*/
public Object getApplicationObject(String attrName)
{
return servlet.getServletContext().getAttribute(attrName);
}

/**
* Retrieve an object from the application scope by its name. This is
* a convience method.
*/
public boolean isLoggedIn( HttpServletRequest request )
{
try
{
UserContainer container = getUserContainer(request);
if ( container.getUserLightDto() != null )
{
return true;
}
else
{
return false;
}
}
catch(NotLoggedInException e)
{
return false;
}

}

/**
* Method which is dispatched to when there is no value for specified
request
* parameter included in the request. Subclasses of DispatchAction should
* override this method if they wish to provide default behavior
different
* than producing an HTTP Bad Request error.
*/
public ActionForward unspecified(ActionMapping mapping
,ActionForm form
,javax.servlet.http.HttpServletRequest
request
,javax.servlet.http.HttpServletResponse
response
)
throws java.lang.Exception
{
return defaultMethod(mapping
,form
,request
,response
);
}

public abstract ActionForward defaultMethod( ActionMapping mapping
,ActionForm form

,javax.servlet.http.HttpServletRequest request

,javax.servlet.http.HttpServletResponse response
)
throws java.lang.Exception;


} // The End...


==

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Erez Efrati [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 8:33 AM
Subject: Extending DynaActionForm


 Hi,

 Using DynaActionForm and DispatchAction it would have been helpful ift
 there was a way to create a BaseForm extending the DynaActionForm, which
 always adds the 'method' property to the DynaForm. Is this possible?

 Thanks,
 Erez



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



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



BeanUtils.copyProperties() issue

2003-09-11 Thread Mick Knutson
I have a Value Object that contains a starting java.util.Date and ending
java.util.Date.
I am using java.lang.String objects in my DynaForm and my JSP.
I currently add the dates to the DynaForm manually, and then perform a
copyProperties(). But the copyProperties fails with a type mismatch.

So, what is the best way to convert these 2 types back and forth when my
ValueObject _has_ to be a Date object?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Re: DateUtil

2003-09-11 Thread Mick Knutson
If you have an update for  this method, can I have it as well?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Cees van de Griend [EMAIL PROTECTED]
To: Struts Users [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:33 PM
Subject: Re: DateUtil


 Hello Matt,

 On Wednesday 10 September 2003 23:40, Matt Raible wrote:
  I created it myself - here's the method you're looking for:
 
   /**
* This method converts a String to a date using the pattern MM/dd/
*
* @param strDate the date to convert
* @return a date object
*
* @throws ParseException exception thrown when formatting fails
*/
  public static Date convertStringToDate(String strDate)
  throws ParseException {

 Got it working. Thanks for your help.

 Regards,
 Cees.

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

2003-09-11 Thread Mick Knutson
If you have an update for  this method, can I have it as well?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: Cees van de Griend [EMAIL PROTECTED]
To: Struts Users [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:33 PM
Subject: Re: DateUtil


 Hello Matt,

 On Wednesday 10 September 2003 23:40, Matt Raible wrote:
  I created it myself - here's the method you're looking for:
 
   /**
* This method converts a String to a date using the pattern MM/dd/
*
* @param strDate the date to convert
* @return a date object
*
* @throws ParseException exception thrown when formatting fails
*/
  public static Date convertStringToDate(String strDate)
  throws ParseException {

 Got it working. Thanks for your help.

 Regards,
 Cees.

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



date selector and display?

2003-09-11 Thread Mick Knutson
I have a JavaScript Data selector that I want to use. It works fine, but I
want the format to be usable in java.sql.Date. But this is not very reader
friendly.
So, I am wondering if I can have a hidden text box, that updates when the
DateChooser changes the value, but the field displays a localized date like
with the i18n utilities?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



RE: jgs Quartz error

2003-06-29 Thread Mick Knutson
strtus.jar is in my WEB-INF/lib as well as the 3 quartz jars.
Then I tried to copy struts.jar into my EAR, but got the same message.
I am totally confused on this...
Thanks for your help!!
Hope we can fix this.


---
Thanks...
Mick Knutson
---




From: Joe Germuska [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sun, 29 Jun 2003 09:40:35 -0500
At 13:00 -0700 6/28/03, Mick Knutson wrote:
OK, closer, but still no bannana...

I moved the quartz jars (3) to the EAR instead of the WAR.
I added this into the Manifest.mf for the WAR:
Manifest-Version: 1.0
Class-Path: yoursos-beans.jar common.jar junit-3.8.1.jar 
strutstest-2.0.0.jar aspectjrt-1.0.5.jar cactus-1.4.1.jar 
cactus-ant-1.4.1.jar httpunit-1.4.1.jar quartz.jar jgs-quartz-0.2-dev.jar 
jgs-struts-0_1d.jar
Just to check: Is struts.jar in your WEB-INF/lib?  A message like below 
colud come if RequestUtils was loaded off of the container's class path, as 
classes loaded from the container class path don't have visibility into web 
application lib/class dirs.

What are the contents of WEB-INF/lib?

Joe



But, here is the new error message I get:
==
12:51:51,936 WARN  [jbossweb] WARNING: action: null
java.lang.ClassNotFoundException: 
com.jgsullivan.struts.plugins.QuartzPlugIn
   at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at 
org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:225)
   at 
org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:198)
   at 
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
   at 
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
   at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1140)
   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServlet.java:23)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
   at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
   at 
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
   at 
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.java:89)
   at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
   at 
org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
   at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
   at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
   at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
   at $Proxy3.deploy(Unknown Source)
   at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
   at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:217)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:230)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:207)

12:51:51,936 INFO  [jbossweb] action: null: 
java.lang.ClassNotFoundException: 
com.jgsullivan.struts.plugins.QuartzPlugIn
12:51:51,951 INFO  [jbossweb] Stopped 
WebApplicationContext[/,jar:file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default
/deploy/yoursos-app.ear/34.yoursos-app.ear-contents/yoursos-web-application.war!/]
12:51:51,951 INFO  [jbossweb] Deregister 
jboss.web:Jetty=0,JBossWebApplicationContext=10,context=/
12:51:51,951 INFO  [jbossweb] Successfully undeployed 
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
sos

Internationaized text in large chunks (best practice)?

2003-06-29 Thread Mick Knutson
I have many large chunks of text in the form of whole HTML pages for my 
site. Not realy a full blown Knowledge base, but just very large paragraphs 
that I want to externalize for localization. I just want to know what the 
best practice would be for this?
Would it be just adding it in my ApplicationResources.properties file, or 
something else.

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

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


RE: nested bean parameters

2003-06-29 Thread Mick Knutson
) at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)



---
Thanks...
Mick Knutson
---




From: Nick [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: nested bean parameters
Date: Sun, 29 Jun 2003 05:55:51 -0400
Mike,

Are you still having a problem with this?  If so...looking at your
original JSP tags, I am sure that the problem is with your names not
matching up.  This is what needs to happen:
logic:iterate id=alert name=alertListForm property=userAlerts
  bean:write name=alert property=startingLocation.locationId /
/logic:iterate
In the object called alertListForm, there must be a getter and setter
for userAlerts: getUserAlerts() and setUserAlerts(Collection
userAlerts).  Those methods will return and accept a collection of
objects that in this case are LocationDTO's.
When you iterate, each object in the iteration will be known as an
alert, so the property that you specify has to have a getter/setter.
In this case, your property should be locationId.  Once again, insure
that you have the matching getter/setter methods: getLocationId() 
setLocationId(String locationId).
You do need to be careful with the capitalization.  We have found that
sticking to the java naming standard works best.  Defining a property
that begins with an uppercase throws Struts for a loop.
Hope this helps,
Nick


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

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


nested bean parameters

2003-06-28 Thread Mick Knutson
I have a Collection of AlertDto's. Each AlertDto has a method called 
getStartingLocation() that returns a LocationDto. That LocationDto has a 
method called getLocationTitle().

How, in a JSP can I get the locationTitle?

I have tried:

logic:iterate id=alert name=alertListForm property=userAlerts
bean:write name=alert property=startingLocation.locationId /
/logic:iterate


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

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


RE: jgs Quartz error

2003-06-28 Thread Mick Knutson
I have all 3 jar files within my WAR. I have not added them anywhere else.
I have an EAR with a common.jar, ejbs.jar and yoursos.war. All 3 jars in the 
war.

Should I be adding them in the classpath somewhere else?
If so, where do I add them, and why is having them in the WAR not good 
enough.

Thanks in advance sooo much for your help. This has been kicking my 
butt!

---
Thanks...
Mick Knutson
---




From: Holman, Cal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sat, 28 Jun 2003 12:46:47 -0400
Do you have the jgs-struts-0.1d.jar in your classpath?  jgs-quartz-0.1d.jar 
needs it.

Cal

http://www.calandva.com/Last update 04/26/03

??Email: [EMAIL PROTECTED]
??Phone:706 322-4963
??Snail Mail: 1001 Brookwood Ave   Columbus, GA 31906
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 01:35
To: Struts Users Mailing List
Subject: Re: jgs Quartz error
21:30:28,495 INFO  [TilesPlugin] Tiles definition factory loaded for
module ''.
21:30:28,511 ERROR [MainDeployer] could not start deployment:
file:/C:/usr/local/jboss-3.0.7/server/default/tmp/deploy/server/default/deploy/your
sos-app.ear/35.yoursos-app.ear-contents/yoursos-web-application.war
java.lang.NoClassDefFoundError: org/apache/struts/action/PlugIn
I don't understand this: there's a log message from the TilesPlugin
saying that it has configured, followed immediately by a message
saying that org.apache.struts.action.PlugIn could not be found?
Still, from reading the stack trace, I don't see any problems that
look related to the QuartzPlugIn.  This looks like a different stack
trace than anything you posted last time this problem came up.
This is out of my league -- it seems like something unique to JBoss
and your deployment environment.  At least, we have the QuartzPlugIn
running in a production app here, and from a little googling, it
seems like one or two other folks are using it OK.
Wish I could be of more help,
Joe
--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
If nature worked that way, the universe would crash all the time.
--Jaron Lanier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Learn more about Paymentech's payment processing services at 
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may 
not print, distribute, or copy this message or any attachments.  If you 
have received this communication in error, please notify the sender by 
return e-mail and delete this message and any attachments from your 
computer.

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

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


RE: jgs Quartz error

2003-06-28 Thread Mick Knutson
)
   at 
com.baselogic.yoursos.struts.ExtendedActionServlet.init(ExtendedActionServlet.java:23)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
   at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
   at 
org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
   at 
org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.java:89)
   at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
   ... 18 more





---
Thanks...
Mick Knutson
---




From: Joe Germuska [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: jgs Quartz error
Date: Sat, 28 Jun 2003 13:14:29 -0500
At 10:37 -0700 6/28/03, Mick Knutson wrote:
I have all 3 jar files within my WAR. I have not added them anywhere else.
I have an EAR with a common.jar, ejbs.jar and yoursos.war. All 3 jars in 
the war.

Should I be adding them in the classpath somewhere else?
If so, where do I add them, and why is having them in the WAR not good 
enough.

Thanks in advance sooo much for your help. This has been kicking my 
butt!
In your current case, the not-found error is with a Struts class, not any 
of JGSI libraries.

Does JBoss provide a common lib directory for JARs?  If you were using 
Tomcat, I'd suggest you just put all the jars in $CATALINA_HOME/common/lib/ 
as an experiment to see if that straightens things out -- if JBoss has 
something similar, it might help.

It seems like things have gotten further from working.  In your message 
from May 
(http://marc.theaimsgroup.com/?l=struts-userm=105351464631226w=2), the 
classloader got much further along, finding org.apache.struts.action.PlugIn 
and the QuartzPlugIn class, but failing when the Digester instance created 
by QuartzPlugIn tried to create a 
com.jgsullivan.quartz.config.QuartzConfig.  In your latest stack trace, 
somehow it can't find the Struts PlugIn interface, even though it has found 
other classes which should be in the same jar.

If you can, I would try to go back to how your configuration was set up at 
that time, and then replace the jgs-quartz-0.1d.jar with 
jgs-quartz-0.2-dev.jar, in which the Digester is instructed to use the 
Context Class Loader if available.  At that point, if you have jgs-struts, 
jgs-quartz, and quartz all in the same place, it seems likely that it will 
all come together.

Joe

--
--
Joe Germuska[EMAIL PROTECTED]  http://blog.germuska.comIf 
nature worked that way, the universe would crash all the time. 	--Jaron 
Lanier

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

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


  1   2   3   >