Front controller

2005-06-23 Thread Nils Liebelt
Hi all,

I want to write a Swing front end for one of my struts applications.
Basically keeping everything besides the view. I would be nice if I
can keep the validation framework and my controller components probably
wrapped in some kind of interface. I am wondering if there's already a 
project dealing with it? 


Regards,

Nils


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



RE: Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
That's not the problem. Where do you get your ApplicationContext map from? 
Clearly not from SessionBindingEvent. So stick another Observer pattern to
notify your application context?!? 


Regards,

Nils

-Original Message-
From: delbd [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 08, 2005 3:56 PM
To: Struts Users Mailing List
Subject: Re: Howto put current users into the application context?

Le Mercredi 8 Juin 2005 15:44, Nils Liebelt a écrit :
> Hi all,
>
> I want to show list of currently logged in users. Now in my idea this is
> something which should belong into application context. Putting it in
there
> Is not too difficult. I do it in my extended ActionServlet. But how do I
> get it outta there? What listeners do I use in order to get notified when
a
> session var unbinds also nowing where to find ApplicationContext Map?
>

put an object implementing HttpSessionBindingListener in the sessions 
attributes to get notified when session invalidates or times out.

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

-
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: Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
That's not the problem. Where do you get your ApplicationContext map from? 
Clearly not from SessionBindingEvent. So stick another Observer pattern to
notify your application context?!? 


Regards,

Nils

-Original Message-
From: delbd [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 08, 2005 3:56 PM
To: Struts Users Mailing List
Subject: Re: Howto put current users into the application context?

Le Mercredi 8 Juin 2005 15:44, Nils Liebelt a écrit :
> Hi all,
>
> I want to show list of currently logged in users. Now in my idea this is
> something which should belong into application context. Putting it in
there
> Is not too difficult. I do it in my extended ActionServlet. But how do I
> get it outta there? What listeners do I use in order to get notified when
a
> session var unbinds also nowing where to find ApplicationContext Map?
>

put an object implementing HttpSessionBindingListener in the sessions 
attributes to get notified when session invalidates or times out.

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
Hi all,

I want to show list of currently logged in users. Now in my idea this is
something which should belong into application context. Putting it in there 
Is not too difficult. I do it in my extended ActionServlet. But how do I get
it outta there? What listeners do I use in order to get notified when a
session var unbinds also nowing where to find ApplicationContext Map?  


GreetZ

Nils


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



Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
Hi all,

I want to show list of currently logged in users. Now in my idea this is
something which should belong into application context. Putting it in there 
Is not too difficult. I do it in my extended ActionServlet. But how do I get
it outta there? What listeners do I use in order to get notified when a
session var unbinds also nowing where to find ApplicationContext Map?  


GreetZ

Nils


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



RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Nils Liebelt
Try something like this:

# Whattaa logga
log4j.logger=FATAL
log4j.logger.fr.improve.struts=INFO
log4j.logger.org.apache.ojb=INFO
log4j.logger.org.apache.struts=INFO
log4j.logger.com.candor.hummingbird=DEBUG


GreetZ

Nils

-Original Message-
From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 06, 2005 2:34 PM
To: Struts Users Mailing List; Martin Gainty
Subject: RE: how do I switch off Struts - internal logging?


Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]

Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

 in - Original Message -

From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?




I am using struts 1.2.6.




Thanks in advance.




Abhinav


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


*** CAUTION - Disclaimer ** This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use
of the addressee(s). If you are not the intended recipient, please notify
the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is
not liable for any damage you may sustain as a result of any virus in this
e-mail. You should carry out your own virus checks before opening the e-mail
or attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

-
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 switch off Struts - internal logging?

2005-06-06 Thread Nils Liebelt
Try something like this:

# Whattaa logga
log4j.logger=FATAL
log4j.logger.fr.improve.struts=INFO
log4j.logger.org.apache.ojb=INFO
log4j.logger.org.apache.struts=INFO
log4j.logger.com.candor.hummingbird=DEBUG


GreetZ

Nils

-Original Message-
From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 06, 2005 2:34 PM
To: Struts Users Mailing List; Martin Gainty
Subject: RE: how do I switch off Struts - internal logging?


Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]

Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

 in - Original Message -

From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?




I am using struts 1.2.6.




Thanks in advance.




Abhinav


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


*** CAUTION - Disclaimer ** This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use
of the addressee(s). If you are not the intended recipient, please notify
the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is
not liable for any damage you may sustain as a result of any virus in this
e-mail. You should carry out your own virus checks before opening the e-mail
or attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Tiles: Howto nest attributes! Is it possible?

2005-06-06 Thread Nils Liebelt
Hi all,

Let's say I got a typical tile main layout definition:







Now the content has to split into 2 panes. But not always. So I would like
to have definition who looks like this:


  




The syntax is not right but it explains what I want. Is it possible some
how. I can only access "menu" and "body" as beans. All other tiles insert
tags are useless.



GreetZ

Nils


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



Tiles: Howto nest attributes! Is it possible?

2005-06-06 Thread Nils Liebelt
Hi all,

Let's say I got a typical tile main layout definition:







Now the content has to split into 2 panes. But not always. So I would like
to have definition who looks like this:


  




The syntax is not right but it explains what I want. Is it possible some
how. I can only access "menu" and "body" as beans. All other tiles insert
tags are useless.



GreetZ

Nils


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



