Re: select problem

2009-03-12 Thread Paweł Wielgus
Hi Elyes, which html field should post that label? There is only a select which will post id. Also the name element of the optionsCollection is missing. Best greetings, Pawel Wielgus. 2009/3/11, elyes sallem elyes.sal...@gmail.com: Hello, i have a select component associated with a property

How to set an ActionValidatorManager to unittest?

2009-03-12 Thread Gordian Yuan
Hi, All I found this article, How do I unit test my action's validation logic http://cwiki.apache.org/confluence/display/WW/How+do+I+unit+test+my+action%27s+validation+logic, However, in struts2.1.6 have been removed ActionValidatorManagerFactory class My question is how can be obtain an

Re: Struts2 Standards, guidelines, recommendations

2009-03-12 Thread Norris Shelton
I was looking for something akin to the java code convention standard (http://java.sun.com/docs/codeconv/). My guess is that there is nothing out there for that. My guess that would boil down to things like naming conventions for Actions, execute methods, etc. For recommendations (don't ask

historyBack

2009-03-12 Thread PEGASUS84
good moorning; does someone know How can I create an action which allows to go back to the previous page? -- View this message in context: http://www.nabble.com/historyBack-tp22473940p22473940.html Sent from the Struts - User mailing list archive at Nabble.com.

Rest plugin and 2.1.6 - controllers not mapped

2009-03-12 Thread Niels Boldt
Hi I have a web application that uses Struts2 2.1.2 and the rest plugin. I'm developing using a combo of eclipse, maven and tomcat. However, I have tried to upgrade to 2.1.6 and then the application stops to work. The problem is that my action classes does not get mapped anymore after I

RE: this is driving me nucking futs!

2009-03-12 Thread Martin Gainty
Mitch- %@ taglib prefix=s uri=/struts-tags % %@ page contentType=text/html;charset=UTF-8 language=java % html headtitleNumbers Game/title SCRIPT LANGUAGE=JavaScript var submitcount=0; function submitForm() { var url ='http://localhost:8080/struts2-showcase-2.1.2/action' +

Re: this is driving me nucking futs!

2009-03-12 Thread Dave Newton
mitch gorman wrote: I AM AN INSTRUMENT OF CHANGE!!! Hmm, when people say that about me they say I'm a tool. I'm not *entirely* sure they're being complimentary ;) Dave - To unsubscribe, e-mail:

Re: Rest plugin and 2.1.6 - controllers not mapped

2009-03-12 Thread wkbutler
This is combination that I found worked, but using all 2.1.6. * Name your action *Controller (as you have done) * Make sure you have a simple struts.xml like is shipped with the struts2-rest-showcase demo app (packaged with the plugin download) and no other lingering struts properties * Make

Struts 2.1.6 - Date parameters conversion failure due to missing locale

2009-03-12 Thread Andrea
Hello all, after migrating from 2.0.11 to 2.1.6 version i faced the above problem. can someone send me the xwork 2.1.3 jar file, or only the .class fixed ? I can't build it cause the enterprise firewall. I need to resolve the issue because our web app doesn't works. Thanks in advance. BR

Re: Struts 2.1.6 - Date parameters conversion failure due to missing locale

2009-03-12 Thread Lukasz Lenart
2009/3/12 Andrea andrea.giglio...@smurfitkappa.it: after migrating from 2.0.11 to 2.1.6 version i faced the above problem. can someone send me the xwork 2.1.3 jar file, or only the .class fixed ? I can't build it cause the enterprise firewall. I need to resolve the issue because our web app

How can I process form with custom index-like properties

2009-03-12 Thread Alexander Dimitrov
Hello, I'm working on complicated data generated form code s:form action=NewOrdItm theme=simple table tr tdname/td tdparams/td tdcomb1/td tdcomb2/td tdcomb3/td /tr s:iterator value=itemColl s:if

Struts 2.1.6 - Date parameters conversion failure due to missing locale

2009-03-12 Thread Andrea
Hi Lukasz, my failing configuration: - web client with italian locale - server with english locale - the user posts a form including datetimepicker (dd/mm/ format) ex. form field contains 29/01/2009 after submitted becomes 01/05/2011 form field contains 06/03/2009 after submitted becomes

Re: How can I process form with custom index-like properties

2009-03-12 Thread dusty
The [] syntax is used to define collections or maps of values. I don't think your setters are going to work that way. OGNL does not know how to handle arbitrary new setter parameters. I think what you are trying to do is create a form with an arbitrary number of fields, probably driven from

Re: this is driving me nucking futs!

2009-03-12 Thread dusty
Adding the action, namespace and params url constructing pieces to s:a would be cool, as long as we don't nerf the s:url function. I rather like the pattern of using a central routes page as an include where urls are created and their ids referenced in links via JSTL in the main pages. -D

How to hand out a param from request to request

2009-03-12 Thread Marc Eckart
Hi, I want to automatically give a paramter from request to request. How can I do this? The context why I want something like this is: We have many applications which runs on their own webservers. Now we have an approach to put them all together in an portal application. This application opens

Re: this is driving me nucking futs!

2009-03-12 Thread Musachy Barroso
a will support all the attributes that url does, it is almost done, working on the tests at the moment. musachy On Thu, Mar 12, 2009 at 12:24 PM, dusty dustin_pea...@yahoo.com wrote: Adding the action, namespace and params url constructing pieces to s:a would be cool, as long as we don't nerf

Convention for keeping passwords out of struts.xml

2009-03-12 Thread Security Management
What's the general convention for keeping database settings out of struts.xml? I have an app that will be sent to people that already have a database setup, and they need to specify the hostname, username, etc. I need ideas on how to store this outside of the war that I send. Can anyone help, I

How can I tell if Struts is finding my messages file?

2009-03-12 Thread laredotornado
Hi, I'm using Struts 1. In my ActionForm's validate method, I have a section of code ... final ActionMessage am = new ActionMessage(error.accountNum.wrong.length); errors.add(ACCOUNT_NUM_PARAM_NAME,am); My question is how can I verify that the

Re: How to set an ActionValidatorManager to unittest?

2009-03-12 Thread Greg Lindholm
gordian yuan wrote: Hi, All I found this article, How do I unit test my action's validation logic http://cwiki.apache.org/confluence/display/WW/How+do+I+unit+test+my+action%27s+validation+logic, However, in struts2.1.6 have been removed ActionValidatorManagerFactory class My

Re: Convention for keeping passwords out of struts.xml

2009-03-12 Thread Dave Newton
Security Management wrote: What's the convention for keeping database settings out of struts.xml? Hmm, I guess I never even considered putting them in there. JNDI, Spring, and property files are the obvious choices, most DB technologies support creating a datasource in their own config as

RE: Convention for keeping passwords out of struts.xml

2009-03-12 Thread Security Management
OK, my bad, I meant out of the applicationContext.xml I basically want to be able to tell someone to deploy a war file, edit a file outside of the webroot that has the settings in it, and startup tomcat. Then, my app would load that properties file and make the connection. -Original

Re: Convention for keeping passwords out of struts.xml

2009-03-12 Thread Jim Kiley
Dave's right -- a good choice here is to keep that kind of data in a server settings config file, and set up your application to pull the database context info out of the JNDI context. Check out http://tomcat.apache.org/tomcat-5.5-doc/index.html

Re: Convention for keeping passwords out of struts.xml

2009-03-12 Thread Dave Newton
Jim Kiley wrote: Dave's right -- a good choice here is to keep that kind of data in a server settings config file, and set up your application to pull the database context info out of the JNDI context. Check out http://tomcat.apache.org/tomcat-5.5-doc/index.html

UI tags encoding/stripping behavior

2009-03-12 Thread Arshan Dabirsiaghi
I'm a Struts1 guy who just started researching Struts2. Is there any place where the encoding and stripping behavior of the UI tags is located? I've done a fair bit of Googling and downloaded the source code, but I can't find any correlating logic. If I send the following string as a parameter

RE: Convention for keeping passwords out of struts.xml

2009-03-12 Thread Security Management
I'll look up the spring way to do it, I was incorrectly thinking my stuff was in struts.xml, but it's in applicationContext (which is, of course, spring). Thanks -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Thursday, March 12, 2009 2:57 PM To: Struts Users

Re: this is driving me nucking futs!

2009-03-12 Thread Musachy Barroso
it is up in svn, ticket: https://issues.apache.org/struts/browse/WW-3037 The a tag now supports all the attributes that url supports, except var, which it doesn't need. It also supports nested params. One annoyance down, a few to go. musachy On Thu, Mar 12, 2009 at 1:30 PM, Musachy Barroso

RE: this is driving me nucking futs!

2009-03-12 Thread Martin Gainty
can you explain this routes a bit more..what is this another attribute or a template? i can see see action, params but namespace? if you look at the code the base class changes from public class AnchorTag extends AbstractClosingTag TO public class AnchorTag extends ContextBean basing

Re: How can I tell if Struts is finding my messages file?

2009-03-12 Thread Lalchandra Rampersaud
You could have a class like this implemented... package additionalClasses; import java.util.ResourceBundle; public class MessageBundle { private static final String DEFAULT_BUNDLE_NAME = teamsoftSite.ApplicationResources; private static ResourceBundle defaultBundle =

Re: this is driving me nucking futs!

2009-03-12 Thread Dave Newton
Martin Gainty wrote: can you explain this routes a bit more..what is this another attribute or a template? i can see see action, params but namespace? Yeah, so if the action is in another namespace you can refer to it. if you look at the code the base class changes from public class

RE: this is driving me nucking futs!

2009-03-12 Thread dusty
Sorry Martin, did Dave answer your question? Were you just wondering about the namespace parameter on the url tag or about the routes pattern in general? mgainty wrote: can you explain this routes a bit more..what is this another attribute or a template? i can see see action, params but

RE: this is driving me nucking futs!

2009-03-12 Thread Martin Gainty
dave answered about namespace curious about 'routes pattern' thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential

S2: Using Outbound Rules with UrlRewriter

2009-03-12 Thread Daniel Ruan
Has anyone used the UrlRewriter outbound rules with Struts 2? UrlRewriter requires that the urls go through response.encodeURL(). In JSP and JSTL examples: a href=%= response.encodeURL(/world.jsp?country=usaamp;city=nyc) %nyc/a a href=c:url value=/world.jsp?country=${country}amp;city=${city}

Re: S2: Using Outbound Rules with UrlRewriter

2009-03-12 Thread Wes Wannemacher
On Thursday 12 March 2009 23:34:22 Daniel Ruan wrote: Has anyone used the UrlRewriter outbound rules with Struts 2? UrlRewriter requires that the urls go through response.encodeURL(). In JSP and JSTL examples: a href=%= response.encodeURL(/world.jsp?country=usaamp;city=nyc) %nyc/a a

org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

2009-03-12 Thread Muthu Velappan
Hi, I have a JSP page containing data like this... s:form name=form1 theme=qxhtml s:bean name=java.util.HashMap id=qTableLayout s:param name=tablecolspan value=%{2} / /s:bean s:textfield name=fieldName required=true key=fieldmgmt.fieldname

S:Iterator break out of it according to a condition

2009-03-12 Thread Ransika de Silva
Hello all, I have a list to iterate and according to a certain logic I want the iteration to stop and break out of the iteration. Similar to the break in java inside a loop. Any idea how I can achieve this? Regards, Ransika

Actionerror's wont be shown when ajax call or when we do type=redirectAction using struts2.1.6

2009-03-12 Thread sajidbigler
Hi Friends, How can we show ActionErrors,ActionMessages,FieldErrors in Ajax call using struts2.1.6.i tried to do the following http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ you can see my comments on this too tried Unable to preserve erroe