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
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
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
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/
: 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
Hi all,
Is possible, from my custom login module, to access the model?
Thanks in advance,
Gianluca
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
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
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
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
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
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
, 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
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]
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
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
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
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'//
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
.
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
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
37 matches
Mail list logo