RE: Newbie Question : Session Management without cookies

2005-05-27 Thread Nils Liebelt
Hi Mark,

Have a look at J2ee Specs first. So you get an idea of the session concept. 

Regards,

Nils

-Original Message-
From: Mark Breitner [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 27, 2005 4:34 PM
To: user@struts.apache.org
Subject: Newbie Question : Session Management without cookies

Hello,

I just started with struts and wanted to implement an application that is
able to do session management (f.e. user + password) even if the user has
turned cookies off.

what is the best way to do this ?

With kind regards

Mark Breitner

--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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


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



RE: Newbie Question : Session Management without cookies

2005-05-27 Thread Nils Liebelt
Hi Mark,

Have a look at J2ee Specs first. So you get an idea of the session concept. 

Regards,

Nils

-Original Message-
From: Mark Breitner [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 27, 2005 4:34 PM
To: user@struts.apache.org
Subject: Newbie Question : Session Management without cookies

Hello,

I just started with struts and wanted to implement an application that is
able to do session management (f.e. user + password) even if the user has
turned cookies off.

what is the best way to do this ?

With kind regards

Mark Breitner

--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



Nesting business beans inside form beans

2005-05-27 Thread Nils Liebelt
Hi all,
 
could I speed up my development by placing "business" beans inside a form
bean using delegating methods to set it. I could init the "business" bean
with a none bean method and only expose certain attributes of course
validating the way i need it. I am interested if I place such a construction
inside the request scope and submit the corresponding form. Is my nested
business object then still available or does Struts create a new form with
the set parameter?
 
 
Regards,
 
Nils


Nesting business beans inside form beans

2005-05-27 Thread Nils Liebelt
Hi all,
 
could I speed up my development by placing "business" beans inside a form
bean using delegating methods to set it. I could init the "business" bean
with a none bean method and only expose certain attributes of course
validating the way i need it. I am interested if I place such a construction
inside the request scope and submit the corresponding form. Is my nested
business object then still available or does Struts create a new form with
the set parameter?
 
 
Regards,
 
Nils


How to convert line breaks to using bean:write

2005-05-26 Thread Nils Liebelt
Hi all, 
 
is that possible?
 
 
GreetZ
 
Nils


How to convert line breaks to using bean:write

2005-05-26 Thread Nils Liebelt
Hi all, 
 
is that possible?
 
 
GreetZ
 
Nils


RE: Populating growing List

2005-05-23 Thread Nils Liebelt
The only problem is that you have no choice. I don't like polluting the
session context. But if you have growing stuff mentioned before and you
don't want a LazyList.

-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 2:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List


dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean, I am not sure how long my application
is going to run.



Thanks and Regards,
Nitish Kumar


-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 5:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List


What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself... 


Cheers,

Nils

-----Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: Populating growing List

Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


-
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: Populating growing List

2005-05-23 Thread Nils Liebelt
The only problem is that you have no choice. I don't like polluting the
session context. But if you have growing stuff mentioned before and you
don't want a LazyList.

-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 2:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List


dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean, I am not sure how long my application
is going to run.



Thanks and Regards,
Nitish Kumar


-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 5:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List


What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself... 


Cheers,

Nils

-----Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: Populating growing List

Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


-
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: Populating growing List

2005-05-23 Thread Nils Liebelt
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself... 


Cheers,

Nils

-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: Populating growing List

Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


-
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: Populating growing List

2005-05-23 Thread Nils Liebelt
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself... 


Cheers,

Nils

-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: Populating growing List

Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


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



Populating growing List

2005-05-23 Thread Nils Liebelt
Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


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



Populating growing List

2005-05-23 Thread Nils Liebelt
Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


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



Creating/Editing of business objects :: Best practise

2005-05-13 Thread Nils Liebelt
Hi all,

 

I am just wondering who you guys handle the different save operations when
creating/editing any business object. I see two options:

 

-  Put an id into ActionForm

-  Retrieve the business object with that id 

-  Update businessobject

 

Or what also could be interesting

 

-  No id in the ActionForm or just getter

-  When preparing the edit view put the corresponding
businessobject into the session

-  When saving you lookup if that businessobject exists
and use it.

-  Update businessobject

 

The first option has to retireve the businessobject twice. Well, this
shouldn't be a problem in cached environment. 

But you have the id in the Form. So you gotta do all sorts of checks,
whether its an id, if it's an proper id.. 

I am going for the approach right now but I am not really happy with it. 

 

 

GreetZ

 

Nils



Creating/Editing of business objects :: Best practise

2005-05-13 Thread Nils Liebelt
Hi all,

 

I am just wondering who you guys handle the different save operations when
creating/editing any business object. I see two options:

 

-  Put an id into ActionForm

-  Retrieve the business object with that id 

-  Update businessobject

 

Or what also could be interesting

 

-  No id in the ActionForm or just getter

-  When preparing the edit view put the corresponding
businessobject into the session

-  When saving you lookup if that businessobject exists
and use it.

-  Update businessobject

 

The first option has to retireve the businessobject twice. Well, this
shouldn't be a problem in cached environment. 

But you have the id in the Form. So you gotta do all sorts of checks,
whether its an id, if it's an proper id.. 

I am going for the approach right now but I am not really happy with it. 

 

 

GreetZ

 

Nils



RE: Global scope

2005-05-10 Thread Nils Liebelt
Can the servletcontext declared as static:

private static ServletContext servletContext;


Not sure about it? Makes sense to me.


GreetZ

Nils




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 4:46 PM
To: Struts Users Mailing List
Subject: Re: Global scope

Take a look at this:

public class ApplicationContextListener implements ServletContextListener 
{

private ServletContext servletContext = null;

public void contextInitialized(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
ApplicationBean applicationBean = new ApplicationBean();
servletContext.setAttribute("applicationBean", 
applicationBean);
}

public void contextDestroyed(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
servletContext.removeAttribute("applicationBean");
}
}

HTH,
Glenn




"Nils Liebelt" <[EMAIL PROTECTED]> 
10/05/2005 10:41 AM
Please respond to
"Struts Users Mailing List" 


To
"'Struts Users Mailing List'" 
cc
<[EMAIL PROTECTED]>
Subject
Global scope
Classification








Hi everybody, 

 

Is there a global scope where you could dump e.g. a list of all users or
stuff that is needed in global context. Or just adding to each single
session?

 

 

GreetZ

 

Nils




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



RE: Global scope

2005-05-10 Thread Nils Liebelt
Can the servletcontext declared as static:

private static ServletContext servletContext;


Not sure about it? Makes sense to me.


GreetZ

Nils




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 4:46 PM
To: Struts Users Mailing List
Subject: Re: Global scope

Take a look at this:

public class ApplicationContextListener implements ServletContextListener 
{

private ServletContext servletContext = null;

public void contextInitialized(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
ApplicationBean applicationBean = new ApplicationBean();
servletContext.setAttribute("applicationBean", 
applicationBean);
}

public void contextDestroyed(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
servletContext.removeAttribute("applicationBean");
}
}

HTH,
Glenn




"Nils Liebelt" <[EMAIL PROTECTED]> 
10/05/2005 10:41 AM
Please respond to
"Struts Users Mailing List" 


To
"'Struts Users Mailing List'" 
cc
<[EMAIL PROTECTED]>
Subject
Global scope
Classification








Hi everybody, 

 

Is there a global scope where you could dump e.g. a list of all users or
stuff that is needed in global context. Or just adding to each single
session?

 

 

GreetZ

 

Nils




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



RE: Global scope

2005-05-10 Thread Nils Liebelt
Ah looks gd thanks,

Cheers

Nils

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 4:46 PM
To: Struts Users Mailing List
Subject: Re: Global scope

Take a look at this:

public class ApplicationContextListener implements ServletContextListener 
{

private ServletContext servletContext = null;

public void contextInitialized(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
ApplicationBean applicationBean = new ApplicationBean();
servletContext.setAttribute("applicationBean", 
applicationBean);
}

public void contextDestroyed(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
servletContext.removeAttribute("applicationBean");
}
}

HTH,
Glenn




"Nils Liebelt" <[EMAIL PROTECTED]> 
10/05/2005 10:41 AM
Please respond to
"Struts Users Mailing List" 


To
"'Struts Users Mailing List'" 
cc
<[EMAIL PROTECTED]>
Subject
Global scope
Classification








Hi everybody, 

 

Is there a global scope where you could dump e.g. a list of all users or
stuff that is needed in global context. Or just adding to each single
session?

 

 

GreetZ

 

Nils




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



RE: Global scope

2005-05-10 Thread Nils Liebelt
Ah looks gd thanks,

Cheers

Nils

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 4:46 PM
To: Struts Users Mailing List
Subject: Re: Global scope

Take a look at this:

public class ApplicationContextListener implements ServletContextListener 
{

private ServletContext servletContext = null;

public void contextInitialized(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
ApplicationBean applicationBean = new ApplicationBean();
servletContext.setAttribute("applicationBean", 
applicationBean);
}

public void contextDestroyed(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
servletContext.removeAttribute("applicationBean");
}
}

HTH,
Glenn




"Nils Liebelt" <[EMAIL PROTECTED]> 
10/05/2005 10:41 AM
Please respond to
"Struts Users Mailing List" 


To
"'Struts Users Mailing List'" 
cc
<[EMAIL PROTECTED]>
Subject
Global scope
Classification








Hi everybody, 

 

Is there a global scope where you could dump e.g. a list of all users or
stuff that is needed in global context. Or just adding to each single
session?

 

 

GreetZ

 

Nils




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



Global scope

2005-05-10 Thread Nils Liebelt
Hi everybody, 

 

Is there a global scope where you could dump e.g. a list of all users or
stuff that is needed in global context. Or just adding to each single
session?

 

 

GreetZ

 

Nils



Global scope

2005-05-10 Thread Nils Liebelt
Hi everybody, 

 

Is there a global scope where you could dump e.g. a list of all users or
stuff that is needed in global context. Or just adding to each single
session?

 

 

GreetZ

 

Nils



[OT] xdoclet actionforms

2005-04-21 Thread Nils Liebelt
Hi,

I am using the webdoclet module to generate my struts-config.xml. It works
very nice for my action classes. But for some reason I doesn't parse the
tags in my Form classes. I can't see the form bean definitions in the struts
config after building.  I ran Ant in debug and I saw that finds the
appropriate classes so it's not a filter issue. I am thinking that I may
miss a library? Here's an example of a form-class:

/**
 * @author nils
 * @struts.form
 */
public class AccountForm extends ValidatorActionForm {

/**
 * Comment for serialVersionUID
 */
private static final long serialVersionUID = 3761972678709425976L;

private String name;

private String phone;
private String email;
private String website;
private String comment;
private String owner;
   
/**
 * @struts.validator type="required"
 * @return Returns the comment.
 */
public final String getComment() {
return comment;
}
/**
 * @param comment The comment to set.
 */
public final void setComment(String comment) {
this.comment = comment;
}



Regards, 

Nils


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



[OT] xdoclet actionforms

2005-04-21 Thread Nils Liebelt
Hi,

I am using the webdoclet module to generate my struts-config.xml. It works
very nice for my action classes. But for some reason I doesn't parse the
tags in my Form classes. I can't see the form bean definitions in the struts
config after building.  I ran Ant in debug and I saw that finds the
appropriate classes so it's not a filter issue. I am thinking that I may
miss a library? Here's an example of a form-class:

/**
 * @author nils
 * @struts.form
 */
public class AccountForm extends ValidatorActionForm {

/**
 * Comment for serialVersionUID
 */
private static final long serialVersionUID = 3761972678709425976L;

private String name;

private String phone;
private String email;
private String website;
private String comment;
private String owner;
   
/**
 * @struts.validator type="required"
 * @return Returns the comment.
 */
public final String getComment() {
return comment;
}
/**
 * @param comment The comment to set.
 */
public final void setComment(String comment) {
this.comment = comment;
}



Regards, 

Nils


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



Displaying data :: Best practise

2005-04-19 Thread Nils Liebelt

What goes to the front (for viewing purposes)? For capturing data we use
ActionForms! But how do you display data (from your model) nicely? Send
Businesobjects, Businessobjects stuffed in Beans, ActionForm or something
else to the view layer?


Regards,

Nils


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



Displaying data :: Best practise

2005-04-19 Thread Nils Liebelt

What goes to the front (for viewing purposes)? For capturing data we use
ActionForms! But how do you display data (from your model) nicely? Send
Businesobjects, Businessobjects stuffed in Beans, ActionForm or something
else to the view layer?


Regards,

Nils


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



RE: Struts DB Access :: Best Practices

2005-03-10 Thread Nils Liebelt
That's right. It's quiet a luxury not to deal with legacy shit... 
But even if. As long as the guy/gal who made up the DB is not fully
incompetent. 


GreetZ

Nils

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 10, 2005 10:20 PM
To: Struts Users Mailing List
Subject: Re: Struts DB Access :: Best Practices

Nils Liebelt wrote the following on 3/10/2005 3:10 PM:

> - You make up your model. I use UML.  
> - Look for a case tool where you can generate some code. Poseidon is
> great.
> - Put in the your xdoclet tags for the mapping. 
> - Put in your xdoclet tags for the form beans.
> - May be write a couple conversion classes from form beans to
> businessobjects and from businessobjects to DB.
> - Write an Interface for Querying your objects the way you need them. 
> 
> That's it. Straight forward! 28 tables and not a single line of SQL. But
it
> is not about SQL.

Did you get to create the tables after you made up Model? That's a big 
difference than a huge majority of cases where you don't have that 
luxury of starting from scratch on the DB design. And that big 
difference makes a difference in how easy it is to use you a strict 
object only approach. You can brag about no SQL, but show me that same 
bragging of 'ease' where you have to work on a project where you can't 
start from scratch on the DB model.

-- 
Rick

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


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



RE: Struts DB Access :: Best Practices

2005-03-10 Thread Nils Liebelt
That's right. It's quiet a luxury not to deal with legacy shit... 
But even if. As long as the guy/gal who made up the DB is not fully
incompetent. 


GreetZ

Nils

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 10, 2005 10:20 PM
To: Struts Users Mailing List
Subject: Re: Struts DB Access :: Best Practices

Nils Liebelt wrote the following on 3/10/2005 3:10 PM:

> - You make up your model. I use UML.  
> - Look for a case tool where you can generate some code. Poseidon is
> great.
> - Put in the your xdoclet tags for the mapping. 
> - Put in your xdoclet tags for the form beans.
> - May be write a couple conversion classes from form beans to
> businessobjects and from businessobjects to DB.
> - Write an Interface for Querying your objects the way you need them. 
> 
> That's it. Straight forward! 28 tables and not a single line of SQL. But
it
> is not about SQL.

Did you get to create the tables after you made up Model? That's a big 
difference than a huge majority of cases where you don't have that 
luxury of starting from scratch on the DB design. And that big 
difference makes a difference in how easy it is to use you a strict 
object only approach. You can brag about no SQL, but show me that same 
bragging of 'ease' where you have to work on a project where you can't 
start from scratch on the DB model.

-- 
Rick

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


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



RE: Struts DB Access :: Best Practices

2005-03-10 Thread Nils Liebelt
Hi all,

Here's is a comment from a first time OJB user. I had to do a web project
with a quiet large entity relationship model. Many 1toN and MtoN relations.
So what do you do?! 

-   You make up your model. I use UML.  
-   Look for a case tool where you can generate some code. Poseidon is
great.
-   Put in the your xdoclet tags for the mapping. 
-   Put in your xdoclet tags for the form beans.
-   May be write a couple conversion classes from form beans to
businessobjects and from businessobjects to DB.
-   Write an Interface for Querying your objects the way you need them. 

That's it. Straight forward! 28 tables and not a single line of SQL. But it
is not about SQL.
I love this approach so much, because you just maintain one set of classes
and manage everything through the xdoclet attributes. When I think of the
system now I stay fully in my model. No more and then I have to insert that
FK there... In fact if we had more stable computer I would write the
PersistenceBrokerEmpty implementation ;-)

Maybe it isn't the most efficient way to materialize an object with its
relations or just a complete row if you only need a single entry. But why
not next time it's gonna be in cache, who the hell cares in times of cheap
memory. This is next millennium?! 

If you think in an OO way and if need a relational DB in the back you don't
get around O/R mapping. 


GreetZ

Nils


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



RE: Struts DB Access :: Best Practices

2005-03-10 Thread Nils Liebelt
Hi all,

Here's is a comment from a first time OJB user. I had to do a web project
with a quiet large entity relationship model. Many 1toN and MtoN relations.
So what do you do?! 

-   You make up your model. I use UML.  
-   Look for a case tool where you can generate some code. Poseidon is
great.
-   Put in the your xdoclet tags for the mapping. 
-   Put in your xdoclet tags for the form beans.
-   May be write a couple conversion classes from form beans to
businessobjects and from businessobjects to DB.
-   Write an Interface for Querying your objects the way you need them. 

That's it. Straight forward! 28 tables and not a single line of SQL. But it
is not about SQL.
I love this approach so much, because you just maintain one set of classes
and manage everything through the xdoclet attributes. When I think of the
system now I stay fully in my model. No more and then I have to insert that
FK there... In fact if we had more stable computer I would write the
PersistenceBrokerEmpty implementation ;-)

Maybe it isn't the most efficient way to materialize an object with its
relations or just a complete row if you only need a single entry. But why
not next time it's gonna be in cache, who the hell cares in times of cheap
memory. This is next millennium?! 

If you think in an OO way and if need a relational DB in the back you don't
get around O/R mapping. 


GreetZ

Nils


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



RE: Hibernate Struts Example

2005-03-08 Thread Nils Liebelt
Hi, 
I just had a quick look at the example. Works fine for the book shop. But
you should keep in mind that pushing businessobjects to view is not what MVC
indented even if nested inside an ActionForm. Your ActionForms should only
contain String types. Since this is the type method GET/POST is gonna
deliver to you. All other types might not get populated (e.g if you want to
collect a number from a text field) and then you can't validate. 

I made the same mistake in a recent project with a quiet large entity
relationship. It was so attempting since you don't have to maintain
ActionForms and an extra set of businessobjects. But it is actually more
clean and you can have a tighter binding of data/functions e.g. like
someBook.store() 

Regards

Nils


-Original Message-
From: Sebastian Hennebrueder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:36 AM
To: Struts Users Mailing List
Subject: Re: Hibernate Struts Example

You may also try this one. Sorry, that it was unfindable. ;-)

http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html

Regards

Sebastian Hennebrueder



http://www.laliluna.de

Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB

Daniel Watrous wrote:
> I have written a very simple shopcart application using Struts and
> Hibernate. I looked quite a bit for a decent tutorial and example but
> found nothing, so I put this together. For anyone else wondering how
> to integrate Hibernate and Struts, here is an example:
> 
> http://www.simplecart.org
> 
> The source is available under a BSD license. THIS IS NOT PRODUCTION
> QUALITY SOFTWARE. It is simply for learning, which is why I did it.
> Hopefully it is useful to someone more than me!
> 
> -
> 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: Hibernate Struts Example

2005-03-08 Thread Nils Liebelt
Hi, 
I just had a quick look at the example. Works fine for the book shop. But
you should keep in mind that pushing businessobjects to view is not what MVC
indented even if nested inside an ActionForm. Your ActionForms should only
contain String types. Since this is the type method GET/POST is gonna
deliver to you. All other types might not get populated (e.g if you want to
collect a number from a text field) and then you can't validate. 

I made the same mistake in a recent project with a quiet large entity
relationship. It was so attempting since you don't have to maintain
ActionForms and an extra set of businessobjects. But it is actually more
clean and you can have a tighter binding of data/functions e.g. like
someBook.store() 

Regards

Nils


-Original Message-
From: Sebastian Hennebrueder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:36 AM
To: Struts Users Mailing List
Subject: Re: Hibernate Struts Example

You may also try this one. Sorry, that it was unfindable. ;-)

