Re: Validation "Mask": unicode characters

2009-04-01 Thread Mohan Radhakrishnan
Since Struts 2 supports J2SE 5.0 all the validation( in-built ) etc. will inherently use J2SE 5.0's support for i18n. How is this done ? Thanks, Mohan -- View this message in context: http://www.nabble.com/Validation-%22Mask%22%3A-unicode-characters-tp14206855p22841840.html Sent from the Struts

Re: struts2 and dojo

2009-03-10 Thread Mohan Radhakrishnan
newton.dave wrote: > > pascal.gehr...@freenet.de wrote: >> So please don't say that dojo-support is deprecated. This is wrong. Dojo >> just has moved!! > > Dojo is most certainly deprecated: deprecated means that support still > exists, but may, or will, stop being supported at some point in

Equivalent of immediate="true" in JSF

2009-03-10 Thread Mohan Radhakrishnan
Hi, When we use JSF we get used to the fact that values entered by the user need not be bound to the backing bean when they fail validation. How is this design rationale implemented in a non-component framework like Struts 2 ? 1. If values are not bound to the bean because the

Re: Struts 2 / Tiles 2 / Spring Security

2009-03-05 Thread Mohan Radhakrishnan
Actually I included Spring security because I remember having seen some mails about Tiles and Spring security combination( Something to do with includes/forwards ). We don't have experience with Sitemesh. Out pages are not very complex now but in the future they may be. We require customized them

Struts 2 / Tiles 2 / Spring Security

2009-03-05 Thread Mohan Radhakrishnan
Hi, Is Tiles still the most common approach to layout pages especially when you have a combination of Struts 2 / Tiles 2 / Spring Security ? What is the recommendation of the forum ? Thanks, Mohan -- View this message in context: http://www.nabble.com/Struts-2---Tiles-2---Spring-Security-

Re: Acegi with Struts 2.

2009-03-03 Thread Mohan Radhakrishnan
That was an example. Actually the filter order was rearranged a bit. Mohan -- View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22323437.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Acegi with Struts 2.

2009-03-03 Thread Mohan Radhakrishnan
I had each filter immediately followed by the mapping but then I changed it to the following. springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

Re: Acegi with Struts 2.

2009-03-01 Thread Mohan Radhakrishnan
Hi, I was able to fix the Spring Security/Struts 2 filter issue by reordering the filter mappings. Now it works. Thanks, Mohan -- View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22281615.html Sent from the Struts - User mailing list archive at Nabble.

Re: Acegi with Struts 2.

2009-02-28 Thread Mohan Radhakrishnan
I have two questions. 1. More specifically I am trying to understand the interaction between a particular namespace that groups a set of actions and Spring security. If I choose to group secure actions with a particular Struts 2 namespace then the same set of actions can also be guarded by Spring

Acegi with Struts 2.

2009-02-28 Thread Mohan Radhakrishnan
Hi, Why is velocity shown as the example here ? http://wiki.opensymphony.com/display/WW/Acegi+Security Anyone has experience with using Acegi with Struts 2 on the internet ? Thanks, Mohan -- View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp222

Re: Struts performance metrics

2009-02-27 Thread Mohan Radhakrishnan
Yes. It does. Thanks. Now I find a big difference in performance. So unless I use freemarker I should be able to mix JSTL and OGNL and get some benefit. Iteration over a very large collection and access Javabean properties. JSTL - 2557 ms OGNL - 4499 ms Mohan -- View this message in context:

Re: Struts performance metrics

2009-02-27 Thread Mohan Radhakrishnan
Ok. Are you able to access the Value Stack directly using JSTL without using s:iterator ? Thanks, Mohan -- View this message in context: http://www.nabble.com/Struts-performance-metrics-tp22077072p22247775.html Sent from the Struts - User mailing list archive at Nabble.com. -

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

Struts performance metrics

2009-02-18 Thread Mohan Radhakrishnan
Hi, There were some concerns raised about the performance of OGNL. We are evaluating Struts 2 for an internet site. How bad is the performance of OGNL ? Are there any methods to gather metrics by profiling that the forum recommends ? Thanks, Mohan -- View this message in context: http://

