Re: Input names in Multi Language in a single form like name in English & Japan

2007-09-05 Thread Laurie Harper
nagesh.kumar wrote: Hi All, I need to take input from same form ->like user name in English & Japan , How can I support this by using Struts 1.2x. I don't understand the question... Do you mean you need to have two input fields, one for the English name and one for the Japanese name?

Re: Simple Struts 2.0.x tag question. "/>

2007-09-05 Thread Laurie Harper
Kenton wrote: I have a .jspx file in my Struts 2.0.x app. This doesn't work: I get this error (both editor and at runtime): The value of attribute "src" associated with an element type "null" must not contain the '<' character. (The above should regular non-escaped HTML, in

Re: lazy-loading s:tree

2007-09-05 Thread Laurie Harper
Grr. This is a mailing list, not an IRC channel. If you don't get a response to a query it's probably because either (a) nobody who can help has checked the mailing list yet or (b) you haven't provided enough information. Reposting every few hours with "I haven't had a reply yet" isn't going to

Input names in Multi Language in a single form like name in English & Japan

2007-09-05 Thread nagesh.kumar
Hi All, I need to take input from same form ->like user name in English & Japan , How can I support this by using Struts 1.2x. Thanks & Regards Nagesh Kumar Reddy. + CONFIDENTIALITY NOTICE & DISCLAIMER The contents of this e-mail are confiden

Re: Using JSTL Expression Language with Struts 2 tags

2007-09-05 Thread Zoran Avtarovski
That just sounds ridiculous. Because of the possibility of end users injecting malicious OGNL we won't be able to use JSP expression language. Pardon me for being blunt but isn't the obvious solution to fix the underlying vulnerability in OGNL rather than crippling JSP and Freemarker use in struts

Re: Date validation (month and day)

2007-09-05 Thread Hiroyuki Suzuki
My problem now is how to validate the entered date so that it will check if the EndDate is higher than the StartDate.. -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514017 Sent from the Struts - User mailing list archive at Nabble.c

Re: Date validation (month and day)

2007-09-05 Thread Hiroyuki Suzuki
I already solved it, in my form I added another field (maxDay1 and maxDay2) that will return OK and NG, i used this field in my validation.xml using validwhen, when the field is equal to OK, then it is valid, if it is NG, it is invalid.. This is my code, it also checks number of days in february

Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Paul Benedict
Tim, I've always wanted to post information about upgrading from 1.1. to 1.3. If you have time, please email us the instructions you went through. It sounds like it's good to share with other people. Paul On 9/5/07, Mark McLaren <[EMAIL PROTECTED]> wrote: > > I recently upgraded an application S

Re: More 1.3.8 / xhtml problems

2007-09-05 Thread Paul Benedict
For a list of issues resolved in Struts 1.3.9: https://issues.apache.org/struts/secure/ReleaseNote.jspa?version=21800&styleName=Html&projectId=10121&Create=Create For a list of issues resolved in Struts 1.3.10-SNAPSHOT: https://issues.apache.org/struts/secure/ReleaseNote.jspa?version=21840&styleNa

Re: XHTML compliance

2007-09-05 Thread Paul Benedict
And also: https://issues.apache.org/struts/browse/STR-2598

Re: lazy-loading s:tree

2007-09-05 Thread Session A Mwamufiya
I'm sorry to be clogging your mailboxes with this, but I still have not received any responses. Probably those who worked on/with s:tree are not yet online, but if you are, please respond with an example of how to perform lazy loading on an s:tree treeViewer, or if you know of any technology ou

Re: XHTML compliance

2007-09-05 Thread Paul Benedict
Tim, Please see https://issues.apache.org/struts/browse/STR-1665 Is this what you're looking for? On 9/5/07, James Holmes <[EMAIL PROTECTED]> wrote: > > https://issues.apache.org/struts/browse/STR > > > On Wed Sep 5 14:05 , 'Slattery, Tim - BLS' <[EMAIL PROTECTED]> sent: > > >> Please check the

