Re: how rename the upload file in struts1 ?

2007-10-23 Thread Laurie Harper
MavenMan wrote: I want to rename upload file in my action .I code : FormFile file=form.getUserphoto(); file.setFileName(String.valueOf(date.getTime())); but error is :javax.servlet.ServletException: The setFileName() method is not supported. what can I do ? thanks in advance ! The file

Re: how rename the upload file in struts1 ?

2007-10-23 Thread MavenMan
at first thank you . Yow kown that the FormFile has a method named setFileName() , but how and when to use it ? and any else approach to rename the uploadfile in the code ? Laurie Harper wrote: MavenMan wrote: I want to rename upload file in my action .I code : FormFile

Multiselect tags

2007-10-23 Thread Stephen de Vries
Are there any examples of how to write Actions for the multiselect tags such as s:select and s:checkboxlist? The Tag reference documentation only explains how to use the tags themselves, but not what the action or model should look like and whether any conversion is required between the

Re: OT: displaytag remember sort config ..

2007-10-23 Thread Giovanni Azua
Just for the records ... I managed to have it working so displaytag re-sorts the last user selection whenever the AJAX DIV refreshes. It works using the includeParams option set to get: %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=display uri=http://displaytag.sf.net; % %@

AJax remote DIV flickering ...

2007-10-23 Thread Giovanni Azua
hi all, I have within a S2 self updating Ajax remote DIV a displaytag table that flickers terribly. Is there any cheap way to get rid of the flickering? The showcase example also flicker slightly but when there is more content then it becomes really bothering. TIA, regards, Giovanni

Mailreader tutorial offline?

2007-10-23 Thread TuomoS
Whats wrong with the mailreader tutorial? It has been offline for quite a while now.. http://www.planetstruts.org/struts2-mailreader/Tour.do -- View this message in context: http://www.nabble.com/Mailreader-tutorial-offline--tf4677083.html#a13363078 Sent from the Struts - User mailing list

Re: [S1] Ping another page from within a struts application

2007-10-23 Thread Piero Sartini
Am Montag, 22. Oktober 2007 19:27:59 schrieb enthucoder: I have requirement where, i need to send session id of app2 to a listener page in app1 (i.e non jee based one and i am allowed to send this information as a 'get'), everytime the a new page loads or user goes to new page in app2, without

[S2] Problem with Double validation

2007-10-23 Thread kaouki
Hello, I am trying to submit my form but I have a validator problem on a texfield: s:textfield id=prixHT label=Prix HT name=dvd.prixHT cssClass=field/ prixHT is a Double that I set to 19.99, and I validate data with annotations : @Validations( requiredStrings = {

RE: Struts TLD Parse Error

2007-10-23 Thread Peters, John
Yes. Fixed the problem. I had the jar in the EAR and not in the WEB-INF/lib directory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Monday, October 22, 2007 2:49 AM To: Struts Users Mailing List Subject: Re: Struts TLD Parse Error

Re: Why does update action fire on load

2007-10-23 Thread Piero Sartini
Am Montag, 22. Oktober 2007 13:23:38 schrieb zul;jami: Still I am getting the error, my execute also fires update on load. There is no img tag with empty src attribute execute() is triggered when the action is called, not only when you submit your data. Piero

Exception Handler

2007-10-23 Thread Arun
Hi, I have a problem running the exception handler in struts 1.3 . I am using struts modules config/useraccount, config/blogdigest ..etc defined in web.xml duly. I have set an exception Handler for java.lang.Exception !-- FRAMEWORK CODE Needs to be there in all module. -- exception

Re: Value Stack and Interceptors

2007-10-23 Thread JBL
Interceptors don't go on the value stack. They're similar to filters -- the intercept() method is executed before the action is run, and they can (say) initialize your action, but they're not used as value objects. You might be thinking of the Model Driven interceptor. The Object returned by

[S2] Problem with simple theme javascript validation

2007-10-23 Thread Gabriel Belingueres
Hi, I'm trying to perform some basic javascript validation using a form with the simple theme. I just added the onsubmit parameter in the form tag: s:form onsubmit=return validate(); but the form is ALWAYS posted, so there might be an error somewhere. Looking at the html source code,

[s2] number format s:textfield tag

2007-10-23 Thread Pedro Herrera
Hi, I have a currency input field (BigDecimal). In my location the decimal point is comma, eg, 10,00(==10.00) must be permitted. Struts is throwing a message error : Invalid field value for field valor. Thanks Herrera -- View this message in context:

Validation of Ajax Tags

2007-10-23 Thread chengas123
Does anyone have any ideas on how the dojo ajax tags can be validated (autocompleter, datetimepicker, etc.)? I was told this was fixed in 2.1, which I am using, but I cannot get it to work. I'd like to make my autocompleter required and have it validate the same as my other fields. Can I

Re: Validation of Ajax Tags

2007-10-23 Thread Musachy Barroso
That should work and you will get a validation error, the only problem is that it won't show up on the xhtml theme, so you will have to use s:fielderrors / musachy On 10/23/07, chengas123 [EMAIL PROTECTED] wrote: Does anyone have any ideas on how the dojo ajax tags can be validated

Re: AJax remote DIV flickering ...

2007-10-23 Thread Jeromy Evans
Giovanni Azua wrote: hi all, I have within a S2 self updating Ajax remote DIV a displaytag table that flickers terribly. Is there any cheap way to get rid of the flickering? I think this is an interesting question. Its inevitable that for a moment the content of the div will be replaced in

conditional statement in struts2

2007-10-23 Thread carmi_cd
hi i'm new in struts 2..my question is how can i get a value from a member variable of my action class and evaluate it in my if-else-if statemet? i try to code it but it doesn't evaluate properly..here is my exisiting code. s:if test='%{getPdfValue()} == 0' s:div

Re: conditional statement in struts2

2007-10-23 Thread jignesh(india)
It's simple dude use s:if and s:else like mentioned below s:if test=pdfValue!=0 if part /s:if s:else else part /s:else hope it will help u.! Regards, Jignesh carmi_cd wrote: hi i'm new in struts 2..my question is how can i get a value from a member variable of my action