Re: Validation Random Failures

2007-04-14 Thread Adam Ruggles
I haven't tracked it down yet, but I think it is in the type converters. Are you using dates or decimal values on your forms? Zach Calvert wrote: Has anyone figured out why Validation randomly fails??? On 4/14/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm having a similar problem. I'm ext

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Adam Ruggles
Based on your posts I get the idea you don't understand how the MVC pattern works. I'll try to describe what should be happening. On the browser a user submits the data he/she wishes to update. That information is then passed to the action, I prefer to do this with an object. So in your act

Re: Validation Random Failures

2007-04-14 Thread Zach Calvert
Has anyone figured out why Validation randomly fails??? On 4/14/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm having a similar problem. I'm extending the ActionSupport object and I have no validation specified and I'm experiencing the same issue. I did enable validation and the results didn't

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Mansour
Adam Ruggles wrote: Then why don't you simply pass the id of the account you want to update and the fields you want to update to the action. Then create an update SQL statement like "update account set field1='data_from_form', field2='data2_from_form' where id='id_from_form';" This is a way,

Re: tks for help, but more question for html:javascript

2007-04-14 Thread Frank W. Zammetti
Hmm, I've never actually used the html:javascript tag, so I'm not sure what its intended purpose is, or how it works... seems like the docs is talking about validation, so yeah, maybe it's not applicable... although, one thing I notice here... let's assume it DOES work just like a plain old ta

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Adam Ruggles
Then why don't you simply pass the id of the account you want to update and the fields you want to update to the action. Then create an update SQL statement like "update account set field1='data_from_form', field2='data2_from_form' where id='id_from_form';" Why do you need to reload the accou

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Mansour
I am accessing the DB using JDBC. Adam Ruggles wrote: How are you accessing the database? JDBC, Hibernate, Another ORM solution? Mansour wrote: Ok Dave: you are really helping me a lot. I think I'll have to explain to you exactly what I am doing, and you give me an advice about how to do i

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Adam Ruggles
How are you accessing the database? JDBC, Hibernate, Another ORM solution? Mansour wrote: Ok Dave: you are really helping me a lot. I think I'll have to explain to you exactly what I am doing, and you give me an advice about how to do it. Okay? I 've been trying to learn struts 2 for a week

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Mansour
Ok Dave: you are really helping me a lot. I think I'll have to explain to you exactly what I am doing, and you give me an advice about how to do it. Okay? I 've been trying to learn struts 2 for a week but not doing any significant progress. I need an program that stores accounts and services

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > I thought there's a way like .net of jsf to store the > object in the session and retrieve when needed. Of course you can store an object in the session. You didn't say you wanted to. As I said, without any information about what you're attempting to do o

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: I didn't know that I can use hidden fields to pass objects back. You can't. All you can get back from an HTML form is a string. That's just the way HTML works. In other words, you mean what ever goes in the constructor of t

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > I didn't know that I can use hidden fields to pass > objects back. You can't. All you can get back from an HTML form is a string. That's just the way HTML works. > In other words, you mean what ever goes in the > constructor of the action, goes into the P

Re: Re: problem extending the ComposableRequestProcessor process chain

2007-04-14 Thread atitus74
Hi Joe, Thanks for the tip, this definately works. Looking at the way the request processor functions, I don't think there is a situation where it will cause a problem that a true is ignored. The reason for this is that all the conditions which result in a failure situation will throw an except

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Mansour
Thank you Dave: Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: I don't understand this part. Is this list only for advanced users? No wonder Struts 2 has a small community and poor documentation. Dude. It's Saturday. Some of us do other things besides read the Struts maili

[OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > I don't understand this part. Is this list only for > advanced users? No wonder Struts 2 has a small > community and poor documentation. Dude. It's Saturday. Some of us do other things besides read the Struts mailing list on Saturday. AFAICT you posted t

tks for help, but more question for html:javascript

2007-04-14 Thread john lee
Frank/Musachy, tks for your help, after i change OnSubmit to lower case, it works. But when i try to test html:javascript, give me more erros, is html:javascript only used for validor only, and can not used as regular javascript for include? tks in advance john The error m

Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Mansour
I don't understand this part. Is this list only for advanced users? No wonder Struts 2 has a small community and poor documentation. Mansour wrote: I am trying to perform some operation on an object, Therefore I need to pass to the action the object id and the parameters to add for the operati

Re: struts/javascript challenge

2007-04-14 Thread Frank W. Zammetti
onsubmit needs to be all lower-case, you have it written OnSubmit. Any time you get an exception saying an attribute is invalid for a tag, the TLD is the first thing you should look at, make sure the attribute is specified for the tag and that you wrote it exactly as it appears there, case and

Re: struts/javascript challenge

2007-04-14 Thread Musachy Barroso
The attributes are case sensitive, so you have to used them as they are specified in the docs, try "onsubmit" instead. regards musachy On 4/14/07, john lee <[EMAIL PROTECTED]> wrote: I am new to struts, how can I use client javascipt inside html:form ? when i run my test.jsp with html:form

struts/javascript challenge

2007-04-14 Thread john lee
I am new to struts, how can I use client javascipt inside html:form ? when i run my test.jsp with html:form and javascript, and get following error, what is that mean ? tks everyone's help in advance. john org.apache.jasper.JasperException: Attribute OnSubmit invalid for tag fo

Unable to initialize Struts ActionServlet

2007-04-14 Thread Edward
Cannot get my deployed struts app to work. I have tripled-checked that the right libraries are in place: antlr commons-beanutils commons-digester commons-logging jstl log4j struts ...and pre-installed jars are listed here - http://helpdesk.serverconfig.com/tomcat55_jars.html The following tom

Preparable or interceptors

2007-04-14 Thread Mansour
I am trying to perform some operation on an object, Therefore I need to pass to the action the object id and the parameters to add for the operation. I need to set these values before the request reaches the action class. Do I do this in the interceptor, or just implement Preperable and Servle

Re: Struts in Servlet 2.4

2007-04-14 Thread Laurie Harper
Slattery, Tim - BLS wrote: I found this to be a great tutorial http://www.exadel.com/tutorial/struts/5.2/guess/strutstutorial.html Create your formbean with public Accessors/Mutators for each private attribute and also create methods for reset method validateMethod and of course public no arg

[S2] Date validator error!

2007-04-14 Thread Telmo Costa
Hi everyone, I have the following configuration for a java.util.Date field: 01/01/1990 01/01/2000 But, when running it I got the following exception: 14/Abr/2007 17:42:50 com.opensymphony.xwork2.util.OgnlUtil internalSetProperty WARNING: Caugh

Struts 2 Maven Archetype problem

2007-04-14 Thread Andreas Røsdal
I used the Maven Archetype to create a new web application for Struts 2, as described here: http://struts.apache.org/2.x/docs/ready-set-go.html I ran: mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.st

Master Details in struts

2007-04-14 Thread kamoljan
Hi! Question: how can I realize Master Details in struts (struts 2.0.6)? Thanks. -- View this message in context: http://www.nabble.com/Master-Details-in-struts-tf3576346.html#a9993518 Sent from the Struts - User mailing list archive at Nabble.com. --