Re: NullPointerException with Validation Messages

2008-09-08 Thread Mark
Sorry, what does AFAICT mean? :-) I'm running Tomcat 6.0.16. No, it doesn't work with default stack. Any other ideas? Mark On 09/09/2008, at 12:13 PM, Dave Newton wrote: --- On Mon, 9/8/08, Mark wrote: I'm using Struts 2 validation and I'm getting a NullPointerException when the page is b

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-08 Thread Bobby Mitch
hi, where do you suggest that i modify the order of the elements ? I checked the library struts2-core-2.1.2.jar, there is a struts-2.0.tld descriptor tagfile inside of it but there is not much inside of it. Or maybe i should use a different version of Struts 2 ? Some other library ? Thanks for he

RE: prepare action for input after validation errors

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, Martin Gainty wrote: > you can return the result you desire from the Action which > implements parameterNameAware interceptor > > > > good_result.ftl > > > http://struts.apache.org/2.x/docs/parameters-interceptor.html I guess I'm not clear on how that deals with his iss

Re: NullPointerException with Validation Messages

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, Mark wrote: > I'm using Struts 2 validation and I'm getting a NullPointerException > when the page is being displayed (before it is even being submitted > or validated). I did some searches and found this Jira: > https:// issues.apache.org/struts/browse/WW-2150. AFAICT th

RE: prepare action for input after validation errors

2008-09-08 Thread Martin Gainty
you can return the result you desire from the Action which implements parameterNameAware interceptor good_result.ftl http://struts.apache.org/2.x/docs/parameters-interceptor.html Bon Chance, Martin __ Disclaimer and confidentiality note

NullPointerException with Validation Messages

2008-09-08 Thread Mark
Hi all: I'm using Struts 2 validation and I'm getting a NullPointerException when the page is being displayed (before it is even being submitted or validated). I did some searches and found this Jira: https:// issues.apache.org/struts/browse/WW-2150. It states that it has been fixed in v

Re: datetimepicker with radio

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, xianwinwin wrote: > how can I integrate a radio box on the left side so the > user can choose one. I'd think the easiest solution would be to use plain HTML radio buttons, depending on your actual requirements. Another option would be to create an S2 component, but that might

datetimepicker with radio

