Front controller

2005-06-24 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

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

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

RE: Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
, 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

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: definition name=.mainLayout path=/common/mainLayout.jsp put name=header value=/common/header.jsp / put name=content value=sample type=string/ put name=footer value=/common/footer.jsp / /definition Now

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: definition name=.mainLayout path=/common/mainLayout.jsp put name=header value=/common/header.jsp / put name=content value=sample type=string/ put name=footer value=/common/footer.jsp / /definition Now

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

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

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

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

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

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

How to convert line breaks to br/ using bean:write

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

How to convert line breaks to br/ using bean:write

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

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

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

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

RE: Populating growing List

2005-05-23 Thread Nils Liebelt
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

RE: Populating growing List

2005-05-23 Thread Nils Liebelt
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

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

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

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

RE: Global scope

2005-05-10 Thread Nils Liebelt
(); servletContext.setAttribute(applicationBean, applicationBean); } public void contextDestroyed(ServletContextEvent arg0) { servletContext = arg0.getServletContext(); servletContext.removeAttribute(applicationBean); } } HTH, Glenn Nils Liebelt [EMAIL

RE: Global scope

2005-05-10 Thread Nils Liebelt
(); servletContext.removeAttribute(applicationBean); } } HTH, Glenn Nils Liebelt [EMAIL PROTECTED] 10/05/2005 10:41 AM Please respond to Struts Users Mailing List user@struts.apache.org To 'Struts Users Mailing List' user@struts.apache.org cc [EMAIL PROTECTED] Subject

RE: Global scope

2005-05-10 Thread Nils Liebelt
(); servletContext.removeAttribute(applicationBean); } } HTH, Glenn Nils Liebelt [EMAIL PROTECTED] 10/05/2005 10:41 AM Please respond to Struts Users Mailing List user@struts.apache.org To 'Struts Users Mailing List' user@struts.apache.org cc [EMAIL PROTECTED] Subject

[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

[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

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

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

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

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

RE: Struts DB Access :: Best Practices

2005-03-10 Thread Nils Liebelt
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

RE: Struts DB Access :: Best Practices

2005-03-10 Thread Nils Liebelt
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

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

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

Validwhen confusion?

2005-02-24 Thread Nils Liebelt
Hey everybody, Just want to validate a two field match using validwhen: field property=newPass1 depends=required,validwhen arg0 key=prompt.newPass/ var var-namesomething/var-name var-value(*this* == newPass2)/var-value /var

Validwhen confusion?

2005-02-24 Thread Nils Liebelt
Hey everybody, Just want to validate a two field match using validwhen: field property=newPass1 depends=required,validwhen arg0 key=prompt.newPass/ var var-namesomething/var-name var-value(*this* == newPass2)/var-value /var

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

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

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:

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:

RE: Construting HTML Email from Struts

2005-02-15 Thread Nils Liebelt
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

RE: Construting HTML Email from Struts

2005-02-15 Thread Nils Liebelt
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

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

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

RE: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
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

RE: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Nils Liebelt [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Tuesday, February 01, 2005 8:30 AM Subject: RE: Tiles is hiding my jsp error messages

RE: Tiles is hiding my jsp error messages?!

2005-02-01 Thread Nils Liebelt
Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Nils Liebelt [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Tuesday, February 01, 2005 8:30 AM Subject: RE: Tiles is hiding my jsp error messages

LookupDispatch with html:image??

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

LookupDispatch with html:image??

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

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?

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

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

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

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