Re: Struts2 online sources/ ebooks

2009-11-17 Thread emil thushanga
check this one, http://www.rkcole.com/index.html Emil On Wed, Nov 18, 2009 at 10:48 AM, vikrant S wrote: > > Hi Friends, > I am currently learning struts 2 and have developed a small application > using tutorials from > http://www.vaannila.com and http://www.roseindia.net/struts/ . If you know

Question about objects in a JSP

2009-11-17 Thread Jon Wynacht
Hi, I'm working on an old Struts program for a client and I have a question about access objects in a JSP page. There is an Event object which has properties of hour, minute and second. I need to determine if those properties are present and with a value or present and empty. It seems like I c

Re: [ANN] Struts 2.1.8.1 Release

2009-11-17 Thread Wes Wannemacher
On Tuesday 17 November 2009 10:10:01 am Mark Bargen wrote: > Wes Wannemacher wrote: > > ... > > The release is also available from the central Maven repository under > > Group ID "org.apache.struts". > > ... > > Neither artifact jar (primary or -sources assembly) for > struts2-core:2.1.8.1 is pre

Re: Hibernate/Spring

2009-11-17 Thread Burton Rhodes
Oh well... always good to have some comic relief. On Tue, Nov 17, 2009 at 10:20 AM, Musachy Barroso wrote: > I tried for a last time, but no, he is here to stay. > > On Sun, Nov 15, 2009 at 11:15 AM, Musachy Barroso wrote: >> I tried to. I will try again. >> >> musachy >> >> On Sun, Nov 15, 2009

Re: AutoComplete in struts1.1 Can AnyOne Help..

2009-11-17 Thread Paul Benedict
Not in Struts 1.1. But if you upgrade to Struts 1.3, you can edit the TLD file and enable the attribute. Paul On Tue, Nov 17, 2009 at 11:45 PM, Zaheer Mohammad wrote: > Hi Paul, >            Thanks for recommending this site it wil work fine for setting > AutoComplete to True.Actually I was wron

Fwd: AutoComplete in struts1.1 Can AnyOne Help..

2009-11-17 Thread Zaheer Mohammad
Hi Paul, Thanks for recommending this site it wil work fine for setting AutoComplete to True.Actually I was wrong in my Question, I want to set Autocomplete to false(off) to some of my textboxes and i am not using Ajax In my project, is there any method to do it in Struts1.1. Thanks i

Re: AutoComplete in struts1.1 Can AnyOne Help..

2009-11-17 Thread Paul Benedict
I cannot help beyond recommending this web site: http://struts.sourceforge.net/ajaxtags/index.html Paul On Tue, Nov 17, 2009 at 11:05 PM, Zaheer Mohammad wrote: > Hi, >    I am using Struts1.1 in my Project.I want to implement AutoComplete > Functionality to some TextBoxes.Is there AnyMethod to

AutoComplete in struts1.1 Can AnyOne Help..

2009-11-17 Thread Zaheer Mohammad
Hi, I am using Struts1.1 in my Project.I want to implement AutoComplete Functionality to some TextBoxes.Is there AnyMethod to implement this using Struts Html In Struts1.1.Can Anyone Help me. Thanks And Regards Zaheer Mohammad

Struts2 online sources/ ebooks

2009-11-17 Thread vikrant S
Hi Friends, I am currently learning struts 2 and have developed a small application using tutorials from http://www.vaannila.com and http://www.roseindia.net/struts/ . If you know any good links may be tutorials or ebooks Please share it so that I could learn from them Thanks in advance!!! -- Vi

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread musomesa
I think the @OP's difficulty is with the name vs method attributes of the action element so (if I may be excused for borrow Musachy's example) if you have /survey/survey-results.jsp /survey/survey.jsp then the action alias is save (and not per

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread ben_979
Thanks for the replies, I have it working now. I think the problem was that the name I used in the form action (ScheduleDetailAction_update) did NOT have a mapping in my struts.xml file. I had assumed that because the method was eventually being called that I had configured everything correctly

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread Musachy Barroso
It can be done like that as well, but, your first attempt should be better. The "alias" part is the action name, lets say you have an action like this: /survey/survey-results.jsp /survey/survey.jsp you would need to name the validation file "SurveyA

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread ben_979
So it's done strictly by exclusion? I *thought* I had read that the validation could be focused on a specific method through the naming convention of the validation file(s). Is that idea totally wrong? -- View this message in context: http://old.nabble.com/s2%3A-Validation-xml-file-not-being-us

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread Oscar
ben_979 escribió: I'm trying to figure out the validation framework, and I don't have a clear understanding from the docs I've read where I'm going wrong, so if someone could point me in the right direction I'd appreciate it. I'm trying to validate ONLY when a particular method of an action clas

Re: Drop downs not populated after error

2009-11-17 Thread larryreed
There seems to be a related issue now that I am using the Preparable interface. In some circumstances, I am using the "chain" result to keep the state through to the next action. In this case, the prepare method does not seem to be called. The action needs prepare to be called when it is execut

Re: Drop downs not populated after error

2009-11-17 Thread larryreed
Thanks, that's what I needed. Works great! - Original Message - From: "Oscar" To: "Struts Users Mailing List" Sent: Tuesday, November 17, 2009 11:54:07 AM GMT -08:00 US/Canada Pacific Subject: Re: Drop downs not populated after error larryreed escribió: > I'm having a problem wit

Re: Drop downs not populated after error

2009-11-17 Thread Oscar
larryreed escribió: I'm having a problem with the in which the drop downs are populated from a list of database objects. When I first display the screen, the drop downs are properly populated. However, when there is an error in some field, and the page is redisplayed, the drop downs are now empty

Drop downs not populated after error

2009-11-17 Thread larryreed
I'm having a problem with the in which the drop downs are populated from a list of database objects. When I first display the screen, the drop downs are properly populated. However, when there is an error in some field, and the page is redisplayed, the drop downs are now empty. I've narrowed

disable single option in s:radio

2009-11-17 Thread Stephan Eimer
I googled a lot around but couldn't find the answer to the question: how to disable a single option / choice in a s:radio tag? It should look like this: - option 1 - option 2 (should be disabled) - option 3 The list of options comes from an enum and is displayed correct. The standard s:radio disa

Re: Hibernate/Spring

2009-11-17 Thread Musachy Barroso
I tried for a last time, but no, he is here to stay. On Sun, Nov 15, 2009 at 11:15 AM, Musachy Barroso wrote: > I tried to. I will try again. > > musachy > > On Sun, Nov 15, 2009 at 10:08 AM, Alex Siman > wrote: >> >> Can we just remove this "magainty"/"Martin Gainty" from Struts mailing lists?

Re: Problem in uploading file from stand-alone application

2009-11-17 Thread jayakumar ala
Rupesh, Probably you can try this with Apache HttpClient. On Tue, Nov 17, 2009 at 1:45 AM, Rupesh Mankar < rupesh_man...@persistent.co.in> wrote: > Hi, > > I want to upload file on server from stand-alone application (using > HTTPURLConnection). But when I run stand-alone application which uploa

Re: [ANN] Struts 2.1.8.1 Release

2009-11-17 Thread Mark Bargen
Wes Wannemacher wrote: > > ... > The release is also available from the central Maven repository under > Group ID "org.apache.struts". > ... > Neither artifact jar (primary or -sources assembly) for struts2-core:2.1.8.1 is present in the repo. The artifacts are present for the two plugins. E

RE: OGNL expression help

2009-11-17 Thread Neil Aggarwal
> Doesn't help unfortunately as the > length of the string > in characters is not the same as the space required to > display it in full! Have you tried adding 2 or 3 to the length value? Neil -- Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net Host your struts app on a CentOS VP

Re: findForward forwards twice, not once

2009-11-17 Thread Robert Graf-Waczenski
Hi, why does your forward "ShowList" forward to an action url? In good old Struts1 manner, this should not be necessary. Instead, i would implement place-list.jsp in such a way that it extracts all necessary information from the user's session. Your action PlaceAction should then prepare ever

findForward forwards twice, not once

2009-11-17 Thread Peter Schmitt
Hi, I'm new to Struts, using version 1.2.4, so this might in fact be a configuration problem... Here's an extract from my struts-config.xml first: On the page place.jsp, the user can enter a place name. PlaceAction will then load a

Re: Dynamic Message

2009-11-17 Thread vikrant S
Thanks buddy It is working -- View this message in context: http://old.nabble.com/Dynamic-Message-tp26373865p26388558.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Dynamic Message

2009-11-17 Thread carl ballantyne
I think you want to try something like addActionMessage("Yay it worked") in the action. And then in the jsp use to display it. Quoting vikrant S : Hi All, I am using struts2 for my application. However I am stuck at a place. Guys Please Help me out. I have three buttons in my jsp page

Re: Dynamic Message

2009-11-17 Thread vikrant S
Hi All, I am using struts2 for my application. However I am stuck at a place. Guys Please Help me out. I have three buttons in my jsp page and I have defined separate action for each button and using my struts.xml I have mapped these actions to respective methods. Now my question is that when

Re: OGNL expression help

2009-11-17 Thread RogerV
Chris Pratt wrote: > > Like Neil suggested, use "attrib.length()" The extra parens cause OGNL to > call getAttrib().length() rather than getAttrib().getLength(). > (*Chris*) > Thanks, that does work in that the textfield re-sizes according to the length of the string. Doesn't help unfortun

Problem in uploading file from stand-alone application

2009-11-17 Thread Rupesh Mankar
Hi, I want to upload file on server from stand-alone application (using HTTPURLConnection). But when I run stand-alone application which uploads file, I get following exception on server: ---

Re: [S2] Struts Interceptor to refresh Spring Security Context

2009-11-17 Thread Lukasz Lenart
2009/11/16 Relph,Brian : > How does the interceptor object get built? By ObjectFactory or you can use integration with Spring and then it will be built by Spring. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e