http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html

Regards

Sebastian Hennebrueder



http://www.laliluna.de

Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB

Daniel Watrous wrote:
> I have written a very simple shopcart application using Struts and
> Hibernate. I looked quite a bit for a decent tutorial and example but
> found nothing, so I put this together. For anyone else wondering how
> to integrate Hibernate and Struts, here is an example:
> 
> http://www.simplecart.org
> 
> The source is available under a BSD license. THIS IS NOT PRODUCTION
> QUALITY SOFTWARE. It is simply for learning, which is why I did it.
> Hopefully it is useful to someone more than me!
> 
> -
> 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: Validwhen confusion? Using Struts 1.2.4

2005-02-24 Thread Nils Liebelt
I am using Struts 1.2.4


-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 6:41 PM
To: 'Struts Users Mailing List'
Subject: Validwhen confusion?

Hey everybody,

 

Just want to validate a two field match using validwhen:

 







something

(*this* == newPass2)





 

No matter what I put in the  space it always returns true! 

The required statement works well. Do I miss a library?

 

 

Regards,

 

Nils



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



RE: Validwhen confusion? Using Struts 1.2.4

2005-02-24 Thread Nils Liebelt
I am using Struts 1.2.4


-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 6:41 PM
To: 'Struts Users Mailing List'
Subject: Validwhen confusion?

