Re: How to detect that session has expired ?

2003-12-07 Thread Mick
On Sun, 07 Dec 2003 12:39:46 +0530, Baljinder Singh wrote:
> How can I detect that session has expired and so throw the user out of
> system after showing him a message that "Your session has expired. Please
> login again."


javax.servlet.http.HttpSessionListener

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener.html
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets4.html

You can listen to when the session is about to be destroyed.


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



validating form fields with rules from a different form

2003-10-23 Thread Mick Wever
I got two fields in a form that are used injunction with a 'find' button
to fill out the rest of the fields in the form.
The rest of the fields in the form are required injunction with the
'submit' button, but the two fields are not.

These two fields are typical across a number of forms so they have their
own form (FindForm) and validation declaration.

Both the submit and find actions are performed inside the same action
class. 
My problem is, given I'm processing the 'find', how do I validate these
fields given they also exist in another form?

First off I thought about nesting a form inside a form, problem here is
that one action can't have two forms.

So in my action class I wrote a simple validate method that fetches the
validateActions from the other form:


private void validateFinnMeNr(HttpServletRequest request, ActionErrors errors, Object 
meNr){
   ValidatorResources vr = 
Resources.getValidatorResources(request.getSession().getServletContext(),request);
   Form findForm = vr.get(getLocale(request), "FindForm");
   Field meNrField = (Field)findForm.getFieldMap().get("meNr");
*  ValidatorAction required = vr.getValidatorAction("required");
*  ValidatorAction integer = vr.getValidatorAction("integer");
*  FieldChecks.validateRequired(meNr, required, meNrField, errors, request); 
*  FieldChecks.validateInteger(meNr, integer, meNrField, errors, request);
}


It feels like I doing this the long way round.
If it can't be done delcarative, then atleast I should be able to do the 
lines marked '*' quicker, something like:


Field meNrField = (Field)findForm.getFieldMap().get("meNr");
meNrField.validateAllDependancies(meNr, errors, request);


Is this possible?

Mick.


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



Re: EVALUATION of TEST FRAMEWORKS

2003-10-22 Thread Mick Wever
On Wed, 22 Oct 2003 09:07:46 +0200, Todor Sergueev Petkov wrote:
> Is there any
> other framework that you people use? 


Here's some instructions on how to setup XTest for your Java project.

http://xtest.netbeans.org/XTest4Java.html

 XTest is an opensource automated testing framework used for testing Java
 products through JUnit, HttpUnit (and hopefully soon Cactus) type tests,
 and publishing the results into html pages. It integrates testing from
 multiple platforms, products, product versions, and test types, to
 provide upto date comprehensive statistical information about the status
 of your java code.

I've been using this at 'De norske Bokklubbene' where, along with
different junit test types (unit, httpUnit, cactus), and platforms, tests
are also grouped (by using the department attribute) into 'Weekly Build',
'Nightly Build', and 'CVS-user' builds corresponding to each cvs commit
per user (using cvsroot/loginfo). This makes the production environment
very resistant to regression because regressions can quickly be traced to
the exact cvs commit and user through the published results of XTest.

The document is still beta, so feedback would be appreciated.

Mick.



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



Re: IMPORTANT: internationalize large chunks of text/HTML

2003-10-15 Thread Mick Knutson
Are you saying that the  will get com.baselogic.text by default, but if
the Globals.LOCALE = DE, then  will get com.baselogic.text_de?
Or am I missing where  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:
>
> 
> 
> 
> 
>
> 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]



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]



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]



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]



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]



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

---


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]



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

---


Re: Urgent: issue with

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 


Remove the space after , this may work.




Thanks
Nazeer


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:20 PM
To: struts
Subject: Urgent: issue with 

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







Here is my web.xml setting.


action

com.baselogic.yoursos.struts.ExtendedActionServlet

config
/WEB-INF/struts-config.xml


debug
3


detail
1

1


  user
  user


  gold
  gold


  platinum
  platinum





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



Urgent: issue with

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







Here is my web.xml setting.


action

com.baselogic.yoursos.struts.ExtendedActionServlet

config
/WEB-INF/struts-config.xml


debug
3


detail
1

1


  user
  user


  gold
  gold


  platinum
  platinum





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







<%
if( isChecked == null || !isChecked.equals( "true" ) )
{
   //isChecked = "false";
%>

<%
}
else
{
%>

    <%
}
%>



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

---


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]



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



help with requiredIf validation

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



  

minlength
2


maxlength
32





field[0]
phone1


fieldTest[0]
NOTNULL





  

minlength
2


maxlength
32





field[0]
phone2


fieldTest[0]
NOTNULL



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:



then the dropdown is in a tile for re-usabilty:










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]



