Re: Help:validation is not working with struts1.2

2006-05-30 Thread Suresh Babu S
u need to add html:javascript tag into ur form. did u add this On 5/30/06, M.Liang Liu [EMAIL PROTECTED] wrote: I tried to use validator in my struts application and I find a problem occurred: The form did not validate itself and the execute method is always called. I

Re: Help:validation is not working with struts1.2

2006-05-30 Thread paz . periasamy
Suresh, I think what Liang is using server side validation., Please post all the XML config files, JSP for us to debug. Thanks and regards, Pazhanikanthan. P (Paz) Suresh Babu S [EMAIL PROTECTED] 30/05/2006 04:30 PM Please respond to Struts Users Mailing List To: Struts

How to lock the access of methods within an action?

2006-05-30 Thread Julian Tillmann
Hello everyone, Within our struts web application in which we have edit-actions within a user can be busy editing data in the form for several minutes. The problem is, if another user is also editing the data at the same time, one of the is eventually going to overwrite the changes of the

Re: Help:validation is not working with struts1.2

2006-05-30 Thread M.Liang Liu
Thanks for your reply. *paz.periasamy got the point:I am just trying to use server validate. The validator-rules.xml is as following ,the one I copyed from the struts-blank: * !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration

Re: How to lock the access of methods within an action?

2006-05-30 Thread The Jasper
Hi, this sounds like a common database problem. You might want to consider some kind of pessimistic locking. Basically you lock the object when you start editing and prevent all access to it for the duration of the lock. You could also do an optimistic lock which means that when you change an

Re: Help:validation is not working with struts1.2

2006-05-30 Thread Suresh Babu S
The html:javascript tag to allow front-end validation based on the xml in validation.xml. For example the code: html:javascript formName=\logonForm\ dynamicJavascript=\true\ staticJavascript=\true\ / generates the client side java script for the form \logonForm\ as defined in the validation.xml

Re: Help:validation is not working with struts1.2

2006-05-30 Thread The Jasper
Hi, try changing the validation to: form name=/s field property=name depends=required/field /form note, you are now referencing the action not the page. Also, you might want to extend ValidatorActionForm instead of ValidatorForm, but to tell the truth I'm not sure I

multiple html:select

2006-05-30 Thread Medicherla Lakshmi
Hi, Am using struts and my requirement is i have two selects i a jsp. On change of value in the first select, the values in the secon select should pop up. Is there any way to do this using remote scripting. Please give me solution. Thanks and Regards, MSV Lakshmi.

Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Julian Tillmann
Thanks a lot for your answer! My thinking behind is the application level! I’m not sure but the goal is (my hope..)to solve this problem using aspect oriented programming or Spring although I’m not very aware of it. For example it would be nice to have one central configuration there you

Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Lixin Chu
i think transaction manager will take care of this. On 5/30/06, Julian Tillmann [EMAIL PROTECTED] wrote: Thanks a lot for your answer! My thinking behind is the application level! I'm not sure but the goal is (my hope..)to solve this problem using aspect oriented programming or Spring

RE: [shale] Shale and standalone tiles integration problems...

2006-05-30 Thread Greg Allen
I'm using tomcat, and the first 2 errors in the log follow. And note that the class it is complaining about is in my tiles-core.jar file in the WEB-INF/lib directory: $ jar tvf WEB-INF/lib/tiles-core.jar | grep Exception 1109 Tue Aug 30 21:26:50 EDT 2005

Re: Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Julian Tillmann
thx hmm, where can I find it, is it part of Spring?   Original-Nachricht  Datum: Tue, 30 May 2006 18:36:06 +0800  Von: Lixin Chu [EMAIL PROTECTED]  An: Struts Users Mailing List user@struts.apache.org  Betreff: Re: Re: How to lock the access of methods within an action?  #xA i

RE: Sending run time value to custom tag

