boundle message in s:select

2009-05-18 Thread Gianluca Musella
Hi all, In tag: s:select headerValue=gianluca... How to read the headerValue value from the resources boundle? Something like: s:select headerValue=myproject.myboundle.item Thank you, Gianluca

output entity in getText()

2009-03-06 Thread Gianluca Musella
Hi all. This line is in my Action myaction: addFieldError(azienda, getText(error.azienda)); This is in my myaction.properties: error.azienda=Egrave; necessario specificare il nome ed il cognome. Output in html is: #200; necessario specificare lazienda di appartenenza. How can I protect the

interceptor on pdf

2009-03-04 Thread Gianluca Musella
Hello boys. Is there something similar interceptors but fired on resources different from actions? I need to fire an interceptor before to show a pdf. If no I must use a Filter. Thank in advance Gianluca Gianluca Musella Delivery Manager  E-Mail: gianluca.muse...@bsc.it  Mobile: +39

interceptors does not work

2009-02-10 Thread Gianluca Musella
This is the interceptor declaration in my struts.xml: interceptors interceptor name=profilerInterceptor class=org.almayer.web.interceptor.ProfilerInterceptor/ interceptor name=authenticationInterceptor class=org.almayer.web.interceptor.AuthenticationInterceptor/

R: model bean from a servlet

2009-02-10 Thread Gianluca Musella
: Re: model bean from a servlet Hi Gianluca Why do you do this ,s2 is use to replace on control layer of MVC and model be put in valueStack on current thread,it 's diffcultly to visit it in other thread! -- From: Gianluca Musella

custo login module the model

2009-02-08 Thread Gianluca Musella
Hi all, Is possible, from my custom login module, to access the model? Thanks in advance, Gianluca

model bean from a servlet

2009-02-08 Thread Gianluca Musella
Hello list, Is possible to access the model bean from a std servlet? I think this is possible, because s2 store this model into the session (or request) object, and presents it to the getModel() method of an action implementing the ScopedModelDrivenMyModelClass. If this, I only need the name of

I: model created more than 1 times

2009-01-24 Thread Gianluca Musella
Does someone can explain me this behaviour please? I'm absolutely sure that my model is created more than one times. This is a problem for me. Can you explain me the lifecycle of the model? Thanks in advance Gianluca - To

silly problem with s:text

2008-12-04 Thread Gianluca Musella
If I write in my jsp: s:text name=home.hits s:param value=principal.monthHits/ s:param value=principal.baseHits/ /s:text with in my i18n.properies: home.hits=Foto visitate: {0}/{1} the output in html is: Foto visitate: 187/27.912 Is there a way to not write the .? Thank you, guys

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Gianluca Musella
Do you use ffx or ie or something other? 2008/11/19 Milan Milanovic [EMAIL PROTECTED]: Yes, just like here: http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html -- Milan diogo pontual wrote: Are you

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Gianluca Musella
tried also with ffx3, and it is the same! Gianluca Musella wrote: Do you use ffx or ie or something other? 2008/11/19 Milan Milanovic [EMAIL PROTECTED]: Yes, just like here: http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html http://struts.apache.org/2.0.12/docs/struts-2

upgrading Eclipse problem with tiles

2008-11-06 Thread Gianluca Musella
Mmm... I've update my Eclipse to Web Tools Platform 3.4 to use with TPTP 4.5 (the profiler) and my tiles.xml doen's work anymore. 22 errors: The content of element type definition must match (icon?,display-name?,description?,put*,putList*) Any ideas? Thancs Gianluca

Delivery Status Notification

2008-10-11 Thread Gianluca Musella
My web.sml seems ok, but the tomcat log trace this: 10-ott-2008 16.29.19 org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener org.apache.struts2.tiles.StrutsTilesListener is already configured for this context. The duplicate definition has been ignored. Someone can

duplicate tiles listener

2008-10-10 Thread Gianluca Musella
My web.sml seems ok, but the tomcat log trace this: 10-ott-2008 16.29.19 org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener org.apache.struts2.tiles.StrutsTilesListener is already configured for this context. The duplicate definition has been ignored. Someone can

Re: security quest

2008-10-03 Thread Gianluca Musella
, alle ore 20:59, Laurie Harper [EMAIL PROTECTED] ha scritto: Gianluca Musella wrote: I've implemented an AuthenticationInterceptor. If the user isn't logged then is redirected to a login page to enter credential. The problem is that from this page user and password are sent in clear text

http request in ActionInvocation

2008-10-03 Thread Gianluca Musella
Hello guys, in an interceptor, in the intercept() method, how I can read parameters in the http request? Thanks Gianluca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: security quest

2008-10-03 Thread Gianluca Musella
to implement HTTP authentication in terms of the protocol requirements. From there, it's simply a matter of having your interceptor conduct the appropriate HTTP dialog. L. Gianluca Musella wrote: Than you Pawel, But, if your web container support JAAS, you can configure the login-config tag

security quest

2008-10-02 Thread Gianluca Musella
I've implemented an AuthenticationInterceptor. If the user isn't logged then is redirected to a login page to enter credential. The problem is that from this page user and password are sent in clear text, as a normal http post. Is this true? And if yes there is a way to use some type of

Re: entity translation question

2008-09-28 Thread Gianluca Musella
Thank you Dave, you help me twice only today. Gianluca 2008/9/29 Dave Newton [EMAIL PROTECTED]: --- On Sun, 9/28/08, Gianluca Musella wrote: In my jsp I have this [...] s:property value='bsome text/b'/ The result html is: bsome text/b There is a way to output directly html tags? Use

custom tags and struts