Re: Date validation (month and day)

2007-09-05 Thread Paul Benedict
You may be able to do it with a very complex validwhen validation. However, in these instances, it's best to write your own validator. Paul On 9/5/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Hiroyuki Suzuki wrote: > > ello guys! > > > > How would I check my date input so that it will validat

Re: [S2] Where to put hibernate's SessionFactory?

2007-09-05 Thread wild_oscar
Thank you. I've implemented the non IoC version of it, which I found to be almost the same as in http://struts.apache.org/2.0.9/docs/non-ioc-version-of-opensessioninviewinterceptor.html http://struts.apache.org/2.0.9/docs/non-ioc-version-of-opensessioninviewinterceptor.html Antonio Petrelli-3 w

Re: Unable to Repopulate the select control once the validation failed

2007-09-05 Thread Laurie Harper
vamsi wrote: Hi, I am using struts validation frame work. if the validation fails I am returning to the same jsp page. Here in this page there is some date is which was populated when the jsp page initially loaded. when saving the data I am performing the validation i

Re: Date validation (month and day)

2007-09-05 Thread Laurie Harper
Hiroyuki Suzuki wrote: ello guys! How would I check my date input so that it will validate the maximum days per month. For example: Jan, Mar, May, Aug, Oct, Dec (31 days) April, June,Sept, Nov (30 days)... Please share me your ideas.. Addtional: Separate field name for month and day. There's

Re: Checkboxlist - bind to List

2007-09-05 Thread Laurie Harper
Moacir Cardoso wrote: Hello!, I´m trying to bind some checkbox values to one parameterized List. Lets say List. Is it possible? in Jsp: list="#{'1':'Car1','2':'Car2','3':'Car3'}"> in Action: private List myList; ... gets and sets. If you already have a list in your action, you don't need/

Re: Formating dates and numbers

2007-09-05 Thread Laurie Harper
All of those should have worked. Are you sure your properties files are getting deployed? They should exist under WEB-INF/classes/... next to the .class files, not just in your source tree. Try using to confirm that the property is actually visible; once that works, the formulation should w

Re: Validation using validation.xml issue

2007-09-05 Thread Laurie Harper
When the validator framework encounters an error, it forwards the request to the resource you identify with your 'input' attribute on the action mapping. I was suggesting making that point to an action, and using *that* action to load the lists. L. Ashish Kulkarni wrote: Hi The error is thro

Re: filling arrays in Struts

2007-09-05 Thread Laurie Harper
Sergio Stateri Jr wrote: Hi all, I?m trying to receive a filled array of objects. In struts-config: In HTML file: When I try to submit a form with these configurations, the following expection is thrown: java.lang.ArrayIndexOutOfBoundsException at java.lang.refle

Re: [S2] Where to put hibernate's SessionFactory?

2007-09-05 Thread Laurie Harper
wild_oscar wrote: I've created an Interceptor that takes care of creating a SessionFactory and putting it in the Application Context map. I have a question, though, about the application context. Does this mean the Session Factory is shared among every session of the application, regardless of t

Re: [s2] custom ExceptionMappingInterceptor log

2007-09-05 Thread Laurie Harper
Try replacing the first two lines with log4j.rootLogger=DEBUG,R log4j.category.cus.util = DEBUG That's the way I do it, anyway. If that doesn't do the trick, you probably should follow up on the Log4J lists, since this isn't a Struts-specific issue. L. johana pin wrote: Thank you for r

Re: Reg : Client side Validation on Indexed Collection

2007-09-05 Thread Laurie Harper
kukreja sanjeev wrote: Hi , I am trying to put validations on indexed collection. Is there any way I can have that in validation-.xml file. It would be great if you can pls.throw some light on it. Which version of Struts are you using? Struts 1 lets you specify multiple validation fil

