Memcached

2008-08-15 Thread Frans Thamura
hi there anyone can get the idea, how to make S2 apps run cool fast and amazing i read about memcached from Dave slide of Blogs.sun.com, and there is also hibernate-memchaced and there is spymemcached. any glue is it possible s2 cached by memcached, and what is the benenfit -- -- Frans Tha

RE: validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread Martin Gainty
it must be true..i took a business course and according to the book..there are people who are paid for work..(..not here unfortunately..) Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the offic

RE: validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread Dave Newton
Wait... you guys get PAID to work?!?! --- On Fri, 8/15/08, Martin Gainty <[EMAIL PROTECTED]> wrote: > From: Martin Gainty <[EMAIL PROTECTED]> > Subject: RE: validation: fieldexpression doesn't get executed if stringlength > validation fails > To: "Struts Users Mailing List" > Date: Friday, Aug

RE: validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread Martin Gainty
yep..i need a secretary...know anyone that wants to work for free? Thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential

RE: validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread Dave Newton
I think you might have replied to the wrong message? Dave --- On Fri, 8/15/08, Martin Gainty wrote: > 2 solutions > 1)cookies > 2a)store old windows value > session.put("windowId",1); > 2b)open next window in new window > 2c)windows.open('_blank') > 2d)onload="session.put("windowid",2); > test w

RE: validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread Martin Gainty
2 solutions 1)cookies 2a)store old windows value session.put("windowId",1); 2b)open next window in new window 2c)windows.open('_blank') 2d)onload="session.put("windowid",2); test windowid anyone? Martin __ Disclaimer and confidentiality note Everyth

Re: validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread Gabriel Belingueres
Besides the 3-8 thing there (which I suppose is a typo), String comparison with == works well for me: Password must be the same 2008/8/15, natalia_ <[EMAIL PROTECTED]>: > > I want all validation on 2 fields to take place, I am not short-circuiting > any. But it looks like

RE: Object put in HttpSession can't be found by S2

2008-08-15 Thread Martin Gainty
bookmark this page! http://struts.apache.org/2.x/docs/accessing-application-session-request-objects.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This tra

Re: Object put in HttpSession can't be found by S2

2008-08-15 Thread Musachy Barroso
use "#session.skillsFound" or "#session[''skillsFound']" musachy On 8/15/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > Hi! > > Shouldn't Struts 2 be able to find objects stored at session level > just by using the name? > > In my action I put a Set called "skillsFound" in the HttpSession. Then

Object put in HttpSession can't be found by S2

2008-08-15 Thread Ylva Degerfeldt
Hi! Shouldn't Struts 2 be able to find objects stored at session level just by using the name? In my action I put a Set called "skillsFound" in the HttpSession. Then I want to access it (and iterate through it) from a jsp, but this line of code gives a False result: Is there something I've for

validation: fieldexpression doesn't get executed if stringlength validation fails

2008-08-15 Thread natalia_
I want all validation on 2 fields to take place, I am not short-circuiting any. But it looks like the behavior is such that if stringlength fails the fieldexpression doesn't fire. Only if the field satisfies the length requirement then I see the result of fieldexpression to appear. I tried to put

Re: Session ID

2008-08-15 Thread Hrvoje Ban
On Fri, Aug 15, 2008 at 2:39 PM, "Stephan Schröder" <[EMAIL PROTECTED]> wrote: > Try this one: > ServletActionContext.getRequest().getSession().getId(); > > /Stephan That's what I was looking for. Thanks! - To unsubscribe, e-mail

Re: Struts2 tags loops

2008-08-15 Thread Zart Colwing
Filipe David Manana-2 wrote: > > Nop. Neither way works. > > > > > > This has a single iteration, and the value outputted is the value of > the variable (10 for example). > You can achieve what you expect with the following code in your JSP: --- OR --- you can publish a Coun

Re: Validation referencing problem, using annotations

2008-08-15 Thread Randy Burgess
You need to use the VisitorFieldValidator annotation for objects referenced from the action. See http://struts.apache.org/2.0.11.2/docs/visitorfieldvalidator-annotation.html . The form doesn't look right nor does your annotation; why do you have asterisks in the field name and why is type<[EMAIL PR

RE: Datetimepicker conversion problem

2008-08-15 Thread Martin Gainty
you can modify the /simple/datetimepicker.ftl to check the dojo value for null e.g. assuming your jsp references a nameValue parameter change <#if parameters.nameValue?if_exists != ""> value="${parameters.nameValue?html}"<#rt/> assyming you want the default to be 01/01/2001 change the

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Stephan Schröder
> Stephan, are you getting this exception ("URI is not hierarchical") too? actually i did, i just checked the logs (catalina.out). But the last time was on July 22th. But i have some more straight forward errors now: Caught exception while loading file actions/security/Login-register-validation

[OT] Re: Disabling input based on other input with Struts/javascript

2008-08-15 Thread Dave Newton
Personally I'd use something like jQuery, set the onclick handlers in the document load, and use styles more effectively. Maybe asking on a client-oriented group/list would give you more ideas. Dave --- On Fri, 8/15/08, DominicGarda wrote: > I am trying to create jsp pages that are forms for wo

Re: Datetimepicker conversion problem

2008-08-15 Thread JC Oosthuizen
Hi All, I managed to get a workaround and understands the problem a bit better now. The displayFormat is not only used to format the date on the display side but is also used to format the data that comes from the action. If I specify a value, the registered converter will be called but the date

Select tag questions

2008-08-15 Thread David Barron
I'm not exactly a newbie with struts but I do have what probably amount to newbie questions about the select tag and how to populate it. My action form contains fields called selectedTabs and unselectedTabs, both of which are arrays of Strings. I'd like to build a jsp page that displays the conten

Disabling input based on other input with Struts/javascript

2008-08-15 Thread DominicGarda
I am trying to create jsp pages that are forms for workers at a plant to fill out. If they click the No radio button I need to disable the rest of the fields in that row. If they click the Yes radio button thereafter, i need all the input fields in that row to be re-enabled. Here is my code which

Re: Session ID

2008-08-15 Thread Stephan Schröder
> That would work for a action, but how to it for interceptor? Try this one: ServletActionContext.getRequest().getSession().getId(); /Stephan Original-Nachricht > Datum: Fri, 15 Aug 2008 10:27:35 +0200 > Von: "Hrvoje Ban" <[EMAIL PROTECTED]> > An: "Struts Users Mailing List"

Re: Struts2 Portlet - pre/post render, pre/post action hooks?

2008-08-15 Thread Nils-Helge Garli Hegvik
I think you should be able to write an interceptor to do this. Take a look at [1] and [2] for some information about how it works and how to write custom interceptors. All the information you need to access should be available in the invocation context. You should also take a look at the PortletAct

Re: [S2]Validation with xml file not working

2008-08-15 Thread Ylva Degerfeldt
Ok, I found it. But (as the book said) , "validation" comes before "workflow" in the "validationWorkflowStack", so there has to be some other explanation for the exception. /Ylva On Fri, Aug 15, 2008 at 1:59 PM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Am Freitag, 15. August 2008 00:22:01 schrie

Re: [S2]Validation with xml file not working

2008-08-15 Thread Torsten Krah
Am Freitag, 15. August 2008 00:22:01 schrieb Stephan Schröder: > i don't know which interceptors are on your default stack. Does 'workflow' > come after 'validation'? Look into struts-default.xml in the struts-2.x.jar file, there you can see all stacks defined with their interceptors. -- Bitte

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Ylva Degerfeldt
About the interceptors on the default stack I don't know how to check that since it's built in. But "Struts in Action" says that in the struts-default.xml, the validation interceptor comes before the workflow interceptor. And I don't think that's the problem anyway since simple validation is workin

Re: Session ID

2008-08-15 Thread rajanikanth786
Hi, For ActionClass implement ServletRequestAware then one abstract method is created for httpServletRequest, and it implement that method. By using that httpServletRequest? u can call ur session variable httpServletRequest.getSession(false).getAttribute(SessionId); In our project im getting

Datetimepicker conversion problem

2008-08-15 Thread JC Oosthuizen
Hi All, I am using a datetimepicker on my jsp. The field containing the date is of type org.joda.time.DateTime. Struts does not know how to convert DateTime to and from Strings so I created my own Converter and it works fine when I use a textfield, but gives me a ParseException when using a datet

Re: Struts2 Portlet - pre/post render, pre/post action hooks?

2008-08-15 Thread Torsten Krah
Am Freitag, 15. August 2008 08:11:42 schrieb Nils-Helge Garli Hegvik: > I guess that depends on what you're trying to achieve. Interceptors > are typically used for before/after functionality. I want to intercept the dispatching of the "Render" and "Action" phase of the portlet, to inject Securit

Re: Session ID

2008-08-15 Thread rajanikanth786
Hi, Can u tell me where you are unable to get the Session ID in struts2. thanks, rajanikanth

Re: Problem with Struts2 tag

2008-08-15 Thread rajanikanth786
Hi, ? With struts2 tag im unable to call javascript function, eventhough i called like this. But javascript is not invoked. I want to know whether any javascript function we can use for . Thanks & Regards, RajaniKanth Teppala.

Re: Session ID

2008-08-15 Thread Hrvoje Ban
On Fri, Aug 15, 2008 at 9:47 AM, Chris Pratt <[EMAIL PROTECTED]> wrote: > I usually implement ServletRequestAware so that I can call > request.getSession().getId(). I would love to see them add that value to > the SessionMap but it's not there at the moment. > (*Chris*) That would work for a act

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Stephan Schröder
actually, now i have the same problem (or a variation of it) :-) I develop under Vista with eclipse. When i deploy the webapp from eclipse (to Tomcat6) validation works fine. But when i export to war-file and deploy it on my xubuntu laptop with Tomcat6, validation is omitted. The validation-fil

Re: Session ID

2008-08-15 Thread Chris Pratt
I usually implement ServletRequestAware so that I can call request.getSession().getId(). I would love to see them add that value to the SessionMap but it's not there at the moment. (*Chris*) On Fri, Aug 15, 2008 at 12:45 AM, Hrvoje Ban <[EMAIL PROTECTED]> wrote: > Hi! > > How can I get session

Re: Problems with sx tags

2008-08-15 Thread Jeromy Evans
oscar perez wrote: One of the problems is that if in the returned AJAX content is included any sx tag then if there is any javascript in the returned content this simply dissappears. I tried all the combinations with executeScripts separateScripts with no success however.. I've created sever

Session ID

2008-08-15 Thread Hrvoje Ban
Hi! How can I get session ID from inside a Struts2 interceptor? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]