Hey everybody,

 

Just want to validate a two field match using validwhen:

 







something

(*this* == newPass2)





 

No matter what I put in the  space it always returns true! 

The required statement works well. Do I miss a library?

 

 

Regards,

 

Nils



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



Validwhen confusion?

2005-02-24 Thread Nils Liebelt
Hey everybody,

 

Just want to validate a two field match using validwhen:

 







something

(*this* == newPass2)





 

No matter what I put in the  space it always returns true! 

The required statement works well. Do I miss a library?

 

 

Regards,

 

Nils



Validwhen confusion?

2005-02-24 Thread Nils Liebelt
Hey everybody,

 

Just want to validate a two field match using validwhen:

 







something

(*this* == newPass2)





 

No matter what I put in the  space it always returns true! 

The required statement works well. Do I miss a library?

 

 

Regards,

 

Nils



RE: Construting HTML Email from Struts

2005-02-15 Thread Nils Liebelt
Ok got it! 

>> do you mean creating custom tags?

That's what I meant. I mean you don't need recursive degression in order
parse a file like this. ;-)

GreetZ

Nils

-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 4:26 PM
To: Struts Users Mailing List
Subject: Re: Construting HTML Email from Struts

Nils,
When you say special tags, do you mean creating custom tags?  The
reason I want to have this dynamic environment is so that we can
upload content without the need to deploy another ear.  This way when
the business people change the content of the email, we can easily
upload a new format and send out the email.


