Re: Exception while using validator framework

2007-05-31 Thread wang huan
19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoSuchMethodError: org.apache.commons.validator.V

Exception while using validator framework

2007-05-31 Thread bhanuprakash.singh
Hi all, I have created a sample struts application Im trying to make use of the validator framework The steps which i have carried out are 1 .I have included validation.xml and validation-rules.xml in WEB-INF 2 .then in struts-config.xml i have included the required

Re: [S2] Struts2, JDK 1.4, retrotranslator

2007-05-31 Thread wang huan
We met this exception before under tomcat. It seems like some version problem. At last we replaced the tools.jar under Tomcat/common/lib with the one under jdk/lib. Have no idea about Oracle Application Server 9i, and just wish this tip might help. Fitzwilliam -- 北半球的狗几月份掉毛?

Re: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Laurie Harper
Then customizing the theme is probably the way to go: http://struts.apache.org/2.x/docs/themes-and-templates.html L. Charbel Abdul-Massih wrote: Laurie, That wrapped markup around all the radio buttons, not each of the button/label combination :( -Original Message- From: news [mail

RE: [S2] Struts2, JDK 1.4, retrotranslator

2007-05-31 Thread Jason Wyatt
By the way, the application works fine under tomcat 5.5 with JDK 1.5, with the normal struts-core and xworks jars and no retrotranslator jars. -Original Message- From: Jason Wyatt [mailto:[EMAIL PROTECTED] Sent: Friday, 1 June 2007 12:09 PM To: 'Struts Users Mailing List' Subject: [S2] S

Urgent : java.lang.IllegalArgumentException: No Bean specified, help me to resolve

2007-05-31 Thread Vijay KS
config-file my first jsp is FileUpload.jsp like this - Upload File after clicking the Upload file button, the uploadSuccess.jsp looks like this The correspondin form beans are public class StrutsUploadForm

RE: The class variable reference null problem

2007-05-31 Thread Kapil Sharma
Thanks your "synchronization" idea solved my problem of null reference , The reference is propery getting null, I just checked, Regarding reinitialization, I just put my initialization code in execute method of the action. and made something like public class ClsAction extends Action { public

RE: The class variable reference null problem

2007-05-31 Thread Kapil Sharma
I tried your method , debug the program , it shows that the variable becomes null, But after login in again the "public static GraphicsServer myServer = ClsInitializeServer.getInitializeInstance(); " class level variable does not execute but still its refrence is available to other parts of the p

[S2] Struts2, JDK 1.4, retrotranslator

2007-05-31 Thread Jason Wyatt
Hi, I'm trying to deploy Struts 2 on Oracle Application Server 9i, which uses JDK1.4, and I'm getting an error: Caused by: java.lang.UnsupportedClassVersionError: org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported major.minor version 49.0) I included the backported Struts 2 and

RE: The class variable reference null problem

2007-05-31 Thread Fei Fei
you can try to do something like this: public class ClsAction extends Action { // Start Intialize the instance of the graphics serverpublic Object lockObj = new Object();public static GraphicsServer myServer = ClsInitializeServer.getInitializeInstance(); // End

The class variable reference null problem

2007-05-31 Thread Kapil Sharma
Hi, I have one problem In my action class , I am initilazing my graphic software server as a static variable e.g. public class ClsAction extends Action { // Start Intialize the instance of the graphics server public static GraphicsServer myServer = ClsInitializeServer

Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread Don Brown
My guess is there will continue to be bug fix and perhaps minor feature improvements on WebWork. There are a lot of WebWork 2 applications that may not be actively developed, but need the latest bug fixes, so I foresee WebWork 2 being supported indefinitely, just like Struts 1. Don On 5/31/07,

Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread jiangshachina
Hello, Thanks! The reply resolved a puzzle in my mind :-) If I want to use Struts2, then I just go to http://struts.apache.org/2.x/, I needn't care Struts1 and WebWork. a cup of Java, cheers! Sha Jiang Musachy Barroso wrote: > > There is no new development going on in WW. You might see minor

Re: refresh problem

2007-05-31 Thread Oguz Kologlu
Hi Volkan, I had a similar issue which turned out to be a a bug in the result page. It seems when you have an error in an ajax result page nothing gets reported (probably for good reason), but it makes things difficult to debug. The simplest way I find to resolve it is to make the ajax ca

Re: how to check if page has been displayed (rendered) by the browser

2007-05-31 Thread Jeremiah Johnson
you could use JQuery to run a script after the document is loaded. See at this url: http://www.learningjquery.com/2006/09/introducing-document-ready Raghupathy, Gurumoorthy wrote: Put your javascript at the last ... so you are sure that my the time your javascript is being executed your html is

xhtml problem

2007-05-31 Thread Ray Clough
I produce all my jsp pages is xml format - ie. as 'jspx' jsp-documents. I find a serious drawback to the struts tags, and I'm wondering if anyone has a suggestion. The xhtml does not allow element content within other elements; for example the tag cannot contain a tag. Lots of examples in the

RE: Re: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Charbel Abdul-Massih
Laurie, That wrapped markup around all the radio buttons, not each of the button/label combination :( -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Thursday, May 31, 2007 3:06 PM To: user@struts.apache.org Subject: Re: [S2] How do I get radio bu

Re: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Laurie Harper
You could switch to the xhtml or css_xhtml theme, which would give you additional markup around each radio button / label pair. You would then have sufficient markup structure to style with CSS. Alternatively, create your own custom theme, or just write a custom template for this specific tag

Re: [s2] OGNL and javascript

2007-05-31 Thread Laurie Harper
If you're hand-coding the Javascript, you may also be able to write something like document.addressForm['address.street'] or document.addressForm.elements['address.street'] L. Jeromy Evans wrote: > Interesting problem... > Using textfield as an example, the template (eg. text.ftl) takes th

Re: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Laurie Harper
Do you have any validation configured on ActionA? Could there be a conversion error on one of the request parameters? Have you tried creating an input result and perhaps using s:debug or something to see if there's anything unexpected in the response that might explain the input redirect? You c

Re: Table Tag With Freemarker Templates

2007-05-31 Thread yitzle
Please use "user@struts.apache.org" for the "to:" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Table Tag With Freemarker Templates

2007-05-31 Thread André Faria
Hi All, I am interested in Table Tags Project to apply it resources in a project with Struts 2, but I'd like to know if you are planning to implement some functionality to add a freemarker template in the tags using the theme attribute like in old Struts 2 s:table tag. Thank's André Faria

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-31 Thread Adam Gordon
Chris- See answers below... Christopher Schultz wrote: I just ran it through Wireshark and followed the TCP stream verifying that it's being encoded correctly into 3 bytes - it is (E2 80 A2). Is this the UTF-8 code that /should/ represent those bullet characters? I would assume so.

Re: [ANN] "Starting with Struts2" Book

2007-05-31 Thread James Mitchell
Will do! Hope you can make it. -- James Mitchell On May 31, 2007, at 11:41 AM, Ian Roughley wrote: No, no paypal account. You can buy me a beer if I make it to apachecon. James Mitchell wrote: Ian, Nice job! I don't need the paper copy, but I'd like you to get the full price of the

RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote: > How exactly do you do that, can you give me an > example please? http://struts.apache.org/2.x/docs/strutsproperties.html ### possible values are: none, get or all struts.url.includeParams = get (But you should probably do it via XML constant config

RE: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Charbel Abdul-Massih
Guru, The HTML that's outputted by struts is like this (with the "simple" theme) label 1 label 2 Using the "display:block" would put my radios on sperate lines, but also put the labels for the radios on separate lines as well...I want the radio and label associated with it to stay on the same l

Re: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Musachy Barroso
I missed that one. I added a note on the url tag page. musachy On 5/31/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Al Sutton <[EMAIL PROTECTED]> wrote: > +1 to support the change. It'd reduce my code by a > chunk on pages that take a parameter and have a link > menu on one side. While I a

RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread David Harland
How exactly do you do that, can you give me an example please? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 31 May 2007 16:43 To: Struts Users Mailing List Subject: RE: s:url tag Why isn't includeParams='none' the default setting? --- Al Sutton <[EMAIL PROTECTED]

RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > +1 to support the change. It'd reduce my code by a > chunk on pages that take a parameter and have a link > menu on one side. While I agree that 'none' should be the default (I think we had a thread about this not too long ago) you *can* just set it in y

Re: [ANN] "Starting with Struts2" Book

2007-05-31 Thread Ian Roughley
No, no paypal account. You can buy me a beer if I make it to apachecon. James Mitchell wrote: Ian, Nice job! I don't need the paper copy, but I'd like you to get the full price of the book. Do you have a Paypal account that I could donate some funds to? -- James Mitchell On May 29, 20

RE: how to check if page has been displayed (rendered) by the browser

2007-05-31 Thread Raghupathy, Gurumoorthy
Put your javascript at the last ... so you are sure that my the time your javascript is being executed your html is rendered -Original Message- From: Srepfler Srgjan [mailto:[EMAIL PROTECTED] Sent: 31 May 2007 14:44 To: Struts Users Mailing List Subject: Re: how to check if page has bee

Re: OptionTransfer Select - id number formatting

2007-05-31 Thread Brian Trzupek
I figured this out. All I did was change the method signature on my Action class from: setNotificationUsers(Collection notificationUsers) to setNotificationUsers(Collection notificationUsers) And Struts/XWork took care of the rest. Brian- On May 31, 2007, at 10:08 AM, Brian Trzupek wrote:

RE: OptionTransfer Select - id number formatting

2007-05-31 Thread Al Sutton
Had the same problem recently, the choice I made was to make the parameter for the second action the same type as the parameter for the first, i.e.; ActionA has public Integer getValue() ActionB has public setValue(Integer x) Worked for me with Longs. -Original Message- From: Brian Trzup

RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Al Sutton
+1 to support the change. It'd reduce my code by a chunk on pages that take a parameter and have a link menu on one side. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 31 May 2007 15:25 To: Struts Users Mailing List Subject: Re: s:url tag Why isn't includeParams

RE: [S2] How do I get radio buttons to show vertically

2007-05-31 Thread Raghupathy, Gurumoorthy
Apply a style sheet class which has "display:block" http://www.w3schools.com/css/pr_class_display.asp Google is your best friend :) Guru -Original Message- From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent: 31 May 2007 15:16 To: Struts Users Mailing List Subject: [S2] How

OptionTransfer Select - id number formatting

2007-05-31 Thread Brian Trzupek
I am using the optionTransferSelect tag all over the place, love this control! Anyways, when the id property of list (which is an int) gets displayed in the HTML by the tag the number get formatted with a comma when the numbers get into 4+ digits. Example output: [EMAIL PROTECTED]

Re: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread Musachy Barroso
I've been asking myself that question for a while, I'd say it seems like it would be a better choice for the default value. musachy On 5/31/07, David Harland <[EMAIL PROTECTED]> wrote: Hi, How come the default setting for the includeParams attribute for the s:url tag is not 'none' ? ___

[S2] How do I get radio buttons to show vertically

2007-05-31 Thread Charbel Abdul-Massih
I am using the following tag in my jsp Currently, my map has two entries. The radios are displayed on the same line...I would like them displayed on 2 separate lines...Is there an easy way to do this??? Thanks, Charbel

Re: refresh problem

2007-05-31 Thread Volkan OZYILMAZ
I tryed this problem with FireFox, IE6, IE7. Same results. On 5/31/07, Mark Shifman <[EMAIL PROTECTED]> wrote: I had a similar problem that I never really worked out and I will be interested in hearing if anyone has solved this. I was wondering if this was a caching issue with your browser. I

Re: [S2] HTTP Status 404 - result 'null' not found

2007-05-31 Thread SvetlanaR
ok, the problem has been solved. It was Sun App Server policy problem. I added the following permission to the server.policy file and it solved the problem. permission java.security.AllPermission "createClassLoader"; -- View this message in context: http://www.nabble.com/-S2--HTTP-Status-404

s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread David Harland
Hi, How come the default setting for the includeParams attribute for the s:url tag is not 'none' ? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learnd

Re: how to check if page has been displayed (rendered) by the browser

2007-05-31 Thread Srepfler Srgjan
Yup, I think this is a JS issue, Perhaps you should check if the DOM is loaded. Torsten Römer wrote: Couldn't you use the JavaScript "Load" event to know when the page has been completely rendered, and postpone your reload until then? Torsten Greg Stasica schrieb: hi, My problem is that I

RE: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Al Sutton
The problem is that it's trying to pick up the input result for the action after the redirect from the action where the error occurred, so it's basically trying to do the following in one step; ActionB --input result redirect--> ActionA --input result--> Somewhere else instead of what I would exp

RE: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > Anyone seen the same behaviour? I think that if there are action errors it will try to show the input result because, well, it thinks there are errors. d. Mo

Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread Musachy Barroso
There is no new development going on in WW. You might see minor releases to fix bugs, but that's all. I might be off on this one, but I think 2.2.5 is the last release. musachy On 5/31/07, jiangshachina <[EMAIL PROTECTED]> wrote: Hi, Currently, WebWork is 2.2.5 released in April this year, bu

RE: Wierd behaviour with redirect, result, and store interceptor

2007-05-31 Thread Al Sutton
Anyone seen the same behaviour? -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 30 May 2007 13:23 To: 'Struts Users Mailing List' Subject: Wierd behaviour with redirect, result, and store interceptor I have the following; Action A --- forwards to ---> A.jsp --- subm

Re: refresh problem

2007-05-31 Thread Mark Shifman
I had a similar problem that I never really worked out and I will be interested in hearing if anyone has solved this. I was wondering if this was a caching issue with your browser. I had the problem with firefox. any suggestions appreciated. mas Volkan OZYILMAZ wrote: Hello All, I use sturt

Re: Multi lingual web site

2007-05-31 Thread Roger Varley
Using the locale, you should be able to construct a SQL query to load the correct data from the table structure I mentioned. Or you could add language choice as a user selectable option on either your login page (if you use a login) or on your "home" page. Regards Roger -

[S2] [ANN] Struts 2.0 Validations using Annotations article

2007-05-31 Thread Ted Husted
Struts 2.0 Validations using Annotations By Krishna Srinivasan "How easy it was to get fairly complex server side validation working with Struts 2 by just using annotations. No XML whatsoever. Struts 2.0 comes with new set of Robust Validation Features. Most of the common Validation Activities .

refresh problem

2007-05-31 Thread Volkan OZYILMAZ
Hello All, I use sturts 2. My web program work well but when i add a refresh link in my page, starting a problem. First i had use javascript:reload() function. When use this link, page sometimes not get data. But sometimes get. I change my reload() function. function refresh() { var sURL =

Re: Why is struts2 called struts2 and not webworks2?

2007-05-31 Thread jiangshachina
Hi, Currently, WebWork is 2.2.5 released in April this year, but Struts is 2.0.6 released in February this year. Does it mean that just Struts uses WebWork's codes, but WebWork still has its own roadmap? Shortly, the two project isn't merged. That's right? a cup of Java, cheers! Sha Jiang Ted H

Re: [s2] OGNL and javascript

2007-05-31 Thread Jeromy Evans
Interesting problem... Using textfield as an example, the template (eg. text.ftl) takes the literal name attribute from and writes it straight to the html. You could create your own theme that replaces the '.' with a different character in the html. You could then write your own interceptor that c

[s2] OGNL and javascript

2007-05-31 Thread Fowler, Perryn
Hi People, I usually like to access form elements using their names ( rather than ids) as I find it more readable. So, if I had a field named 'street' on a form named 'addressForm' I can access it using something like document.addressForm.street Now, I am using struts 2 and its OGNL support