Sorting of array lists

2005-03-10 Thread Krishna Mohan Radhakrishnan
Hi all, I have a doubt regarding sorting in array List. I have an array List which contains array list objects of type Plan. The Plan object contains 3 variables : plantitle ,plandescription and planname. I have to sort the arraylist based on the plantitle first and then based on the plandesc

RE: logic iterate help

2005-02-24 Thread Krishna Mohan Radhakrishnan
Hi Richards, Make sure that class Ruser has getter and setter methods too Regards, Krishna Mohan -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 3:52 PM To: Struts Users Mailing List Subject: logic iterate help

Regarding HTML:options tag

2005-02-17 Thread Krishna Mohan Radhakrishnan
HI, I have one doubt regarding the use of html:options tag. In the jsp itself I have got a set of values like List questions= "SOME VALUE OBTAINED FROM THE DATABASE- ie name value pairs". In the jsp I have a html:options tag. I don't have any entries in the form bean for the collection . O

Regarding LOGIC tags

2005-01-26 Thread Krishna Mohan Radhakrishnan
Hi all, I have a very simple doubt on struts equal tag. The tag is like this Here planDesc1 and planDesc2 are both beans of the same class planModel. Can I have a comparison with 2 beans of the same class. I heard that logic equal comparison has to be done to a constant valu. Any other metho

RE: Putting a field into the REQUEST

2005-01-08 Thread Krishna Mohan Radhakrishnan
HI David, I will explain what I meant. SavePlanProfileAction.java is a action class and not actionform. In the JSP I am using a hidden text field Now I am submitting this JSP to SavePlanProfileAction.java. In the SavePlanProfileAction.java action class I want to get the value of the text field c

RE: formatting of strings

2005-01-07 Thread Krishna Mohan Radhakrishnan
the value to be displayed is NOT instance of java.lang.String. Pavel On Thu, 6 Jan 2005 18:56:23 +0530, Krishna Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > Sorry Tommy, > The thing that u said simple didn't not work out.. > Do u have any other ideas. > > Are u sure th

RE: Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
port" fields into a form for submittal to a new Action. See the manual for the html taglib (specifically html:hidden) for more detail: http://struts.apache.org/userGuide/struts-html.html#hidden Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL

RE: Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
n) for more detail: http://struts.apache.org/userGuide/struts-html.html#hidden Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 12:13 AM To: Struts Users Mailing List Subject: RE: Putting a field into the REQUEST

RE: Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
sh so your line: Becomes: ^^^ Regards, David -Original Message- From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 11:55 PM To: Struts Users Mailing List Subject: Putting a field into the REQUEST Hi all, Could any body tell me why does th

Putting a field into the REQUEST

2005-01-06 Thread Krishna Mohan Radhakrishnan
Hi all, Could any body tell me why does this error occur? /acctmgmt/updatePlanProfileContent.jsp(159): The TLD description for tag 'hidden' requires that the body be empty. probably occurred due to an error in /acctmgmt/updatePlanProfileContent.jsp line 159: I wanted to set a hidden field in th

RE: formatting of strings

2005-01-06 Thread Krishna Mohan Radhakrishnan
rmat1" which has the value "###-##-") instead of: Makes more sense to me . . . Erik Krishna Mohan Radhakrishnan wrote: >Sorry Tommy, >The thing that u said simple didn't not work out.. >Do u have any other ideas. > >Are u sure that it is # on

RE: formatting of strings

2005-01-06 Thread Krishna Mohan Radhakrishnan
ou change the format, then you just have to change it one place, instead of changing the format in all jsp pages! Cheers -Oprindelig meddelelse- Fra: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sendt: 6. januar 2005 09:08 Til: Struts Users Mailing List Emne: formatting of string

formatting of strings

