When you are directing the user to login page, you need to 'remember' the
action (rather URL) he was invoking. This needs to be made available to
Login action so that on successful login user can be redirected to the page
he was originally trying to access.
One of the ways to remember the original
i have one interceptor(reference of mailreader example of 2.0.11 ) for check
in session about username
because
if person click on some authorized link like portfolio they should directly
to login action
i have achieved this thing using interceptor
now my problem is that
when person submit his us
The JavaDocs for ActionContext.getLocale() states that it returns the locale
of the current action.
IIRC the I18N interceptor also puts the locale into the session.
The JavaDocs and the source are your friends.
Dave
--- "jignesh.patel" <[EMAIL PROTECTED]> wrote:
>
> I am using locale from the
I am using locale from the context for the whole application.
As i am having application with three localization.
Once the context changed it gives me the default locale instead of the
previous one i have selected.
com.opensymphony.xwork2.ActionContext.ActionContext.getContext().getLocale()
Is
If you have shared functionality then it sounds like a good candidate for
web services. I wouldn't do the shared JAR deal.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: "Allen, Daniel" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 2
That validator doesn't do client side validation.
Only the following validators are supported:
* required validator
* requiredstring validator
* stringlength validator
* regex validator
* email validator
* url validator
* int validator
* double validator
http://st
Thanks, I confirmed my syntax, and now it does not do any client side
validation. Do I have this validator in the right place? Here is the
relevant code from my xml file:
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
>From the validator documentation.
email.equals(email2)
Email not the same as email2
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: mojoRising <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 28 Feb 2008 13:31:19 -080
Well, the same application is now expected to talk to the public at
large via a web site and also provide updates about their interactions
to an internal web site. So, I do need to expose some sort of web
service. It will actually be different business logic, but it will refer
to a lot of the same
That thread was about exposing business logic used in a S2 app as web
services for use in other applications. If you are interested in web
services then the CXF site is a good place to start. Personally I wouldn't
go to the trouble of creating web services just to use them in an S2 web
app.
There
(java - struts 2 - JSP - using xml based validation)
I am trying to figure out how to do a simple client side validation
expression, checking that two fields are equal. Could someone help me figure
this out, I am sure it is very simple but I can't find out what I am
missing. I keep getting this er
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> That would require a getMailSender() on the action, wouldn't it? I'd
> strongly suggest not having getters for 'sensitive' internals like that
It's pretty typical to have a service injected like that, though. The issue
here is that a sensitive config
jignesh.patel wrote:
Hi,
I am having struts2 application,whenever i am doing action redirect i am
getting new context instead of old one ?
../authentication/login.action
or
login
And context log looks like ...
com.opensymphony.xwork2.ActionContext.getContext()
A redirect tells the bro
Ullrich Schäfer wrote:
Hello,
I wonder if there's a way tho configure the ActionServlet
programatically. I'm asking this because i want to hide the
ActionServlet inside my own Servlet which delegates Requests to
different Servlets, Struts ActionServlet being one of them.
The goal is, to pro
Brian Relph wrote:
Here is a better example of what i am concerned about ...
I send emails in my application, and i use spring to configure a
JavaMailSender - this has a getter/setter for the"from" email address ... as
well, i use a singleton bean for this object (this is the spring default
nowa
hns wrote:
hi
how can i access current action name from struts.xml file
How would you define 'current action' in the context of a configuration
file? Can you explain what you're trying to achieve?
L.
-
To unsubscribe, e-ma
--- Jaarthy <[EMAIL PROTECTED]> wrote:
> Can we pass dynamic values to the begin and end in c:forEach tag?
Sure. Might have been quicker to just try it.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I saw a thread go by while back about Struts and web services, and
someone suggested Spring and CXF. I've got Spring integrated into my
Struts (2.0.11) application, but I'm not familiar with CXF at all, nor
have I actually ever put together a web service before.
Does anyone know of a good guide t
Sorry for the confusing question. I tried this again and it seemed to
work fine
(i.e. accessing objects that are not on the top of the value stack via
ognl expressions
via the ${foo} syntax in freemarker templates)
However, I did find a couple of places where I had to use the struts
prope
Can we pass dynamic values to the begin and end in c:forEach tag?
Aarthy
Allen, Daniel wrote:
>
> You mean in JSPs, using the Struts taglib? There's an example that I
> think is similar to what you're looking for at the bottom of the
> page[1]. For large n, it would be sort of ugly, though, s
Thank you Dale!
Dale Newfield schrieb:
Kropp, Henning wrote:
I must add that s:set printed out the string as well. I am not quit
sure if its supposed to, but it did.
I glossed over this--I wouldn't use s:set here, but rather c:set.
Neither one should print the value (are you sure you didn't
ok.No matter. Thank you
Paranoid_Fabio wrote:
>
> Hello. I know it's really simple but I cannot make it works.
> What I want to do is to put a radio button with two options, in a form.
> The attribute that will be set by selecting one of the two options is a
> boolean. That's it, simpy a true/f
Kropp, Henning wrote:
I must add that s:set printed out the string as well. I am not quit sure
if its supposed to, but it did.
I glossed over this--I wouldn't use s:set here, but rather c:set.
Neither one should print the value (are you sure you didn't do that for
debugging inside your custom
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote:
> Now it's ok. Only a question... your advice works but the jsp editor says
> me: Syntax Error in EL. Do you know why?
Probably because the "#" character is used by other ELs and most JSP editors
don't parse OGNL as its own EL, let alone its anonymous
Thank you very much. It works now. I tried it before, but instead of what you
suggested me I was trying with:
and it didn't work.
Now it's ok. Only a question... your advice works but the jsp editor says
me: Syntax Error in EL. Do you know why?
(the part in Bold is what the ed
Yes it is. Have you tried something like this:
?
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Paranoid_Fabio <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 28 Feb 2008 09:17:45 -0800 (PST)
> To:
> Subject: Radio button with two boo
I had got the same problem some time ago. I couldn't specify an
expression for the validator to iterate for each element of the
collection. I finally opted for writing a validation method in the
action class.
2008/2/10, j alex <[EMAIL PROTECTED]>:
> I used a custom validator to loop thru each elem
Your requirement, as stated, is more complicated than is worth doing.
IMO you'd be better served doing this conversion on the server side.
Dave
--- Varun Ratra <[EMAIL PROTECTED]> wrote:
> Thanks for the valuable information. The problem is my company is not using
> ajax at the moment. Is there
Hello. I know it's really simple but I cannot make it works.
What I want to do is to put a radio button with two options, in a form. The
attribute that will be set by selecting one of the two options is a boolean.
That's it, simpy a true/false choice.
1) Is it possible to declare a static list dir
like:
click me
?
musachy
On Thu, Feb 28, 2008 at 11:43 AM, Varun Ratra <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks for the valuable information. The problem is my company is not using
> ajax at the moment. Is there any other way to call the javascipt funtion in
> struts tag. I have a jav
Here is a better example of what i am concerned about ...
I send emails in my application, and i use spring to configure a
JavaMailSender - this has a getter/setter for the"from" email address ... as
well, i use a singleton bean for this object (this is the spring default
nowadays), so a malicious
Hi,
Thanks for the valuable information. The problem is my company is not using
ajax at the moment. Is there any other way to call the javascipt funtion in
struts tag. I have a java script function placed in web project. This
function returns a value
function shortenTextLength(text, textlength)
--- Brian Relph <[EMAIL PROTECTED]> wrote:
> So i guess this is a legitimate security concern. Is there a
> cleaner way to do this? Is there annotations support for it?
Not that I'm aware of.
Note that setting a DAO-style class with a string would most likely end in an
exception.
Dave
-
It is, but when it arrives will depend largely on how quickly outstanding
issues get fixed.
Al.
- Original Message -
From: "Joakim von Brandis" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, February 28, 2008 4:13 PM
Subject: Re: Any idea on Struts 2.1.1
Jeromy
The best place to follow the progress of 2.1 releases is on the dev
list. You can find searchable archives for the dev list at
http://struts.apache.org/dev/dev-mail.html
Nils-H
On Thu, Feb 28, 2008 at 5:13 PM, Joakim von Brandis <[EMAIL PROTECTED]> wrote:
> Jeromy Evans wrote:
> >
> > Don also
So i guess this is a legitimate security concern. Is there a cleaner way to
do this? Is there annotations support for it?
On Thu, Feb 28, 2008 at 10:05 AM, Daniel Baldes <[EMAIL PROTECTED]> wrote:
> Brian Relph wrote:
> > Hi, I am concerned about security in my struts2 actions. I am using
> sp
Jeromy Evans wrote:
>
> Don also said on the dev list that he hoped to volunteer time to make a
> release this weekend (2 Mar 08). As always it's not a certainty though.
Is there a GA release of struts 2.1 on the way?
Joakim
begin:vcard
fn:Joakim von Brandis
n:von Brandis;Joakim
org:mnemonic a
Brian Relph wrote:
Hi, I am concerned about security in my struts2 actions. I am using spring
to auto-wire my actions by name, but this leads me to believe that a
malicious user can set action properties that i do not want them to. For
example, i have a .jsp with a form input of "name". My act
Hi, I am concerned about security in my struts2 actions. I am using spring
to auto-wire my actions by name, but this leads me to believe that a
malicious user can set action properties that i do not want them to. For
example, i have a .jsp with a form input of "name". My action has a
getter/sett
2008/2/28, Yuval Rotem <[EMAIL PROTECTED]>:
>
> Can I download the sources in a zip file from somewhere?
Not yet, at least for Struts 2.1.1 that has not been released yet.
Sorry, but you *have to* use a SVN client.
Antonio
I will be out of the office starting 02/28/2008 and will not return until
03/04/2008.
Please contact CONMHJ for issues with DST testing environments.
Please contact RBN for all other issues.
-
To unsubscribe, e-mail: [EMAIL P
Hi,
We are trying to figure out how Ajax validation works in Struts 2.1 (If
I understand correctly it is very different than 2.0).
I know I can browse the sources in
http://svn.apache.org/viewvc/struts/struts2/trunk/, but since the SVN
web view doesn't include any search option, it's very hard to
If you have your service and DAO defined in a Spring application context you
would normally have the DAO as a property of your service or you would have
a constructor-ref for it. Spring has to be bootstrapped somehow so use
either the spring plugin and define your action as a spring bean and
refere
Please ask this question to Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio
2008/2/28, Pauli Savolainen <[EMAIL PROTECTED]>:
> Hi,
>
> I am attempting to change an existing tiles definition during an execution
> of a Struts action. Example tiles definition:
>
>
>
>
>
hi
how can i access current action name from struts.xml file
--
View this message in context:
http://www.nabble.com/about-current-action-name-acsess-tp15736383p15736383.html
Sent from the Struts - User mailing list archive at Nabble.com.
Hi,
I am attempting to change an existing tiles definition during an execution
of a Struts action. Example tiles definition:
In the action I want to choose a correct body value based on some
application specific rules. For example if I call: /user/1, the User
action's show method is exe
Dale Newfield schrieb:
Kropp, Henning wrote:
I figured it out. I used for this. Thanks.
That will only work if the value you're trying to pass is a string.
It might also add whitespace to either end of that value (due to the
whitespace inside your s:set
sarat.pediredla wrote:
I saw some posts on the dev list by Don B who talked about a 2.1.1 release
but JIRA still seems to say that 2.1.1 is pending? Can anyone confirm if
2.1.1 is released or if not, any ideas on timescales?
Don also said on the dev list that he hoped to volunteer time to m
Thanks for the reply..
Actaully am able to call dao layer from my service implementation and able
to insert values into db with and without using springs.Its working fine in
both scenarios.
NExt i need to authenticate this registered user and should log
in.Trying this and vill get back
I saw some posts on the dev list by Don B who talked about a 2.1.1 release
but JIRA still seems to say that 2.1.1 is pending? Can anyone confirm if
2.1.1 is released or if not, any ideas on timescales?
-
---
http://hedgehoglab.com
http://fixxbugs.com - bug tracking
RajiR,
How is the service implementation layer being instantiated?
The best way is to use the Spring plugin as defined at
http://struts.apache.org/2.0.11/docs/spring-plugin.html to inject objects
into your actions manage dependancy injection.
For more on interceptors and what they do, see
http
hi
i have develop one little application using struts 2.0.11 mailreader
example
in struts.xml
i have define
/Login.jsp
Welcome
MainMenu
now i have also add
in struts.xml
portfolmain.jsp
so when i click on m
52 matches
Mail list logo