Re: session based pojo as form variables

2008-09-19 Thread Dave Newton
As was mentioned to you previously, at the very least you shouldn't use "#session..." as the name; you should just use "session" if you've implemented a getSession() method. That may be enough; can't test at the moment. Dave --- On Fri, 9/19/08, 928572663 <[EMAIL PROTECTED]> wrote: > I am using

Re: session based pojo as form variables

2008-09-19 Thread 928572663
I am using Zero Configuration (annotations), so no struts.xml necessary. formDetails.jsp "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ taglib prefix="s" uri="/struts-tags"%>

Re: ScopedModelDriven issues

2008-09-19 Thread Rubbinio
I had same issue. Make sure you do not do a new ModelClass() anywhere in your action. Then it will work Tracy12 wrote: > > Hi, > > Has any one successfull getting ScopedModelDriven with > session scoped form beans, > > I tried several times and it failed, the values only > remains for reques

Re: session based pojo as form variables

2008-09-19 Thread Gabriel Belingueres
Could you post your struts.xml, action and (one of the) JSP? 2008/9/19 928572663 <[EMAIL PROTECTED]>: > It's still not working - same error. > > I tried to revert my JSP back to using the #session.formBean syntax, and > now at least I am able to see my default values in the form again. > > But wh

Re: double action's method invocation

2008-09-19 Thread Laurie Harper
Looking for markup issues like that is my standard advise in these circumstances, so the surprising thing to me is that only FF3 exhibited the 'errant' behaviour. Glad you found the problem, though, anyway. L. Gianluca Musella wrote: It's works fine! I can't believe. It's functionally usual

Re: Define specific .properties file for

2008-09-19 Thread Laurie Harper
Dimitris Mouchritsas wrote: Hi all, we have a disclaimer page in our application (using struts 1.3.8) and we want to display a possibly rather large legal text. So the thought is to create a disclaimer.properties file with only one key in it and for that specific jsp have a to load this discla

Re: tags nested

2008-09-19 Thread Laurie Harper
Alejandro77 wrote: Good morning. I want to make the following order: " /> With this order pretend that the value of attribute value of the first tag is dynamic but gives an error. Does anyone know how I get that? That's not legal JSP syntax, which is why you get an error. For this specific

Re: session based pojo as form variables

2008-09-19 Thread 928572663
It's still not working - same error. I tried to revert my JSP back to using the #session.formBean syntax, and now at least I am able to see my default values in the form again. But when I submit the form with changes, the framework calls my Action's setSession() function, but the data val

Re: VisitorFieldValidator - different validation scenarios

2008-09-19 Thread Laurie Harper
Gundersen, Richard wrote: Hi I'm using the VisitorFieldValidator (annotations) to push validation over to my model object in my Action. However, I want the validation rules in my model object to work differently depending on which Action method is being called. What's the best way of doing t

Re: Configure result to go back to page I came from....

2008-09-19 Thread Laurie Harper
The simplest thing would be to have your 'switchlanguage' action method return a 'well known' result name, and map that result in each action. Since this is for input forms, you probably already have an 'input' result mapped for each action, so you could just have 'switchlanguage' return 'input

afted double method invocation the double listener definition

2008-09-19 Thread Gianluca Musella
After we, indeed you, solved the double action's method invocation problem, I post a very similar problem: all listener defined in my application (the tiles listener and a custom listener) although correctly defined in my web.xml, are viewed twice by the web container during the application startu

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
It's works fine! I can't believe. It's functionally usual to have in my jsps an , an img tag with empty src attribute. Actually, as in the referenced document by Piotr is explained, this cause a double request by the FF3. Infact I've changed my jsp which now doens't put the tag at all if there i

RE: double action's method invocation

2008-09-19 Thread Martin Gainty
Piotr- pete freitag has a solution.. http://www.petefreitag.com/item/312.cfm 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 confident

Re: double action's method invocation

2008-09-19 Thread Piotr Matkowski
check this out: http://brian.pontarelli.com/2006/05/02/is-your-browser-requesting-a-page-twice/ looks like your problem Piotr W dniu 19 września 2008 17:05 użytkownik Martin Gainty <[EMAIL PROTECTED]>napisał: > > ..the reason why god made ftp servers and laptops.. > (your choice) > > let me know

RE: double action's method invocation

2008-09-19 Thread Martin Gainty
..the reason why god made ftp servers and laptops.. (your choice) let me know 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 confident

Re: double action's method invocation

2008-09-19 Thread [EMAIL PROTECTED]
I'm out of office, but i come back shortly. Anyway the project is very big (three netbeans pri and one mysql db) i don't know if is convenient for you to deploy it. What i can do? Gianluca Inviato da iPhone Il giorno 19/set/08, alle ore 15:52, Martin Gainty <[EMAIL PROTECTED]> ha scrit

Define specific .properties file for

2008-09-19 Thread Dimitris Mouchritsas
Hi all, we have a disclaimer page in our application (using struts 1.3.8) and we want to display a possibly rather large legal text. So the thought is to create a disclaimer.properties file with only one key in it and for that specific jsp have a to load this disclaimer.properties and get the k

