Using Struts with Dojo vs GWT

2008-10-20 Thread Ryan Detert
I am new to Struts but have used the GWT before. Would it be wise at all to try and use the GWT with Struts or should I just stick with Dojo?

Re: Using Struts with Dojo vs GWT

2008-10-20 Thread Wes Wannemacher
I don't know if this is a question we can answer for you. Dojo has its advantages and disadvantages, but from a practical perspective it is a very different framework than GWT. If the application you are going to create could make better use of GWT, then use it... Lately, the AJAX-ified

RE: Struts2 with Annotation and sx:a problem (always returning the default action)

2008-10-20 Thread Romain Maton
Hi all, No more news about that ? I read all docs and faqs and I can not find anything... De : Romain Maton Envoyé : jeudi 16 octobre 2008 17:43 À : '[EMAIL PROTECTED]'; user@struts.apache.org Objet : Struts2 with Annotation and sx:a problem (always

s:if test= how to find out the NULL value?

2008-10-20 Thread Mead Lai
Hi All, s:if test=${username !=null}Show something here/s:if s:if test=username == null Show something here/s:if which is right Tag above? I heared, It can't use like that expression after 2.0.11version, really? Any feedback is appreciated. -- BestRegards, Mead http://yayisoft.com Bob Hope -

Re: s:if test= how to find out the NULL value?

2008-10-20 Thread Al Sutton
I use username neq null or usename eq null Al. Mead Lai wrote: Hi All, s:if test=${username !=null}Show something here/s:if s:if test=username == null Show something here/s:if which is right Tag above? I heared, It can't use like that expression after 2.0.11version, really? Any feedback is

Re: s:if test= how to find out the NULL value?

2008-10-20 Thread Mead Lai
like this format? s:if test=username neq nullShow something here/s:if Thank you very much. On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton [EMAIL PROTECTED] wrote: I use username neq null or usename eq null Al. Mead Lai wrote: Hi All, s:if test=${username !=null}Show something

Re: s:if test= how to find out the NULL value?

2008-10-20 Thread Mead Lai
I use s:if test=sendId eq '' / can't find the blank String(), like '' On Mon, Oct 20, 2008 at 3:31 PM, Mead Lai [EMAIL PROTECTED] wrote: like this format? s:if test=username neq nullShow something here/s:if Thank you very much. On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton [EMAIL PROTECTED]

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Lukasz Lenart
Hi, I'm not sure where you have problem, you can define the same form for different actions in struts-config.xml Each html form has to have input with type submit, that's all. I only noticed that you are using action path (saveStatusChange.do) instead of action name (/saveStatusChange) Regards

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Joris Kimpe
The submit action is present... However, I don't use a submit button, I use a button which performs the action using an Ajax call. I overruled the submit, by using onsubmit=return false; as an form attribute. Is this the reason? You are sure it has nothing to do with a div containing the

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Lukasz Lenart
2008/10/20 Joris Kimpe [EMAIL PROTECTED]: I know I can use the same form for different actions. That's what I was trying to do. But I'm afraid it has something to do with the different div sections. No, it shouldn't, div's are used only for display and are not submitted to the actions. So

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Joris Kimpe
I know I can use the same form for different actions. That's what I was trying to do. But I'm afraid it has something to do with the different div sections. Do you know whether this can be done? If not, what's the best way to create the application I want? Joris Lukasz Lenart wrote:

Re: [S2] grabbing current URL in an interceptor

2008-10-20 Thread Tobin Juday
I'm not sure what you're asking for. The code I posted is the code that would live in the LoginInterceptor, along with any other code you have for checking for a valid session. Tobin Tobin-could you forward what the LoginInterceptor interface would look like? Thanks Martin

Confused by Result-generation

2008-10-20 Thread Stephan Schröder
hi, as far as i understand it, the calling sequenze of an action mapping looks like this: Interceptor 1- Interceptor 2-...- Action- Result-...- Interceptor 2- Interceptor 1 (see http://struts.apache.org/2.0.11.2/docs/big-picture.html) But what happens when i use this AuthenticationInterceptor:

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Joris Kimpe
Seems like it has something to do with this part of the code: logic:iterate name=statusList id=status type=be.get.xtremis.web.base.util.SelectOption input type=radio name=statusGroup value=%= status.getId()%

Struts2: Custom Validation, message from property file

2008-10-20 Thread lbastil
I have to use Custom Validation and set field errors like: addFieldError(field name, error message); instead of a plain string for the error message I would like the same property file woth message definitions as for my validator classes and actions. Is this possible? What is the most elegant

Re: Struts2: Custom Validation, message from property file

2008-10-20 Thread Paweł Wielgus
Hi Ibastil, try getText() method inside Your action. Your action needs to extend ActionSupport. Best greetings, Paweł Wielgus. 2008/10/20 lbastil [EMAIL PROTECTED]: I have to use Custom Validation and set field errors like: addFieldError(field name, error message); instead of a plain

Re: Struts2 Collection validation

2008-10-20 Thread gaelle
I hope there exists a simpler solution, but here is my workaround: use an expression validator. This idea was taken from http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html webwork wiki: collection validator (it seems that the collection validator is not yet available in

Re: Error 404: SRVE0190E: File not found:

2008-10-20 Thread Trinad
Laurie Harper wrote: Trinad wrote: Hi, I have created a struts action which construts a json string in the server side,action class successfully returned json string in the response, but I am getting an Error 404: SRVE0190E: File not found: /Test.action Any Idea about this

Results Layout Question

2008-10-20 Thread Peterson, Ryan
Hey guys, quick question on how to display results: I have a list of names/info that will be displayed for users to choose (possibility of 0-100+ names) to submit a single one back to the action. I have a collection and can display them in plain text, but what's a recommended way to display this

Re: Struts2+YUI

2008-10-20 Thread Owen Berry
You need to use the Struts JSON plugin to format your list as a JSON response. Your Javascript code can then call eval on the JSON string to create a Javascript object. Either that, or look into the YUI JSON module. Another alternative might be to look at the YUI datasource module, although I

Re: s:if test= how to find out the NULL value?

2008-10-20 Thread Dale Newfield
Mead Lai wrote: Hi All, s:if test=${username !=null}Show something here/s:if s:if test=username == null Show something here/s:if Neither. ${} is el %{} is ognl %{} in ognl is sometimes optional, but always confusing when left out. In fact, if it were not optional, then we could much more

RE: Struts2 Collection validation

2008-10-20 Thread Néstor Boscán
From what I have investigated 6 months ago there is no validation for collections. I think I even tested that you can create validators for employees[0].firstName, employees[1].lastName, but not something that will apply to all indexes. I even posted if it was possible to add expressions to

Re: Results Layout Question

2008-10-20 Thread DEck
How about a link? -Peterson, Ryan [EMAIL PROTECTED] wrote: - To: user@struts.apache.org From: Peterson, Ryan [EMAIL PROTECTED] Date: 10/20/2008 12:03PM Subject: Results Layout Question Hey guys, quick question on how to display results: I have a list of names/info that will be

RE: Results Layout Question

2008-10-20 Thread Peterson, Ryan
I could attempt an example :-) (assuming the x's are radio buttons): X Jim Hendrix X Alec Baldin X Tim Jones X Jane Jones X Bart Simpson ... And etc, with up to a hundred or so rows. The list is populated from a user selection on a previous page. The idea is the user submits a value which

s:url customization to always exclude a certain parameter

2008-10-20 Thread kdny
Hi, I'd like to customize the s:url to always exclude a certain parameter, without having that customization apply globally every time I use the s:url throughout the app. Any thoughts? We've also looked at the ExtraParameterProvider and the ParameterRemoverInterceptor. Thanks! -- View

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread 928572663
Any suggestions on how to reduce the amount of struts logging? 928572663 wrote: I have a log4j.xml file located in my /src directory in my webapp (Dynamic Web Project from eclipse ganymede). ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread Nils-Helge Garli Hegvik
You're probably not editing the log4j config that is picked up at runtime. Maybe your server has it's own config (since you're saying that log4j is in the appserver classpath)? Nils-H On Mon, Oct 20, 2008 at 8:47 PM, 928572663 [EMAIL PROTECTED] wrote: Any suggestions on how to reduce the amount

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread Chris Pratt
Personally, I seem to be able to control everything but these messages, so I'm fairly confident that the configuration is in the right place. (*Chris*) On Mon, Oct 20, 2008 at 12:12 PM, Nils-Helge Garli Hegvik [EMAIL PROTECTED]wrote: You're probably not editing the log4j config that is picked

How to read selected items from listbox in action??

2008-10-20 Thread A. Lotfi
Hi, If you have a listbox and you selct items or all items and submit to an action, how to read the selected items in the action ? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: 404 error in struts 2 blank helloworld example in RAD7

2008-10-20 Thread Tim Jowers
Thanks for the help. It works now: RAD7.0.0.6 and WAS 6.1.0.17. Works. Struts2-core-2.0.11.jar timjowers On Fri, Oct 17, 2008 at 3:48 PM, Tim Jowers [EMAIL PROTECTED] wrote: Thanks for the emails. I downgraded and made the setting but haven't solved my malfunction yet. I'm on WebSphere

Re: How to read selected items from listbox in action??

2008-10-20 Thread Mead Lai
private ListString checkBoxIds; use bove ListString in Action; You'll get some String about 'fieldValue' in Tag. s:checkbox name=checkBoxIds value=false fieldValue=someStringValue/s:checkbox On Tue, Oct 21, 2008 at 4:34 AM, A. Lotfi [EMAIL PROTECTED] wrote: Hi, If you have a listbox and you

How to bypass validation in struts2

2008-10-20 Thread newbie-gero
Hi, i'm new to struts 2 and i'm trying out the example in the struts2 webpage. Currently i'm trying on the struts2 tutorial on bypassing the validation as listed on http://struts.apache.org/2.x/docs/validating-input.html However i encounter a few problems when i deploy the code in tomcat

Re: How to bypass validation in struts2

2008-10-20 Thread Wes Wannemacher
Your problem is in the following line in your struts.xml file - action name=* result/{1}.jsp/result /action In itself, this configuration is not a bad thing, but it's location is your problem. I think order is important in the struts.xml file.

Re: How to bypass validation in struts2

2008-10-20 Thread newbie-gero
Hi, thanks for the solutions. It works when i follow your advise. I will like to ask another question. It seems that when i use this example to escape the validation, i'm not able to access to another page when i click on the submit button. Please correct me if i'm wrong. It is because of this