RE: MessageResources

2005-09-21 Thread Holshausen, Ron
Sorry, that should be the first time the resource is *accessed* :-) -Original Message- From: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sent: 21 September 2005 19:01 To: Struts Users Mailing List Subject: RE: MessageResources Hi David, Message resources are typically loaded by the class

RE: MessageResources

2005-09-21 Thread Holshausen, Ron
Hi David, Message resources are typically loaded by the class loader's getResource method. So this could change with different containers and JDK versions, but in my experience it is either loaded at start-up or the first time the resource is loaded. -Original Message- From: Harland, Davi

RE: passing JavaBeans through an ActionForm?

2005-09-21 Thread Holshausen, Ron
Hi Koen, I typically try to keep my action forms as simple as possible, so I would go with the former approach. This leaves a clearer separation between your presentation objects and business objects. One place where this is important is in clustered environments, as action forms are typically st

[shale] commandLink and commandButtons have to be clicked twice

2005-09-21 Thread Holshausen, Ron
Hi List, I am experiencing a curious phenomenon when using the Shale Dialog Manager. I have a JSF based portlet that opens a new window when a user clicks a button on it's edit page. I start a new dialog flow in this window. Everything works fine, except all actionCommands and actionLinks have

RE: [Shale] NullpointerException when running struts-shale-usecases

2005-09-19 Thread Holshausen, Ron
the parser first. Hermod -Opprinnelig melding- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 10:46 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running it under tomcat 5.5.9, and jdk 1.5.0_04. I

RE: a little bit OT: Calendar misbehaviour

2005-09-19 Thread Holshausen, Ron
Ok, then I assume the problem is that calendar.getTimeInMillis() returns the timestamp in UTC, and you need it in your local timezone? -Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 16:13 To: 'Struts Users Mailing List' Subject: RE: a littl

RE: a little bit OT: Calendar misbehaviour

2005-09-19 Thread Holshausen, Ron
You can try use the SimpleDateFormat class in java.text to parse the time string. -Original Message- From: Wojciech Ciesielski [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 15:57 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: a little bit OT: Calendar misbehaviour >

RE: Validator woes, modifying the input forward on the fly?

2005-09-19 Thread Holshausen, Ron
Hi David, One way to get around the problem would be to store the form bean in the session, or at least the id, and it will exist between requests. You'll just need to make sure your viewUser.do action updates the session variable correctly, and any other actions that use it. -Original Messag

RE: [Shale] NullpointerException when running struts-shale-usecases

2005-09-16 Thread Holshausen, Ron
g- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 09:47 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running the version from the 6th without any modifications, and it runs fine. -Original Message---

RE: [Shale] NullpointerException when running struts-shale-usecases

2005-09-16 Thread Holshausen, Ron
Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 08:59 Til: Struts Users Mailing List Emne: Re: [Shale]managed beans in request vs. session scope and how to clean up On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote: > > Hi Geeta, > > Just to let you know

RE: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread Holshausen, Ron
Hi Geeta, Just to let you know that one of the changes that was made to the JSF spec was to integrate the JSTL and JSF, so you could use c:forEach with JSF UI components. So using JSTL is still ok, I do. And I think it will be around for a while. -Original Message- From: [EMAIL PROTECTED]

RE: Struts and DisplayTag CSS?

2005-09-15 Thread Holshausen, Ron
Hi, You're using an relative path to your css file (css/screen.css), so the user page with path /user/... does it find it as it expects it in /user/css/screen.css. One way to solve it is to use a tag to render the full path to the css file, e.g, " type="text/css" media="screen, print" /> With

RE: Error message not very helpful

2005-09-15 Thread Holshausen, Ron
Hi Murray, I would guess that you are using on an object that is null. Check your objects that you are accessing in the page. If the data is coming from a database, it could be a null column. -Original Message- From: Murray Collingwood [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 1

RE: How to create on-the-fly javascript code?

2005-09-14 Thread Holshausen, Ron
Hi, I have used the JSTL c:out tag to do this, e.g., ; -Original Message- From: Thai Dang Vu [mailto:[EMAIL PROTECTED] Sent: 14 September 2005 15:59 To: user@struts.apache.org Subject: How to create on-the-fly javascript code? Hello, I want to write something like this in a jsp file

RE: Using Tiles tag inside a tile tag

2005-09-14 Thread Holshausen, Ron
Hi Deepesh, Try this, it worked for me: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 September 2005 14:15 To: Struts Users Mailing List Subject: Using Tiles tag inside a tile tag Hi All, The following code doesnt work : " /> because the '

RE: Adding parameters to redirected forwards

2005-09-13 Thread Holshausen, Ron
If you want to just forward the request along, just add any parameters to the request object via the setAttribute method. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 14 September 2005 08:46 To: Struts Users Mailing List Subject: Re: Adding parameters to redi

RE: URL encoding problem.

2005-09-13 Thread Holshausen, Ron
Hi Senthil, You will have to encode the password. Have a look at the Jakarta commons codec library http://jakarta.apache.org/commons/codec/, they have a org.apache.commons.codec.net.URLCodec that should help you. Yours truly, Ron -Original Message- From: senthil Kumar [mailto:[EMAIL PRO

Starting a new Shale Dialog in a new window

2005-09-08 Thread Holshausen, Ron
Hi, I'm trying to start a new shale dialog flow in a new window. The window is opened when the user clicks on a button, and is invoked with the javascript function window.open('/startdialog.jsf'). The problem is that to initiate a dialog flow, you need to setup an action to return a logical logic