Re: Struts performance metrics

2009-02-20 Thread Mohan Radhakrishnan
I will use larger datasets and property access also. We plan to profe right from the beginning but I am not sure how JSTL can replace Struts tags to increase performance. I understand that in order to display data we can use JSTL. Struts tags are required to use the framework fully. Isn't it ? --

Re: about s:iterator

2009-02-20 Thread Hardik Shah
yap you right newton.dave wrote: > > > > Maybe try [0][n]? > > But yuck... That's a horribly brittle way to write code. At *least* use > a map so you don't have to rely on positioning :/ Consider using an > actual object, as well, thus eliminating the bulk of this question. > > Dave >

Re: Struts performance metrics

2009-02-20 Thread Steven Yang
Hijust to share some of my experience and see what you decide to do I have worked on a project which the end result is packed into a jar (actions and stuff)and will be throw into and coexist with other project. To run the project, I simply put the jar and related jsp and struts setting xml's into

Re: Nested iterator struts 2.1.6 -- automatically rebuild the collection

2009-02-20 Thread musomesa
What do you have inside the iterator tag?? Hard to diagnose without knowing what you have. Some possible causes: A a possible OGNL expression error inside your iterator tag. If the Sample objects are not built-in java objects (String, Date..) you might be having type conversion problems? Are

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-20 Thread musomesa
Wasn't aware of it (the separator) and that any single character does the separation trick. Thanks for the pointer. Chris -Original Message- From: Dave Newton To: Struts Users Mailing List Sent: Thu, 19 Feb 2009 12:58 pm Subject: Re: @Result annotation (2.1.6) -- name does not defau

Re: WARNING: Could not find action or result There is no Action mapped for na...

2009-02-20 Thread Musomesa
In your index.jsp if seems you are saying so the framework is searching the default "/" namespace. Try ** A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1218822736x1201267884/aol?redir=http:%2F%2Fwww.freecreditreport

Simplets way to make default labelposition=left on css_html theme

2009-02-20 Thread Ignacio de Córdoba
Hi there, after doing some search here and googling I still need some directions on the simplest way to make my forms s:textfield have a default labelposition="left" attribute. I am using css_html theme... ¿do I need to extend it? thanks, Ignacio -- View this message in context: http://www.nabb

Re: Struts 2.1 validation with annotations

2009-02-20 Thread Musachy Barroso
Please open a jira ticket with as much information as possible. thanks musachy On Fri, Feb 20, 2009 at 12:33 PM, billgloff wrote: > > I have the same exact problem now after upgrading to 2.1. > > I have the following model-driven validation defined (which works fine in > 2.0): > > @VisitorFieldV

S2 How to configure converter for double in xwork-conversion

2009-02-20 Thread Néstor Boscán
Hi I’m using Struts 2.0.14 and I’ve created a converter for Decimal types and configure them in xwork-conversion.properties: java.lang.Float = ve.com.tcs.commons.view.converter.DecimalTypeConverter java.lang.Double = ve.com.tcs.commons.view.converter.DecimalTypeConverter java.math.BigDeci

Re: Struts 2.1 validation with annotations

2009-02-20 Thread billgloff
I have the same exact problem now after upgrading to 2.1. I have the following model-driven validation defined (which works fine in 2.0): @VisitorFieldValidator(message="") Now I get the same exception as above when validation fails. If I add in any kind of text into the message param, it work

DynaValidatorForm is null (from ActionForm in execute)

2009-02-20 Thread sledge
Here is the code: action .java: public class EditColActionInit extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // form arrive

sx:datetimepicker and form theme css_xhtml

2009-02-20 Thread Andras Balogh
Hi, I'm trying to use the sx:datetimepicker with Struts 2.1.6. The datetimepicker is embedded in a form with theme="css_xhtml". I did not find a way to set for the datetimepicker the theme explicitly and right now it generates a table row (tr) for the datetimepicker while other form eleme

Re: about s:iterator