On Tue, 15 Feb 2005 15:31:38 +0200, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> Sounds a bit complicated! Why do you need
> to have struts tags? I would go for plain html and add
> special tags for whatever you need.
> Path of least resistence...
> 
> GreetZ
> 
> Nils
> 
> -Original Message-
> From: Todd Nine [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 15, 2005 2:50 PM
> To: Struts Users Mailing List
> Subject: Construting HTML Email from Struts
> 
> Hi all,
>Does anyone know of a way to construct an HTML formatted email
> using a struts jsp and a DynaForm?  I want our visual designers to be
> able to updload an email "template", which is just a Struts jsp with
> the dynabean properties.  We would then upload a mapping (something
> like hql in nature), that would query our database, and fill in the
> dynabean.  The batch job would fire and create the html from the
> struts jsp, inserting into the body.  We would then email that text.
> 
> Any Ideas?
> Todd
> 
> -
> 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: Construting HTML Email from Struts

2005-02-15 Thread Nils Liebelt
Ok got it! 

>> do you mean creating custom tags?

That's what I meant. I mean you don't need recursive degression in order
parse a file like this. ;-)

GreetZ

Nils

-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 4:26 PM
To: Struts Users Mailing List
Subject: Re: Construting HTML Email from Struts

Nils,
When you say special tags, do you mean creating custom tags?  The
reason I want to have this dynamic environment is so that we can
upload content without the need to deploy another ear.  This way when
the business people change the content of the email, we can easily
upload a new format and send out the email.