2005-01-06 Thread Krishna Mohan Radhakrishnan
Hi all, I have a class called address. I want to display the the telephone number from it. The below mentioned is the code. But from the address class we will retrieve it as 10 digit string. For example if 9845612345 is the number I want to display it as follows. 984-561-2345 Is there any ide

Does not STRUTS handle escape characters

2005-01-05 Thread Krishna Mohan Radhakrishnan
Hi all, This is a javascript function that is being called when a button called "Update" is pressed. Now if the planTitle or verbalDescription has got any apostrophe(') then it is throwing up a javascrit error that ) is expected. Does not struts handle these type of characters like ',",/ etc. D

RE: How to implement OR functionality in STRUTS

2005-01-04 Thread Krishna Mohan Radhakrishnan
RUTS How about: ... ... BTW, you might look into the similar JSTL tags: if and choose. They will likely have a longer life than the Struts equivalents. My philosophy is to use JSTL whenever possible. Krishna Mohan Radhakrishnan wrote: > > > Hi all,

How to implement OR functionality in STRUTS

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, A very simple question. ... . The above code is just like an AND function. Only if both the conditions are equal it will go inside the loop. Similarly How will we do it for an OR condition. If any condition satisfies it should go inside the

RE: HOw to avoid validations for certain submit buttons on a singleform?

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, A very simple question. ... . The above code is just like an AND function. Only if both the conditions are equal it will go inside the loop. Similarly How will we do it for an OR condition. If any condition satisfies it should go inside the

RE: HOw to avoid validations for certain submit buttons on a singleform?

2005-01-04 Thread Krishna Mohan Radhakrishnan
ion is skipped. > > Hubert > > On Tue, 4 Jan 2005 10:19:06 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > > From: Krishna Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, January 04, 2005 9:28 AM > >

HOw to avoid validations for certain submit buttons on a single form?

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, I have a jsp called Plan.jsp. The name of the ActionForm is PlanActionForm. There is a action class called PlanAction.java. From this PlanAction.java it is forwarding to Plan.jsp. In the Plan.jsp there are 2 buttons and one text field. Text field name is txtboxTitle and the 2 butt

How to pass a request variable to a frame set

2005-01-04 Thread Krishna Mohan Radhakrishnan
Hi all, I have a java clas called PlanAction.java. I am forwarding to a JSP called Offerings.jsp. But Offerings.jsp contains a frameset which include another JSP called Plan.jsp. I need the request attribute set in the PlanAction.java to be available in the Plan.jsp. I found that request attri

Struts for beginners

2004-12-25 Thread Krishna Mohan Radhakrishnan
Hi, I am just a beginner in STRUTS. Could u point out any book(especially PDF files of the book) which is intented for just the beginners which contains explanation of all the tags attributes properties etc. If any body has a pdf file for the same please send it to this ID or to [EMAIL PROTECTED]

FW: override isUserInRole

2004-04-13 Thread MOHAN RADHAKRISHNAN
I am sending this once more. Sorry if you have already seen this. Mohan -Original Message- From: MOHAN RADHAKRISHNAN [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:04 PM To: [EMAIL PROTECTED] Subject: override isUserInRole Hi I am looking for ways to bypass CMA in one

override isUserInRole

2004-04-12 Thread MOHAN RADHAKRISHNAN
Hi I am looking for ways to bypass CMA in one case which requires an anonymous user to view some data. 1. I am trying to use public class RequestWrapper extends HttpServletRequestWrapper{ private HttpServletRequest request; public RequestWrapper( HttpServletRequest req )

'anonymous' role

2004-04-03 Thread MOHAN RADHAKRISHNAN
Hi In our current CMA implementation for role check , we have an 'anonymous' role. Now this role is supposed to work without logging into the application. Do you have any idea how to implement this ? As far as I know there is no CMA without logging in and so I have to block the call

RE: Session Time Out

2004-03-31 Thread MOHAN RADHAKRISHNAN
HI We are not finding it that easy. It could expire anywhere after the filter. Mohan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:39 PM To: [EMAIL PROTECTED] Subject: SV: Session Time Out Hi Use a servletfilter to trap when