transforming Struts apps to services

2010-04-03 Thread Frans Thamura
hi all

any idea to make a struts2 application using @Webservices or any, to make
the result is SOA compliance?
-- 
Frans Thamura
Meruvian.
Experiential Tempation of Java and Enterprise OpenSource

Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK
yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma

Mobile: +6287885901958
Blog  Profile: http://frans.thamura.info

We provide services to migrate your apps to Java (web), in amazing fast and
reliable.


Re: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-03 Thread Lukasz Lenart
2010/4/2 sandeep kotha sandeep4u.ko...@gmail.com:
 In-spite of having *struts2-core-2.1.8.1.jar *under
 /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error .

Is that /WEB-INF/lib/struts-2.1.8.1/ a directory ???
 ^
If so, your jars cannot be found, move them to /WEB-INF/lib as is
specified by servlet specification!


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-03 Thread sandeep kotha
Thank you Lenart, Its working after making the change you said.

On 3 April 2010 14:05, Lukasz Lenart lukasz.len...@googlemail.com wrote:

 2010/4/2 sandeep kotha sandeep4u.ko...@gmail.com:
  In-spite of having *struts2-core-2.1.8.1.jar *under
  /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error .

 Is that /WEB-INF/lib/struts-2.1.8.1/ a directory ???
 ^
 If so, your jars cannot be found, move them to /WEB-INF/lib as is
 specified by servlet specification!


 Regards
 --
 Łukasz
 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010
 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




struts 2, how to trigger interceptor after action's execute() ?

2010-04-03 Thread john lee
 
***
package name=me extends=struts-default
  interceptors
   interceptor name=mysimple class=mysimple
  param name=name try /param
/interceptor
 /interceptors
 
 action name=try class=try
 result name=success=/success.jsp/result
 interceptor-ref name=mysimple
    param name=name try 2/param
/interceptor
/action
 

the above code triggers interceptor before class try's execute(), and the 
purpose of interceptor,
But, how to trigger interceptor again after class try's execute() ? i check the 
stuts 2 document, 
it just saying interceptor can trigger before and after execute, but never give 
the example for how to do it after execute(), 
 
anyone can help?
 
tks in advance
 
john


  

Re: struts 2, how to trigger interceptor after action's execute() ?

2010-04-03 Thread Robert Taylor
To trigger code before an Action is executed place it before the 
invocation.invoke().
To trigger code after an Action is executed place it after the 
invocation.invoke();


For example:

public String intercept(ActionInvocation invocation) throws Exception {
  MyAction action = (MyAction)invocation.getAction();
  // doBeforeActionExecuted();   String result = 
invocation.invoke();   // doAfterActionExecuted();   return result;

   }
hth,/robert- Original Message - 
From: john lee sh_thorn_b...@yahoo.com

To: user@struts.apache.org
Sent: Saturday, April 03, 2010 12:53 PM
Subject: struts 2, how to trigger interceptor after action's execute() ?



***
package name=me extends=struts-default
interceptors
interceptor name=mysimple class=mysimple
param name=name try /param
/interceptor
/interceptors

action name=try class=try
result name=success=/success.jsp/result
interceptor-ref name=mysimple
param name=name try 2/param
/interceptor
/action


the above code triggers interceptor before class try's execute(), and the 
purpose of interceptor,
But, how to trigger interceptor again after class try's execute() ? i check 
the stuts 2 document,
it just saying interceptor can trigger before and after execute, but never 
give the example for how to do it after execute(),


anyone can help?

tks in advance

john




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: transforming Struts apps to services

2010-04-03 Thread Dave Newton

Frans Thamura wrote:

any idea to make a struts2 application using @Webservices or any, to make
the result is SOA compliance?


SOA compliance meaning what? The rendered result can be in any format 
and conform to any standard you wish. Is your question regarding using 
the actual JAX-RS @Webservice annotation on an S2 action?


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Resetting session scope form bean values

2010-04-03 Thread Dave Newton

pundarik rajkhowa wrote:

After I submit the form and open it again for new data entry,
the form retains its old values. If I call form.reset(), it fails to clear
the bean. Do I need to override the reset method and manually clear values
of all bean elements?


