About this link:
http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html
said: You can call a static method using the syntax
@cl...@method(args). If you leave out class, it defaults to
java.lang.Math, to make it easier to call min and max methods. If you
specify the class, you must
Hi Friends,
How can I get a default Locale settings from browser?
Regards
Vishnu
2009/6/23 Vishnu Vyasan Nelliparmbil
> How can I get a default Locale settings from browser?
In JSP with EL:
${request.locale}
Antonio
Hi Jan,
i'm not going into details of your solution but interceptors are a way
better tool for that job, search the list for authentication subjects.
You can also use libraries like acegi or similiar.
Best greetings,
Pawel Wielgus.
2009/6/22, Jan T. Kim :
> Dear All,
>
> I'm trying to use excepti
On Tue, Jun 23, 2009 at 06:41:48AM -0200, Pawe? Wielgus wrote:
> Hi Jan,
> i'm not going into details of your solution but interceptors are a way
> better tool for that job, search the list for authentication subjects.
> You can also use libraries like acegi or similiar.
thanks for this pointer, I
aum strut wrote:
Our requirement is to use good authentication framework for our application
and as per the initial application draft we are not going to use spring in
our application.
as we have found that Spring Security is quite a matured framework so we are
just investigating the option, if
Johnson nickel wrote:
public String execute() throws Exception{
System.out.println("Inside Index action");
request.getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY,
new java.util.Locale("fr","FR"));
System.out.println(request.getSess
Stefano Tranquillini wrote:
About this link:
http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html
said: You can call a static method using the syntax
@cl...@method(args). If you leave out class, it defaults to
java.lang.Math, to make it easier to call min and max methods. If yo
Presumably the code calling execute() wraps it in a try/catch, but the call
that is instantiating the action in the first place doesn't do that. You'd
have to look at the source to be sure, but of course that's the nice part
about working on open-source projects.
>From a philosophical perspective,
On Tue, Jun 23, 2009 at 8:50 AM, Jim Kiley wrote:
[...]
> From a philosophical perspective, though -- no clue, I don't have a lot of
> insight into why the devs make all the decisions they make.
>
[...]
The decisions I make are usually heavily weighted by how impressed
girls will be :)
I would go
Hello!
I try to update from Struts 2.1.6 to 2.1.7.
I've got simple actions like this:
/pages/Test1.jsp
In Struts 2.1.6 'input' was called when invoking the action.
In Struts 2.1.7 'execute' is called.
Why is ecexute called now?
What is the default action that is called? How can I change
Struts 2.1.7 is not officially released yet, it is being staged and voted on...
And, I am not sure if your configuration makes sense, I have never
mapped the * result before. Do you have a test1-validation.xml file
alongside the class file? Does test1 have a 'validate' method? Also,
how do you kno
On Tue, Jun 23, 2009 at 09:03:22AM -0400, Wes Wannemacher wrote:
> On Tue, Jun 23, 2009 at 8:50 AM, Jim Kiley wrote:
> [...]
> > From a philosophical perspective, though -- no clue, I don't have a lot of
> > insight into why the devs make all the decisions they make.
> >
> [...]
>
> The decisions
On Tue, Jun 23, 2009 at 9:56 AM, Jan T. Kim wrote:
[...]
> I (again) agree that an interceptor is more suited for security. I'm
> undecided whether this is an issue suitable for a JIRA, it's more that
> based on the documentation on Exception Configuration
> [http://struts.apache.org/2.0.14/docs/ex
Dear all,
I have a problem when I click a submit button of a page, it doesn't go
straight to the next desired page.
Here is my little project:
Firstly, I want to show you how it supposed to flow:
Input page -> Help page
But the problem is it does go to the Help page when I click the submit
button
sorry for the typo, I meant it "DOESN't" go to the Help page when I
click the submit button on the Input page.
On Wed, Jun 24, 2009 at 12:10 AM, Sam Wun wrote:
> Dear all,
>
> I have a problem when I click a submit button of a page, it doesn't go
> straight to the next desired page.
> Here is my l
Thanks for your quick answer!
There is no test1-validation.xml.
test1 does not have a "validate" method ".
I have implemented the "execute" method to see if it is called because
"input" does not get called any more...
I also implemented "validateExecute" method for testing. And it get's called
a
If you can use "*" in a result, that's news for me.
musachy
On Tue, Jun 23, 2009 at 7:28 AM, Pro1712 wrote:
>
> Thanks for your quick answer!
>
> There is no test1-validation.xml.
> test1 does not have a "validate" method ".
>
> I have implemented the "execute" method to see if it is called becau
Hi all!
I have my validation:
@RequiredStringValidator(key="erro.required")
And in my package.properties:
erro.required={0} is required
How can i use this param ???
I tried:
@RequiredStringValidator(message="%{getText('erro.required', new String[]
{'Login'})}")
But it's not working.
Thanks!
Musachy Barroso wrote:
>
> serving static content with struts 2 is probably not a good idea
> (performance and security wise)
>
Can you expand upon that thought? At first blush, it strikes me as an
over-generalization, but I'm always interested in learning.
--
View this message in context:
h
Musachy Barroso wrote:
>
> serving static content with struts 2 is probably not a good idea
> (performance and security wise)
>
Can you expand upon that thought? At first blush, it strikes me as an
over-generalization, but I'm always interested in learning.
--
View this message in context:
h
possible he is alluding to wildcard mapping?
The "*" in the path attribute allows the mapping to match the request URIs
/editSubscription, editRegistration
http://struts.apache.org/2.0.6/docs/wildcard-mappings.html
a definite maybe?
Martin
_
Struts adds overhead for serving static content. Not that I have ever
done any benchmarking on it, but I know that at my company(large
online retailer), just suggesting to serve static content thru tomcat
instead of apache is a big offense.
musachy
On Tue, Jun 23, 2009 at 8:25 AM, rtd wrote:
>
>
Yea, it works for actions, but it doesn't seem to make sense for result names.
-W
On Tue, Jun 23, 2009 at 11:41 AM, Martin Gainty wrote:
>
> possible he is alluding to wildcard mapping?
>
> The "*" in the path attribute allows the mapping to match the request URIs
> /editSubscription, editRegist
On Tue, Jun 23, 2009 at 11:45 AM, Musachy Barroso wrote:
> Struts adds overhead for serving static content. Not that I have ever
> done any benchmarking on it, but I know that at my company(large
> online retailer), just suggesting to serve static content thru tomcat
> instead of apache is a big of
On Tue, Jun 23, 2009 at 12:11 PM, Wes Wannemacher wrote:
> On Tue, Jun 23, 2009 at 11:45 AM, Musachy Barroso wrote:
>> Struts adds overhead for serving static content. Not that I have ever
>> done any benchmarking on it, but I know that at my company(large
>> online retailer), just suggesting to se
this sounds like a good topic for Myth Buster
/geek_out
On Tue, Jun 23, 2009 at 9:25 AM, Wes Wannemacher wrote:
> On Tue, Jun 23, 2009 at 12:11 PM, Wes Wannemacher wrote:
>> On Tue, Jun 23, 2009 at 11:45 AM, Musachy Barroso wrote:
>>> Struts adds overhead for serving static content. Not that I ha
On Tue, Jun 23, 2009 at 12:29 PM, Musachy Barroso wrote:
> this sounds like a good topic for Myth Buster
>
> /geek_out
>
Only if they do it in true MythBuster form and the servers blow up.
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery
Dear all,
I was trying to going from one JSP page to another, where each JSP
page has a submit button... and a Form bean as well.
But when I click a submit button on the first JSP page, it said that
the second Form bean is not found in the second JSP page.
The workflow is supposed to be:
RedirectF
Hi,
I'm migrating my app from struts 1 to Struts 2. In my Struts 1 app, I had
this class ...
public class RefreshAction extends Action implements PlugIn {
...
}
and this in my struts-config.xml file ...
So how do I convert this to Struts 2? There doesn't seem to be a support
for "plug-
ive heard that too
TC supports Cache-Control, Expires and Last-Modified for cache control
// Required Cache Control Headers
String maxage = "86400"; // One day in Seconds
response.setHeader("Cache-Control", "max-age="+ maxage);
long relExpiresInMillis = System.currentTimeMillis() + (1000 *
Long.
Hello All:
In Servlet specification 2.4 filters are not supposed to be accessed directly
as a resource. And anything other than a jsp page need to have a Servlet
mapping in order to make it accessible (as per specification).
Struts 1 had ActionServlet which allowed for servlet mapping of *.act
I started writing this as a question then I discovered the answer so thought
I would share it as FYI.
Question:
I have Preparable CRUD actions that have multiple action methods like
doNew(), doCreate(), doEdit(), doUpdate(), doDelete().
I have found at least one case where I need to know, in the
Hi,
i have the select below which uses s:optgroup to group my values. The
soCustomerFiltration is TreeMap, while the
customerFilter is an String[].
All work well in terms of rendering except that once I select something and
press a button to update the page my selection is not persisted. I can s
Hi all!
I've been reading in this mailing list and other discussions about messages
like this:
Could not find property [org.apache.catalina.jsp_file]
Everybody talks about turn the debug mode (struts.devMode) off. But I want
to know if it's the best solution. What are you think about it? There
this is good information
can someone update the doc @
http://struts.apache.org/2.0.11/docs/prepare-interceptor.html
Martin
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nich
Martin Gainty wrote:
this is good information
can someone update the doc @
http://struts.apache.org/2.0.11/docs/prepare-interceptor.html
Update it to say what?
It already states:
1. if the action class have prepare{MethodName}(), it will be invoked
2. else if the action class have prepareDo(
Wes Wannemacher wrote:
On Tue, Jun 23, 2009 at 8:50 AM, Jim Kiley wrote:
[...]
From a philosophical perspective, though -- no clue, I don't have a lot of
insight into why the devs make all the decisions they make.
[...]
The decisions I make are usually heavily weighted by how impressed
girls
Thanks Dave for the details, as my self also not very much known about the
spring so may be we have to look in to this and in the draft in more
details.
On Tue, Jun 23, 2009 at 5:54 PM, Dave Newton wrote:
> aum strut wrote:
>
>> Our requirement is to use good authentication framework for our
>
39 matches
Mail list logo