Re: how rename the upload file in struts1 ?

2007-10-22 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 fi

Re: how rename the upload file in struts1 ?

2007-10-22 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 in

how rename the upload file in struts1 ?

2007-10-22 Thread MavenMan
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 ! -- View this message in conte

Re: about Struts 2.0.9 portlet example ...

2007-10-22 Thread Nils-Helge Garli Hegvik
The portlet support in the next 2.0.x and 2.1.x has been improved a lot. You can browse the changelogs and remaining issues in the issue tracker. It does not include Ajax support, but you can add that yourself. I know of several projects that are using it in production already. Nils-H On 10/23/07

Re: about Struts 2.0.9 portlet example ...

2007-10-22 Thread Guillaume Bilodeau
We will soon start a portal project and we're evaluating the technologies available to us. Is Struts2 support for portlets ready for primetime, or should we use something else until it's stabilized? Cheers, GB Nils-Helge Garli wrote: > > Hi! > > If you're thinking of the struts2-portlet appl

Re: How to get initialized at startup

2007-10-22 Thread Piero Sartini
> I have some code I need to initialize when the servlet comes up for the > first time. How do I do that when I'm using struts and I do not have my > own servlet? Do I create a servlet just for this purpose? If you need something that is initialized when your webapp starts, I would suggest to w

How to get initialized at startup

2007-10-22 Thread Brian Hawkins
I'm pretty new to Struts2. I have some code I need to initialize when the servlet comes up for the first time. How do I do that when I'm using struts and I do not have my own servlet? Do I create a servlet just for this purpose? Thanks Brian

Re: Images

2007-10-22 Thread Martin Uhlir
Hi, when the page is loaded for the first time, there is such tag in your html page may be there is problem with the jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9 because no such file "logo.jpg;jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9" exists on your hard disk.. for the 2nd time (when coo

[S1] Ping another page from within a struts application

2007-10-22 Thread enthucoder
Hi, I am not sure if this a struts question exactly, but neverthless I need help :). I am trying to integrate 2 apps, app 1 on platform 1 (non JEE) and app2 on JEE based. 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 allow

OT: displaytag remember sort config ..

2007-10-22 Thread Giovanni Azua
hi all, I just put a displaytag table within a S2 AJAX DIV that refreshes every X seconds. Now the problem is that I would like displaytag to remember the last sorting options so e.g. the auto refresh not only displays the new data but also resorts according to the last known sorting criteria

RE: confirm subscribe to user@struts.apache.org

2007-10-22 Thread Odelya Glick
Add it -Original Message- From: Martin Wilmes [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 3:48 PM To: user@struts.apache.org; [EMAIL PROTECTED] che.org Subject: Re: confirm subscribe to user@struts.apache.org On Monday 22 October 2007 15:39:49 [EMAIL PROTECTED] wrote: > Hi!

Re: confirm subscribe to user@struts.apache.org

2007-10-22 Thread Martin Wilmes
On Monday 22 October 2007 15:39:49 [EMAIL PROTECTED] wrote: > Hi! This is the ezmlm program. I'm managing the > user@struts.apache.org mailing list. > > I'm working for my owner, who can be reached > at [EMAIL PROTECTED] > > To confirm that you would like > >[EMAIL PROTECTED] > > added to the u

Re: JSON RPC

2007-10-22 Thread Martin Gainty
See you wednesday nite at fenway http://boston.redsox.mlb.com/index.jsp?c_id=bos Martin-- - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, October 19, 2007 7:45 AM Subject: Re: JSON RPC > I've been doing some work with Struts and

Why does update action fire on load

2007-10-22 Thread zul;jami
Still I am getting the error, my execute also fires update on load. There is no img tag with empty src attribute -- View this message in context: http://www.nabble.com/Why-does-update-action-fire-on-load-tf4670323.html#a13341641 Sent from the Struts - User mailing list archive at Nabble.com. -

FW: Why does update action fire on load

2007-10-22 Thread abdul jabbar zul jami
I have not yet solved the problem. There is no img tag with an empty src .Pls help. regards Zul Jami From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Why does update action fire on loadDate: Tue, 16 Oct 2007 04:42:27 + Thanks for the reply.I added the update method only now.But when I l

Re: [S2]ActionSupport set parameters question.

2007-10-22 Thread Eugen Stoianovici
Thank you, it's just what i needed David Harland wrote: Add something like this to your action public void validate() { User user = getUser(); if (StringUtils.isBlank(user.getName())) { addActionError(getText("user.name.empty")); } if (StringUtils.isBlank(user.getAddress())) { ad

Re: [S2]ActionSupport set parameters question.

2007-10-22 Thread David Harland
Add something like this to your action public void validate() { User user = getUser(); if (StringUtils.isBlank(user.getName())) { addActionError(getText("user.name.empty")); } if (StringUtils.isBlank(user.getAddress())) { addActionError(getText("user.address.empty")); } } Have a

[S2]ActionSupport set parameters question.

2007-10-22 Thread Eugen Stoianovici
I'm having trouble understanding how ActionSupport works. I've extended ActionSupport to handle a form page. If the from contains errors (ie: i have an amount field mapped like and the user types in "asdf") the action mapped to result type "execute" is never called and, even though the form si