AW: STRUTS 1.3.8 Validator ist destroying my SessionToken

2007-08-29 Thread Thomas.Zygadlewicz
It is true.. I guess. When the Struts-Validation fails, the following action-class is still executed - leading to the isTokenValid() Method being Used. The strange thing is : the process stops after the first action-class and returns the validator-errors to the screen. I found a way to forward

Help posting a form with an anchor and targets

2007-08-29 Thread Ivan Fontanals
Hi, I'm trying to send a form from an anchor tag, but I've only archieved to send the form without the targets attribute. When I put the target ID, the form is not sended but the page redirects correctly. Otherwise it works well but the page is not redirected. My code is: s:form id=myForm

Help posting a form with an anchor and targets

2007-08-29 Thread Ivan Fontanals
Hi, I'm trying to send a form from an anchor tag, but I've only archieved to send the form without the targets attribute. When I put the target ID, the form is not sended but the page redirects correctly. Otherwise it works well but the page is not redirected. My code is: s:form id=myForm

Re: Help posting a form with an anchor and targets

2007-08-29 Thread Ivan Fontanals
I've finally found an answer to my question searching in the mail list. Here is the explanation about what is going on and the solution: http://www.mail-archive.com/user@struts.apache.org/msg54844.html Basically the solution consists in not showing the loadingText in the target div, because it