On Tue, 15 Feb 2005 15:31:38 +0200, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> Sounds a bit complicated! Why do you need
> to have struts tags? I would go for plain html and add
> special tags for whatever you need.
> Path of least resistence...
> 
> GreetZ
> 
> Nils
> 
> -Original Message-
> From: Todd Nine [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 15, 2005 2:50 PM
> To: Struts Users Mailing List
> Subject: Construting HTML Email from Struts
> 
> Hi all,
>Does anyone know of a way to construct an HTML formatted email
> using a struts jsp and a DynaForm?  I want our visual designers to be
> able to updload an email "template", which is just a Struts jsp with
> the dynabean properties.  We would then upload a mapping (something
> like hql in nature), that would query our database, and fill in the
> dynabean.  The batch job would fire and create the html from the
> struts jsp, inserting into the body.  We would then email that text.
> 
> Any Ideas?
> Todd
> 
> -
> 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: Construting HTML Email from Struts

2005-02-15 Thread Nils Liebelt
Sounds a bit complicated! Why do you need 
to have struts tags? I would go for plain html and add 
special tags for whatever you need. 
Path of least resistence...

GreetZ

Nils


-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 2:50 PM
To: Struts Users Mailing List
Subject: Construting HTML Email from Struts

Hi all,
   Does anyone know of a way to construct an HTML formatted email
using a struts jsp and a DynaForm?  I want our visual designers to be
able to updload an email "template", which is just a Struts jsp with
the dynabean properties.  We would then upload a mapping (something
like hql in nature), that would query our database, and fill in the
dynabean.  The batch job would fire and create the html from the
struts jsp, inserting into the body.  We would then email that text.

Any Ideas?
Todd

-
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: Construting HTML Email from Struts

2005-02-15 Thread Nils Liebelt
Sounds a bit complicated! Why do you need 
to have struts tags? I would go for plain html and add 
special tags for whatever you need. 
Path of least resistence...

GreetZ

Nils


-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 2:50 PM
To: Struts Users Mailing List
Subject: Construting HTML Email from Struts

Hi all,
   Does anyone know of a way to construct an HTML formatted email
using a struts jsp and a DynaForm?  I want our visual designers to be
able to updload an email "template", which is just a Struts jsp with
the dynabean properties.  We would then upload a mapping (something
like hql in nature), that would query our database, and fill in the
dynabean.  The batch job would fire and create the html from the
struts jsp, inserting into the body.  We would then email that text.

Any Ideas?
Todd

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



Use of Message Resource/Factory

2005-02-14 Thread Nils Liebelt
Hi all, 
Trying to perform a lookup on the message resource out of my businessobject.
Code looks like this:

 MessageResourcesFactory mFactory = MessageResourcesFactory.createFactory();
 MessageResources mRes = mFactory.createResources(null);

 message.setSubject(mRes.getMessage("registration.subject"));

The result is a NullpointerException:

java.lang.NullPointerException
at
org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessageRe
sources.java:237)
at
org.apache.struts.util.PropertyMessageResources.getMessage(PropertyMessageRe
sources.java:149)
at
org.apache.struts.util.MessageResources.getMessage(MessageResources.java:283
)
at
org.apache.struts.util.MessageResources.getMessage(MessageResources.java:165
)
at
za.co.ibn.datasolutions.beans.User.sendRegistrationInfo(User.java:124)