2006-05-30 Thread Emilia Ipate
You can indeed use scriptlet like this: bean:define id=myform name=myform type=com.MyForm/ mytags:indicatorEndDisplay indicatorType=%=myform.getSampleIndicator()%/ Note: he scriptlet %=myform.getSampleIndicator()% must return exactly the type the setIndicatorType() method (of the tag class that

Re: Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Miguel Galves
Julian, you can use the lock provided by Java 1.5 API...they are very simple to use. For istance, I use java.util.concurrent.Semaphore. The code above sho how to use it: private Semaphore sceneryLock = new Semaphore(1, true); public void removeScenery() throws Exception { try {

Re: Re: Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Julian Tillmann
Hi Miguel, thanks for the tip, is it possible to use this in a struts action which is not thread save? ciao 4 now Julian   Original-Nachricht  Datum: Tue, 30 May 2006 09:28:36 -0300  Von: Miguel Galves [EMAIL PROTECTED]  An: Struts Users Mailing List user@struts.apache.org  

Re: Re: Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Miguel Galves
Sure... On 5/30/06, Julian Tillmann [EMAIL PROTECTED] wrote: Hi Miguel, thanks for the tip, is it possible to use this in a struts action which is not thread save? ciao 4 now Julian Original-Nachricht Datum: Tue, 30 May 2006 09:28:36 -0300 Von: Miguel Galves [EMAIL

RE: [shale] Shale and standalone tiles integration problems...

2006-05-30 Thread Greg Allen
That usually means you haven't included the %@ taglib % directives in your JSP. They aren't in the snippet of Layout.jsp that you posted... are they in the actual source file? No, they are not. They were in the initial page called. I assumed, incorrectly it appears, that if

RE: [shale] Shale and standalone tiles integration problems...

2006-05-30 Thread Dick Starr
I have it working, although with a somewhat different setup (all my page definitions are in my tiles.xml and this forces me to have a dummy logon.jsp containing tiles:insert definition=.logon/ - and I don't like having to create the extra jsp's to link to the definitions - but havn't figured out a

Re: multipart/form-data and character encoding

2006-05-30 Thread Martin Gainty
Good Morning Antonisis- If you are sending data which is of UTF-8 characterset then you need to configure the request e.g. request.setCharacterEncoding(UTF-8) e.g. http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String) If you are receiving

RE: Validating struts elements of array type in javascript

2006-05-30 Thread Miller, Andy
For JavaScript, here is the easiest way to do this is for your case: Use a hidden variable to store the number of packages. For each package, I am guessing you have 3 fields: height, weight, and length. The names for these fields should be something to the effect of: height_1, weight_1,

RE: Help:validation is not working with struts1.2

2006-05-30 Thread Sateesh Nelluri
Hi Remove attribute=sForm from the tag 'action'. And try again. action attribute=sForm input=/form/s.jsp name=sForm path=/s scope=request type=com.eam.struts.action.SAction validate=true forward name=success path=/welcome.do /

struts not forwarding after action

2006-05-30 Thread Homero Cardoso de Almeida
Hello, I've created an application on my webapps folder, copied the libraries and tag descriptors needed, compiled the sources successfully and wrote the struts-config.xml for my app. But it's not working properly. =/ I'm trying the first example of the Struts In Action book. The JSP form page

Re: Help:validation is not working with struts1.2

2006-05-30 Thread Dave Newton
The Jasper wrote: Also, you might want to extend ValidatorActionForm instead of ValidatorForm, but to tell the truth I'm not sure I really understand the difference. For future reference and completeness: You can specify validations based on either the form bean name or the action mapping

[OT] Re: multiple html:select

2006-05-30 Thread Dave Newton
Medicherla Lakshmi wrote: Am using struts and my requirement is i have two selects i a jsp. On change of value in the first select, the values in the secon select should pop up. Is there any way to do this using remote scripting. What's remote scripting? Anyway, there are several

Re: [OT] Re: multiple html:select

2006-05-30 Thread Frank W. Zammetti
Grab the Java Web Parts cookbook: http://sourceforge.net/project/showfiles.php?group_id=140728 ...from the Java Web Parts project... http://javawebparts.sourceforge.net It includes such a dynamic double-select example using AjaxTags. Frank Dave Newton wrote: Medicherla Lakshmi wrote: Am

RE: [OT] Re: multiple html:select

2006-05-30 Thread Chaudhary, Harsh
resume-oriented programming LOL. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 10:53 AM To: Struts Users Mailing List Subject: Re: [OT] Re: multiple html:select Grab the Java Web Parts cookbook:

RE: struts not forwarding after action

2006-05-30 Thread David Friedman
Homero, Often, people starting with Struts see blank pages if they use the wrong method in their Action class. Are you using perform() instead of execute() as your method? Your struts-config.xml file suggests you are using an outdated book because it lists your config DTD as version 1.0, not

Re: struts not forwarding after action

2006-05-30 Thread Homero Cardoso de Almeida
Thanks for the help, David. Yeah, I really think the book is a little outdated (i'm really using perform() instead of execute()). I think the version I got is the same as yours, since it mentions the execute() method and Struts 1.1. I'm not able to test it right now (i'm at work), but when I

Re: [OT] Re: multiple html:select

2006-05-30 Thread Frank W. Zammetti
I can't believe there wasn't already a Wikipedia entry for ROP! There is now... http://en.wikipedia.org/wiki/Resume-oriented_programming Frank Chaudhary, Harsh wrote: resume-oriented programming LOL. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent:

dropdowns, forms, and validation

2006-05-30 Thread Ralf Stoltze
hi there, i'm fairly new to struts and it seems like i do have a more conceptual problem which should be easy to solve... i have a form including a dropdown list, fetching the entries from a database. i like to use DynaForms and validation. in order to display the dropdown values, i - link to

Re: dropdowns, forms, and validation

2006-05-30 Thread Miguel Galves
I had the same problem you had, and I didn't want to save lists in session, for many reasons. After some researches, the solution I choosed is the following: in forms where I have dropdown lists, I disable the automatic validation. This can be done adding the parameter validate=false in the

modules menus

2006-05-30 Thread Brian Long
Hi folks - appreciate any input on this one: I have a menu in a Struts 1.2.9 modularized app. The menu has links to some jsps and some actions. When the app is launched, the links all work. However, once I've navigated into a module, the links all get prefixed with that module, and the links

Re: modules menus

2006-05-30 Thread Joe Germuska
At 3:50 PM -0400 5/30/06, Brian Long wrote: Hi folks - appreciate any input on this one: I have a menu in a Struts 1.2.9 modularized app. The menu has links to some jsps and some actions. When the app is launched, the links all work. However, once I've navigated into a module, the links all

reset button deos not work with struts validator

2006-05-30 Thread Victor.T. Ying
Hi, I meet a problem using structs validator and reset button The problem occurs when the validator find a validation error, then reset button can not clear the input field but retain the error values. BTW the respective form is in the session and I am using html:reset tag.

[shale] is everything in Maven?

2006-05-30 Thread Adam Brod
Hi- I am trying to setup my application using maven. On the shale website, it reads, Snapshots of Shale are also available in Maven repositories. (http://struts.apache.org/struts-shale/index.html#Shale_Download). However, the maven repositories only appear to have shale-test available. For