2009-02-20 Thread Dave Newton
Hardik Shah wrote: while (rs.next()) { Object [] record = { new Integer(rs.getInt("NodeId")), // Node Id rs.getString("NodeDisplayName"), // Display Name

Re: about s:iterator

2009-02-20 Thread Sébastien Domergue
When you are inside an iterator, the context becomes the objet as it is in a "for" except that there is no explicit name for the property handled. In struts, it's a generic name : [0]. If you just want to display the toString() result, you just have to write : without more parameter. If you wa

Re: Struts performance metrics

2009-02-20 Thread Dave Newton
Mohan Radhakrishnan wrote: I took a simple JSP using Struts tags and one using equivalent JSTL tags and deployed the WARS one by one in tomcat and used JProbe to attach to the session. I filtered the call graph to show OGNL only and then JSTL only. That doesn't really help me much. I ask

Re: Struts performance metrics

2009-02-20 Thread Mohan Radhakrishnan
Hi, I took a simple JSP using Struts tags and one using equivalent JSTL tags and deployed the WARS one by one in tomcat and used JProbe to attach to the session. I filtered the call graph to show OGNL only and then JSTL only. Actually our intention was to reduce the performance implic

Re: Struts2 rest plugin :struts.convention.action.*, possible values

2009-02-20 Thread mahanare
Thanks > These values, as well as the rest, are documented on the convention > plugin page: > > http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Configurationreference > > Dave > > > -- View this message in context: http://www.nabble.com/Struts2-rest-plugin-%3A

Re: about s:iterator

2009-02-20 Thread Hardik Shah
Thnaks but when i print like it shows value in all same like [1,1] i could not understand properly what it do please help more and be more descriptive Sébastien Domergue wrote: > > Hi, > > in an iterator, the object can be accessed by [0]. After that, it is as > in Java. So, with someth

Re: about s:iterator

2009-02-20 Thread Sébastien Domergue
Hi, in an iterator, the object can be accessed by [0]. After that, it is as in Java. So, with something like that it should work : Regards Sébastien Hardik Shah a écrit : hi i am using struts 2.0.11.2 i m filling vector somthing like while (rs.next()) { Ob

Re: session management

2009-02-20 Thread Dave Newton
mthalis wrote: i have already implemented login, logout parts using struts(jsp). But the case is after logged out, when i press back button it is redirected to the particular page that i was in before logged out. these are my codings, and plz kind enough to give me reasonable answer. //set ses

about s:iterator

2009-02-20 Thread Hardik Shah
hi i am using struts 2.0.11.2 i m filling vector somthing like while (rs.next()) { Object [] record = { new Integer(rs.getInt("NodeId")), // Node Id rs.getString("NodeDisplayName"),

Re: Struts2 rest plugin :struts.convention.action.*, possible values

2009-02-20 Thread Dave Newton
mahanare wrote: I would like to know where can i get all possible values for structs constants? It's a string, you can make it anything you want. I'm almost positive the other possible value is "false". You can make it anything you want. These values, as well as the rest, are doc

Re: Struts performance metrics

2009-02-20 Thread Dave Newton
Mohan Radhakrishnan wrote: I profiled using JProbe and for a simple 'hello world' jsp I found that JSTL is taking a little more time than OGNl. OGNL : org.apache.jsp.example.HelloWorld_jsp._jspService(HttpServletRequest; HttpServletResponse) Cumulative time spent = 1103 --

Re: session management

2009-02-20 Thread Paweł Wielgus
Hi, i wasn't able to understand Your problem, so i was thinking that the code You cited below was about the problem discussed on my blog. If it's not this problem than try to describe the problem in other words, i simply don't get it. Best greetings, Paweł Wielgus. 2009/2/20 mthalis : > > Give me

Re: Struts performance metrics

2009-02-20 Thread Mohan Radhakrishnan
Hi, I profiled using JProbe and for a simple 'hello world' jsp I found that JSTL is taking a little more time than OGNl. OGNL : org.apache.jsp.example.HelloWorld_jsp._jspService(HttpServletRequest; HttpServletResponse) Cumulative time spent = 1103

Re: Struts performance metrics

2009-02-20 Thread Mohan Radhakrishnan
Hi, I profiled using JProbe and for a simple 'hello world' jsp I found that JSTL is taking a little more time than OGNl. OGNL : org.apache.jsp.example.HelloWorld_jsp._jspService(HttpServletRequest; HttpServletResponse) Cumulative time spent = 1103

Re: Errors repopulating the list after validation.

2009-02-20 Thread sheva j
Hi, Check whether you have same name for list name in tag and in action class. It seems like you have 'i_countries' in action class and 'countries' in your jsp. Thanks, Sheeva On Thu, Feb 19, 2009 at 10:53 PM, Sidharth Bhatia < sidharth.bhat...@gmail.com> wrote: > Hi, > > Thanks for the sugge

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-20 Thread sheva j
Hi Seshagiri, Thanks for your replay. I found the solution for that. As prepare() method of Preparable interface will be called before validation interceptor, I have placed my code inside that. Thanks, Sheeva On Thu, Feb 19, 2009 at 11:44 AM, Seshagiri V wrote: > Hi, > > Please send a snippet