I don't know what I am doing wrong. The Javadoc does not really help me.
What about that config String for the createResource method?


GreetZ

Nils



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



Use of Message Resource/Factory

2005-02-14 Thread Nils Liebelt
Hi all, 
Trying to perform a lookup on the message resource out of my businessobject.
Code looks like this:

 MessageResourcesFactory mFactory = MessageResourcesFactory.createFactory();
 MessageResources mRes = mFactory.createResources(null);

 message.setSubject(mRes.getMessage("registration.subject"));

The result is a NullpointerException:

java.lang.NullPointerException
at
org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessageRe
sources.java:237)
at
org.apache.struts.util.PropertyMessageResources.getMessage(PropertyMessageRe
sources.java:149)
at
org.apache.struts.util.MessageResources.getMessage(MessageResources.java:283
)
at
org.apache.struts.util.MessageResources.getMessage(MessageResources.java:165
)
at
za.co.ibn.datasolutions.beans.User.sendRegistrationInfo(User.java:124)

I don't know what I am doing wrong. The Javadoc does not really help me.
What about that config String for the createResource method?


GreetZ

Nils



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



RE: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
Well,  
That's basically what I do. But until you smack your head for a forgotten
message resource it takes 15 min. 


Cheers

Nils

mtgglf

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 3:55 PM
To: Struts Users Mailing List
Subject: Re: Tiles is hiding my jsp error messages?!

Can't answer that for you.  I've used Tiles many times on various project, 
but I am certainly no expert on it.  In my experience with it, I turn to the

logs for help when I have these kinds of errors.

Or, if that doesn't help, step 2 (for me) is to remove the entire contents 
of that particular tile, and slowly replace it piece by piece until it stops

rendering, then examine the part you just put back.  I know that sounds 
crazy, but it works for me.and it almost always ends with "(head 
smack)...what was I thinking?".


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message - 
From: "Nils Liebelt" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Tuesday, February 01, 2005 8:30 AM
Subject: RE: Tiles is hiding my jsp error messages?!


> So there is nothing we could do about it? Why is tiles flushing everything
> immediately?
>
> GreetZ
>
> Nils
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 01, 2005 3:27 PM
> To: Struts Users Mailing List
> Subject: Re: Tiles is hiding my jsp error messages?!
>
> I agree this is annoying.  Check the logs, there should be something
> indicating what went wrong.
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> - Original Message - 
> From: "Nils Liebelt" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" 
> Sent: Tuesday, February 01, 2005 5:22 AM
> Subject: Tiles is hiding my jsp error messages?!
>
>
>> Hi everybody,
>>
>>
>>
>> I set flush="false" for all my tiles:insert tags in a jsp page. But still
>> can't see the error message if e.g. a message resource lookup fails. This
>> is
>> very annoying since the form 300 lines long.
>>
>>
>>
>> GreetZ
>>
>>
>>
>> Nils
>>
>>
>>
>>
>>
>>
>
>
>
> -
> 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: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
Well,  
That's basically what I do. But until you smack your head for a forgotten
message resource it takes 15 min. 


Cheers

Nils

mtgglf

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 3:55 PM
To: Struts Users Mailing List
Subject: Re: Tiles is hiding my jsp error messages?!

Can't answer that for you.  I've used Tiles many times on various project, 
but I am certainly no expert on it.  In my experience with it, I turn to the

logs for help when I have these kinds of errors.

Or, if that doesn't help, step 2 (for me) is to remove the entire contents 
of that particular tile, and slowly replace it piece by piece until it stops

rendering, then examine the part you just put back.  I know that sounds 
crazy, but it works for me.and it almost always ends with "(head 
smack)...what was I thinking?".


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message - 
From: "Nils Liebelt" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Tuesday, February 01, 2005 8:30 AM
Subject: RE: Tiles is hiding my jsp error messages?!