Simple Struts 2.0.x tag question. "/>

2007-09-05 Thread Kenton
I have a .jspx file in my Struts 2.0.x app. This doesn't work: I get this error (both editor and at runtime): The value of attribute "src" associated with an element type "null" must not contain the '<' character. (The above should regular non-escaped HTML, in case the

Re: xhtml problem

2007-09-05 Thread Kenton
Old thread... However, I believe I'm doing exactly what you are saying: Struts 2.0.x + XHTML + .jspx file with a embedded inside a element. This is working perfectly. No errors in my editor (NetBeans 5.5.1) or in the runtime (Glassfish v2). Here is a simple example: http://ja

Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Mark McLaren
I recently upgraded an application Struts 1.2 to 1.3. The actual changes needed to upgrade are quite easy to implement if you have a decent search and replace tool (these changes being detailed on the previously mentioned wiki page). In addition, if your project makes use of numerous Jar librarie

RE: YUI plug in display issue

2007-09-05 Thread Jiang, Jane (NIH/NCI) [C]
Hi Musachy, I just found out why my calendar is that wide. In the style sheet for my application, I have the following lines table { border:1px solid #66; font-size:10px; margin:2px 0pt !important; width:98%; } The calendar picked up the table width from there. I can not change the defau

Re: lazy-loading s:tree

2007-09-05 Thread Session A Mwamufiya
Please, can someone refer me to the struts developers who've worked on s:tree. I've been trying to get some answers all day about this matter and have not received a single reply. > TreeViewer people, and Dojo fans, please chime in your comments. I > wanted to switch from struts with s:tree to

[NOTICE] Security alerts as to Struts 2.x MAY NOT apply to Struts 1.x

2007-09-05 Thread Ted Husted
I just wanted to clarify that security alerts raised as to Struts 2.x MAY NOT apply to Struts 1.x. The versions use entirely different codebases. When we say to immediately upgrade to Struts 2.0.9, we don't mean people should upgrade from Struts 1.3.8 just to address the security alert. If there w

RE: Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Slattery, Tim - BLS
> In general is it hard to migrate an existing application from > struts 1.2.x to 1.3.x? I had very little trouble going from 1.1.x directly to 1.3.x, without stopping at 1.2. The biggest thing in that move was getting rid of the "application" parameter of the "action" servlet declaration in web.

RE: More 1.3.8 / xhtml problems

2007-09-05 Thread Slattery, Tim - BLS
> More serious is that when I use EL in the > tag it blows up! The stack trace for that begins with: > > java.lang.NullPointerException This problem disappears in Struts 1.3.9. -- Tim Slattery [EMAIL PROTECTED] - To unsubs

RE: XHTML compliance

2007-09-05 Thread James Holmes
https://issues.apache.org/struts/browse/STR On Wed Sep 5 14:05 , 'Slattery, Tim - BLS' <[EMAIL PROTECTED]> sent: >> Please check the ticket list for Struts 1.4. If you find this >> very issue there (I think it is) and you need it in 1.3, I >> can back port it for 1.3.10 > >I don't know how to

RE: XHTML compliance

2007-09-05 Thread Slattery, Tim - BLS
> Please check the ticket list for Struts 1.4. If you find this > very issue there (I think it is) and you need it in 1.3, I > can back port it for 1.3.10 I don't know how to do that. I see no link on the Struts page to a ticket list or to Struts 1.4. -- Tim Slattery [EMAIL PROTECTED] ---

Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Mark Shifman
Not particularly. There is a nice discussion on the struts wiki page: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 Ed snooper wrote: Hello, In general is it hard to migrate an existing application from struts 1.2.x to 1.3.x? Ed - Choose the

[S2] XSL Result: passing XSLT parameters and XSLT 2.0 questions

2007-09-05 Thread Mark McLaren
I'm new to Struts 2 so please forgive me if I am asking something stupid. Is it possible to pass XSLT stylesheet parameters from the action prior to rendering the XSLT result? Is it possible to make of use of something like Saxon rather than Xalan to enable XSLT 2.0 stylesheets? If not, would it

Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Ed snooper
Hello, In general is it hard to migrate an existing application from struts 1.2.x to 1.3.x? Ed - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

More 1.3.8 / xhtml problems

2007-09-05 Thread Slattery, Tim - BLS
Struts 1.3.8 (and 1.3.5, for that matter) puts the name of the form bean in the "id" attribute of the tag, instead of the "name" attribute, like it used to. Since "name" doesn't exist for in xhtml, this makes the output valid xhtml. If I use the styleId attribute in the struts tag, it blows up.

Re: XHTML compliance

2007-09-05 Thread Paul Benedict
Please check the ticket list for Struts 1.4. If you find this very issue there (I think it is) and you need it in 1.3, I can back port it for 1.3.10 Paul

Re: Dynamic Tree Example

2007-09-05 Thread Session A Mwamufiya
Hi Manu, You seem to have had lots of experience with s:tree; would you please help me answer the following questions (with example code if you have them): - how do you go about expanding the tree to the node level it was at before a refresh? - can you add icons (not changing the plus/minus ones

Re: reloading a tree at a certain level of expension

2007-09-05 Thread Session A Mwamufiya
Anyone knows whether this feature has been added in yet? > Session A Mwamufiya wrote: >> I'm relaunching this thread in case an s:tree expert may have missed it >> the first time around :). >> >>> Is there a way that when a s:tree is reloaded, it expends to a >>> particular level of expansion? I

Re: Tiny error on Struts 2 download page

2007-09-05 Thread Mark McLaren
I had not released this was the draft documentation. This was the first page returned resulting from a Google Search for "Struts 2". Mark On 9/5/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/9/5, Mark McLaren <[EMAIL PROTECTED]>: > > > > I'm not sure where the appropriate place to repor

Re: lazy-loading s:tree

2007-09-05 Thread Session A Mwamufiya
TreeViewer people, and Dojo fans, please chime in your comments. I wanted to switch from struts with s:tree to Dojo, but I can't find any online examples where Dojo obtains the tree data from a java class. Do you have any examples I could look at? Thanks, Session > Hi, > > Has anyone been

Struts2 and JBoss 5.0.0 Beta2 deployment problem

2007-09-05 Thread REMIJAN, MICHAEL J [AG/1000]
Has any successfully deployed a Struts2 application to JBoss 5.0.0 Beta 2? When I try to do this I get the following stack trace from JBoss: Exception starting filter struts2 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/jboss/jboss-5.0.0.Beta2/serve

Re: Using JSTL Expression Language with Struts 2 tags

2007-09-05 Thread James Holmes
You can up until Struts 2.0.9. There is a security flaw related to this though and you will no longer be able to do it in Struts 2.0.10. See the following JIRA ticket for more info: https://issues.apache.org/struts/browse/WW-2107 James On Wed Sep 5 11:31 , Néstor Boscán <[EMAIL PROTECTED]> s

Using JSTL Expression Language with Struts 2 tags

2007-09-05 Thread Néstor Boscán
Hi Is there a way to use the JSTL Expression Language with Struts 2 tags instead of OGNL? Regards, Néstor Boscán

XHTML compliance

2007-09-05 Thread Slattery, Tim - BLS
OK, I removed the attribute in the struts-html-el.tld in Struts 1.3.8, and it runs. NowI'm trying to use xhtml. I use this: And it generates this: http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en-US"> The lang="en-US" is in there whether I specify lang="true", lang="false" or omi

Re: Upgraded to 2.0.9 and Tomcat became very cranky starting my app.

2007-09-05 Thread Skip Hollowell
My bad. I don't use plexus, don't have the jar, and have removed the plugin. Argh, I hate posting before thinking. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Upgraded to 2.0.9 and Tomcat became very cranky starting my app.

2007-09-05 Thread Skip Hollowell
Help. What else can I send? I have also listed my complete WEB-INF/lib directory below. I know there are some libs I don't need, but I have them all in there for now. Are some doubling up perhaps? INFO: XML validation disabled 05 Sep 2007 10:41:43 INFO com.opensymphony.xwork2.config.provi

RE: New pdf version of Tutorial is accessible

2007-09-05 Thread Hayrol Reyes Mejía
Ok, let us know when you have the new .pss version :-) Best regards, Hayrol Reyes -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 05 de Septiembre de 2007 01:18 a.m. Para: user@struts.apache.org Asunto: New pdf version of Tutorial is accessible

Re: Tiny error on Struts 2 download page

2007-09-05 Thread Antonio Petrelli
2007/9/5, Mark McLaren <[EMAIL PROTECTED]>: > > I'm not sure where the appropriate place to report this is and I'm not > a pedant but the link to the Struts 2 "Download Now" says "version > 2.0.6". > > http://struts.apache.org/2.x/ > > and links to: > > http://struts.apache.org/download.cgi#struts2

RE: Am I doing something dumb, or should this not work?

2007-09-05 Thread Dave Newton
--- Al Sutton wrote: > Bingo > > Now I must write 100 lines of "Action specific > interceptor declarations overrides the default > interceptor stack and does not add to it". You can crib off mine ;) d. - To unsubscribe, e