[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng
Hi, I'm able to use type conversion to populate bean into List in the Action. But when I tried to populate bean into a List nested inside another bean, is not working and there's no error printed. May I know how can I implement type conversion for nested bean? Any help would be appreciated.

Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread j alex
I copied over all the FTL files in simple theme to a new directory mytheme and modify the ones i need to ; don't think this is technically extension, but does the job . -Joseph On 8/29/07, Oleg Mikheev [EMAIL PROTECTED] wrote: j alex wrote: Since i cannot use the Ajax/XHTML theme due to UI

Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread j alex
Oleg, If you don't mind can you please paste the script includes and directory structure where you placed the actual files (in relation to the webapp root). I tried going thru the saved HTML output from S2 showcase example and got a bunch of js files ; but not able to place them correctly in the

URL paramters accumulating in a sequence of actions

2007-08-29 Thread Riccardo Mollame
Can anyone explain to a poor newbie why, after calling a sequence of actions, each one passing a set of URL parameters, I end up having in the final URL **all** the parameters called in the previous actions? Thanks in advance. Ric ___

Re: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Antonio Petrelli
2007/8/29, Riccardo Mollame [EMAIL PROTECTED]: Can anyone explain to a poor newbie why, after calling a sequence of actions, each one passing a set of URL parameters, I end up having in the final URL **all** the parameters called in the previous actions? What do you mean with sequence of

RE: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Arnaud Cogoluegnes
To avoid this behavior, use the global settings struts.url.includeParams=none in struts.properties or the attribute includeParams in each url tag (value can be 'none', 'get' or 'all') -Message d'origine- De : Riccardo Mollame [mailto:[EMAIL PROTECTED] Envoyé : mercredi 29 août 2007

Re: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Riccardo Mollame
Yes: there I have a sequence of return SUCCESS all with an actions. Anyway, a good man gave me the probable solution: using the includeParams=none in the s:url tag. Thanks anyway! Ric --- Antonio Petrelli [EMAIL PROTECTED] ha scritto: 2007/8/29, Riccardo Mollame [EMAIL PROTECTED]:

Re: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Antonio Petrelli
2007/8/29, Riccardo Mollame [EMAIL PROTECTED]: Yes: there I have a sequence of return SUCCESS all with an actions. Anyway, a good man gave me the probable solution: using the includeParams=none in the s:url tag. Thanks anyway! Arnaud was right, I thought that you were writing about

Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread afp
Reposting as last post was not very clear Hi, I am trying to add some custom parameters/attributes to the struts2 tags like s:fielderrors / etc... Some tihing like the below wud have been perfect s:fielderrors abc=def / and I shud be able to access the parameter abc from within the ftl

RE: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Riccardo Mollame
Thanks! All my best. Ric --- Arnaud Cogoluegnes [EMAIL PROTECTED] ha scritto: To avoid this behavior, use the global settings struts.url.includeParams=none in struts.properties or the attribute includeParams in each url tag (value can be 'none', 'get' or 'all') -Message

Get the namespace in a jsp

2007-08-29 Thread Phillip Grenier
I am trying to have a single package that can be used in different namespaces. so if it was http://localhost:8080/project/secure/Action.action or http://localhost:8080/project/Action.action when the form is submitted to an action it stays in the correct namespace and also want to switch themes

how to init action form when session expires

2007-08-29 Thread Randy Jonasz
Hello everyone, I have a quick question. When the user session expires and they try to submit a form to the server through an open window, I'm finding my array in my action form is not being populated through the setter method. In fact I'm getting the following exception

Re: how to init action form when session expires

2007-08-29 Thread Antonio Petrelli
Sending the same email 4 times does not help getting an answer... Antonio 2007/8/29, Randy Jonasz [EMAIL PROTECTED]: Hello everyone, I have a quick question. When the user session expires and they try to submit a form to the server through an open window, I'm finding my array in my action

Re: how to init action form when session expires

2007-08-29 Thread Randy Jonasz
oops, sorry. I kept getting errors from the mailserver so i thought the message wasn't getting through. Sorry again, Randy On 8/29/07, Antonio Petrelli [EMAIL PROTECTED] wrote: Sending the same email 4 times does not help getting an answer... Antonio 2007/8/29, Randy Jonasz [EMAIL

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Hi This is the error i get from weblogic console application Error opening /jsp/app/install/Identity.jsp. The source of this error is javax.servlet.ServletException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException:

Re: 2 jsp files using the same form

2007-08-29 Thread Anna Simbirtsev
This is how the submit button is defined: var:varimage srcKey=update.button.image altKey=update.button.image.alt border=0/ varimage is defined as a tag in app.tld file: tag namevarimage/name tagclass/struts/taglib/varTag/tagclass attribute nameaccesskey/name

Re: how to init action form when session expires

2007-08-29 Thread Pavel Sapozhnikov
Yea you gotta filter that stuff in your gmail On 8/29/07, Randy Jonasz [EMAIL PROTECTED] wrote: oops, sorry. I kept getting errors from the mailserver so i thought the message wasn't getting through. Sorry again, Randy On 8/29/07, Antonio Petrelli [EMAIL PROTECTED] wrote: Sending

Using ActionMapper interface

2007-08-29 Thread Pavel Sapozhnikov
Hey guys I need some help using the ActionMapper interface so I know I need to implement which means I need to make those two methods. Now I am not exactly sure what those methods do. The ultimate goal that I want to achieve is I want in my struts.xml to have one action per Action class (real

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread John Liptak
Know bug CR321242. Vote for it if you have a support contract. -- View this message in context: http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355 Sent from the Struts - User mailing list archive at Nabble.com.

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Done, voted for it On 8/29/07, John Liptak [EMAIL PROTECTED] wrote: Know bug CR321242. Vote for it if you have a support contract. -- View this message in context: http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355 Sent from the Struts - User mailing list

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Paul Benedict
Can I actually see the line of the JSP that fails? You showed me the stack trace. I want to see the actual JSP line. On 8/29/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Done, voted for it On 8/29/07, John Liptak [EMAIL PROTECTED] wrote: Know bug CR321242. Vote for it if you have a

Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey guys. Could somebody provide some input on validation chaining in s2. Here's what I need to do. So there has to be a base validation which would validate variable x and variable y then every other class has its own validation for example Login class would validate if username and password

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Hi I cannot give you the actual JSP as this JSP is not with in my application, this is a JSP in weblogic console application, It can only be obtained from BEA i guess. Ashish On 8/29/07, Paul Benedict [EMAIL PROTECTED] wrote: Can I actually see the line of the JSP that fails? You showed me

struts 2 locale in action and jsp

2007-08-29 Thread GEDA
I know I have to use the getText() method in action in order to get a message from the package.properties file. The same for jsp with s:text. However, I don't know yet how to switch between different locales. Can you please give me a hint ? :) Thanks. Geo -- View this message in context:

[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng
Hi, I'm trying to use type conversion for nested bean. I have no problem populating the bean if the List is not nested inside another bean. Does struts 2 able to perform type conversion for nested bean? Any help would be appreciated. Thanks. JSP ---

ant, maven and creating war's

2007-08-29 Thread sp4rc
Hello listmembers, I am new to all this java webapplication stuff, but I hope you can help me to get into this great technologies. So far I have got my tomcat server (5.5.23-r6) up and runnig, struts-2.0.9 is on my system (gentoo-linux) and I was able to deploy the sample war blank ([1] tree

Info about Calendar with Struts 1.x

2007-08-29 Thread john lee
could anyone tell me the info about calendar tag with Struts 1.x if any ? tks in advance john - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.

[OT] Re: ant, maven and creating war's

2007-08-29 Thread nuwan chandrasoma
Hi, Just google it, here are some of the links that may be useful to you http://www.roseindia.net/jboss/buildingwebapplicationwithant.shtml http://www.onjava.com/pub/a/onjava/2003/01/08/tomcat4.html?page=1 Thanks, Nuwan On 8/29/07, sp4rc [EMAIL PROTECTED] wrote: Hello listmembers, I am

Re: ant, maven and creating war's

2007-08-29 Thread Jim Cushing
I haven't touched Ant in years, so I can't help you much there, but with Maven 2, it's as simple as running 'mvn package'. The POM itself says whether the project produces a JAR, WAR, or some other artifact, so package always builds the appropriate artifact for the project. For a web app,

Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread Oleg Mikheev
j alex wrote: If you don't mind can you please paste the script includes and directory structure where you placed the actual files (in relation to the webapp root). I tried going thru the saved HTML output from S2 showcase example and got a bunch of js files ; but not able to place them

How format a string when it is Displayed?

2007-08-29 Thread sriharsha . chevuru
Hi, I need help in formatting a String, when it is displayed. Here is what i am doing: bean:write name=someObject property=exampleSSN/ It is stored asa continous unformatted String an hence displayed as 'X'. Now, I want my social security number to be displayed as (XXX) - XX - .

some advanced questions in Struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey guys I have posted before but I think I got no responses not sure what happened so here I go with more information this time. I have several questions about Struts2. Basically what I am trying to do is to learn Struts2 on my own by trying to migrate a small piece of our existing application

Can anyone explain the leading r in OGNL list syntax?

2007-08-29 Thread james_carbon5
I was trying to figure out how to use a static map, that I created in a freemarker template, to populate a drop down list, a la: @s.select ... list=#{foo:foo stuff,bar:bar stuff} / After an hour or so of banging my head into my keyboard I found

Re: Can anyone explain the leading r in OGNL list syntax?

2007-08-29 Thread Dale Newfield
I've not written much freemarker, but I'd bet the r is a typo. The important difference between the two tags you have are the single quotes around the value of the list attribute. james_carbon5 wrote: @s.select ... list=#{foo:foo stuff,bar:bar stuff} / @s.select ... list=r'#{foo:foo

Re: ant, maven and creating war's

2007-08-29 Thread sp4rc
Thanks for the input. I think I will have to start with the total basics before moving on to struts. Anyhow I googled for any tutorials, sources I just got more and more frustrated, as I just dont know where to start. Has anyone a got starting point, link, etc. for me? On Wed, 2007-08-29 at 13:20

Re: How format a string when it is Displayed?

2007-08-29 Thread Josh Vickery
http://cwiki.apache.org/confluence/display/WW/text will do what you need. Take look at the example with resource property format.money and note the link to http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html which has the info you need to build a format pattern. You could also

Multiple Struts Config - Using the form tag

2007-08-29 Thread chris . stewart
Hi all, I have an application which uses multiple struts-config files. I'm trying to add a new one in which there will be an action which I want to be called when a particular jsp submit button is depressed. As I would with a single struts-config file, I'm just constructing a form tag like

Re: ant, maven and creating war's

2007-08-29 Thread Jim Cushing
Have you checked out the Bootstrap Tutorial yet? It gives you a great intro to Struts 2, and a bit of Maven 2 at the same time. http://struts.apache.org/2.x/docs/bootstrap.html Ian Roughley has put out a book, which you can download for free (though I'm sure he'd love it if you purchased a

Re: some advanced questions in Struts2

2007-08-29 Thread j alex
Pavel, Are you sure you pasted the right validation xml entries for username and password ** As you can see for userName and password we have this attribute called page ** -- i'm not able to understand this. On 8/29/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Hey guys I have posted

Re: some advanced questions in Struts2

2007-08-29 Thread Pavel Sapozhnikov
Yes that validation.xml that I pasted is from Struts1 and in Struts1 you have this attribute called page in Struts2 you don't have that. On 8/29/07, j alex [EMAIL PROTECTED] wrote: Pavel, Are you sure you pasted the right validation xml entries for username and password ** As you can see

Re: Validation chaining in struts2

2007-08-29 Thread j alex
Sounds very similar to the problem i had but no straightforward solution yet ; i've put this for enhancement on JIRA - https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901 Can you please check if this is what you need

use of s:head

2007-08-29 Thread Pedro Herrera
What´s the meaning o s:head. In wich cases I use it ?? Thanks Herrera -- View this message in context: http://www.nabble.com/use-of-s%3Ahead-tf4349849.html#a12393924 Sent from the Struts - User mailing list archive at Nabble.com.

Re: Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey Joseph. I think thats something similar to what I am asking but I am not even quiet sure. I was also wondering what if I have a method in class and I have ClassName-methodName-validation.xml file which would validate those base things so then in struts.xml I can do

Re: Can anyone explain the leading r in OGNL list syntax?

2007-08-29 Thread james_carbon5
Thanks for the response Dale. The r isn't a typo. If I remove it I get: javax.servlet.ServletException: freemarker.core.ParseException: Error on line ... Found string literal: foo Expecting: number etc... Thanks, James DNewfield wrote: I've not written much freemarker, but I'd bet the r

Re: Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey Joseph sorry I think I need something exactly like this: https://issues.apache.org/struts/browse/STR-443 On 8/29/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Hey Joseph. I think thats something similar to what I am asking but I am not even quiet sure. I was also wondering what if I have

multi-page forms

2007-08-29 Thread Pavel Sapozhnikov
In Struts1 you have the advantage to do create multi-page forms and validate them too. Can you have the same effect in Struts2. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Re: Can anyone explain the leading r in OGNL list syntax?

2007-08-29 Thread Musachy Barroso
Do it like: list=[EMAIL PROTECTED]@{'Regular' : 'Regular', 'Decaf': 'Decaf'}} musachy On 8/29/07, james_carbon5 [EMAIL PROTECTED] wrote: Thanks for the response Dale. The r isn't a typo. If I remove it I get: javax.servlet.ServletException: freemarker.core.ParseException: Error on line ...

Re: STRUTS 1.3.8 Validator ist destroying my SessionToken

2007-08-29 Thread Paul Benedict
Are you saying the execute() method is being called even when validation fails? On 8/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It is true.. I guess. When the Struts-Validation fails, the following action-class is still executed - leading to the isTokenValid() Method being Used. The

Re: Info about Calendar with Struts 1.x

2007-08-29 Thread Paul Benedict
No such tag exists. On 8/29/07, john lee [EMAIL PROTECTED] wrote: could anyone tell me the info about calendar tag with Struts 1.x if any ? tks in advance john - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to

Re: Can anyone explain the leading r in OGNL list syntax?

2007-08-29 Thread james_carbon5
Thanks for the response Musachy. So, is the r shorthand to let freemarker know that my list is a LinkedHashMap? If not, what is the r doing? Thanks again, James Musachy Barroso wrote: Do it like: list=[EMAIL PROTECTED]@{'Regular' : 'Regular', 'Decaf': 'Decaf'}} musachy On

[S2] Writing tests that assert actions render their freemarker view without exceptions

2007-08-29 Thread xianpants
We're using Struts 2 with Freemarker for our views, and we're running into the classic problem of introducing invalid property references (expressions) when we refactoring the backing-model. In some cases property names have changed and in others, a more significant hunk of an expression may be

Re: Can anyone explain the leading r in OGNL list syntax?

2007-08-29 Thread Dave Newton
I'd probably try asking this on a FreeMarker list since the exception after removing the r came from FreeMarker. --- james_carbon5 [EMAIL PROTECTED] wrote: Thanks for the response Musachy. So, is the r shorthand to let freemarker know that my list is a LinkedHashMap? If not, what is the r

Re: moduling

2007-08-29 Thread mystruts2004
In the web.xml, for the ActionServlet pass the parameter as follows for configuring multiple modules in one application: init-param param-nameconfig/param-name param-value /WEB-INF/struts-config.xml, /WEB-INF/struts-config-module1.xml,

action mapping roles attribute in struts 2

2007-08-29 Thread akash agrawal
Hi, In struts 1.x there used to be roles attribute which can be used to associate role information for an action. Does Struts 2 also supports that? And if it does how do we use that in Struts 2? Basically I want to authorize action based on user role. Thanks in advance. -Akash

Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread afp
Guys any ideas on how to do the below?? afp wrote: Reposting as last post was not very clear Hi, I am trying to add some custom parameters/attributes to the struts2 tags like s:fielderrors / etc... Some tihing like the below wud have been perfect s:fielderrors abc=def /

Re: Unsolved datepicker problem

2007-08-29 Thread vamsi
Thanks for response, I placed that one too. still it is not displaying the datetimepicker. I am using acegi security, and I have also some dependency on struts1. - Original Message - From: Andvar Woo [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent:

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread vamsi
Can you look at this input must be followed by either attribute specifications, or /. at - Original Message - From: Ashish Kulkarni [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, August 29, 2007 7:18 PM Subject: Re: Struts and Weblogic 10.0

Re: How format a string when it is Displayed?

2007-08-29 Thread vamsi
I think we can't format a String using bean:write previously I searched for this but I didn't found any solution as it is not supporting any formatting for Strings. - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, August 29, 2007 11:35 PM

Loading.. message while ajax request.

2007-08-29 Thread Hari Prasad
I'm using Dojo for ajax. and when i send ajax request to the server , its displaying Loading... message on top of the screen how can i avoid that? -- View this message in context: http://www.nabble.com/%22Loading..%22-message-while-ajax-request.-tf4351950.html#a12400577 Sent from the Struts -

Re: action mapping roles attribute in struts 2

2007-08-29 Thread Vinny
Is this what you are looking for? http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/RolesInterceptor.html On 8/29/07, akash agrawal [EMAIL PROTECTED] wrote: Hi, In struts 1.x there used to be roles attribute which can be used to associate role information for

Re: Loading.. message while ajax request.

2007-08-29 Thread Jeromy Evans
Set the attribute showLoadingText=false on the div/submit/a tag. If you're using an IDE you should be able to list the attributes available for each tag (as looks like this attribute not documented on the wiki) Hari Prasad wrote: I'm using Dojo for ajax. and when i send ajax request to the

Re: Unsolved datepicker problem

2007-08-29 Thread Jeromy Evans
Suggestions: Confirm that the dojo javascipt is actually included in the html output Use FireBug to examine if the requests to get the javascript files and images are working (and if not, why not) Create a minimal test application and get it working first. vamsi wrote: Thanks for response, I

Please Unsubscribe me from this List.

2007-08-29 Thread Hemant Johnson Burgula
Hi, Could you pleaes let me know as how i can Unsubscribe from this mailling list. Thanks, Hemant - Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.

Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread Jeromy Evans
It's not as easy as that. Each struts2 tag is: - defined in the struts-tags.tld file, including all available attributes; and - backed by one or more classes that implements the tag's functionality Unfortunately, you can't add an attribute and expect it to be available in the FTL. Instead