Re: How to get value of tag attribute from OGNL?

2009-10-12 Thread Musachy Barroso
I am not sure I understand what you mean. Is "someTagAttribute" set in the context by your custom tag? musachy On Mon, Oct 12, 2009 at 2:57 PM, Alex Siman wrote: > > I have created JSP file tag as it is described here > http://java.sun.com/javaee/5/docs/tutorial/doc/bnama.html > > To get value o

How to get value of tag attribute from OGNL?

2009-10-12 Thread Alex Siman
I have created JSP file tag as it is described here http://java.sun.com/javaee/5/docs/tutorial/doc/bnama.html To get value of tag attribute 'someTagAttribute' I use this code: OGNL context works fine within this file tag. But I realized that if there will be an action property with the same n

Re: Changing the border color of a text field

2009-10-12 Thread Alex Siman
Try to add next code: james billa wrote: > > Hi, > > I have a field called "Preferred Zip codes : ". The user is provided with > 10 > textfields for this to enter. > He may enter 1 or more and submit the form. If any of the zip codes that > he > entered is not in my > database, I ne

Changing the border color of a text field

2009-10-12 Thread james billa
Hi, I have a field called "Preferred Zip codes : ". The user is provided with 10 textfields for this to enter. He may enter 1 or more and submit the form. If any of the zip codes that he entered is not in my database, I need to change the border color of that textfield containing incorrect zip co

Re: Behaviour of Double conversion

2009-10-12 Thread Lukasz Lenart
2009/10/12 Eduard Neuwirt : > Any Idea ? Could you add you comments to http://jira.opensymphony.com/browse/XW-606 ? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ - To unsubscribe, e-mail: user-unsu

Re: Behaviour of Double conversion

2009-10-12 Thread Eduard Neuwirt
Hello Martin, yes i did. The converter works partially. For displaying the dot-notification is used. For input the comma notification is used. Any Idea ? Martin Gainty schrieb: did you use xwork DoubleConverter? @Conversion() public class ConversionAction implements Action { private String

Re: Proccessing parameters inside Struts action

2009-10-12 Thread Terry Gardner
In the commons classes at http://kenai.com/projects/commons, there is a class ServletUtils with the following code to extract parameters and place them into a Collection from a servlet request (which can be obtained via ServletActionContext.getRequest()): public static Collection getP

Re: Proccessing parameters inside Struts action

2009-10-12 Thread Paweł Wielgus
Hi Michael, when You have in POST request myParam with myValue then in action simply add public setter setMyParam(String value) it's same as for standard request. Best greetings, Paweł Wielgus. 2009/10/12 Michael Varlik : > Hi, > > I'm using a Struts2 action to devliver JSON data. This action is

Proccessing parameters inside Struts action

2009-10-12 Thread Michael Varlik
Hi, I'm using a Struts2 action to devliver JSON data. This action is calleb by an Ajax HTTP request. Now, I need to send some parameter along with the request. The sending of the parameters works fine but I don't know how to access them from within the struts action. So my question is: what is

Re: cannot find property [templateDir]

2009-10-12 Thread Musachy Barroso
you can turn off logging for that class, in log4j. Those messages will won't be logged by default in 2.1.8+ musachy On Mon, Oct 12, 2009 at 4:07 AM, RogerV wrote: > > I'm getting hundreds of these messages cluttering up my tomcat logs - it > doesn't stop my > struts application working though. C

Re: Overriding default action mapper

2009-10-12 Thread Musachy Barroso
yes, it will work. musachy On Mon, Oct 12, 2009 at 2:08 AM, RogerV wrote: > > > > Musachy Barroso wrote: >> >> this is how you do it: >> >>  > class="com.MySuperMapper" name="superMapper"/> >>   >> >> musachy >> > > Would this change to struts.xml be expected to work if I'm using the > conventio

Re: struts2.1.8 iterator tag problem

2009-10-12 Thread Dale Newfield
karen wrote: You've got a number of bugs here. The first (not technical, more for human understanding) is that there are too many ambiguities. If you want to write ognl, tell the compiler that. Another is that a one-charac

cannot find property [templateDir]

2009-10-12 Thread RogerV
I'm getting hundreds of these messages cluttering up my tomcat logs - it doesn't stop my struts application working though. Can someone tell me where these messages are coming from and what I need to do to suppress them? Regards -- View this message in context: http://www.nabble.com/cannot-find

Re: action class is a part of controller or model; and what about formBean

2009-10-12 Thread Arindam Rajbanshi
ya, i understand, but action class is a part of controller or model. and formBean is a part of model or controller. On Mon, Oct 12, 2009 at 3:59 PM, Terry Gardner wrote: > Broadly speaking, the Controller is the filter, the Model is the action, > and the result leads to the View. > > > On Oct 12,

Re: action class is a part of controller or model; and what about formBean

2009-10-12 Thread Terry Gardner
Broadly speaking, the Controller is the filter, the Model is the action, and the result leads to the View. On Oct 12, 2009, at 5:58 AM, Arindam Rajbanshi wrote: i am doing struts 1.2 . Please tell me action is a part of controller or model. and formbean is a part of controller or model. eve

Re: using a map of parameters with the s:url tag

2009-10-12 Thread Tommy Pham
From: Wim De Smet To: Struts Users Mailing List Sent: Mon, October 12, 2009 3:20:49 AM Subject: Re: using a map of parameters with the s:url tag On Mon, Oct 12, 2009 at 12:06 PM, Tommy Pham wrote: > > From: Wim De Smet > To:

Re: using a map of parameters with the s:url tag

2009-10-12 Thread Wim De Smet
On Mon, Oct 12, 2009 at 12:06 PM, Tommy Pham wrote: > > From: Wim De Smet > To: Struts Users Mailing List > Sent: Mon, October 12, 2009 2:23:29 AM > Subject: using a map of parameters with the s:url tag > > Hi all, > > I'm using struts 2.1.x. Given a Map called p

Re: using a map of parameters with the s:url tag

2009-10-12 Thread Tommy Pham
From: Wim De Smet To: Struts Users Mailing List Sent: Mon, October 12, 2009 2:23:29 AM Subject: using a map of parameters with the s:url tag Hi all, I'm using struts 2.1.x. Given a Map called parameters I want to construct an URL as follows: Unf

action class is a part of controller or model; and what about formBean

2009-10-12 Thread Arindam Rajbanshi
i am doing struts 1.2 . Please tell me action is a part of controller or model. and formbean is a part of controller or model. even in the apache document http://struts.apache.org/1.x/userGuide/index.html tehy mentionde bormbean in Building Model Components and Building Controller Components in

using a map of parameters with the s:url tag

2009-10-12 Thread Wim De Smet
Hi all, I'm using struts 2.1.x. Given a Map called parameters I want to construct an URL as follows: Unfortunately the nested iterator seems to hide the parameter tag from the enveloping url tag? I've verified that it's indeed iterating and that the entrySet is available with the two

Dynamic tree

2009-10-12 Thread Francisco Exposito
Hello, anybody knows how to create a dynamic tree with checkboxes and create/delete/rename option? I've found a jquery tree plugin which seems good but I don't know if it can be used with Struts2 (www.jstree.com) Any other option will be appreciated. Thanks.

Re: Overriding default action mapper

2009-10-12 Thread RogerV
Musachy Barroso wrote: > > this is how you do it: > > class="com.MySuperMapper" name="superMapper"/> > > > musachy > Would this change to struts.xml be expected to work if I'm using the convention plugin, or do I need to configure the change in a different way? Regards -- View this m