RE: upload validation failures are blanking my form values
Caoilte, Can you afford session scope in this scenario. There must be no problem in this scope. If not, then try to redirect on the page through the same action class which u use it for preparing it. This will be sort of chaining. Regards, MMS -- From: Caoilte O'Connor [SMTP:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 7:00 PM To: [EMAIL PROTECTED] Subject: Re: upload validation failures are blanking my form values it's not quite the same problem as that guy is having. I don't mind file fields being blanked, because chances are the validation error is from that particular file being too big. my problem is that every single field in the form is being blanked (ie text ones which describe the file too, not just the file one), and that this only happens when you upload a file (ie it won't happen on exactly the same page if you don't try to upload the file and there is a validation error). i think this must be a bug in struts, caoilte On Thursday 06 November 2003 14:33, Susan Bradeen wrote: Maybe this archive thread can help you? http://marc.theaimsgroup.com/?t=10475202833r=1w=2 Susan On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote: Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a validation error and you do not attempt to upload a file. but it breaks as soon as i try to upload a file and there is a validation error for any reason. The errors get reported correctly and I get returned to the input page BUT all the form fields are blanked. This does NOT happen if I do not attempt to upload a file. I have confirmed this also happens in the struts-upload example webapp. Has anyone else been infuriated by this bug and found any workarounds? I'm not using a nightly build. cheers, caoilte --- -- 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: defaullt selection of radio button
The bean parameter which are using to store the value for this radio button after form submission; just initialize that to the value which you want to be checked by default when page renders. e.g. in form-bean, you have: int param = 1; // initializing with the no. that you want to be checked in jsp; it will be: html:radio property=param 1 /html:radio Regards, MMS -- From: Sunil Sharma (C) [SMTP:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 6:26 PM To: Struts Users Mailing List Subject: defaullt selection of radio button Group, I had some radio buttons. There is requirement to auto select one of the button by default. Can any body give me some pointers how can I do that Thanks in advance Sunil
RE: Struts security
This can simple be done by authorizing user in each action class. We have request session attributes which may be helpful for checking the current state of user. Before doing any processing, first of all, process user authentication and if finds any restriction then forward the action to appropriate error page. Regards, MMS -- From: Stefan Trcko [SMTP:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:29 PM To: Struts Users Mailing List Subject: Struts security Hello I want to implement security in my struts web portal, so that I can restrict users which actions they can perform. Has anybody already worked on this kind of security in Struts? Thanks in advice Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts security
Exactly!!! U got the point. That's what I use to handle security issues. Keep it up :-) -- From: Stefan Trcko [SMTP:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:57 PM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: Struts security File: ATT6.txt
RE: checkbox checking???
The array which are using to store values of checkboxes after form submission; just initialize that array with the value which you wana check. e.g. in form bean: String[] array = {1}; // this is an array which will be used to store values of the checkboxes on jsp: html:multibox property=array 1 /html:multibox this checkbox will be checked when you render the page. Regards, MMS -- From: mohamed ebrahim faisal [SMTP:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 9:38 PM To: [EMAIL PROTECTED] Subject: checkbox checking??? Hi I fetch data from the database abd store it in the Form Bean. After that while displaying the value in the JSP, i am associating one of the property to an array of checkboxes with the same property. I want the checkbox to be checked based on my property value, it might be differnt for checkboxes in the array. If it is a input type=checkbox. i can easily do it using attribute checked, but how to do it in html:checkbox . since struts Checkbox does not support checked attribute. Can anyone pls tell me. regards faisal _ The heat is on! Catch the latest action. http://server1.msn.co.in/sp03/formula2003/ Speed along with F1! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting focus in struts html form
I am getting trouble in setting focus in Struts html:form. There are two possibilities in my case; in one scenario text field 'A' in form exists while in other scenario it does not. I want to set focus on 'A' if it exists. For that simply, I write focus=A. But it gives javascript error when this field does not exist. The statement below doesnot accept any scriptlet, so that I may choose when to put focus and when not. I am using Struts 1.0 and find no way of dynamic setting focus in form. html:form action=submitProfile.do method=post focus=A I will appreciate your kind response in this regard. Thanks in advance. MMS
Setting focus in struts html form
I am getting trouble in setting focus in Struts html:form. There are two possibilities in my case; in one scenario text field 'A' in form exists while in other scenario it does not. I want to set focus on 'A' if it exists. For that simply, I write focus=A. But it gives javascript error when this field does not exist. The statement below doesnot accept any scriptlet, so that I may choose when to put focus and when not. I am using Struts 1.0 and find no way of dynamic setting focus in form. html:form action=submitProfile.do method=post focus=A I will appreciate your kind response in this regard. Thanks in advance. MMS
message key on jsp?
Hello! For example; I have a key defined in ApplicationResources.properties file as msg.key. This can be accessed on jsp as bean:message key=msg.key /. But I want to store this key in my local variable on a jsp. How can this be possible? Thanks in advance. Regards, MMS
RE: message key on jsp?
I don't how is it working at your side, I am using struts 1.0 and gives me parsing exception that Tag 'define' cannot have a body. Any confirmations?? -- From: Thomas Cornet [SMTP:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:26 PM To: Struts Users Mailing List Subject: Re: message key on jsp? Here is how you can do it : bean:define id=variableName bean:message key=msg.key/ /bean:define HTH, Thomas At 10:20 30/09/2003, you wrote: Hello! For example; I have a key defined in ApplicationResources.properties file as msg.key. This can be accessed on jsp as bean:message key=msg.key /. But I want to store this key in my local variable on a jsp. How can this be possible? Thanks in advance. Regards, MMS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logic:present tag problem
Under struts 1.0, try as follows: logic:present name=a scope=session do certain operation /logic:present logic:present name=b scope=session do certain operation /logic:present However, the code can be optimized by using logic:OR tag, which is not the part of this version. Regards, Muzammil -- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: logic:present tag problem Hi, I have a query if(a || b ) { do certain operation } a or b will be attributes present in the session object, how can i use logic:present tag to perform this operation. Regards, Tarun DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception handling in struts
Hello! Is there any exception handling mechanism through struts? If we can configure our global exceptions in struts-config.xml? Any comments are welcome. Thanks in advance. Muzammil