perform method deprecated??

2003-01-22 Thread julian green
Ive downloaded struts 1.1b3 and im being told that all the perform 
methods I developed are deprecated.   What is the new method?

Ive got alot of code to refactor.

Julian


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: perform method deprecated??

2003-01-22 Thread Andrew Hill
Your upgrading from 1.02?

In 1.1 you use the execute() method.

-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 20:23
To: Struts Users Mailing List
Subject: perform method deprecated??


Ive downloaded struts 1.1b3 and im being told that all the perform
methods I developed are deprecated.   What is the new method?

Ive got alot of code to refactor.

Julian


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: perform method deprecated??

2003-01-22 Thread Gemes Tibor
2003. január 22. 13:23 dátummal julian green ezt írtad:
 Ive downloaded struts 1.1b3 and im being told that all the perform
 methods I developed are deprecated.   What is the new method?

 Ive got alot of code to refactor.

As it is clearly stated in the API docs it is execute with the same signature 
as perform.

http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html#perform(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)

Hth

Tib

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: perform method deprecated??

2003-01-22 Thread julian green

Andrew Hill wrote:


Your upgrading from 1.02


Yes, and until the next non beta release is made that is where I will be 
staying.   Just wanted to know what I am in for when I upgrade.


In 1.1 you use the execute() method.


Thankyou.

Julian




-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 20:23
To: Struts Users Mailing List
Subject: perform method deprecated??


Ive downloaded struts 1.1b3 and im being told that all the perform
methods I developed are deprecated.   What is the new method?

Ive got alot of code to refactor.

Julian


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: perform method deprecated??

2003-01-22 Thread James Mitchell
 -Original Message-
 From: Gemes Tibor [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, January 22, 2003 7:15 AM
 To: Struts Users Mailing List
 Subject: Re: perform method deprecated??
 
 
 2003. január 22. 13:23 dátummal julian green ezt írtad:
  Ive downloaded struts 1.1b3 and im being told that all the perform
  methods I developed are deprecated.   What is the new method?
 
  Ive got alot of code to refactor.
 
 As it is clearly stated in the API docs it is execute with 
 the same signature 
 as perform.
 

http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.htm
l
 
 Hth

If you look a bit closer, they are not the same.  
execute() throws Exception

 
 Tib



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

The man who does not read good books has no advantage over the man who
cannot read them.
- Mark Twain (1835-1910)


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: perform method deprecated??

2003-01-22 Thread Craig R. McClanahan


On Wed, 22 Jan 2003, Andrew Hill wrote:

 Date: Wed, 22 Jan 2003 20:13:06 +0800
 From: Andrew Hill [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: perform method deprecated??

 Your upgrading from 1.02?

 In 1.1 you use the execute() method.

You actually *can* continue to use perform(), but should plan on a
transition to execute() at some point.

The reason for the method change is that execute() includes throws
Exception in its method signature, which was required to enable the new
declarative exception processing feature.  In 1.1, the default execute()
method just calls perform, though, so your existing Actions will still
work.

Craig



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: perform method deprecated??

2003-01-22 Thread Tony Baity

If you really like having the perform method separate from the execute, just keep it. 
But extend the Action class to create a new base class. That way, if perform is ever 
permanantly removed, your code will still work.
For instance, I created a base class that extended Action and called it 
CounselorAction ( for all the actions applicable to the business rules for counselors 
- whoever they are) and then packed a lot of common code before/after the call to the 
perform method inside the execute method. This way, all the action classes for 
counselors inherit all the common functionality. I ignore the deprecated warning in 
this case since I know what it is.
An alternative that I have seen is to create a second command pattern with is own base 
class and child classes for the business logic and execute those from the execute 
method in the child Action class but then the number classes that you have  to write 
is doubled for each action.
-Tony
 julian green [EMAIL PROTECTED] wrote:
Andrew Hill wrote:

Your upgrading from 1.02

Yes, and until the next non beta release is made that is where I will be 
staying. Just wanted to know what I am in for when I upgrade.


In 1.1 you use the execute() method.

Thankyou.

Julian



-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 20:23
To: Struts Users Mailing List
Subject: perform method deprecated??


Ive downloaded struts 1.1b3 and im being told that all the perform
methods I developed are deprecated. What is the new method?

Ive got alot of code to refactor.

Julian


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail: 
For additional commands, e-mail: 




--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now