Application configuration file

2014-01-07 Thread Giuliano Catrambone

Hi all,
can someone suggest me how to manage an application configuration file
in a struts application?

I'm thinking a configuration file like
myapp.properties

Is there a place in a struts app where I can read the properties 
cfg file just once

and share it in every java file (actions, )?

Thanks
giu


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



Re: Application configuration file

2014-01-07 Thread Chris
Hello ,
I have the same request.
Perhaps the response can help you
You can use Interceptor#init()

http://struts.1045723.n5.nabble.com/Struts2-and-JDBC-How-to-read-jdbc-properties-only-once-for-100-or-1000-users-td5714995.html






Le Mardi 7 janvier 2014 10h17, Giuliano Catrambone giulia...@catrasoftware.it 
a écrit :
 
Hi all,
     can someone suggest me how to manage an application configuration file
     in a struts application?

     I'm thinking a configuration file like
         myapp.properties

     Is there a place in a struts app where I can read the properties 
cfg file just once
     and share it in every java file (actions, )?

     Thanks
         giu


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

Re: Application configuration file

2014-01-07 Thread Lukasz Lenart
I think it is a great place for plugin ;-)

You can use interceptor with connected interface as e.g.
ServletConfigInterceptor and RequestAware - interceptor will read the
config files and then it will apply them to actions implementing given
interface. You can have many interfaces to distinguish different
config types.

You can also use annotation instead of interfaces and scan for them
using AnnotationUtils or some other tool.


2014/1/7 Chris christal...@yahoo.fr:
 Hello ,
 I have the same request.
 Perhaps the response can help you
 You can use Interceptor#init()

 http://struts.1045723.n5.nabble.com/Struts2-and-JDBC-How-to-read-jdbc-properties-only-once-for-100-or-1000-users-td5714995.html






 Le Mardi 7 janvier 2014 10h17, Giuliano Catrambone 
 giulia...@catrasoftware.it a écrit :

 Hi all,
  can someone suggest me how to manage an application configuration file
  in a struts application?

  I'm thinking a configuration file like
  myapp.properties

  Is there a place in a struts app where I can read the properties
 cfg file just once
  and share it in every java file (actions, )?

  Thanks
  giu


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

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



Problem with resultType dispatcher when using sitemesh

2014-01-07 Thread Thomas Hermann

Hello,

I have a problem with the resultType dispatcher when using sitemesh 
along with the StrutsFilter:


In my struts.xml (see below) I have configured an action (myAction1) 
that forward the request (result-type=dispatcher)
to another Action (myAction2) that display the view.  In my web.xml(see 
below) I configure the StrutsFilter
in the recommended way when using sitemesh 
(http://struts.apache.org/release/2.1.x/docs/webxml.html).


But when I invoke myAction1, I run into an Error: stackoverflow in 
tomcat caused by a looping (JasperException).

When I check the network traffic with firebug I see:

GET myAction1.html  404 Not found

Why the forwarding does not work with my configuration?

Remarks:
*The result type redirect would work in principle.
*I'm using Stuts2 Version 2.3.15.3
*In struts.properties: struts.action.extension=html

struts.xml
-

 action name=myAction1 class=requestAction method=method1
  result name=success 
type=dispatcher/path/myAction2.html/result

 /action
 action name=myAction2 class=requestAction method=method2
  result name=success/WEB-INF/pages/page.jsp
  /result
 /action

--

web.xml


filter
filter-namestruts-prepare/filter-name
filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter/filter-class
/filter

filter
filter-namesitemesh/filter-name
filter-classcom.opensymphony.sitemesh.webapp.SiteMeshFilter/filter-class
/filter

filter
filter-namestruts-execute/filter-name
filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter/filter-class
/filter

filter-mapping
filter-namestruts-prepare/filter-name
url-pattern/*/url-pattern
/filter-mapping

filter-mapping
filter-namesitemesh/filter-name
url-pattern/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
dispatcherINCLUDE/dispatcher
/filter-mapping

filter-mapping
filter-namestruts-execute/filter-name
url-pattern/*/url-pattern
/filter-mapping

---
Thanks,
Thomas



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Need help for 2.3.16

2014-01-07 Thread Emi Lu
Happy new year List! Thank you very much for all of your inputs and my 
projects are success with 2.3.16 + jquery3.7.0.


As a sum:
(1) 2.3.16   + jquery3.7.0 [success]
(2) 2.3.15.x + jquery3.6.x [success]
(3) 2.3.15.x + jquery3.7.0 [Not acceptable]

On 01/03/2014 07:10 AM, Johannes Geppert wrote:

If you are using MAVEN just add the Sonatype Snapshot Repository and
change the Version of your Artifact.

...
repositories
 ...

 repository
 idsonatype.oss.snapshots/id

 nameSonatype OSS Snapshot Repository/name
 urlhttp://oss.sonatype.org/content/repositories/snapshots  
http://oss.sonatype.org/content/repositories/snapshots/url

 releasesfalse/releases

 snapshotstrue/snapshots
 /repository

/repositories
...


But you can also simply download it from the Maven Repository.
http://oss.sonatype.org/content/repositories/snapshots/com/jgeppert/struts2/jquery/

Best Regards

Johannes

#
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2013/12/20 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca

Hello,


  Please try out Struts2 jQuery Plugin Version 3.7.0-SNAPSHOT.

This Version is compatible with Struts 2.3.16.


The latest is shown as 3.6.1 from:
http://code.google.com/p/__struts2-jquery/downloads/list
http://code.google.com/p/struts2-jquery/downloads/list

Can you tell me where to download
struts2-jquery-plugin-3.7.0-__snapshot.jar please?

Thanks a lot!


##__###
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep




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



Re: Problem with resultType dispatcher when using sitemesh

2014-01-07 Thread Lukasz Lenart
It won't work, you can try adding

dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
dispatcherINCLUDE/dispatcher

to Struts2 filter mapping. Instead of dispatcher try to use chain result.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2014/1/7 Thomas Hermann therm...@mtg.de:
 Hello,

 I have a problem with the resultType dispatcher when using sitemesh along
 with the StrutsFilter:

 In my struts.xml (see below) I have configured an action (myAction1) that
 forward the request (result-type=dispatcher)
 to another Action (myAction2) that display the view.  In my web.xml(see
 below) I configure the StrutsFilter
 in the recommended way when using sitemesh
 (http://struts.apache.org/release/2.1.x/docs/webxml.html).

 But when I invoke myAction1, I run into an Error: stackoverflow in tomcat
 caused by a looping (JasperException).
 When I check the network traffic with firebug I see:

 GET myAction1.html  404 Not found

 Why the forwarding does not work with my configuration?

 Remarks:
 *The result type redirect would work in principle.
 *I'm using Stuts2 Version 2.3.15.3
 *In struts.properties: struts.action.extension=html

 struts.xml
 -

  action name=myAction1 class=requestAction method=method1
   result name=success
 type=dispatcher/path/myAction2.html/result
  /action
  action name=myAction2 class=requestAction method=method2
   result name=success/WEB-INF/pages/page.jsp
   /result
  /action

 --

 web.xml
 

 filter
 filter-namestruts-prepare/filter-name
 filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter/filter-class
 /filter

 filter
 filter-namesitemesh/filter-name
 filter-classcom.opensymphony.sitemesh.webapp.SiteMeshFilter/filter-class
 /filter

 filter
 filter-namestruts-execute/filter-name
 filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter/filter-class
 /filter

 filter-mapping
 filter-namestruts-prepare/filter-name
 url-pattern/*/url-pattern
 /filter-mapping

 filter-mapping
 filter-namesitemesh/filter-name
 url-pattern/*/url-pattern
 dispatcherREQUEST/dispatcher
 dispatcherFORWARD/dispatcher
 dispatcherINCLUDE/dispatcher
 /filter-mapping

 filter-mapping
 filter-namestruts-execute/filter-name
 url-pattern/*/url-pattern
 /filter-mapping

 ---
 Thanks,
 Thomas


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



[OT] Setting up mail server on Linux?

2014-01-07 Thread Paul Benedict
Anyone experienced with installing/configuring mail servers on Linux? I
have chosen Postfix as my tool but I'll take any working solution. I don't
need to receive any emails, only send emails from my domain from a Struts
application.

-- 
Cheers,
Paul


Re: [OT] Setting up mail server on Linux?

2014-01-07 Thread Dave Evans
This should help:
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client




On Tue, Jan 7, 2014 at 2:45 PM, Paul Benedict pbened...@apache.org wrote:

 Anyone experienced with installing/configuring mail servers on Linux? I
 have chosen Postfix as my tool but I'll take any working solution. I don't
 need to receive any emails, only send emails from my domain from a Struts
 application.

 --
 Cheers,
 Paul



Re: [OT] Setting up mail server on Linux?

2014-01-07 Thread Paweł Wielgus
After putting all together,
try to send emails to different probable e-mail providers
and check if you will succeed (create your accounts there first),
many of them are using special tricks to avoid spam
but occasionally they block also normal senders.

Last such thing i faced was grey-listing.


Best greetings,
Paweł Wielgus.



2014/1/7 Dave Evans dsevan...@gmail.com:
 This should help:
 http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client




 On Tue, Jan 7, 2014 at 2:45 PM, Paul Benedict pbened...@apache.org wrote:

 Anyone experienced with installing/configuring mail servers on Linux? I
 have chosen Postfix as my tool but I'll take any working solution. I don't
 need to receive any emails, only send emails from my domain from a Struts
 application.

 --
 Cheers,
 Paul


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



Re: [OT] Setting up mail server on Linux?

2014-01-07 Thread Per Pascal Grube
Do you need to use postfix? I use  msmtp as mailserver when only sending mail. 

Cheers, Pascal

Paul Benedict pbened...@apache.org schrieb:

Anyone experienced with installing/configuring mail servers on Linux? I
have chosen Postfix as my tool but I'll take any working solution. I don't
need to receive any emails, only send emails from my domain from a Struts
application.

-- 
Cheers,
Paul


MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list

2014-01-07 Thread Michel Prévost
I have attempted to remove myself from this list at several occasions, never
worked. The link sent by the server returns a postmaster error when clicked.
Could some administrator from this list unsubscribe me please?

 

Thanks a bunch!

 

Michel



Re: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list

2014-01-07 Thread Paul Benedict
Email user-unsubscr...@struts.apache.org and wait for a message. When you
receive the message, just respond to it and you'll be finished.


On Tue, Jan 7, 2014 at 6:30 PM, Michel Prévost
prevost_mic...@hotmail.comwrote:

 I have attempted to remove myself from this list at several occasions,
 never
 worked. The link sent by the server returns a postmaster error when
 clicked.
 Could some administrator from this list unsubscribe me please?



 Thanks a bunch!



 Michel




-- 
Cheers,
Paul


Re: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list

2014-01-07 Thread sabriz naduvilothi
have attempted to remove myself from this list at several occasions, never
worked. The link sent by the server returns a postmaster error when clicked.
Could some administrator from this list unsubscribe me please?
On Jan 7, 2014 9:30 PM, Michel Prévost prevost_mic...@hotmail.com wrote:

 I have attempted to remove myself from this list at several occasions,
 never
 worked. The link sent by the server returns a postmaster error when
 clicked.
 Could some administrator from this list unsubscribe me please?



 Thanks a bunch!



 Michel




RE: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list

2014-01-07 Thread Francis Louis
Hi,

Could someone please remove me also from the list? I have also tried two times 
to remove me from the list and I was also not successful in removing me from 
the list.

Best Regards
Francis

 Date: Tue, 7 Jan 2014 21:46:31 -0500
 Subject: Re: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list
 From: sab...@gmail.com
 To: user@struts.apache.org
 
 have attempted to remove myself from this list at several occasions, never
 worked. The link sent by the server returns a postmaster error when clicked.
 Could some administrator from this list unsubscribe me please?
 On Jan 7, 2014 9:30 PM, Michel Prévost prevost_mic...@hotmail.com wrote:
 
  I have attempted to remove myself from this list at several occasions,
  never
  worked. The link sent by the server returns a postmaster error when
  clicked.
  Could some administrator from this list unsubscribe me please?
 
 
 
  Thanks a bunch!
 
 
 
  Michel
 
 
  

RE: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list

2014-01-07 Thread Roger Chee
Same here!

Regards,

Roger


Sent from Samsung Mobile

 Original message 
From: Francis Louis francis.lo...@hotmail.com 
Date:08/01/2014  11:22  (GMT+08:00) 
To: Struts Users Mailing List user@struts.apache.org 
Subject: RE: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list 

Hi,

Could someone please remove me also from the list? I have also tried two times 
to remove me from the list and I was also not successful in removing me from 
the list.

Best Regards
Francis

 Date: Tue, 7 Jan 2014 21:46:31 -0500
 Subject: Re: MESSAGE TO ADMINIISTRATOR: Unscribing from this mailing list
 From: sab...@gmail.com
 To: user@struts.apache.org
 
 have attempted to remove myself from this list at several occasions, never
 worked. The link sent by the server returns a postmaster error when clicked.
 Could some administrator from this list unsubscribe me please?
 On Jan 7, 2014 9:30 PM, Michel Prévost prevost_mic...@hotmail.com wrote:
 
  I have attempted to remove myself from this list at several occasions,
  never
  worked. The link sent by the server returns a postmaster error when
  clicked.
  Could some administrator from this list unsubscribe me please?
 
 
 
  Thanks a bunch!
 
 
 
  Michel