Struts2 doubleselect complete example

2008-09-16 Thread Sikandar123456
Hi, I have found a good article on doubleselect tag http://struts2-java.blogspot.com/2008/09/doubleselect-with-full-functionality.html here -- View this message in context: http://www.nabble.com/Struts2-doubleselect-complete-example-tp19526373p19526373.html Sent from the Struts - User mailing

Re: question: indexed textfields and maps

2008-09-16 Thread tREXX -
Hi Dave, Ok, i've tried that one and it works like it should. So that getter method works as kind of a "type hint" to the framework so that struts knows it has to convert the parameter "amount" to the given Map - Is that correct? Up to now I've only added getter methods to struts-actions when i r

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] F

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. "/> Please wait while we process your request... This page will reload automatically and display your request when it is completed.

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 a

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 Everyth

RE: [S2] URL management

2008-09-16 Thread Martin Gainty
add JspSupportServlet JspSupportServlet org.apache.struts2.views.JspSupportServlet 1 http://struts.apache.org/2.0.11.2/docs/freemarker-tags.html ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachmen

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 -

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

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

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: y

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 w

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 g

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 s:

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 u

[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: http://www.nabble.com/Named-macro-parameters-td194590

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 -

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 s:ur

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) {

[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

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

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 Map amount; > public String execute() throws Exception { > System.out.println(amount.get(10)); > System.out.println(amount.get(20)); > } > /* ??? */ > } > > What cod

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: ... ... I submit this to an action, which looks like that: class VerySimpleAction extends ActionSupport { private Map amount; public String execute() throws Exception { System.out.println(amount.ge

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 req

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 jan

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

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 tha

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 = StringUtils.split(ge

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 propertie

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: >> >> >> employee.department=Employee Department >> requiredstring=${getText(fieldName)} is requ

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 be

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 d

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: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote: > > > 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 value displayed in the messag

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!!! /WEB-INF/pages/${currentPage}.jsp Does the

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" j

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: 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 fo

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. > > value="fals

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 Customers objects > converted into JsonArray. My only problem is , how > to retrieve the response using dojo1.1.1. This se

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 Customers objects converted into JsonArray. My only problem is , how to retrieve the response using dojo1.1.1. >From my understanding i specified handleAs:jason, the r

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" %>

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" %>

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. http://struts.apache.org/2.x/struts2-plugins/struts2-rest-plugin/apidocs/org/apache/struts2/rest/ControllerClasspathPackageProvider.html do you still miss

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 classes