Re: [s2]

2006-12-08 Thread Eric Rank
Excellent! Thanks Don! E. On Dec 8, 2006, at 5:56 PM, Don Brown wrote: The '%' tells Struts to parse it with OGNL. OGNL is a very powerful expression language used by the core of Struts 2. It supports advanced features like method calls, projection, and data conversion. You can find more in

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
Ok everything is fixed, I forgot to do : ValidatorUtils.getValueAsString

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
I get the String literals and not the real numbers

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
I make a custom validator myDate I try to give as var value the day and the month, but when I try to get the values of the vars day and month, I get the String literals birthDay and birthMonth day

Re: [s2] servlet 2.4 required ?

2006-12-08 Thread Don Brown
As a published requirement, Struts 2 requires Servlet 2.4. However, I'd bet you could run a Struts 2 app on Servlet 2.3, if you were careful and did plenty of testing. You might run into a few problems in some of the JSP tags or perhaps interceptors, but as a whole, Struts 2 tries to stay away f

Re: [s2]

2006-12-08 Thread Don Brown
The '%' tells Struts to parse it with OGNL. OGNL is a very powerful expression language used by the core of Struts 2. It supports advanced features like method calls, projection, and data conversion. You can find more information about ognl here: http://www.opensymphony.com/ognl/ Don On 12/8/0

[s2]

2006-12-08 Thread Eric Rank
I've noticed that there's an EL-like syntax used within some tags in the sample jsp's that ship with the Struts 2 apps. Namely: How does the percent sign work in the line above? When I use ${url} it works just as well. Am I just behind on Expression Language specs? or is this a conventi

Validator - Date validation

2006-12-08 Thread Thomas Thomas
Hi, I see that I can validate a Date with the Validator framework, but don't know how to apply it in my case. my bean has separate variables for day - month - year (it is not one string) I have three fields because he had to choose the date with a select html tag for the day, a select html tag fo

Re: Another question about Validator

2006-12-08 Thread Thomas Thomas
Ok, I used this minlength 6 It work great. Thank u.

Error setting expr dojo.transport with value...

2006-12-08 Thread walidito
Hi, I'm using a small ajax div-tag to load data from an action. I make refreshments every x seconds. It works, But I get this exception in my console : SEVERE: Error setting expr 'dojo.transport' with value '[Ljava.lang.String;@1256a73' ognl.OgnlException: target is null for setProperty(null, "tra

Another question about Validator

2006-12-08 Thread Thomas Thomas
Hi all, I want to display a message of type "required" if password is not entered, if it is entered and less than 6 chars, display *another* message of type "minlength" I have this for now on, but not completed : minlength

generating urls with namespaces

2006-12-08 Thread Rich Thornett
Am having a few issues with Struts2 related to URLs, was hoping someone could comment if these are bugs or expected behavior. They are: 1. I'd like to use the action attribute of the url tag to generate urls. I have a few different packages/namespaces set up and what I want to do is simply supp

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
Ok thank you very much that works ! My mistake was in the mapping, where I redirected to the same jsp as the one where I've putted the div tag. Actually, I had to write a simple jsp in ordrer that it works. Otherwise, I'm always having the error message on my console : SEVERE: Error setting expr

Re: Validator FrameWork

2006-12-08 Thread Thomas Thomas
Thank u, it works great :-) I have : May I ask u, dear Christopher, what's the difference of it with what u have done :

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
Hi Chris, >How will this help? I thought you said that your action code wasn't >being executed. If that's the case, then it will still bomb before you >get a chance to call get(String,int). this method is (eventually) called as part of the processPopulate (its what fails)...but unfortunately it

path basic

2006-12-08 Thread Lim Hock-Chai
Assuming that i5 is set up to map to tomcat/webapps/i5 folder in tomcat, if my URL is http://localhost:8080/i5/home.do and all home.do does is forward the request to a tiles definition, can somebody enlighten me on what path each of these tiles' put tags are trying to reference? For exa

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: >> Have you tried calling yourFormBean.get("yourArrayList") and >> checking to see what it inside of it? > > not sure what you mean - the action method is never called as the > RequestProcessor cant populate the DynaForm f

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
Chris, >So, you have type="java.util.ArrayList" in your form bean definition? Yes >Are you sure that Struts knows how to handle that? Yes, it creates a new (empty) arraylist >Have you tried calling yourFormBean.get("yourArrayList") and checking to >see what it inside of it? not sure what

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
What is happening is that there is an error on the request, probably the action mapping is wrong, and it is returning a page with the error, but that page has the same menu as showcase, that's why your are seeing it twice. Put the full url for the action on the address bar, after you get that t

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
I don't hink I'm adding anything. Here is my code : the action : public String execute() throws Exception { return SUCCESS; } the struts.xml: /JSPs/Menu.jsp and the jsp : ... ...

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: > Chris, In my DynForm I'm actually using a java.util.ArrayList > (contains my bean objects). So, you have type="java.util.ArrayList" in your form bean definition? Are you sure that Struts knows how to handle that? It migh

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
Are you sure you are not adding anything else to it and you are looking at the right one? I just check it out on showcase and it only loads once. Can you see if you have the same problem on showcase? regards musachy walidito wrote: Sorry but it didn't... It loads it many times Musachy B

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
I should have mentioned the get(String, int) is called to get the business object (bean) from the array, so it can then set the property. Since the array is empty it fails with any index. The only solution I can see is to override this method or use LazyValidatorForm (LazyDynaBean). Is there

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
Sorry but it didn't... It loads it many times Musachy Barroso-2 wrote: > > That needs to be fixed in struts, this is the jira ticket: > https://issues.apache.org/struts/browse/WW-1551 > > from showcase: > > id="once" > theme="ajax" > cssStyle="border: 1px solid y

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
Chris, In my DynForm I'm actually using a java.util.ArrayList (contains my bean objects). the http request contains properties: checkList[0].resultId=34&checkList[1].resultId=45 etc I havn't debugged using a String[] but the BeanUtilsBean.populate method works differently with properties. I'

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
That needs to be fixed in struts, this is the jira ticket: https://issues.apache.org/struts/browse/WW-1551 from showcase: Initial Content That should load the div only once. musachy walidito wrote: Hi, Actually, I get this error both in my eclipse "console" and in my web page (debug ena

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
Hi, Actually, I get this error both in my eclipse "console" and in my web page (debug enabled). First of all here is the "jsp" code that I use: @ this is the redundant error that I get on my eclipse console : -SEVERE: Error setting expr 'dojo.transport' with value

RE: Query regarding file upload

2006-12-08 Thread George.Dinwiddie
You would have to control this on the client end, perhaps using javascript to break the transaction into two HTTP requests. > -Original Message- > From: Rahul Joshi [mailto:[EMAIL PROTECTED] > Sent: Friday, December 08, 2006 8:50 AM > To: user@struts.apache.org > Subject: Query regarding

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
Hi, I'm using Struts 2.0.1 and IE 6.0.2800 Ian Roughley wrote: > > What release of Struts2 are you using and which browsers? > > /Ian > > > walidito wrote: >> thanks, but I get an error with the code you gave me : >> SEVERE: Error setting expr 'dojo.transport' with value >> '[Ljava.lang.St

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
You are seeing that error in your server logs right? There's a couple of things that we still need to fix for this integration between Struts and Dojo, but the application should work anyway. musachy walidito wrote: thanks, but I get an error with the code you gave me : SEVERE: Error setting

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: > A request scoped "out of the box" DynaValidatorForm is also unable to > handle indexed properties e.g. throws IndexOutOfBoundsException in > DynaActionForm.get(string, int) I've never used get(String, int), but I use req

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
Hi, I've only recently started putting my forms on request scope, and encountered this issue with DynaValidatorForm. A request scoped "out of the box" DynaValidatorForm is also unable to handle indexed properties e.g. throws IndexOutOfBoundsException in DynaActionForm.get(string, int) - I gu

Query regarding file upload

2006-12-08 Thread Rahul Joshi
Hi, I have created a Struts action which accepts a file from client, I used org.apache.struts.upload.FormFile as a member inside the actionform that is associated with that Action. Before saving that file uploaded by client, I first look for a token string in the request's query part. That token

Options transfer select

2006-12-08 Thread Mike Baroukh
Hi. I wanted to use option transfer select, but finally, I don't understand when it can be used because it need 2 lists : one with elements on the left and one with elements on the right. But all the example I found, or things I have to do are "not selected elements on the left and selected el

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Martin Gainty
I did'nt see your code in your posting but if you're looking for an example for using Indexed Properties please reference http://struts.apache.org/1.x/struts-taglib/indexedprops.html M- --- This e-mail message (including att

Re: Still Ajax and Struts 2

2006-12-08 Thread Ian Roughley
What release of Struts2 are you using and which browsers? /Ian walidito wrote: thanks, but I get an error with the code you gave me : SEVERE: Error setting expr 'dojo.transport' with value '[Ljava.lang.String;@179567c' ognl.OgnlException: target is null for setProperty(null, "transport", [Ljav

RE: STRUTS 2 . Populating values in Action

2006-12-08 Thread Juan Espinosa
Hi me again, im still having problems with population of values in collections (in struts2) > > class MyAction implements ModelDriven{ > > > > Customer customer = null > > > > public Object getModel(){ > > return new Customer(); > > } > > > > } > > > > And a form with some text

forward request to struts action on other server

2006-12-08 Thread bramsomers
Hi all, I have two servers, each running the sun appliction server (9.0). I've build a webapplication, and know I want to forward requests from the first to the second application server. In my LoginAction on the first server I put this in the code: return new ActionForward("http://"; + server.

RE: Struts2: How can I make a Filter redirecting to struts actions - SOLVED!

2006-12-08 Thread Ove.Oldberg
Hi Dariusz, Thanks for the input. After some coding and reading in the Struts 2.0.2 sourcecode I got this to work. In general it seems that Struts2 uses two methods from the request to examine URI (in this order): - request.getServletPath() - request.getRequestURI() The real trick is, as you s

FW: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Urso Wieske
Hi folks, Unfortunately I have not got any reactions about my statement yet? I really would like to hear some views on this matter. Kind Regards Urso Wieske -Oorspronkelijk bericht- Van: Urso Wieske Verzonden: donderdag 7 december 2006 14:11 Aan: 'Struts Users Mailing List' Onderwerp