Re: checkboxlist formatted vertically?

2007-05-16 Thread Nuwan Chandrasoma
Hi, Is this struts 2 or 1.x? in struts 2., we can create a theme , i think this may help you, but i am not sure this is the best solution for your problem http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme Thanks, Nuwan - Original Message - From: "Allen Gilliland" <[E

Re: RE Displaytag

2007-05-16 Thread Nuwan Chandrasoma
Hi, They are inside the .jar files that comes with the struts dist, Thanks, Nuwan - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, May 17, 2007 2:04 AM Subject: Re: RE Displaytag Where does one download the struts-bean.tld

Re: Struts 2 migration ISSUES- missing properties in ...

2007-05-16 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/textfield.html you must be looking at the wrong , tag Thanks, Nuwan - Original Message - From: "tom tom" <[EMAIL PROTECTED]> To: "struts 2.0 forum users" Sent: Thursday, May 17, 2007 1:30 AM Subject: Struts 2 migration ISSUES- missing properties in

Re: [OT]Re: Session Expires too early! Help!

2007-05-16 Thread Nuwan Chandrasoma
Hi, what i think is, when your page refresh an action is called, in that action you may be resetting or removeing this attribute or there must be some kind of code that is resetting this, as of i know there is no setting in web.xml or struts-config where you can set refresh settings. Thanks,

Re: [OT]Re: Session Expires too early! Help!

2007-05-16 Thread vikas rao
Yes, This is what is happening, I seperated out the condition for userType from getSession and it turns out that it is the userType and not the session which is showing NULL and hence logs out. The user type becomes null when the screen refreshes, so its a problem with the refresh, this is what i

RE: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-16 Thread Jason Wyatt
Marco & Musachy, I tried adding includeParams="all", as suggested, but this just included the params that were used to hit the page in the first place. I managed to get something almost working now... The submit button causes the form to be posted to the action and refreshes the tab correctly. Th

[OT]Re: Session Expires too early! Help!

2007-05-16 Thread Nuwan Chandrasoma
This is not a struts related issue, check your logic in the code, the attribute userType may be not in the session. Thanks, Nuwan - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, May 17, 2007 5:32 AM Subject: Re: Session Exp

Re: Session Expires too early! Help!

2007-05-16 Thread vikas rao
I did check the session time out tag, it is: 3600 But inspite of this, error comes from my logout.java: if ((request.getSession() == null) || (request.getSession().getAttribute("userType") == null)) { System.out.print(" userType SESSION AT

Re: Session Expires too early! Help!

2007-05-16 Thread Nuwan Chandrasoma
Hi, look at you web.xml, you may have specified session time out time as 2 mins. 30 if you set this as 30, the session will time out after 30 min of idle time, Thanks Nuwan - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: Sent: Thursday, May 17, 2007 4:47 AM

Session Expires too early! Help!

2007-05-16 Thread vikas rao
Hi, I am working on a bug in my application, the problem is, the session expires every 2 minutes or so and I have to log back in to continue, this is very frustrating. How do I go about debugging this? Which areas of the code do you guys think would be best to check for errors? Any inputs would be

Re: RE Displaytag

2007-05-16 Thread vikas rao
Where does one download the struts-bean.tld file and the others?? Thanks, Vikas. On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, With this declaration, your server has to have acces to the Internet, to download the tld and so one. If you don't have this acces, try to download th

Struts 2 migration ISSUES- missing properties in ...

2007-05-16 Thread tom tom
Hi, We have the following in the struts 1.x when I try to convert this to S2 I can't see the size and the maxlength properties for e.g. What I can see is only name and id attributes only. I thought S2 tag library got all. Let me know how to overcome this. thanks

Re: [s2] ognl.NoSuchPropertyException with param passing redirect-action

2007-05-16 Thread Dave Newton
--- Jon Wilmoth <[EMAIL PROTECTED]> wrote: > It appears to work. I'm just leary of having > stacktraces in my log file ;) They're good for you; exercises disk failure modes. Definitely see if turning devmode off "fixes" it; there are a fair number of messages that are useful in... um... dev mo

Re: [s2] ognl.NoSuchPropertyException with param passing redirect-action

2007-05-16 Thread Jon Wilmoth
It appears to work. I'm just leary of having stacktraces in my log file ;) If turning devmode off will eliminate it I'll try that. - Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2007 4:1

Re: Displaytag

2007-05-16 Thread Zoran Avtarovski
We use displaytag with S2 with no issues. When deployed on Tomcat 6 we did have to use this tag declaration <%@ taglib uri="/WEB-INF/displaytag-el-12.tld" prefix="display" %> And place a copy of the tld file in the WEB-INF directory. Z. > Dear Struts users, > > I've recently downloaded display

Re: Action View wiring

2007-05-16 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > For a moment I thought I am the only one struggling > with this. I'm pretty sure you're not! It gave me nothing but grief for a few weeks, and I still get a little confused sometimes. One of the issues is that the tag library docs don't specify which tag

checkboxlist formatted vertically?

2007-05-16 Thread Allen Gilliland
is there any way to make checkboxes created from a checkboxlist formatted vertically by adding a after each checkbox or some other means. right now it just dumps them all out in a row. same thing for the radio button options. -- Allen

Re: [s2] ognl.NoSuchPropertyException with param passing redirect-action

2007-05-16 Thread Dave Newton
Does it not work or are you just getting the WARN? With devmode turned on I'm pretty sure I've seen the same logs for previous versions as well. d. --- Jon Wilmoth <[EMAIL PROTECTED]> wrote: > I'm getting the following stacktrace using 2.0.7 > while trying to pass action values during an action

[s2] ognl.NoSuchPropertyException with param passing redirect-action

2007-05-16 Thread Jon Wilmoth
I'm getting the following stacktrace using 2.0.7 while trying to pass action values during an action redirect result (action config below) and I'm wondering if this is a bug with the test build I'm using or if this is user error (probably the later). I followed the http://www.mail-archive.com/

Re: Action View wiring

2007-05-16 Thread Mansour
Dave: For a moment I thought I am the only one struggling with this. Thank you for the clarification. Do you know any tutorial with examples ? Dave Newton wrote: --- Roger Varley <[EMAIL PROTECTED]> wrote: Is there any clear documentation that will explain when you need to use '%', '$' or

Re:

2007-05-16 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Say, if I want to display an item's value from the > map, what is the syntax? > I tried this, but obviously this was too intuitive. > That's what I do. With names changed to protect the innocent, here's one of my textfields: Each map entry is a collection of obje

Re:

2007-05-16 Thread stanlick
Awesome! It looked like using the Map saved time and I was looking for a second opinion. I have it working the way you have identified it here, but just wanted to make sure it was not some twisted end-around solution that people would laugh at later! Say, if I want to display an item's value fr

Re: [s2] Is there a struts2 best practices site?

2007-05-16 Thread Ted Husted
There's a FAQ and a Cookbook area * http://struts.apache.org/2.0.6/docs/faqs.html * http://struts.apache.org/2.0.6/docs/cookbook.html As to best practices, I started a list of "Struts 2 Tips", but I had to set it aside to meet some other deadlines. * http://husted.com/struts/tips/index.html -

struts2 vs jsf?

2007-05-16 Thread אלחנן מעין
first of all , i know it's not all or nothing, i know that struts2 has a plug-in for jsf, my question ism why? what does JSF connection to struts2 gives me? i know that struts2 tags give me automatic validation messages atttached to each control, automatic layout (too restrictive) ajax connect

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
OK, now I'm going to show my lack of knowlege, whats the best way to access the map? I was going to do the following in an iterator over an array of composite objects constructed in the display action; would using a map improve on this? Dave Newton wrote: --- Laurie Harper <[EMAIL PROTE

Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-16 Thread Marco Carnevale
Jason, Using the includeParams="all" attribute of the s:url tag will probably give you what you need. Marco On 5/15/07, Jason Wyatt <[EMAIL PROTECTED]> wrote: Hi Marco, I tried using the code template you gave, but couldn't get it to do a *form submit* to the action... It just seems to j

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Just as a little added pointer, instead of > CompositeObject[] getPairs() you could make that > Map getPairs(), where the > map key would be the field ID. That would handle > non-zero-based, non-sequential field IDs cleanly. Sorry, that's what I wa

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Laurie Harper
Just as a little added pointer, instead of CompositeObject[] getPairs() you could make that Map getPairs(), where the map key would be the field ID. That would handle non-zero-based, non-sequential field IDs cleanly. There are some caveats if you would need the map key to be non-String valued b

datagrid doubt

2007-05-16 Thread Viplav Kallepu
Hi , i wish to implement datagrid in struts ...query's, validations, type of boxes and other things will be in XML file ...I have to parse it and know the query and depending on the query i have to get the fields. I have to give an edit option for the fields. At present what I am doing is I am p

Re:

2007-05-16 Thread Laurie Harper
But it is simple :-) The note in the docs about 'If the list is a Map...' is just telling you that the tag will automatically use the map key/value pairs to fill the option tags -- i.e. that these are (roughly) equivalent: If 'list' points to a collection that is not a Map, then you need to

Re: how I can I have validation skip for the first page load?

2007-05-16 Thread Laurie Harper
Sounds like an unrelated issue to me. There's not enough information here to tell what the problem is. For example, what annotations did you configure? How did it not work? What did you do that did work? What does your configuration and action code look like? Start a new thread with a complete

Re: forwarding to another action passing parameters

2007-05-16 Thread Dave Newton
--- Christopher Schultz wrote: > Dave Newton wrote: >> Someone else may have a better idea, but I think >> this is just the nature of the way HTTP works: you >> can forward or redirect; forward means you get the >> same request, redirect means you get a new one. > > I'm not entirely sure this is

Re: how I can I have validation skip for the first page load?

2007-05-16 Thread Laurie Harper
Daniel Henry wrote: Dave Newton wrote: --- Daniel Henry <[EMAIL PROTECTED]> wrote: I would like to allow my forms to load once before being validated. That is the form should only be validated upon submission, not on load. The way that I'm accomplishing this right now is by creating a sep

Re:

2007-05-16 Thread stanlick
Thanks d! It appears that if neither you nor I can easily drop a on a page and wire it up without fuss-n-muss, perhaps it is causing others grief too. I just think something this typical should be simple to code. Scott On 5/16/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED]

Re: forwarding to another action passing parameters

2007-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > Someone else may have a better idea, but I think this is just the > nature of the way HTTP works: you can forward or redirect; forward > means you get the same request, redirect means you get a new one. I'm not entirely sur

Re: [S2] Action returns blank page

2007-05-16 Thread mhargus
Ah, yes. Looks like another case of user error. My pages are located underneath the WEB-INF folder of the web app, which I mapped like so: WEB-INF/pages/clientSearch.jsp This worked fine, until I added the namespace to the package, which resulted in URLs like this: /packagename/WEB-INF/pages/

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
A... (lightbulb moment). I thought you could only use array indexes in the value attribute of s: tags. So if I have a composite object which had fieldName and fieldValue I could put; CompositeObject[] getPairs() in the action which uses the JSP to display the data and setPairs(Composit

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
Just off of the top of my head I would probably use a collection or map of name/values... so the tag might look something like: etc. (with minor syntax changes depending on how things are shuffled to the JSP). d. --- Al Sutton <[EMAIL PROTECTED]> wrote: > The main part I'm having trouble wit

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
The main part I'm having trouble with is keeping the association between the editable field name and the editable value, so if we start with Phone1 : 555-12345 And the user changes the field name and value to be Fax : 555-12346 Getting the action to recognise that it should update the both val

Re: [S2] Action returns blank page

2007-05-16 Thread mhargus
Looks like what I've got. My thought is that this is related to other parts of the application, like Sitemesh or Acegi (security). I'll try eliminating those as variables and post my findings. Thanks for the info. Matt sr wrote: > > I use a name space as well and it works just fine. > Here i

Re: forwarding to another action passing parameters

2007-05-16 Thread Dale Newfield
Gena Batsyan wrote: As I said, if using chain, the whole load of parameters is applied to the second action, which I want to avoid, I want it to get nothing except of what I'm explicitly define. It sounds like you're trying to use the wrong tools. You're looking for a way to trigger the crea

RE: [s2] Can someone with permissions update the wiki

2007-05-16 Thread Al Sutton
Reported with Key WW-1928 and assigned to you. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: 15 May 2007 22:02 To: user@struts.apache.org Subject: Re: [s2] Can someone with permissions update the wiki Hmm, the struts.apache.org/2.x/docs site is

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > That's just what I was looking for, thanks Dave. I > was looking for a way to do it with tags, so > I'm now more confident it's best done without > them as opposed to thinking I might have missed > something. Well, I'm just one opinion :) It could still

RE: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
That's just what I was looking for, thanks Dave. I was looking for a way to do it with tags, so I'm now more confident it's best done without them as opposed to thinking I might have missed something. Thanks again, Al. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sen

[S2] UTF8 with ajax results

2007-05-16 Thread Birol Toepper
Which Ajax Framework is in use ? If it´s an JSON-Respone-Object: see RFC 4627 for details. http://www.ietf.org/rfc/rfc4627.txt?number=4627 regards, toepper - Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies u

Re: Interceptor execution

2007-05-16 Thread Ray Clough
I'm just mix-and-matching - not using S1 plugin. But the S2 Filter, mapped to "/*" ought to catch all requests, because filters execute before servlets. Therefore I wonder why the LoginInterceptor doesn't get executed on S1-generated requests (ie. those with a *.do url, or even with a *.jsp url)

Re: [S2] Action returns blank page

2007-05-16 Thread sr
I use a name space as well and it works just fine. Here is the snippet: /index.jsp etc. When I call the action: localhost:8080/projectname/mynamespace/myIndex.action mhargus wrote: > > I'm trying to split my Struts 2 app up a bit using namespaces, but have > r

Unexpected Exception catched: Error setting expression

2007-05-16 Thread sr
Hello, I use struts 2.0.6. Below is a record from the log file when I call a page with parameter ac=XXX [#|2007-05-15 16:10:30,860|ERROR|com.opensymphony.xwork2.interceptor.ParametersInterceptor|setParameters:198|ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error set

Re: Displaytag

2007-05-16 Thread Mark Shifman
Displaytag works fine for me in struts1.3 just doing the things below. Perhaps you need to re-deploy your webapp or re-start tomcat. mas Balazs Michnay wrote: Dear Struts users, I've recently downloaded displaytag-1.1 and followed all the instructions on how to install it. It would have been t

[S2] Action returns blank page

2007-05-16 Thread mhargus
I'm trying to split my Struts 2 app up a bit using namespaces, but have run into a bit of trouble I have an action mapping that works fine without a namespace, but when I move that same action to another package with a namespace, the action returns a blank page. I'm not seeing any errors in the

Re: [Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Dave Newton
S2? Build an array or map of the form fields and provide an appropriate setter in the action. Probably easiest to build the form tags by hand (i.e., non tags). So you'd iterate over the dynamic fields, create the tags. On submit you'd end up with a list (or map, or whatever) of the values. Did t

Re: forwarding to another action passing parameters

2007-05-16 Thread Dave Newton
--- Gena Batsyan <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > --- Gena Batsyan <[EMAIL PROTECTED]> wrote: > > Messages for that are generally stored in a > > "flash"-like context (session but with automagic > > removal after the next request completes). > that' Interesting. Where can I read

[Fwd: Best method for dynamic fields round trip]

2007-05-16 Thread Al Sutton
Any takers?, even saying "Nope, not possible in a nice way" would be useful. --- Begin Message --- I've got an application which has a dynamic number of customisable fields attached to each record. The customisable fields have a display name, an internal name, and a value. Some records have no fie

Re:

2007-05-16 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > 1. Where is the getPetDao() method expected to be > coded? I'd like to "set" this data from my Tiles > Controller. It can be coded anywhere, but like most of the other tags, is expected to be accessible via the OGNL stack. > 2. Where do the properties listKey/list

nightly build dist location empty

2007-05-16 Thread Jon Wilmoth
I'm interested in some of the bug fixes going into 2.1.x (particularly around conversion errors w/ the datetimepicker tag). http://struts.apache.org/dev/builds.html says there's a nightly build of the development tree, but when I looked on http://people.apache.org/builds/struts/nightlies/ all

Re:

2007-05-16 Thread stanlick
Dave you are a funny guy! Let's try this again. On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Can someone identify the attributes of this example code, preferably in the documentation itself? http://struts.apache.org/2.x/docs/select.html 1. Where is the getPetDao() metho

Re: forwarding to another action passing parameters

2007-05-16 Thread Gena Batsyan
Dave Newton wrote: --- Gena Batsyan <[EMAIL PROTECTED]> wrote: This is a simple requirement, that is needed in almost any webapp I can imagine, and I absolutely believe something like this must be a core feature. I'm not entirely sure I complete understand what you're asking for. Th

Re: Action View wiring

2007-05-16 Thread Dave Newton
--- Roger Varley <[EMAIL PROTECTED]> wrote: > Is there any clear documentation that will explain > when you need to use '%', '$' or '#' in Struts2 .jsp > pages as I'm finding it all very confusing. I thought there was, but I can't access it at the moment. In a nutshell, if you use ${} you're usi

Re: How to pass a javascript array to formbean array ?

2007-05-16 Thread Aviskaos
Thank you for your help. It works fine for me! Thomas Ramapuram escribió: We do this quite often. We have a method which goes through the array and inserts the elements as new dom input objects of type hidden and name the name of the element in the form bean with an array index. eg. do this

Re:

2007-05-16 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Can someone identify the attributes of this example > code, preferably in the documentation itself? > > http://struts.apache.org/2.x/docs/select.html > > > name="petIds" The action property. >list="petDao.pets" Where the list comes from (the list

[S2] menu

2007-05-16 Thread Stefano Greco
Hello, there is a way to have menu using tags in Struts2 or we must use external tags libraries? Thanks Stefano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RE Displaytag

2007-05-16 Thread Antonio Petrelli
2007/5/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Hi, With this declaration, your server has to have acces to the Internet Wrong, as long as the TLD file is in the META-INF folder of DisplayTag package, the URI will point to the local TLD file.

Re: forwarding to another action passing parameters

2007-05-16 Thread Dave Newton
--- Gena Batsyan <[EMAIL PROTECTED]> wrote: > This is a simple requirement, that is needed in > almost any webapp I can imagine, and I absolutely > believe something like this must be a core > feature. I'm not entirely sure I complete understand what you're asking for. The *most* common solutio

RE Displaytag

2007-05-16 Thread MLENEVEUT
Hi, With this declaration, your server has to have acces to the Internet, to download the tld and so one. If you don't have this acces, try to download the tld file, add it in your WEB-INF/tld folder, and add the mapping in your web.xml. Regards, Michaël Balazs Michnay <[EMAIL PROTECTED]>

Re: Displaytag

2007-05-16 Thread Antonio Petrelli
2007/5/16, Balazs Michnay <[EMAIL PROTECTED]>: Any ideas what to do now? Asking the displaytag mailing list would be nice! :-P Antonio

Re: how I can I have validation skip for the first page load?

2007-05-16 Thread richard jackson
I'm having a similar issue with S2 as well. When using the validation xml it will work but when using annotations it does not. Any clues to this would be help full. Thanks Richard Jackson On 5/16/07, Daniel Henry <[EMAIL PROTECTED]> wrote: Dave Newton wrote: > --- Daniel Henry <[EMAIL PROTECTE

Re: Why I cannot use Interceptor to change the value of Action?

2007-05-16 Thread kongxx
Thanks for your help, I got it. Dave Newton-4 wrote: > > --- kong xx <[EMAIL PROTECTED]> wrote: >> Why the interceptor cannot change the value after >> invode invocation.invoke() method? > > http://struts.apache.org/2.x/docs/writing-interceptors.html > > Note in particular the "big yellow b

Displaytag

2007-05-16 Thread Balazs Michnay
Dear Struts users, I've recently downloaded displaytag-1.1 and followed all the instructions on how to install it. It would have been too nice if it had worked immediately, but I get this annoying error message all the time. I ask you guys how to solve this, because I found no posts on this spec

Re: Action View wiring

2007-05-16 Thread Roger Varley
On 16/05/07, Mansour <[EMAIL PROTECTED]> wrote: Mansour wrote: I found it. I'll post it just in case someone needs it. I used "%{id}" instead of "${id}" and EL expression is evaluated immediately on the first load. I don't know why. I 'd love to hear explanation form someone. But it's working aft

Re: Struts 2, Popup window ?

2007-05-16 Thread Roger Varley
1. I am on a page and would like the user to click on a link which would invoke my popup window picker. Sorry, but what is a popup window picker? I've a need to display popup windows in my application & I've tried googling and can't find anything. Incidentally, has anyone tried overriding the

user@struts.apache.org

2007-05-16 Thread stanlick
Can someone identify the attributes of this example code, preferably in the documentation itself? http://struts.apache.org/2.x/docs/select.html Is there an expectation that a getPetDao() exists somewhere? Also, what is listKey/listValue and what does the discussion concerning (if list is an

Struts 2, Popup window ?

2007-05-16 Thread Will Berger
I am trying to accomplish the following: 1. I am on a page and would like the user to click on a link which would invoke my popup window picker. 2. The popup window is an Action that allows the user to make a multi selection. 3. After the user selects his values and clicks ok, I would like the P

Re: datetimepicker dateformat problem

2007-05-16 Thread Musachy Barroso
Then you are probably another victim of: https://issues.apache.org/struts/browse/WW-1917 only work around is to have a String property for the date, or define your own type converter. regards musachy On 5/16/07, David Harland <[EMAIL PROTECTED]> wrote: Sorry Musachy that was a typo I mean't

Re: how I can I have validation skip for the first page load?

2007-05-16 Thread Daniel Henry
Dave Newton wrote: --- Daniel Henry <[EMAIL PROTECTED]> wrote: I would like to allow my forms to load once before being validated. That is the form should only be validated upon submission, not on load. The way that I'm accomplishing this right now is by creating a separate action to loa

Re: form is not getting submitted

2007-05-16 Thread Frank W. Zammetti
Is there any particular reason your doing the submit via Javascript? If not, I'd suggest using a plain old submit button and see if you still have the problem. If you do have a reason for doing it this way, try giving the form an id and submit it via document.getElementById("xxx").submit() ..

Re: AJAX query

2007-05-16 Thread Frank W. Zammetti
When you say your "updating it using AJAX", do you mean you are making an AJAX request and putting the results into oamHeaderDateTimeInfo? Or do you mean you are making an AJAX request who's response is generated by this JSP? If the former, then it makes perfect sense: userData() is a server-

RE: datetimepicker dateformat problem

2007-05-16 Thread David Harland
Sorry Musachy that was a typo I mean't displayFormat. If I use displayFormat="dd/MM/" I get a convertor error when I post the form. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 14:19 To: Struts Users Mailing List Subject: Re: datetimepicker date

AJAX query

2007-05-16 Thread Kavita Mehta
I have a code in JSP file <%= userDate() %> and I'm updating it using AJAX . but surprisingly, the control doesnt go to this userDate() function again ..due to which my date time is not gettingupdated . Pls help. Thanks Kavita *DISCLAIME

forwarding to another action passing parameters

2007-05-16 Thread Gena Batsyan
This is a Struts 2 question. I'm looking for a common solution to the problem stated in the subject. The easiest way to explain what exactly I want is with an example. I have two actions: 1) ListAction, that displays a list of database entries. 2) CreateAction, that receives input from a form, c

Re: datetimepicker dateformat problem

2007-05-16 Thread Musachy Barroso
use "displayFormat" musachy On 5/16/07, David Harland <[EMAIL PROTECTED]> wrote: How can I format the displayed date? -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 14:10 To: Struts Users Mailing List Subject: Re: datetimepicker dateformat problem

RE: datetimepicker dateformat problem

2007-05-16 Thread David Harland
How can I format the displayed date? -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 14:10 To: Struts Users Mailing List Subject: Re: datetimepicker dateformat problem The dateFormat should not be used and will be removed. Date will always be submitt

Re: datetimepicker dateformat problem

2007-05-16 Thread Musachy Barroso
The dateFormat should not be used and will be removed. Date will always be submitted as RFC 3339. musachy On 5/16/07, David Harland <[EMAIL PROTECTED]> wrote: Hi, If I use the datetimepicker and add the dateFormat="dd/MM/" attribute. When the form is posted I get a convertor error. If I l

Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-16 Thread Musachy Barroso
If you are using IE make sure you set showLoadingText="false"(nasty difference with FF), and yes, it should work just assigning the form id to the formId attribute, something like: musachy On 5/15/07, Jason Wyatt <[EMAIL PROTECTED]> wrote: Thanks Martin, Yes, I

Re: how I can I have validation skip for the first page load?

2007-05-16 Thread Dave Newton
--- Daniel Henry <[EMAIL PROTECTED]> wrote: > I would like to allow my forms to load once before > being validated. > That is the form should only be validated upon > submission, not on load. > The way that I'm accomplishing this right now is by > creating a separate > action to load the form,

how I can I have validation skip for the first page load?

2007-05-16 Thread Daniel Henry
Hello, I would like to allow my forms to load once before being validated. That is the form should only be validated upon submission, not on load. The way that I'm accomplishing this right now is by creating a separate action to load the form, however this is starting to clutter up the stru

Re: Why I cannot use Interceptor to change the value of Action?

2007-05-16 Thread Dave Newton
--- kong xx <[EMAIL PROTECTED]> wrote: > Why the interceptor cannot change the value after > invode invocation.invoke() method? http://struts.apache.org/2.x/docs/writing-interceptors.html Note in particular the "big yellow box" section about when the "invoke" method returns! d. _

Why I cannot use Interceptor to change the value of Action?

2007-05-16 Thread kong xx
I need to use Interceptor to change a value of Action. For example, below is my intercept method. public String intercept(ActionInvocation invocation) throws Exception { String result; result = invocation.invoke(); MyAction action = (MyAction)invocation.getAction();

ValueStack - retrieve parent object inside s:iterator

2007-05-16 Thread Michał Letyński
Hi. The code: On this rendered page i had a tag which format and display properties of this object. I retrieve those fields,properties in this way: stack.findValue("field") where stack is a ValueStack object. So i had an access to all fields of this object, but i want get the object not

Re: expression evaluation, injection

2007-05-16 Thread Jaan Tark
my question, my answer :) made a mistake by trying to escape ... rgds On 16.05.2007 12:52, Jaan Tark wrote: hi in a jsp file: how can i inject the index' value to 'myarray' index rgds - To unsubscribe, e-mail: [EMAIL

Redirecting from mapping error exceptions

2007-05-16 Thread meeboo
Hey all I have the following lines in Struts.xml /index But it won't catch exceptions where the user has typed in an unmapped address, all I get is There is no Action mapped for namespace / and action name xxx (with status report 500) Can I somehow redirect all these excep

expression evaluation, injection

2007-05-16 Thread Jaan Tark
hi in a jsp file: how can i inject the index' value to 'myarray' index rgds - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 2 and Velocity

2007-05-16 Thread chetanjshah
Hi, Has anybody successfully used Velocity with Struts 2? I understand that there is built in support for Velocity in Struts 2. Can you point me to some online examples that I can use to see the use of Velocity with Struts 2? Thanks, CS

RE: [s2] break up a large struts.xml file into smaller pieces : extends problem

2007-05-16 Thread David Chisholm
One more thing - once I upgraded to xwork 2.0.2, I was able to include my default/base package include file first. -- David -Original Message- From: David Chisholm [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 4:29 AM To: 'Struts Users Mailing List' Subject: RE: [s2] break

RE: [s2] break up a large struts.xml file into smaller pieces : extends problem

2007-05-16 Thread David Chisholm
There's a known bug in the parsing of the struts.xml file, which I believe has been fixed in the 2.0.2 version of the xwork library, that prevents it from finding the packages that you define in struts.xml and later extend. However, I was able to work around this problem by putting my own default

[s2] break up a large struts.xml file into smaller pieces : extends problem

2007-05-16 Thread MLENEVEUT
Hi all, I try to separate the modules of my app in differents xml files, but the extends seems to have problems. Struts.xml :

RE: Flexible textarea

2007-05-16 Thread Jose Cardoso
Hi there ! No need to reply the "Flexible textarea" question. It was a matter of counting the number of words and passing it as a string to the jsp value for the cols bit. Like: : Thanks anyaway Jose -Original Message- From: Jose Cardoso [mai

Flexible textarea

2007-05-16 Thread Jose Cardoso
Hi everyone ! I want to create a non-fixed size textarea. I want it to resize itself depending on the amount of text received. For example if it receives 20 characters the size should be different to when it receives 200 characters without the need of scrolling. Is there functionality for it

Using jetty, struts2 with minimal spring and struts2 XML configuration for TDD (AJAX)

2007-05-16 Thread Kristian.Rosenvold
I am trying to: 1. Instantiate jetty from code (easy) 2. pre-instantiate proper controller class (with mock data and without spring) (easy) 3. Setup a minimal hard-coded struts action that will invoke the controller instance and render the jsp. I am trying to do it inside jetty but all I need is su

datetimepicker dateformat problem

2007-05-16 Thread David Harland
Hi, If I use the datetimepicker and add the dateFormat="dd/MM/" attribute. When the form is posted I get a convertor error. If I leave it as the default format there is no problem. Does anyone know why please. Thanks Dave. _

Re: Interceptor execution

2007-05-16 Thread Laurie Harper
Ray Clough wrote: I've got a large S1 app into which I'm putting S2 features - starting with a How? Are you using S2 with the S1 plugin? Or just putting both versions into one WAR and mix'n'matching? LoginInterceptor, because the S1 security-implementation was NG. The S2 NG? No Good? Nex

  1   2   >