[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:
>  
>
>driver="${db.driver}"
>  url="${db.url}"
>  userid="${db.username}"
>  password="${db.password}">
>format="xml" />
>  
>  
>
>
>  Import:
>  
>
>driver="${db.driver}"
>  url="${db.url}"
>  userid="${db.username}"
>  password="${db.password}">
>src="${class.unittest.dir}/${db.exportfile}" format="xml" />
>  
>  
>
>
>  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]



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]



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.








<%= checkbox %>:::logicmatch


<%= checkbox %>logic:notMatch





<%= checkbox %>:::logicmatch


<%= checkbox %>logic:notMatch



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







---
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:  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:  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:
> >
> > 
> > show an input field to change your password
> > 
> >
> > 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:
> >
> > 
> > show an input field to change your password
> > 
> >
> > 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 
> element for ActionServlet:
>
>   
> Struts Controller Servlet
> org.apache.struts.action.ActionServlet
> ...
> 
>   foo
>   bar
> 
>   
>
> 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 
> elements).  If you want to use things like  in
> your JSP pages, you'll need to define individual  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]



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 Raib

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

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]



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]



HELP: strutsTestCase with ant now sending too much stacktrace!

2003-10-05 Thread Mick Knutson
ter.Digester.sax ]
startElement(,filter-name,filter-name)
[junit] [org.apache.commons.digester.Digester ]   Pushing body text ''
[junit] [org.apache.commons.digester.Digester ]   New
match='web-app/filter-mapping/filter-name'
[junit] [org.apache.commons.digester.Digester ]   No rules found
matching 'web-app/filter-mapping/filter-name'.
[junit] [org.apache.commons.digester.Digester.sax ]
characters(UserPreference)
[junit] [org.apache.commons.digester.Digester.sax ]
endElement(,filter-name,filter-name)
[junit] [org.apache.commons.digester.Digester ]
match='web-app/filter-mapping/filter-name'
[junit] [org.apache.commons.digester.Digester ]
bodyText='UserPreference'
[junit] [org.apache.commons.digester.Digester ]   No rules found
matching 'web-app/filter-mapping/filter-name'.
[junit] [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]



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]



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=en&lr=&ie=UTF-8&oe=UTF-8&q=taskdef+name%3D%22jasper%22&btnG=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 .
> > Also,  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]



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 .
Also,  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]



Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson
chedulerBu
ilderTest.java:88)
[junit]  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]



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



 
  
   
   
   
   
  
 
 
  
 
 




---
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.jet

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



 
  
   
   
   
   
  
 
 
  
 
 




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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-03 Thread Mick Knutson


 
  
   
   
   
   
  
 
 
  
 
 




---
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)
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.sc

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

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

Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Mick Knutson
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

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:
> >
> > 
> >  > value="/WEB-INF/quartz-config.xml" />
> > 
> >
> >
> > 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:
> >
> > 
> > 
&

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]



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



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



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]



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: 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:
>
> 
>  value="/WEB-INF/quartz-config.xml" />
> 
>
>
> 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:
>
> 
> 
> 
> 
>  name="alertSenderTrigger"
> className="org.quartz.SimpleTrigger"
> description="A Trigger to send all Alert based messages"
> volatility="false"
> misfireConstant="INSTRUCTION_RE_EXECUTE_JOB">
> 
> 
> 
> 
>
>
>   
>  
>   
>className="com.baselogic.yoursos.scheduler.jobs.AlertSenderJob"/>
>
>  
>
> 
> 
>
>   triggerGroup="alertSenderTriggerGroup"
>  job="alertSenderJob"
>  trigger="alertSenderTrigger"/>
>
> 
>
>
> 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 Log 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
> +0

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:






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:












  
 
  
  

 









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 Log 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:
> >
> > 
> >  > Struts Configuration 1.1//EN"
> > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> > 
> >
> > 
> > 
> >
> > 
> > 
> >
> > 
> > 
> >
> > 
> > 
> >
> > 
> > 
> >
> > 
> > 
> >
> > 
> >  > />
> >
> > 
> > 
> >  > value="/WEB-INF/quartz-config.xml" />
> > 
> > 
> >
> > Thanks in advance,
> > Tom
> >
> >
> > -
> > 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] 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]



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


Re: Including 4 '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:












Then, I have the following includes:









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



Including 4 '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: [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  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('')" ...


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

function tooltip( tooltip_key )
{
return overlib(  ''
, STICKY, CAPTION
, ''
, 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]



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

function tooltip( tooltip_key )
{
return overlib(  ''
, STICKY, CAPTION
, ''
, 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]



[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: 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).












   










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.

  

  

  

  

  

  

  

  

  


  

  

  

  

  


  


  

  




  



  -Tom

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


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:






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:












  
 
  
  

 









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 Log instance for this application. */

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]



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]



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
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: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I added this:
  

(and I also have this in other areas of the same JSP page: Log On)


I get this error when I did that:

 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:
> > 
> >
> >
> > ---
> > 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?
> >
> >
> > >  can render URLs to stick into the  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:
> > > > >
> > > > > 
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >   
> > > > >
> > > > >
> > > > > 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]
> >
> >
>
>
>
> -
> 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
Do you mean Like:



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


>  can render URLs to stick into the  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:
> > >
> > > 
> > >   
> > >   
> > >   
> > >   
> > >   
> > >
> > >
> > > 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 have an HTML image map that needs to use the SSLExt links:
> 
> 
>   
>   
>   
>   
>   
> 
> 
> 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]



SSLExt and useMap?

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


  
  
  
  
  


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

2003-09-25 Thread Mick Knutson
Yes, here is an exact cut-n-paste:





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

 
  


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:



 
  
   
   
  
 

 
  
 


 




---
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.jb

Re: How to include part of a page dynamically?

2003-09-24 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:
>   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: Issue with SSLExt and Tiles

2003-09-24 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:
>
> 
> 
> ...
>
> The  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  gets rendered as
> > http://localhost:8080/
> >
> > 
> > 
> >  
> >
> >
> > ---
> > 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]



Issue with SSLExt and Tiles

2003-09-24 Thread Mick Knutson
I have the following code that does not get processed correctly. Currently,
the  gets rendered as
http://localhost:8080/



 


---
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: 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(J2EEWebApplicati

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.GeneratedMetho

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

Re: Quartz error and Struts plugin for struts

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


I also set the job in my quartz-config.xml:
  

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 ne

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
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.URLDeploy

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:
>
> 
> 
>  
>   name="alertSenderTrigger"
>className="org.quartz.SimpleTrigger"
>description="Trigger for sending Alerts when they are due"
>volatility="false"
>misfireConstant="INSTRUCTION_RE_EXECUTE_JOB">
> property="repeatCount"
> value="900" />
> property="repeatInterval"
> value="5000" />
>   
>  
>
>  
>className="com.baselogic.yoursos.scheduler.jobs.AlertSenderJob" />
>  
>
>
>trigger="alertSenderTrigger" />
>
> 
>
>
> ---
> 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.servl

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:



 
  
   
   
  
 

 
  
 


 




---
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)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
> cher.java:284)
>  

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.thre

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(M

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

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]



Re: Using Form Bean & Java Bean....

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







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:
> 
>
>
> Security Roles
>
> type="com.qwest.omt.bean.ManageProfileBean.availRoles">
>   
>   
>   
>   
>   
> 
>
>
> In the following code, I am trying to use availDepts from the
> ManageProfileBean(Java Bean) and
> department from the ManageProfileForm(Form Bean).
>
>
> 
>   
> 
> 
>   
>  
>   
> 
>   
>   
>
>
>
> 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]



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



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]



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

2003-09-16 Thread Mick Knutson
Is it possible to derive the  action name from the action mapping that
called the JSP?
Like:


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



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:

<%= cColor = "content_tbl_blue" %>
test cellColor


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
>
> 
> <%=index%>
> 
>
>   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?
>
>
> >
> >   > 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.
> >
> >> property="timeSheetItems">
> > 
> > 
> >   
> > 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:
> >
> > 
> > stuff
> >  > value="content_tbl_white" >
> >  > value="content_tbl_blue" />
> > 
> >  > value="content_tbl_blue" >
> >  > value="content_tbl_white" />
> > test blue
> > 
> > 
> >
> > 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]



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


>
>   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.
>
>property="timeSheetItems">
> 
> 
>   
> 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:
>
> 
> stuff
>  value="content_tbl_white" >
>  value="content_tbl_blue" />
> 
>  value="content_tbl_blue" >
>  value="content_tbl_white" />
> test blue
> 
> 
>
> 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]



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:


stuff





test blue



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]



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



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: Extending DynaActionForm

2003-09-11 Thread Mick Knutson
;
}

log.info("return UserContainer");
return userContainer;
}

