Re: Struts 2 validation off at page load

2007-11-21 Thread Shoaib Gauhar
Thanks alot. This has solved my problem. I really appreciate it. Thanks once again. Regards, Shoaib Ahmad - Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, November 22, 2007 10:42:10 AM Subject: Re: Struts 2 validation off at page lo

Re: Struts 2 validation off at page load

2007-11-21 Thread Dave Newton
An action's validation will fire unless an action method specifically excluded by the validation interceptor, the validation file is for a specific action class/method alias, or a couple other things not relevant in your case. There are a few ways around this, the simplest being to run the "input"

Struts 2 validation off at page load

2007-11-21 Thread Shoaib Gauhar
Hello, I am new to struts 2 validation architecture. I am facing a problem which might be very simple. I am adding all of my validation rules in the actionclass-validation.xml. It works fine. But what happens is that when the JSP page opens for the first time, it validates the fields and shows

Re: combining Struts-2 with Struts-1 application.

2007-11-21 Thread Tom Schneider
Just as a side note, maven has good support for war overlays. This allows you to take a war and overlay it with the contents of a current war project. We're using this quite successfully to take a legacy app and overlay a webwork project on top. In the end, you end up with 1 final war with the

Re: Help with html:select multiple="true"

2007-11-21 Thread Adrian Marrero
Dave, Thank you for responding to me both times. However, I have tried both declarations and I get the same result. and I know that Ljava.lang.String is an array of strings, however, either it is being processed wrong, or I do not know how to process the data correctly. Lets say that the ListB

Select tag on freemarker

2007-11-21 Thread Aristides P. Preto Jr
Hello, In JSP, I could do the following: value="%{#{'CST':'Customer','SPL':'Supplier','OTH':'Other'}}"/> list="entityType" emptyOption="true" /> How can I do the same using FreeMarker ? I get errors if I try this: <@s.set name="entityTypeList" value="%{#{'CST':'Customer','SPL':'Supplier'

Re: javascript update tag value property [OFFTOPIC?]

2007-11-21 Thread victor sosa
Thks for you answer but is still open Because I need to put into the textfield base in another property of Maquina object (here only put id), for example: name or comment, features, ect. So every time a select a Maquina object, I need to get also the properties of its. Domingo A. Rodriguez S.

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Dave Newton
Except for that whole "" doesn't have anything to do with S2. d. --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > dont forget with Struts 2 you have the additional > capabilities of implementing expression evaluation > with OGNL Martin Gainty > US > Citizen(Contractor)__

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Martin Gainty
dont forget with Struts 2 you have the additional capabilities of implementing expression evaluation with OGNL Martin Gainty US Citizen(Contractor)__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the offici

Re: combining Struts-2 with Struts-1 application.

2007-11-21 Thread Ted Husted
Each WAR file creates its own web application, so if there are two WARs, there are two applications, not one. The Java platform enforces a strict separation between applications. You might be able to share some cookies, but for all intents and purposes, the Struts 1 application might as well be ru

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Slattery, Tim - BLS
> I saw many examples on the net with the normal logic:equal > tag and the el > statement: > > So I thought I don't need I run tomcat 5.5.12 I don't know whether that supports J2EE 2.4 or not. -- Tim Slattery [EMAIL PROTECTED] ---

Re: combining Struts-2 with Struts-1 application.

2007-11-21 Thread Leena Borle
Hi, Actually, it is not just the action that is invoked. I want the entire flow of other S1 to be executed after the action is executes. According to plugin, what I understand is, I can call the action, but still have to use my S2 JSP page after "Success". See example below. com.mycompany.my

RE: [S2] Display Tag? (2.0.11)

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
Hi Musachy, Thank you so much for your post. I had the same issue and came across your email. It worked great for me. How did you find out about #attr? Is that something specific to displaytag? Thank you, Jane -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent:

RE: [S2] s:if in 2.0.11

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
I changed to I assume acr should be in pageContext. Now I am having no error but the value is not populated. What did I do wrong? Thanks, Jane -Original Message- From: Jiang, Jane (NIH/NCI) [C] Sent: Wednesday, November 21, 2007 12:23 PM To: Struts Users Mailing List Subjec

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2007-11-21 Thread Ted Husted
Amazon is showing the book as available now! If you order through this link, the commission on the sale will be donated to the ASF. * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039 Ian, any word on whether Apress will be making their books available for the Kindle

Re: S2/SmartURLs: parameterized results...

2007-11-21 Thread Ted Husted
Let me take that back. The proper idiom is to use the params attribute. > @Result(name="success",location="/competitions/admin", > params={"id","${compId}"}) If there is more than one parameter, we can continue to add more name/value pairs to the array. -Ted. On Nov 21, 2007 1:27 PM, Ted Hust

Re: Naming convention

2007-11-21 Thread Ted Husted
Since it's a psuedo-Friday in the US, and we're chatting about stored procedures and DBA/Dev range wars, I thought I'd whip out this "oldie but goodie". eBay does not use stored procedures * http://iancooper.spaces.live.com/blog/cns!844BD2811F9ABE9C!337.entry -Ted. On Nov 21, 2007 1:25 PM, Dave

Re: S2/SmartURLs: parameterized results...

2007-11-21 Thread Ted Husted
Leave out the get :) @Result(name="success",location="/competitions/admin?id=${compId}", should work just fine, if compId is an Action class property, or otherwise on the value stack. -Ted. On Nov 18, 2007 12:20 AM, Eric D Nielsen <[EMAIL PROTECTED]> wrote: > I've been trying to understand how

Re: combining Struts-2 with Struts-1 application.

2007-11-21 Thread Ted Husted
First make sure it's an issue with using the S1 Action. Try porting just one S1 Action to S2, to test whether the same thing happens or not. If it is only the actions that need to invoked, then the Struts 1 plugin might help. It doesn't let us run Struts 1 taglibs from Struts 2, but it can wrap th

Re: Naming convention

2007-11-21 Thread Dave Newton
This also depends on how you're accessing the DB: if you're using Hibernate, iBatis, etc. then there's a convenient layer of abstraction such that the mapping from Java method => stored proc need only occur in the mapping file(s) and leave code out of it. Given my underlying mistrust of DB develop

Re: Naming convention

2007-11-21 Thread Ted Husted
Given the refactoring tools in IDEs today, I'd probably go with keeping the names in synch as opposed to keeping some other form of documentation in synch; since, if the classes are not named then same, then you might have to otherwise document which class calls which stored procedure. One counter

Re: Naming convention

2007-11-21 Thread Gary Affonso
Zhang, Larry (L.) wrote: I knew my question may not be very related to this list, but let me just ask anyway: I have many DB2 stored procedures, for each procedure I correspondingly have a Java parser to parser the result set. I currently name these classes the same name as stored procedure. E

Re: Problem with struts2 iterator and ognl

2007-11-21 Thread Gary Affonso
sagarlotiya wrote: Hi, "not going through the action " means that, directly set on "Model bean" without going through action. I don't think you want to avoid "going through the action". You may not want the property to be a direct property of the action (and instead have it be a property of

Re: [s2] (non trivial) custom made Interceptor and Action testing.

2007-11-21 Thread Gary Affonso
GF wrote: Hello, maybe someone of you have any good link about a non-trivial custom made interceptor My suggestion would be to download the source and take a look at the code for some of the built-in interceptors. I think there were some "server side" articles/tutorials for webwork intercep

RE: [S2] s:if in 2.0.11

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
Thanks so much for your explanation. I changed my statement to That works. I don't want to move result size to value stack yet since I need to move on and see what other problems might exist for the upgrade. Now I got a similar problem. My result is displayed in a displaytag table. I

RE: [S2] s:if in 2.0.11

2007-11-21 Thread Martin Gainty
pls display import statement and tld for expression you are usingMartin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Se

[ANN] Invitation to Javaday Roma, saturday 1st December (second edition)

2007-11-21 Thread Antonio Petrelli
Rome - saturday, 1st December 2007, the second edition of Javaday in Rome will be taken. It is an event promoted by Jug Roma, Javaportal community and JIA. The Javaday Roma (http://roma.javaday.it/) is an event with a lot of technical discussions, tailored for both expert and junior programmers. 2

Re: [S2] s:if in 2.0.11

2007-11-21 Thread Dave Newton
You're trying to mix expression languages. %{resultSize > 0} assumes that resultSize is on the value stack, most likely exposed via a public getter on your action. This is arguably a better practice anyway. If the list itself is available on the stack then you can call the size() method on the li

Re: Help with html:select multiple="true"

2007-11-21 Thread Dave Newton
Please see my response to your first message. Ljava.lang.String *is* an array of strings, and it wasn't clear to me why you didn't declare your dyna form field to be an array of strings (you had it as a single string). d. --- Adrian Marrero <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry about repo

[S2] s:if in 2.0.11

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
I am upgrading to 2.0.11 from 2.0.9 and got this error SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /jsp/content/findAcrResults.jsp(6,0) According to TLD or attribute directive in tag file, attribute test does not accept any expressions for this lin

AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Not bad ;-) Works like a charm. > -Ursprüngliche Nachricht- > Von: Antonio Petrelli [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. November 2007 16:27 > An: Struts Users Mailing List > Betreff: Re: EL Statements are not evaluated in logic:equal tag > > 2007/11/21, Peter Neu <[EMAIL P

Help with html:select multiple="true"

2007-11-21 Thread Adrian Marrero
Hi, Sorry about reposting this topic and forgetting to put a subject the first time. Here is my issue. Goal: I would like to be able to select multiple fields from the drop down box, retrieve them in my servlet, and use them elsewhere. I have tried using html:select multiple="true" and I contin

Re: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Antonio Petrelli
2007/11/21, Peter Neu <[EMAIL PROTECTED]>: > > Yes that works but I need to declare much more code which seems a little > senseless You are right only if you are using dyna-beans. Otherwise you can use a more complex expression: Antonio

AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Yes that works but I need to declare much more code which seems a little senseless -- -- -Pete > -Ursprüngliche Nachricht- > Von: Antonio Petrelli [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. November 2007 16:07 > An: Str

Re: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Antonio Petrelli
2007/11/21, Peter Neu <[EMAIL PROTECTED]>: > I have a problem with the evaluation of EL statement: > Did you try using ? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Hi, I saw many examples on the net with the normal logic:equal tag and the el statement: -Ursprüngliche Nachricht- > Von: Dave Newton [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. November 2007 15:45 > An: Struts Users Mailing List > Betreff: Re: EL Statements are not evaluated in

Re: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Dave Newton
Are you using the EL taglib? ARe you running on a JSP 2.0 container? d. --- Peter Neu <[EMAIL PROTECTED]> wrote: > Hello, > > I have a problem with the evaluation of EL > statement: > property="codeTal"> > > When I use just jstl like this: > > I get the value without any trouble. I use stru

Naming convention

2007-11-21 Thread Zhang, Larry (L.)
I knew my question may not be very related to this list, but let me just ask anyway: I have many DB2 stored procedures, for each procedure I correspondingly have a Java parser to parser the result set. I currently name these classes the same name as stored procedure. Example, Csm5RRP (this is th

EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Hello, I have a problem with the evaluation of EL statement: When I use just jstl like this: I get the value without any trouble. I use struts 1.2.9 Any help is much appreciated. Cheers, Pete - To unsubscribe, e-mail

RE: [S2] Tooltip and simple theme

2007-11-21 Thread Jiang, Jane (NIH/NCI) [C]
Thanks. That works for us. -Original Message- From: Jim Cushing [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 5:07 PM To: Struts Users Mailing List Subject: Re: [S2] Tooltip and simple theme You can use the "title" property, which generates a title attribute in the HTML.

Re: javascript update tag value property [OFFTOPIC?]

2007-11-21 Thread Domingo A. Rodriguez S.
Hello Victor, Simplify. something like this should work. Maquina.onChange event { document.form1.textfield1.value= document.form1.Maquina.options[document.form1.Maquina.selectedIndex].value; } Regards, Domingo --- victor sosa <[EMAIL PROTECTED]> escribió: > > ANY IDEAS, how to? > > > vict

Re: Ajax form submit - problem with Struts2 annotations?

2007-11-21 Thread wild_oscar
On an update to this issue, it seems that the s:submit tag with an ajax theme does not work when Struts2's action is configured with Annotations. If I switch action configuration to struts.xml, it will execute the correct method. In summary, when I try to execute the save method of my action, I

Fwd: Re: Having query on action chaining

2007-11-21 Thread Dave Newton
--- vijay vijay <[EMAIL PROTECTED]> wrote: > i have seen the page from here "" > struts-2.0.11\docs\docs\action-chaining.html"". > there i could not get much > info.i am looking more.if u have info with u u can > help me.any sample > examples and any working examples are also welcome I still don'

[s2] (non trivial) custom made Interceptor and Action testing.

2007-11-21 Thread GF
Hello, maybe someone of you have any good link about a non-trivial custom made interceptor and about some action testing? Thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [S2] How to forward to another struts mapping

2007-11-21 Thread Omkar Patil
You can do it in two ways - 1. Action chaining using result type="chain" - But as a rule, action chaining is not recommended. 2. Using Redirect-after-post pattern. You'll need to define result type="redirectAction". For example, if you need to redirect from ActionA to ActionB, your struts2 config

Re: Having query on action chaining

2007-11-21 Thread vijay vijay
hi *Alexis ,* *i am looking action chaining in struts 2, i have gone through the page which is there in docs and observing the showcase also. but i wanted to be more specific to this point even interseptors can you help me?? * ** On 11/21/07, Alexis Pigeon <[EMAIL PROTECTED

Re: Having query on action chaining

2007-11-21 Thread Alexis Pigeon
Hi vijay, On 21/11/2007, vijay vijay <[EMAIL PROTECTED]> wrote: > thank you, > i have seen this iam looking for more links... http://www.google.com/search?hl=en&q=struts+action+chaining I don't mean to be rude, but that's the best we can offer if you are not more spec

Re: [s2] conditional validation

2007-11-21 Thread lbastil
OK, sorry, I may have to describe it a little more in detail or I did not understand the whole point ... Yes, lets assume I have: FooClass-meth1-validation.xml First set of validations FooClass-meth2-validation.xml Second set of validations Action class FooClass is modeldriven

Re: Having query on action chaining

2007-11-21 Thread vijay vijay
thank you, i have seen this iam looking for more links... vijay On 11/21/07, Omkar Patil <[EMAIL PROTECTED]> wrote: > > > http://struts.apache.org/2.0.11/docs/action-chaining.html > > > vijay vijay wrote: > > > > Hi, > > i am want to work on action chaining c

Re: Having query on action chaining

2007-11-21 Thread Omkar Patil
http://struts.apache.org/2.0.11/docs/action-chaining.html vijay vijay wrote: > > Hi, > i am want to work on action chaining can any one give me links > for > it. > > vijay > > -- View this message in context: http://www.nabble.com/Having-query-on-action-chaining-tf484