Rest plugin doesn't find actions

2008-09-16 Thread Pauli Savolainen
Hello, I was using struts 2.1.1.-SNAPSHOT (tile, codebehind and rest plugins) and everything was working find. Changing to 2.1.2 makes makes my actions not being found anymore. A class org.apache.struts2.rest.ControllerClasspathPackageProvider in the rest plugin is used to determine which

RE: Rest plugin doesn't find actions

2008-09-16 Thread Martin Gainty
pauli- in resources/struts-plugin.xml try disabling the controllerScanning e.g. also try to disable the bypass Action Scan e.g. constant name=struts.configuration.classpath.disableActionScanning value=false / constant name=struts.configuration.rest.disableControllerScanning

RE: Struts 2 + AjaxTags + DisplayTag

2008-09-16 Thread dynamicd
here is it .. %@ page language=java contentType=text/html;charset=UTF-8% %@ taglib prefix=s uri=/struts-tags % %@ taglib uri=http://displaytag.sf.net; prefix=display % %@ taglib uri=http://ajaxtags.org/tags/ajax; prefix=ajax % script type=text/javascript

RE: Struts 2 + AjaxTags + DisplayTag

2008-09-16 Thread dynamicd
here is it ... %@ page language=java contentType=text/html;charset=UTF-8% %@ taglib prefix=s uri=/struts-tags % %@ taglib uri=http://displaytag.sf.net; prefix=display % %@ taglib uri=http://ajaxtags.org/tags/ajax; prefix=ajax % script type=text/javascript

Struts2+dojo+JasonArray

2008-09-16 Thread prashanth2
Could anybody give me a working sample to read back jsonarray from struts2 action class using dojo. Say for example Iam having a ListCustomers objects converted into JsonArray. My only problem is , how to retrieve the response using dojo1.1.1. From my understanding i specified handleAs:jason,

Re: Struts2+dojo+JasonArray

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, prashanth2 wrote: Could anybody give me a working sample to read back jsonarray from struts2 action class using dojo. Say for example Iam having a ListCustomers objects converted into JsonArray. My only problem is , how to retrieve the response using dojo1.1.1. This

Re: Rest plugin doesn't find actions

2008-09-16 Thread Pauli Savolainen
Hi, Thank you, that helped me. Now my actions get found and called nicely. Birlliant. Pauli 2008/9/16 Martin Gainty [EMAIL PROTECTED]: pauli- in resources/struts-plugin.xml try disabling the controllerScanning e.g. also try to disable the bypass Action Scan e.g. constant

Validation messages

2008-09-16 Thread stanlick
Does anyone know of a way to refer to a key from a value within a property file? Consider this: s:textfield key=employee.department/ employee.department=Employee Department requiredstring=${getText(fieldName)} is required This results in the message employee.department is required. What I

reading drop down through properties file

2008-09-16 Thread sam thothi
Hi all, Can any one please let me know how to read a drop down through properties file I have two drop downs. I need to read the drop down values through the properties file . Say for example if i have in the properties file months.properties Month = january,february,march.december

Re: Variable input target

2008-09-16 Thread stanlick
Does anyone have a clue on this deal? Wildcard mapping and validation is the issue. Right now I have a kludge where I am maintaining the current page myself in the scopedModelDriven session and providing it in the action mapping. THIS IS GROSS!!! result

Re: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote: s:textfield key=employee.department/ employee.department=Employee Department requiredstring=${getText(fieldName)} is required This results in the message employee.department is required. What I would like to do is have the value for this key's

Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi wrote: Can any one please let me know how to read a drop down through properties file I have two drop downs. I need to read the drop down values through the properties file . There are a few options; the easiest is probably to get the property in your action,

Re: reading drop down through properties file

2008-09-16 Thread sam thothi
Do any one has a sample code to do similar thing. thanks in advance for your help. On Tue, Sep 16, 2008 at 12:59 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Tue, 9/16/08, sam thothi wrote: Can any one please let me know how to read a drop down through properties file I have two drop

Re: Struts2+dojo+JasonArray