Tiny error on Struts 2 download page

2007-09-05 Thread Mark McLaren
I'm not sure where the appropriate place to report this is and I'm not a pedant but the link to the Struts 2 "Download Now" says "version 2.0.6". http://struts.apache.org/2.x/ and links to: http://struts.apache.org/download.cgi#struts206 When it should probably say "2.0.9" and link to "#struts2

RE: Am I doing something dumb, or should this not work?

2007-09-05 Thread Al Sutton
Bingo Now I must write 100 lines of "Action specific interceptor declarations overrides the default interceptor stack and does not add to it". Thanks Dave :) -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 13:29 To: Struts Users Mailing List S

s2: Targets depends of the action result - AJAX

2007-09-05 Thread Manuel Correa
Someone knows how to define a target depends of the result of the action, for example when the action SUCCESS so go to some target but when make a ERROR go to another target. Thanks, Manuel

RE: Problems with Struts 1.3.8

2007-09-05 Thread Slattery, Tim - BLS
> > I'm *not* using the filter attribute! The message is issued and > > processing is halted as soon as the taglib statement is > > encountered, regardless of what's being used from it. You cannot > > use the html-el tags in 1.3.8 at all. > Now I know how useful is the tag library validati

adding icons to s:tree nodes

2007-09-05 Thread Session A Mwamufiya
Hi, I haven't kept up with progress made in struts 2.0.9, so I was wondering whether there have been changes made to the s:tree tag that would now allow nodes to have icons. If so, please refer me to an example. Thanks, Session