> So there is nothing we could do about it? Why is tiles flushing everything
> immediately?
>
> GreetZ
>
> Nils
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 01, 2005 3:27 PM
> To: Struts Users Mailing List
> Subject: Re: Tiles is hiding my jsp error messages?!
>
> I agree this is annoying.  Check the logs, there should be something
> indicating what went wrong.
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> - Original Message - 
> From: "Nils Liebelt" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" 
> Sent: Tuesday, February 01, 2005 5:22 AM
> Subject: Tiles is hiding my jsp error messages?!
>
>
>> Hi everybody,
>>
>>
>>
>> I set flush="false" for all my tiles:insert tags in a jsp page. But still
>> can't see the error message if e.g. a message resource lookup fails. This
>> is
>> very annoying since the form 300 lines long.
>>
>>
>>
>> GreetZ
>>
>>
>>
>> Nils
>>
>>
>>
>>
>>
>>
>
>
>
> -
> 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: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
So there is nothing we could do about it? Why is tiles flushing everything
immediately?

GreetZ

Nils

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 3:27 PM
To: Struts Users Mailing List
Subject: Re: Tiles is hiding my jsp error messages?!

I agree this is annoying.  Check the logs, there should be something 
indicating what went wrong.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message - 
From: "Nils Liebelt" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Tuesday, February 01, 2005 5:22 AM
Subject: Tiles is hiding my jsp error messages?!


> Hi everybody,
>
>
>
> I set flush="false" for all my tiles:insert tags in a jsp page. But still
> can't see the error message if e.g. a message resource lookup fails. This 
> is
> very annoying since the form 300 lines long.
>
>
>
> GreetZ
>
>
>
> Nils
>
>
>
>
>
> 



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


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



RE: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
So there is nothing we could do about it? Why is tiles flushing everything
immediately?

GreetZ

Nils

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 3:27 PM
To: Struts Users Mailing List
Subject: Re: Tiles is hiding my jsp error messages?!

I agree this is annoying.  Check the logs, there should be something 
indicating what went wrong.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message - 
From: "Nils Liebelt" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Sent: Tuesday, February 01, 2005 5:22 AM
Subject: Tiles is hiding my jsp error messages?!


> Hi everybody,
>
>
>
> I set flush="false" for all my tiles:insert tags in a jsp page. But still
> can't see the error message if e.g. a message resource lookup fails. This 
> is
> very annoying since the form 300 lines long.
>
>
>
> GreetZ
>
>
>
> Nils
>
>
>
>
>
> 



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



Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
Hi everybody,

 

I set flush="false" for all my tiles:insert tags in a jsp page. But still
can't see the error message if e.g. a message resource lookup fails. This is
very annoying since the form 300 lines long. 

 

GreetZ 

 

Nils

 

 



Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
Hi everybody,

 

I set flush="false" for all my tiles:insert tags in a jsp page. But still
can't see the error message if e.g. a message resource lookup fails. This is
very annoying since the form 300 lines long. 

 

GreetZ 

 

Nils

 

 



LookupDispatch with ??

2005-01-29 Thread Nils Liebelt
Hi everybody,

I am using a LookupDispatch action to add and delete stuff to a form. It
works fine but it seems like quite a hustle to change my add and delete
buttons into linked images. Is there a way of html:image tag in this
particular situation?

Any suggestions?



Regards,

Nils


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



LookupDispatch with ??

2005-01-29 Thread Nils Liebelt
Hi everybody,

I am using a LookupDispatch action to add and delete stuff to a form. It
works fine but it seems like quite a hustle to change my add and delete
buttons into linked images. Is there a way of html:image tag in this
particular situation?

Any suggestions?



Regards,

Nils


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



Can you stretch a form over several tabs with tile tabs layout?

2005-01-27 Thread Nils Liebelt
The only problem I see is that the form needs to be submitted when clicking
on another tab? Otherwise you loose the just entered data. 

 

 

Regards,

 

Nils

 

 

P.S. Is there a dedicated tiles mailing list?



Can you stretch a form over several tabs with tile tabs layout?

2005-01-27 Thread Nils Liebelt
The only problem I see is that the form needs to be submitted when clicking
on another tab? Otherwise you loose the just entered data. 

 

 

Regards,

 

Nils

 

 

P.S. Is there a dedicated tiles mailing list?



RE: Form in wrong scope

2005-01-25 Thread Nils Liebelt
Container specific error. Sorry.


Nils

-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 25, 2005 4:38 PM
To: user@struts.apache.org
Subject: Form in wrong scope

Hi everybody,

 
For some reason struts decides to put my form into the session scope instead
of the specified request scope. When does this happen? I am using a
DispatchAction to prepare the view and a LookupDispatch to save forms. 


Regards,

Nils


-
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: Form in wrong scope

2005-01-25 Thread Nils Liebelt
Container specific error. Sorry.


Nils

-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 25, 2005 4:38 PM
To: user@struts.apache.org
Subject: Form in wrong scope

Hi everybody,

 
For some reason struts decides to put my form into the session scope instead
of the specified request scope. When does this happen? I am using a
DispatchAction to prepare the view and a LookupDispatch to save forms. 


Regards,

Nils


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



Form in wrong scope

2005-01-25 Thread Nils Liebelt
Hi everybody,

 
For some reason struts decides to put my form into the session scope instead
of the specified request scope. When does this happen? I am using a
DispatchAction to prepare the view and a LookupDispatch to save forms. 


Regards,

Nils


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



Form in wrong scope

2005-01-25 Thread Nils Liebelt
Hi everybody,

 
For some reason struts decides to put my form into the session scope instead
of the specified request scope. When does this happen? I am using a
DispatchAction to prepare the view and a LookupDispatch to save forms. 


Regards,

Nils


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