2008-09-27 Thread Gianluca Musella
This is the sinple tag I wrote (dummy.tag), registered in the tag lib almayer.tld: [EMAIL PROTECTED] name=message% h2${message}/h2 If I use it in this way, all work fine: almayer:dummy message=hello/ Buf I if use it in this way: almayer:dummy message=s:property value='currentPage.key'//

Re: custom tags and struts

2008-09-27 Thread Gianluca Musella
to hide the use of struts' taglib in the tag? Thanks Gianluca 2008/9/27 Dave Newton [EMAIL PROTECTED]: --- On Sat, 9/27/08, Gianluca Musella wrote: Buf I if use it in this way: almayer:dummy message=s:property value='currentPage.key'// You can't nest tags like that; that would imply double

Re: custom tags and struts

2008-09-27 Thread Gianluca Musella
s:property value=${property}/ with s:property value=#attr.property/ 2008/9/27 Gianluca Musella [EMAIL PROTECTED]: Thank you Dave, it's works using almayer:dummy message=${currentPage.key}/ But if I change my tag' s definition in this way: %@ taglib prefix=s uri=/struts-tags % [EMAIL PROTECTED

Re: custom tags and struts

2008-09-27 Thread Gianluca Musella
this? Thanks Gianluca 2008/9/27 Gabriel Belingueres [EMAIL PROTECTED]: You can change the tag's rtexprvalue attribute to true to allow EL expressions in S2 tags. Or you can replace s:property value=${property}/ with s:property value=#attr.property/ 2008/9/27 Gianluca Musella [EMAIL

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
the action realizes that a redirect is requestet (to a.action) now the login action can get a result like this result name=redirect type=..${redirectTo}/result now the action is asced for the correct action name/tiles view... it shall return. Greetings, Alexander Gianluca Musella

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
on the value stack (where the action lies on top) so if your user wants to get a.action all you have to do is return redirect as the result of the login action and return a for getredirectTo. Greetings, Alexander Gianluca Musella schrieb: Thank you. I can't understand how to realize the redirect

Quest on actionInvocation

2008-09-23 Thread Gianluca Musella
Hi all, in an interceptor is possible to know which action's method is called? For example, in action name=homeSecure class=org.almayer.web.action.HomeAction method=executeSecure[...]/action actionInvocation.getAction() contains an instance of org.almayer.web.action.HomeAction, but how to know

Re: Quest on actionInvocation

2008-09-23 Thread Gianluca Musella
thank you ManiKanta, it helps much. 2008/9/23 ManiKanta G [EMAIL PROTECTED]: in an interceptor is possible to know which action's method is called? You can get the requesting method name by using invocation.getProxy().getMethod(). Similarly you can get the action name:

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
org.almayer.web.action.SessionAction and result home) is not available. What's my fault? Gianluca 2008/9/23 Gianluca Musella [EMAIL PROTECTED]: thank you Alexander, I understand well now. Bye, Gianluca 2008/9/23 Alexander Baetz [EMAIL PROTECTED]: here a longer explanation: when I realizes the user isnt

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
ok, it sounds better. thank you Lukasz 2008/9/23 Lukasz Lenart [EMAIL PROTECTED]: action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
It works fine. Thank you Alex, thank you Lukasz. 2008/9/23 Gianluca Musella [EMAIL PROTECTED]: ok, it sounds better. thank you Lukasz 2008/9/23 Lukasz Lenart [EMAIL PROTECTED]: action name=login class=org.almayer.web.action.SessionAction method=login result name

Re: Global result of type redirect

2008-09-22 Thread Gianluca Musella
Hello Chris. Thank you. Are you saying you want to set the default result type to redirect globally or that you just want a global result type of redirect to be available to your actions? The second. I wrote this: package name=almayer namespace=/ extends=struts-default

quest on dynamic redirect

2008-09-22 Thread Gianluca Musella
This is my requirement: - the user asks for a resource, say A.action - the controller fires a custom interceptor I to authenticate the user - user isn't authenticated, so I redirect to L, the login page - user enters valid credentials - the controller redirect to the original requested A.action

double action's method invocation

2008-09-19 Thread Gianluca Musella
Hello, this is my first post in this list. I'm using S2 2.0.11.2 with Tiles plugin on Tomcat. I've a very strange problem. Almost all href/ and form/ elements causes a double action's method activation. For example if I have: a href=showPhotoInCoversPage.action?id=s:property

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
greetings, Paweł Wielgus. 2008/9/19 Gianluca Musella [EMAIL PROTECTED]: Hello, this is my first post in this list. I'm using S2 2.0.11.2 with Tiles plugin on Tomcat. I've a very strange problem. Almost all href/ and form/ elements causes a double action's method activation. For example

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
will work just fine, simply try any other browser. i have no clue what's wrong with ff3 in this matter but we simply banned it in our team. Best greetings, Paweł Wielgus. 2008/9/19 Gianluca Musella [EMAIL PROTECTED]: Yes, I'm using firefox 3. Uh, I can't believe, with IE works

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
. 2008/9/19 Gianluca Musella [EMAIL PROTECTED]: Yes, I'm using firefox 3. Uh, I can't believe, with IE works Thank you very very very much, Pawel. Gianluca 2008/9/19 Paweł Wielgus [EMAIL PROTECTED]: Hi, are You using FireFox3 maybe? We have

afted double method invocation the double listener definition

2008-09-19 Thread Gianluca Musella
After we, indeed you, solved the double action's method invocation problem, I post a very similar problem: all listener defined in my application (the tiles listener and a custom listener) although correctly defined in my web.xml, are viewed twice by the web container during the application