2008-09-16 Thread Struts Two
I am using Dojo 1.1.1[combo box widget and FilterString widget] with struts 2, I esp use extensive use of dojo ItemFileReader and my result type is geared toward Dojo Data reader abstractions. The only thing I have done on the strust part (apart from making sure the Jason string generated can

Re: Validation messages

2008-09-16 Thread stanlick
You so right! I had the key/values in the WRONG resource file. Thanks bro. P.S. Now can you solve the variable result input problem? newton.dave wrote: --- On Tue, 9/16/08, stanlick wrote: s:textfield key=employee.department/ employee.department=Employee Department

how to read drop down from the properties file

2008-09-16 Thread sam thothi
Can any one please let me know how to read a drop down through properties file I have two drop downs. I need to read the drop down values through the properties file . It would appreciate if any one can provide a sample code to do this kind of function. Say for example if i have in the

Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi wrote: Do any one has a sample code to do similar thing. public class TheAction extends ActionSupport { private String[] options; public String[] getOptions() { return options; } public String execute() { String[] options =

Re: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote: P.S. Now can you solve the variable result input problem? Sorry, only one freebie per day. I originally solved this problem a long time ago (I started a similar thread sometime over a year ago) by creating a custom workflow interceptor; I don't know if

Re: reading drop down through properties file

2008-09-16 Thread sam thothi
Dave, my question is i have month.properties file, where i have declared months = january,february, march.. january = monday,tuesday , wednesday in the first drop down i want to load months, and after selecting for example january then i want to load monday , tuesday and wednesday. I want to

Re: reading drop down through properties file

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, sam thothi [EMAIL PROTECTED] wrote: my question is i have month.properties file, where i have declared months = january,february, march.. january = monday,tuesday , wednesday in the first drop down i want to load months, and after selecting for example january then i

Re: struts 2 get method encoding problem ?

2008-09-16 Thread Leonidas Papadakis
i am using tomcat 5.5.25 that currently has a parameter to support this : URIEncoding=UTF-8 If i set this parameter at the connector the value is displayed as question marks ( page source ) and print out is wrong again... Regards, Leon Lukasz wrote : That's why browsers encoding such

question: indexed textfields and maps

2008-09-16 Thread tREXX -
Hi everybody, I'd like to do something very simple. Assume we have this piece of HTML: ... input type=text name=amount[10] value=33.3 / input type=text name=amount[20] value=66.6 / ... I submit this to an action, which looks like that: class VerySimpleAction extends ActionSupport { private

Re: question: indexed textfields and maps

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, tREXX - [EMAIL PROTECTED] wrote: class VerySimpleAction extends ActionSupport { private MapInteger, Float amount; public String execute() throws Exception { System.out.println(amount.get(10)); System.out.println(amount.get(20)); } /* ??? */ } What

xwork library source

2008-09-16 Thread Derrick Koes
Is there a reliable source repository for the xwork-2.0.5.jar source included in the struts 2.0.11.2 distribution? I'm hitting an issue with validator configuration similar to what others have hit in different struts 2 releases. https://issues.apache.org/struts/browse/WW-2633

[S2] Interceptor question

2008-09-16 Thread Kawczynski, David
I have a mature, home-grown database-backed authentication authorization framework. It does not conform to JAAS or anything remotely similar. I'd like to harness in a new struts2 site, because the core functionality exists, it pre-populated, etc At a very high level, would I be able to get some

Re: question: indexed textfields and maps

2008-09-16 Thread tREXX -
Mhh... I guess the getter method doesn't help, since I don't want to access the properties of the action from JSP. I just want to *receive* the submitted indexed parameters from the HTML-snippet, which means I need some sort of a setter method. I already tried public void setAmount(Map amount) {

Re: [S2] URL management

2008-09-16 Thread Laurie Harper
If the URLs you are substituting in are external to the web app, they don't need to be 's2-friendly'; an external site doesn't care about your Struts app's session ID, etc. If the URLs are (or may be) internal to the application, however, you do need to take care of that. In that case, use

Re: xwork library source

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, Derrick Koes wrote: Is there a reliable source repository for the xwork-2.0.5.jar source included in the struts 2.0.11.2 distribution? http://www.opensymphony.com/xwork/cvs.action There's a 2.0.5 tag, at least when I browse the repo. Dave

[S2] Velocity Integration

2008-09-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm an S1 user and a member of the Velocity team. I recently posted a message to the velocity-dev list regarding the ugly syntax required by the S2 tag Velocity implementation. For reference:

Re: question: indexed textfields and maps

2008-09-16 Thread Dave Newton
Mhh... I guess the getter method doesn't help, since I don't want to access the properties of the action from JSP. Too much cut, not enough paste. Ok, i could add each Map to a collection and than loop through the collection and each keySet later in the execute method but that's plain ugly.

Re: [S2] URL management

2008-09-16 Thread esemba
Thank you for your valuable reply. Well, in that case my problem is probably unsolvable. Main problem is, that i don't know how many embedded urls there is going to be in larger text blocks stored in DB. I could count them, but only on runtime. So, only solution would be automatically generate

Re: [S2] URL management

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, esemba wrote: Well, in that case my problem is probably unsolvable. Main problem is, that i don't know how many embedded urls there is going to be in larger text blocks stored in DB. I could count them, but only on runtime. So, only solution would be automatically

Re: [S2] URL management

2008-09-16 Thread esemba
Thank you for your reply. Well, yes, but I just thought, that checking for disabled cookies and appending jsessionid, is container's job, not mine, so i tried to figure out, how to accomplish it. But i'm afraid, i'll end up doing it manually. esemba wrote: Hi, i'm migrating my old php

Re: [S2] URL management

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, esemba wrote: Well, yes, but I just thought, that checking for disabled cookies and appending jsessionid, is container's job, not mine, so i tried to figure out, how to accomplish it. But i'm afraid, i'll end up doing it manually. Your particular case is different:

URL Mapper Best Pracitices Question

2008-09-16 Thread Frans Thamura
hi all i like the Roller approach http://www.jroller.com/fthamura - my login fthamura this is a URL Mapper. can share your experience with this? so we can use it in our development so i know the best practices way is it better implement in interceptor like ZeroConfig or implement is a action

session based pojo as form variables

2008-09-16 Thread John Norvell
Hi, I'm new to struts2 and old with struts 1.x. My application is 99% wizards using session based form beans. I'm trying to write my own simple struts2 test app with a single form, single action, and a pojo valueobj saved in session. The action has 2 functions: one to create the pojo and

Re: session based pojo as form variables

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, John Norvell wrote: Is there simple answer to this? I can include some code snippets if necessary. Necessary ;) There's no way to know what your form is storing its values to w/o seeing the action and what it's exposing to the JSP. Dave

RE: [S2] URL management

2008-09-16 Thread Martin Gainty
add JspSupportServlet servlet servlet-nameJspSupportServlet/servlet-name servlet-classorg.apache.struts2.views.JspSupportServlet/servlet-class load-on-startup1/load-on-startup /servletto use a macro lang like velocity or freemarker to construct then use OGNL or some other mechanism

RE: [S2] Interceptor question

2008-09-16 Thread Martin Gainty
dave- which urls needs to be secured? Struts webapp? All the webapps of your container? everything under Port 80? take a look at http://www.devarticles.com/c/a/Java/Securing-Struts-Applications/ Martin __ Disclaimer and confidentiality note

Re: (Struts2) howto access the user.fname on the jsp page (user's object in http session)

2008-09-16 Thread mctdeveloper
Click the following link http://intricatetips.blogspot.com Regards -- View this message in context: http://www.nabble.com/%28Struts2%29-howto-access-the-user.fname-on-the-jsp-page-%28user%27s-object-in-http-session%29-tp14803679p19525044.html Sent from the Struts - User mailing list archive

RE: ExecuteAndWaitInterceptor problem

2008-09-16 Thread ravindra
Thanks for the replay. I got this working if I use a freemaker template as my result. The content of the file is below. html head meta http-equiv=refresh content=5;url=@s.url includeParams=none// /head body Please wait while we process your request... p/ This

Re: how to read drop down from the properties file

2008-09-16 Thread Lukasz Lenart
Hi, You can make it a I18N resource, read via getText(month) in action, split in to an array and expose vie getter from action to jsp. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED]