RE: Binding a Java 5 Enumeration to a Select Tag

2007-08-09 Thread Thorsten Schäfer
S2 S1 or S2? I'd like to bind an enumeration directly to a select tag, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Binding a Java 5 Enumeration to a Select Tag

2007-08-08 Thread Thorsten Schäfer
Hi, I'd like to bind an enumeration directly to a select tag, so that all possible values appear in the ui and I don't need to change the JSP if the enumeration changes. Does anybody have a code snippet how to do this? I could not find anything about it in the documentation. Cheers, Thorsten

RE: Handling exceptions in a custom result

2007-08-07 Thread Thorsten Schäfer
I need to do something like: public void execute(ActionInvocation invocation) throws Exception { try { // Some operations } catch (Exception e) { //Send user to a error page } } Any idea? You could write an interceptor that

ModelDriven vs. getter for business entity in Action

2007-07-31 Thread Thorsten Schäfer
I'm currently taking a look at Struts 2 and I particularly like getting rid of ActionForms. As I understand, WebWorks/Struts2 offers two ways to map forms to business domain objects: 1. I can provide a getter method (getDomainObject()) in the action and refer to its properties in a JSP by using

ModelDriven vs. getter for business entity in Action

2007-07-31 Thread Thorsten Schäfer
I'm currently taking a look at Struts 2 and I particularly like getting rid of ActionForms. As I understand, WebWorks/Struts2 offers two ways to map forms to business domain objects: 1. I can provide a getter method (getDomainObject()) in the action and refer to its properties in a JSP by using

RE: Issue with registering/lookup of converters in ConvertUtils

2007-01-31 Thread Thorsten Schäfer
Hi, Is there a problem with the registering/lookup of multiple converters in ConvertUtils on a single server instance? I think this is not possible. The converters are stored in a static hashmap, so all classes sharing a single classloader have to use the same converters. I consider this a bad

RE: [S2] User authentication best practice (2nd time...)

2007-01-31 Thread Thorsten Schäfer
Hi, Why do you care about the information in the request? Typically, you have a login page and the corresponding action stores the user object into the session. In all subsequent requests, you can check the user object in the session to determine which user did log in. This works for S1, but I'd

RE: Issue with registering/lookup of converters in ConvertUtils

2007-01-31 Thread Thorsten Schäfer
- From: Thorsten Schäfer [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 10:00 PM To: 'Struts Users Mailing List' Subject: RE: Issue with registering/lookup of converters in ConvertUtils Hi, Is there a problem with the registering/lookup of multiple converters

RE: [S2] User authentication best practice (2nd time...)

2007-01-31 Thread Thorsten Schäfer
object of the application that does not belong to the user (imagine photo gallery)... So did I miss something? I'm sure yes... Sebastien On 1/31/07, Thorsten Schäfer [EMAIL PROTECTED] wrote: Hi, Why do you care about the information in the request? Typically, you have a login