Yes--that is the purpose of the reset() method, to implement whatever 
non-standard functionality you need. The default doesn't do anything, so 
session-scoped forms will retain whatever values are already in the session.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 validation problem

2010-04-03 Thread Dave Newton

zud wrote:

1) Is old errors is not getting cleared that means when the filed value is
empty  when i submit the form it shows required that is ok and agian when i
submit with empty values again now it shows messages like
filed is required
filed is required


Are you using Spring as your object factory? If so, make sure the 
actions are declared as being prototype scope.


Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: transforming Struts apps to services

2010-04-03 Thread Frans Thamura
On Sun, Apr 4, 2010 at 7:40 AM, Dave Newton newton.d...@yahoo.com wrote:

 Frans Thamura wrote:

 any idea to make a struts2 application using @Webservices or any, to make
 the result is SOA compliance?


 SOA compliance meaning what? The rendered result can be in any format and
 conform to any standard you wish. Is your question regarding using the
 actual JAX-RS @Webservice annotation on an S2 action?



hi dave

right, that is the idea

F


Re: transforming Struts apps to services

2010-04-03 Thread Nitesh Jain
Frans,

You can consider using AXIS with struts for Webservices.

Nitesh

On 4 April 2010 06:50, Frans Thamura fr...@meruvian.org wrote:

 On Sun, Apr 4, 2010 at 7:40 AM, Dave Newton newton.d...@yahoo.com wrote:

  Frans Thamura wrote:
 
  any idea to make a struts2 application using @Webservices or any, to
 make
  the result is SOA compliance?
 
 
  SOA compliance meaning what? The rendered result can be in any format
 and
  conform to any standard you wish. Is your question regarding using the
  actual JAX-RS @Webservice annotation on an S2 action?
 


 hi dave

 right, that is the idea

 F



Re: transforming Struts apps to services

2010-04-03 Thread Frans Thamura
hi


must we  create an axis-plugins for struts2 first, or u can give me an
opinion

because my head said we must go to plugins result model for any output of
Struts2

F

On Sun, Apr 4, 2010 at 11:24 AM, Nitesh Jain er.niteshj...@gmail.comwrote:

 Frans,

You can consider using AXIS with struts for Webservices.

 Nitesh

 On 4 April 2010 06:50, Frans Thamura fr...@meruvian.org wrote:

  On Sun, Apr 4, 2010 at 7:40 AM, Dave Newton newton.d...@yahoo.com
 wrote:
 
   Frans Thamura wrote:
  
   any idea to make a struts2 application using @Webservices or any, to
  make
   the result is SOA compliance?
  
  
   SOA compliance meaning what? The rendered result can be in any format
  and
   conform to any standard you wish. Is your question regarding using the
   actual JAX-RS @Webservice annotation on an S2 action?
  
 
 
  hi dave
 
  right, that is the idea
 
  F
 



Re: transforming Struts apps to services

2010-04-03 Thread Chris Pratt
I've used Spring-Web Services along side a Struts 2 app and it worked fine.
  (*Chris*)

On Sat, Apr 3, 2010 at 9:33 PM, Frans Thamura fr...@meruvian.org wrote:

 hi


 must we  create an axis-plugins for struts2 first, or u can give me an
 opinion

 because my head said we must go to plugins result model for any output of
 Struts2

 F

 On Sun, Apr 4, 2010 at 11:24 AM, Nitesh Jain er.niteshj...@gmail.com
 wrote:

  Frans,
 
 You can consider using AXIS with struts for Webservices.
 
  Nitesh
 
  On 4 April 2010 06:50, Frans Thamura fr...@meruvian.org wrote:
 
   On Sun, Apr 4, 2010 at 7:40 AM, Dave Newton newton.d...@yahoo.com
  wrote:
  
Frans Thamura wrote:
   
any idea to make a struts2 application using @Webservices or any, to
   make
the result is SOA compliance?
   
   
SOA compliance meaning what? The rendered result can be in any
 format
   and
conform to any standard you wish. Is your question regarding using
 the
actual JAX-RS @Webservice annotation on an S2 action?
   
  
  
   hi dave
  
   right, that is the idea
  
   F