Re: Problems with Struts 1.3.8

2007-09-05 Thread Antonio Petrelli
2007/9/5, Slattery, Tim - BLS <[EMAIL PROTECTED]>: > > > > Anyway that problem is fixed. > > Tim, you may have two options: use 1.3.9 or wait until > > 1.3.10 (or 1.4?) is released. > > Or don't use the "filter" attribute :-) > > I'm *not* using the filter attribute! The message is issued and > pro

RE: Problems with Struts 1.3.8

2007-09-05 Thread Slattery, Tim - BLS
> Anyway that problem is fixed. > Tim, you may have two options: use 1.3.9 or wait until > 1.3.10 (or 1.4?) is released. > Or don't use the "filter" attribute :-) I'm *not* using the filter attribute! The message is issued and processing is halted as soon as the taglib statement is encountered,

Re: Problems with Struts 1.3.8

2007-09-05 Thread Paul Benedict
The only reason why 1.3.9 is beta was because of a file upload issue using Dyna forms. Otherwise, I think it's okay to use. 1.3.10 should hopefully be GA :) Paul On 9/5/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/9/4, Dave Newton <[EMAIL PROTECTED]>: > > > > --- "Slattery, Tim - BLS"

lazy-loading s:tree

2007-09-05 Thread Session A Mwamufiya
Hi, Has anyone been able to find a way to lazy-load the s:tree tag. I'm having some performance issues with a really big tree. Please send me an example. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Am I doing something dumb, or should this not work?

