Hi all,
In tag:
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
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
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!
> ------
This is the interceptor declaration in my struts.xml:
org.almayer.web.AlmayerModel
session
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.
Hi all,
Is possible, from my custom login module, to access the model?
Thanks in advance,
Gianluca
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
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
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
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:
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:
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
---
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
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
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
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]
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
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
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
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
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
>> >
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
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
&
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:
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
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
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
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
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
---
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
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
>
>
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
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
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
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
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
>
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
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:
39 matches
Mail list logo