RE: double action's method invocation

2008-09-19 Thread Martin Gainty
source files are missing \AlmayerBaseAction.java:4: package org.almayer.foundation does not exist [javac] import org.almayer.foundation.ServiceLocator; ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
In my app there isn't ajax, nor js of any type, nor dojo. I'm using only the s2 taglibs, and the app config is very simple. Anyway, its true that my app doesn't works with FFX3 and worksfine with IE (with no changes), but the sample app struts2-showcase-2.0.11.2 works well, without the "double-cal

Re: double action's method invocation

2008-09-19 Thread Paweł Wielgus
Hi Radu, I don't claim that ff3 is doing double submit, i claim that when one have problem with double submit and one is using ff3, one should try with other browsers. In case of my team, developer A has problem with double submit, others didn't. Developer A was using ff3, others didn't, when deve

RE: double action's method invocation

2008-09-19 Thread Martin Gainty
GianLuca banning clients that use a particular browser is'nt a viable long-term solution.. interceptors typically dont interact with UI that way (at least in this environment..) can you post the entire jsp (including js ..especially dojo files and which tag libs and .tlds you are using) relev

RE: double action's method invocation

2008-09-19 Thread Radu Solomon
We are using FF3 with Struts 2 project and no issues with double submit so would think is something in the form or application config that makes it double submit. -Original Message- From: Paweł Wielgus [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2008 7:25 AM To: Struts Users Ma

Re: tags nested

2008-09-19 Thread Gabriel Belingueres
If I understood correctly, and without knowing why you only want a single jsp file (main.jsp) for showing different things, the simplest solution I can think of is asking for some value assigned when you click the users or groups links: here goes the users table here goes the groups table

Re: double action's method invocation

2008-09-19 Thread Paweł Wielgus
Everything other than ff3 will work just fine, simply try any other browser. i have no clue what's wrong with ff3 in this matter but we simply banned it in our team. Best greetings, Paweł Wielgus. 2008/9/19 Gianluca Musella <[EMAIL PROTECTED]>: > Yes, I'm using firefox 3. > > Uh, I can't believe,

Re: double action's method invocation

2008-09-19 Thread Gianluca Musella
Yes, I'm using firefox 3. Uh, I can't believe, with IE works Thank you very very very much, Pawel. Gianluca 2008/9/19 Paweł Wielgus <[EMAIL PROTECTED]>: > Hi, > are You using FireFox3 maybe? > We have exactly the same issue - but it was ff3 fault. > Simply try it on other browsers. > >

Re: double action's method invocation

2008-09-19 Thread Paweł Wielgus
Hi, are You using FireFox3 maybe? We have exactly the same issue - but it was ff3 fault. Simply try it on other browsers. Best greetings, Paweł Wielgus. 2008/9/19 Gianluca Musella <[EMAIL PROTECTED]>: > Hello, this is my first post in this list. > > > I'm using S2 2.0.11.2 with Tiles plugin on T

Re: [S2] s:form and title internationalization

2008-09-19 Thread Dave Newton
--- On Fri, 9/19/08, Paweł Wielgus wrote: >> The form element doesn't render a title. [...] > actually it does, i've been using it for a long time. Oh; I thought you meant like a form header type thing; my bad. You could also try using a getText() call in the title, possibly needing %{} to force

double action's method invocation

2008-09-19 Thread Gianluca Musella
Hello, this is my first post in this list. I'm using S2 2.0.11.2 with Tiles plugin on Tomcat. I've a very strange problem. Almost all and elements causes a double action's method activation. For example if I have: mapped in struts.xml in this way:

VisitorFieldValidator - different validation scenarios

2008-09-19 Thread Gundersen, Richard
Hi I'm using the VisitorFieldValidator (annotations) to push validation over to my model object in my Action. However, I want the validation rules in my model object to work differently depending on which Action method is being called. What's the best way of doing this please? Richard Gunderse

Re: [S2] s:form and title internationalization

2008-09-19 Thread Paweł Wielgus
Hi Dave, > The form element doesn't render a title. It's an attribute of the form > element because > it inherits an underlying class covering the HTML tags, but doesn't use it > itself. actually it does, i've been using it for a long time. It works on all my browsers (IE, Mozilla, FF, Chrome).

Re: Performance and High CPU utilization

2008-09-19 Thread Jeromy Evans
Dave Newton wrote: --- On Thu, 9/18/08, sajanv007 wrote: It is a solaris box and has 16 GB memory and 4 CPU it is high end server class machine . Some how I suspect it is the OGNL or Freemarker rendering issue. Perhaps, but if so, I'll stick with my old dev box with a P4 and 2G runnin

Re: tags nested

2008-09-19 Thread Alejandro77
I have divided my site into 3 jsp: left.jsp, header.jsp and main.jsp. I want the main.jsp is the same for the entire application. I have 2 links in the left.jsp. if pulse in the first link, put in the ValueStack a collection called 'users' formed for 'user' object. if pulse in the second link, pu