2007-09-05 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > > > STORE > > [...] Doesn't that mean that you're only using the "store" interceptor now? I thought you had to do it like: myValidationExcludeMethod myWorkflowExcludeMethod (Copied from http://struts.apac

Am I doing something dumb, or should this not work?

2007-09-05 Thread Al Sutton
Using the default interceptor stack as the base I have the following action defined; STORE EditProcess ${processId} true true I have the following code as the action; public class ProcessStepAction extends ActionSupport { /** * Serial ID. */

Struts2 - FilterDispatcher

2007-09-05 Thread bhukar
Hi, Is it the right way I can specify the web.xml as below for my Struts2 action to be called? I am using Rad6 for development and WAS6 as testing server. I am getting a page cannot be found error: Do I need to specify the struts.xml as config file in my web.xml??? http://java.sun.com/xml/ns/

Struts2 sitemesh probelm finding xwork2

2007-09-05 Thread fawix
Hello there i'm doing some testes with S2.. i already worked with struts 1 and webwork... i read the documentation and a lot of tutorial about but my problem presists... in my folder WEB-INF/lib i have both struts2-sitemesh-plugin-2.0.9.jar and sitemesh-2.3.jar and i started my project using the

[ANN] [S2] Three new Struts 2 books available for pre-order

2007-09-05 Thread Ted Husted
Ian Roughley's mini-book, "Starting with Struts 2", available in print and as a free PDF since May, is about to be joined by three new books about Struts 2. Coming in October is "Struts 2 Design and Programming: A Tutorial" by Budi Kurniawan. Budi's Struts 1 book is rated "four stars" based on rea

Re: Struts 2 - compatibility between JSTL xml tags and Struts 2

2007-09-05 Thread Riccardo Mollame
Here's it to you: java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(Compo

Re: Struts 2 - compatibility between JSTL xml tags and Struts 2

2007-09-05 Thread Don Brown
Could you provide the stacktrace? Don On 9/5/07, Riccardo Mollame <[EMAIL PROTECTED]> wrote: > Has anyone ever experienced compatibility issues > between JSTL xml tags (i.e. and the like) > and Struts 2? > I've isolated, with no ambiguity, a weird case in a > web application where the usual comb

Struts 2 - compatibility between JSTL xml tags and Struts 2

2007-09-05 Thread Riccardo Mollame
Has anyone ever experienced compatibility issues between JSTL xml tags (i.e. and the like) and Struts 2? I've isolated, with no ambiguity, a weird case in a web application where the usual combination of and to load and access an xml file in the WEB-INF directory, when invoked in a page whithou

New pdf version of Tutorial is accessible

2007-09-05 Thread m . s . alavi
Hi, thanks Hyrol for your attention. The pdf version of my Tutorial is accessible via this link: http://khorshid.ut.ac.ir/~m.s.alavi/Tutorial_pdf.zip This version does not contain any animation because I couldn't make the open office version of that. So, I made the pdf version.

Re: request related problem

2007-09-05 Thread Laurie Harper
abhiram wrote: hi!! i dont think this is a struts related question.. but.. is there any way to know when a request dies (apart from our own logical reasoning).. like any method to find out or can we write api such that a request gives out a System.out.println("i'm dying") just before it ends a