/**
* Retrieve an object from the application scope by its 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]



Re: J2EE IDE

2003-08-27 Thread Mick Wever
Looks like another IDE war coming on :-)

You need to check out them out yourself.
As you will no doubt soon see, 
each of us have different likes and requirements.

NetBeans is known for its outstanding 
GUI (Form) editor and JSP editing.
It also has excellent support for CVS and Ant integration.
While Eclipse is very good at refactoring.

I prefer to use NetBeans as it suits more for the power user.
You can change just about anything under its hood from within the IDE.
At my new job they were all using JDeveloper, a commercial product, and
it only took me 3 weeks to convert all of them to NetBeans.
NetBeans now has some nice features in it's suggestion module
that will automatically fix code for you, examples are:
 - missing javadoc tags,
 - missing import statements,
 - missing object castings,
 - and more...
I find it just heaven when an IDE fixes your code for you before you have
even compiled it.
I don't like Eclipse because it is not all written in java. It is
written in a mixture of languages and therefore cannot run on all
platforms. You also cannot use the different Look&Feels that are out there
for java. 

Eclipse is also very short on features compared to NetBeans.
This abundance of features can (naturally) slow it down, make sure to turn
off all the features you won't be using after you have given them a test
run.

Again, find out your requirements, and try them all out :)
Mick.

On Wed, 27 Aug 2003 11:03:03 +0300, Firat TIRYAKI wrote:
> you should use eclipse, it doesn't use swing for GUI's, and it's faster than
> the others.
> - Original Message - 
> From: <[EMAIL PROTECTED]> 
>> Can someone please suggest me a free J2EE IDE suitable for development of
>> webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE,
>> NETBEANS. However I wanted to ckeckout if anyone has already evaluated any
>> of these since I am not sure which one is easy to use and has reasonably
>> good features as well.



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



Re: Is singleton DAO acceptable? -- Best Practices

2003-08-27 Thread Mick Wever
On Tue, 26 Aug 2003 20:10:07 +, Adolfo Miguelez wrote:
> Just to share my experience with singletons: under heavy stress we found 
> that a singleton class in our framework was garbage collected. As far as I 
> remember, singletons are eligible for that with current SDKs despite policy 
> has changed over times as I read from some document in the web.
> 
> They were eligible for GC if its ClassLoader is GCd and they are not 
> referenced by any object... or something like that. Please check for 
> accuracy.

This is very interesting. Which SDK implementation did you see this
behavour?

The single reference to the DAO is actually inside the DAOFactory not the
DAO itself (hence it is not a traditional Singleton) so hopefully this
will prevent the scenerio of it being GC'd.
Or will I have to go further and reference it inside a Struts context as
well? (Eg use the Struts plugin mechanism).

Mick.


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



Re: Is singleton DAO acceptable? -- Best Practices

2003-08-26 Thread Mick Wever
On Mon, 25 Aug 2003 16:32:07 +0200, Federico Real wrote:
> Hi Mick, I like your implementation od DAO , Can you send me a example for
> this? I would like use it.
> - Original Message -
> From: "Robert Taylor" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, August 25, 2003 3:07 PM
> Subject: RE: Is singleton DAO acceptable? -- Best Practices
> The design pattern doesn't states how DAO's are to be implemented, but
> rather what problem they are supposed to solve.
> 
> One reason why you might not want a DAO to be a singleton is if you
> instantiate
> one with an Connection. This might be done to avoid having to pass the
> Connection
> to each method.
> 
> I think your implementation is appropriate. It makes sense performance wise
> and it
> is also intuitively more OO. Why create a new instance of an object if it
> does
> not maintain state?
>> -Original Message-
>> From: news [mailto:[EMAIL PROTECTED] Behalf Of Mick Wever
>> Sent: Sunday, August 24, 2003 12:59 PM
>> To: [EMAIL PROTECTED]
>> Subject: Is singleton DAO acceptable? -- Best Practices
>>
>> All the DAO examples I've read have DaoFactory classes that always return
>> a new DAO instance, and typically the action using it keeps a handle to it
>> for that session.
>>
>> The DAOs that I've created have no state or instance variables, and get
>> their connections from a synchronized pool (and always returning the
>> connection within the same method call). So, since they are
>> multi-threaded, it makes sense to me performance wise it is better
>> for the factory to always return a singleton instance of the DAO.
>> This single instance of the DAO is shared across all sessions in
>> the JVM.
>> (Note this is not the traditional usage of singleton where the singleton
>> itself is responsible for returning the single instance through a static
>> method).
>>
>> My question is, is this such a good idea? Am I missing or misunderstanding
>> something crucial about the DAO Design Pattern?

Sorry the code is not open-source.
But the basic idea is if your DAO is multi-thread capable, ie it does not
have instance variables, or acesses all instance variables in a
synchronized manner, then your DAOFactory can return the same instance all
the time.
For example:

where you would have (in your DAOFactory):


public static MyDAO getMyDAO() throws MyDAOException{
return new MyDAOImpl(); // OR however you choose to plug in the chosen 
implementation
}


instead you would have:


private static MyDAO instance;

public static MyDAO getMyDAO() throws MyDAOException{
  if( instance == null){ // of course you need to synchronize this or make 
instance violatile
instance = new MyDAOImpl(); // OR however you choose to plug in the chosen 
implementation
  }
  return instance;
}


Infact I have a SuperDAOFactory that all my DAOFactory subclass and 
it has a method that finds the DAOImpl I will use given the DAO interface
being requested from JNDI. Then all my instances are stored in the SuperDAOFactory
inside a Hashtable. (This solves the synchronization on the instance variable above).

Mick.



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



  1   2   3   >