2008-09-08 Thread xianwinwin
Hi all, Say I have 4 dates and I wish the end-user to choose one of them, how can I do that with radio Box? Say this is the datetimepicker: how can I integrate a radio box on the left side so the user can choose one. the user must have the ability to change the date (so I can't have i

Re: prepare action for input after validation errors

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, [EMAIL PROTECTED] wrote: > I don't have any input method. I have a displayForm > method, and a submitForm method. > > The displayForm method returns an input *result*, which is > a default result pointing to a JSP. This JSP has to display > some data coming from the database.

Re: prepare action for input after validation errors

2008-09-08 Thread jnizet
I don't have any input method. I have a displayForm method, and a submitForm method. The displayForm method returns an input *result*, which is a default result pointing to a JSP. This JSP has to display some data coming from the database. I'd like this same JSP to be displayed when the input

How to handle complicated map in the property

2008-09-08 Thread Guojun Zhu
Hi, I have a fairly complicated data structure in form bean and try to use that in my pages. (struts 1.2. in tomcat 5.5.26) Here is the structure public class Risk { int size, probability; //constructor // setter and getter for both fields } ===

Re: Submit button with no form

2008-09-08 Thread Lukasz Lenart
As Don said, implement small form, only with submit button and you wouldn't have to use JavaScript. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: prepare action for input after validation errors

2008-09-08 Thread Lukasz Lenart
How did you configure your input method? What is the name of this method? I still don't understand why you can use Prepare interceptor, just implement prepareDoInput() method and that method will be called just before input() call. If input result redirect to some other action, configure and imple

Date Conversion problem

2008-09-08 Thread Eric Hamacher
Hello: I am writing a custom converter for my dates in my app. The built-in converter populates text fields with a short date but I want MM/dd/ since this is the format users enter in dates. The date fields are also optional in my app. That presents a problem. Here is my customer conversion c

Re: Submit button with no form

2008-09-08 Thread paul wisehart
Dan wrote: Is there any other option instead of using Javascript? I have googled but didnt find any answers. flash ? maybe some applet trickery? what's wrong with a form? --paul - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [struts] Stream Windows Executable From Linux Machine

2008-09-08 Thread Gabriel Belingueres
Thanks Dale! I actually just sniffed my connection and Tomcat is adding the Content-Length by itself when attachment. On the other hand, is not adding the Content-Length when content disposition is inline. 2008/9/8 Dale Newfield <[EMAIL PROTECTED]>: > Gabriel Belingueres wrote: >> >> I wonder if a

RE: Include menu action with sitemesh

2008-09-08 Thread Matthew Seaborn
Whenever I try to us s:include or jsp:include to access a Struts 2 action from within the SiteMesh decorator I get The requested resource (Relative URL) is not available. Surely this should be possible. -Original Message- From: David Loup Sent: 02 September 2008 12:55 To: Struts

Re: prepare action for input after validation errors

2008-09-08 Thread jnizet
I know that. But this does not solve the problem I described. prepareXxx will be invoked if I the action method is xxx. I validation fails, it'll work: the input page will have the prepared data ready in the action instance. If validation succeeds, however, the prepareXxx method will have prepar

Re: Submit button with no form

2008-09-08 Thread Dan
Lukasz Lenart escribió: Hi, You can use JavaScript and onclick event: Regards Hi, Is there any other option instead of using Javascript? I have googled but didnt find any answers. Thanks in advance, - To unsubscrib

Re: [struts] Stream Windows Executable From Linux Machine

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, Dale Newfield wrote: > If you do not specify the content length in the stream > result, your stream will be requested twice (each request > is required to provide an independent stream -- a frequent > source of bugs for people that don't realize it), one of > which will be re

Re: [struts] Stream Windows Executable From Linux Machine

2008-09-08 Thread Dale Newfield
Gabriel Belingueres wrote: I wonder if all that MIME descriptive data in the HTTP response is part of the "message body", and if that's the case, I suppose it is better always NOT specify any content length at all in the stream result. If you do not specify the content length in the stream resu

How to overwrite default setting in Struts2

2008-09-08 Thread stanlick
Has struts.configuration.files been removed from 2.1.1? Laurie Harper wrote: > > Shuai Zheng wrote: >> Dear All, >> >> I try to use my own setting to overwrite the default settings. >> Following line is added into my struts.properties: >> struts.configuration.files=struts-heal-default.xml,s

Passing user data via bean:message

2008-09-08 Thread Adam Lipscombe
Folks Our app uses "" extensively to access database backed application resources. This works well, but as you would expect the message that is retrieved for any given key is constant. We want to extend this so that users in different business units are shown different messages. e.g. Use

Re: Multiple methods validation with custom result strings

2008-09-08 Thread Gabriel Belingueres
You can try by letting your action implements the ValidationWorkflowAware interface. 2008/9/7 Keios Titan <[EMAIL PROTECTED]>: > I have a quick question. I am using S2. I have multiple methods exposed in > my action and more than one method has forms attached to it. If I use the > action-method-v

Re: Stream Windows Executable From Linux Machine

2008-09-08 Thread Gabriel Belingueres
I was actually intrigued by the fact that the content length in the stream result is actually setting the content-length HTTP header [1], which from the HTTP doc it represents the "message body length", but I'm not sure that the message body length is EXACTLY the same as the attached file size. I

Re: new to Struts

2008-09-08 Thread Jim Kiley
Start with Struts 2. It's a great improvement over the old beast. On Mon, Sep 8, 2008 at 8:25 AM, gbattine <[EMAIL PROTECTED]> wrote: > > Hello guys, > I need an information. > I'm going to learn struts.. > I need some info, please help me: > > 1) what do you hint to me, to start from Struts 1.1

RE: new to Struts

2008-09-08 Thread Deepak Kumar
Hi, Please check http://www.roseindia.net/struts/struts2 Here you will step by step tutorials on struts 2. Thanks Deepak Kumar -Original Message- From: gbattine [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 5:55 PM To: user@struts.apache.org Subject: new to Struts Hello

new to Struts

2008-09-08 Thread gbattine
Hello guys, I need an information. I'm going to learn struts.. I need some info, please help me: 1) what do you hint to me, to start from Struts 1.1 and later move to Struts 2.0, or starting from Struts 2.0? 2) I usually use Netbeans. Is there an editor WYSIWHG for Netbeans, to use Struts? 3) I k

Re: [OT] Re: Struts1 - how to reload parent window from popup

2008-09-08 Thread not
newton.dave wrote: > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: >> use javascript >> javascript:history.back(); > > I don't believe that would submit the form in the parent window, and I > don't > think the window that popped up would have a history anyway, no? > > Dave > > > --

Re: prepare action for input after validation errors

2008-09-08 Thread Lukasz Lenart
You can use perpareXXX method per action method as mentioned in docs: Applies only when action implements Preparable 1. if the action class have prepare{MethodName}(), it will be invoked 2. else if the action class have prepareDo(MethodName()}(), it will be invoked 3. no matter if 1] or

Re: prepare action for input after validation errors

2008-09-08 Thread jnizet
Hi. Thanks for your answer. But as I said in my original post, the prepare interceptor would prepare the action regardless of the validation result. If the validation succeeds, I don't want the data for the input page to be prepared, as the flow will go to the submit method which will redirect

Re: geText from Action encodes html entities

2008-09-08 Thread Esteve Camps Chust
ok, thanks to all. I'll try all this solutions. 2008/9/1 Gabriel Belingueres <[EMAIL PROTECTED]> > encode the response using ISO-8859-1 charset. > > 2008/9/1, Esteve Camps Chust <[EMAIL PROTECTED]>: > > Hi all, > > > > I'm having a problem when using getText action method. This method gets a > >

Re: prepare action for input after validation errors

2008-09-08 Thread Lukasz Lenart
Hi, Take a look at Prepare Interceptor [1] and Preparable interface [2] [1] http://struts.apache.org/2.x/docs/prepare-interceptor.html [2] http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html Regards -- Lukasz http://www.lenart.org.pl/ --