boundle message in s:select

2009-05-18 Thread Gianluca Musella
Hi all, In tag:

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=È necessario specificare il nome ed il cognome. Output in html is: È necessario specificare lazienda di appartenenza. How can I protect the È to ou

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

R: model bean from a servlet

2009-02-10 Thread Gianluca Musella
ing List > Oggetto: 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! > ------

interceptors does not work

2009-02-10 Thread Gianluca Musella
This is the interceptor declaration in my struts.xml: org.almayer.web.AlmayerModel session

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 ScopedModelDriven. If this, I only need the name of this object.

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

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 un

silly problem with s:text

2008-12-04 Thread Gianluca Musella
If I write in my jsp: 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 Gianluca

Re: Getter Method call twice - S2

2008-12-04 Thread Gianluca Musella
What browser do you use? It can be an ffx3 bug, if you use ffx3 try with ie. Hope this help Gianluca 2008/12/4 Eugenio Perrotta Neto <[EMAIL PROTECTED]> > Hi all. > > I nedd a very urgent help. > > I dont know why when i use tiles or use Tag files whith struts 2, my getter > methods in the act

Re: Form submitted twice (no AJAX!)

2008-11-19 Thread Gianluca Musella
se that it use IE 7. I 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:

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:

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
e browser sends in response. A little googling > should reveal how 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 wr

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
gt;> >> Inviato da iPhone >> >> Il giorno 02/ott/08, alle ore 20:59, Laurie Harper <[EMAIL PROTECTED]> ha >> scritto: >> >>> Gianluca Musella wrote: >>>> >>>> I've implemented an AuthenticationInterceptor. If the user isn&#

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 encriptio

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 [...] >> >> >> >> The result html is: >> >> some text >> >> T

entity translation question

2008-09-28 Thread Gianluca Musella
In my jsp I have this (this is a sample, I need to have formatting html tag and plain text): The result html is: some text There is a way to output directly html tags? Thank in advance Gianluca - To unsubscribe, e-ma

Re: custom tags and struts

2008-09-27 Thread Gianluca Musella
L >> > expressions in S2 tags. >> >> How to do this? >> >> Thanks >> >> Gianluca >> >> 2008/9/27 Gabriel Belingueres <[EMAIL PROTECTED]>: >> > You can change the tag's rtexprvalue attribute to "true" to allow EL >> >

Re: custom tags and struts

2008-09-27 Thread Gianluca Musella
w EL > expressions in S2 tags. > > Or you can replace with value="#attr.property"/> > > 2008/9/27 Gianluca Musella <[EMAIL PROTECTED]>: >> Thank you Dave, it's works using >> >> >> >> But if I change my tag

Re: custom tags and struts

2008-09-27 Thread Gianluca Musella
hanks Gianluca 2008/9/27 Dave Newton <[EMAIL PROTECTED]>: > --- On Sat, 9/27/08, Gianluca Musella wrote: >> Buf I if use it in this way: >> >> > > You can't nest tags like that; that would imply double-evaluation of the page. > > > > Dave &

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"%> ${message} If I use it in this way, all work fine: Buf I if use it in this way: intended to resolve the value of message before of tag invocation, the result in html is:

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]>: >>>>> class="org.almayer.web.action.Ses

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]>: >>> class="org.almayer.web.action.SessionAction" method="login"> >>> type="redirectAction">${redirectTo} >> >> >> This is the login action's method (I omitt logic): >> >>public Str

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
report message: No result defined for action org.almayer.web.action.SessionAction and result home description: The requested resource (No result defined for action org.almayer.web.action.SessionAction and result home) is not available. What's my fault? Gianluca 2008/9/23 Gianluca

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: invocation

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 [...] actionInvocation.getAction() contains an instance of org.almayer.web.action.HomeAction, but how to know about thr called executeSecure? Thanks Gianluca ---

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
irectTo" > 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

Re: quest on dynamic redirect

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

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 T

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: /component/login.jsp /homeSecure.acti

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 startu

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
ll, the jsp is called twice because this methos ic called >> > >> twice, so for me the real quetion is "why the showPhotoInCoversPage >> > >> methos is double called (like almost all other methods in the app)"? >> > >> >> > >> Than

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
t; >> 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 >

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
ply try it on other browsers. > > Best 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. >> >> &g

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 and elements causes a double action's method activation. For example if I have: mapped in struts.xml in this way: