RE: about current action name acsess

2008-02-28 Thread Kedar Choudhary
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

Re: about current action name acsess

2008-02-28 Thread hns
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

Re: Context problem in struts2

2008-02-28 Thread Dave Newton
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

Re: Context problem in struts2

2008-02-28 Thread jignesh.patel
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

Re: Struts serving both HTML requests and web service?

2008-02-28 Thread Randy Burgess
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

Re: expression validator

2008-02-28 Thread Randy Burgess
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

Re: expression validator

2008-02-28 Thread mojoRising
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";>

Re: expression validator

2008-02-28 Thread Randy Burgess
>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

RE: Struts serving both HTML requests and web service?

2008-02-28 Thread Allen, Daniel
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

Re: Struts serving both HTML requests and web service?

2008-02-28 Thread Randy Burgess
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

expression validator

2008-02-28 Thread mojoRising
(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

Re: action security

2008-02-28 Thread Dave Newton
--- 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

Re: Context problem in struts2

2008-02-28 Thread Laurie Harper
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

Re: Configure ActionServlet without struts-config.xml?

2008-02-28 Thread Laurie Harper
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

Re: action security

2008-02-28 Thread Laurie Harper
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

Re: about current action name acsess

2008-02-28 Thread Laurie Harper
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

RE: Looping in Struts2

2008-02-28 Thread Dave Newton
--- 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,

Struts serving both HTML requests and web service?

2008-02-28 Thread Allen, Daniel
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

Re: freemaker model population

2008-02-28 Thread Darren James
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

RE: Looping in Struts2

2008-02-28 Thread Jaarthy
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

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
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

Re: Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
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

Re: [struts] parameter to custom tag

2008-02-28 Thread Dale Newfield
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

Re: Radio button with two boolean choices

2008-02-28 Thread Dave Newton
--- 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

Re: Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
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

Re: Radio button with two boolean choices

2008-02-28 Thread Randy Burgess
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

Re: Dynamic indexed field name in validation?

2008-02-28 Thread Gabriel Belingueres
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

Re: How to call javascript from Struts tag

2008-02-28 Thread Dave Newton
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

Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
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

Re: How to call javascript from Struts tag

2008-02-28 Thread Musachy Barroso
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

Re: action security

2008-02-28 Thread Brian Relph
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

Re: How to call javascript from Struts tag

2008-02-28 Thread Varun Ratra
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)

Re: action security

2008-02-28 Thread Dave Newton
--- 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 -

Re: Any idea on Struts 2.1.1

2008-02-28 Thread Al Sutton
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

Re: Any idea on Struts 2.1.1

2008-02-28 Thread Nils-Helge Garli Hegvik
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

Re: action security

2008-02-28 Thread Brian Relph
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

Re: Any idea on Struts 2.1.1

2008-02-28 Thread Joakim von Brandis
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

Re: action security

2008-02-28 Thread Daniel Baldes
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

action security

2008-02-28 Thread Brian Relph
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

Re: Struts 2.1 sources - can I download them in a zip file?

2008-02-28 Thread Antonio Petrelli
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

Steve Bott is out of the office.

2008-02-28 Thread Steven_Bott
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

Struts 2.1 sources - can I download them in a zip file?

2008-02-28 Thread Yuval Rotem
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

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread Randy Burgess
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

Re: Struts 2 Tiles 2 Runtime composition

2008-02-28 Thread Antonio Petrelli
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: > > > > >

about current action name acsess

2008-02-28 Thread hns
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.

Struts 2 Tiles 2 Runtime composition

2008-02-28 Thread Pauli Savolainen
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

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
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

Re: Any idea on Struts 2.1.1

2008-02-28 Thread Jeromy Evans
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

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread RajiR
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

Any idea on Struts 2.1.1

2008-02-28 Thread sarat.pediredla
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

Re: HOw to send form parameters to dao in struts2 with hibernate?

2008-02-28 Thread sarat.pediredla
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

About Login Interceptor

2008-02-28 Thread hardik_982
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