Re: Regarding Localization Can't Change in Struts2

2008-02-26 Thread Laurie Harper
It still seems like the most likely cause is the login interceptor invoking navigation (esp. via a redirect) before the locale switch can happen. Have you tried (temporarily) commenting out the login interceptor from your defaultinterceptor stack? What about moving it down the stack (i.e.

[S2] theme customization [was Re: Doubleselect inconsistent if using 'back' button]

2008-02-26 Thread Laurie Harper
sathish kumar wrote: and another doubt is... how can i override the theme i mean, by default html:tabbedpannel / use ajax theme what should i do if i need to change it... You can't use a different theme, since that tag is only implemented / supported in the Ajax theme. However, you

Re: Retriving a form content for the selected html:checkbox

2008-02-26 Thread Laurie Harper
Tanmay Waikar wrote: Hi, I am iterating my form bean values using logic:iterate tag. I have a html:checkbox which will simultaneously get iterated with the values. My requirement is to fetch the selected values of the grid on press of submit button in the action class. What problem are

Re: c:set variable with html:errors property

2008-02-26 Thread Laurie Harper
struts wrote: Hi, I'm using Struts 1 I have a set of indexed error properties : myProprty0 myPorperty1 myProperty2 and so on I'd like to be able to pass the relevant name in to html:errors property via a variable – for example: c:set var=total value=${0}/ iterate... c:set var=myErrProp

Re: c:set variable with html:errors property

2008-02-26 Thread Laurie Harper
Antonio Petrelli wrote: 2008/2/25, struts [EMAIL PROTECTED]: myProprty0 myPorperty1 myProperty2 ... Is there a way to do this? Mmm.. let me see: c:forEach var=index begin=0 end=5 html:errors property=myProperty${index} / /c:forEach Oh, well that's a lot simpler than what I was

[s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
Hi, I want to display editable dates in textfields. I cannot use JavaScript, so datetimepicker isn't an option. Currently the date is displayed as dd/mm/yy if there is a value. How can I change this to be dd/mm/? Many thanks, Martin Capgemini is a trading name used by the

decorator is not working after ajax call

2008-02-26 Thread Prashant Khanal
Hello all, Somehow my header and footer provided by my decorator page disappears after ajax call. My jsp page that makes ajax call is shown below: %@ include file=/common/taglibs.jsp% head s:head theme=ajax debug=true / titleDemand Plan/title /head body s:form id=demandForm name=demandForm

Re: Retriving a form content for the selected html:checkbox

2008-02-26 Thread stanlick
If I remember correctly, the checkbox expects a get/set even though the POJO std for a boolean is typically is/set. Scott On Tue, Feb 26, 2008 at 2:11 AM, Laurie Harper [EMAIL PROTECTED] wrote: Tanmay Waikar wrote: Hi, I am iterating my form bean values using logic:iterate tag. I have

Struts 2 and SOA

2008-02-26 Thread Richard Sayre
If I have a struts application, is it posssible to expose some of the functionality as a Web Service? After reading some SOA documents on the Sun website, it is possible to expose servlets as web services. Is this possible with Strus and J2EE? Is there a document that I can read on it? Are there

Re: Struts 2 and SOA

2008-02-26 Thread Lukasz Lenart
Hi, I think, it will be better if try to use XFire / CXF or Axis2, you can create simple POJO and expose it as WebService and from the other side you can use such POJO in your Struts2 actions. And of course you can use Spring to initialize it and inject to your actions ;-) If you want to have

Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-26 Thread santosh gokak
1) since you are using JSF and not Struts, migrate to Tiles 2 (best option IMHO); I am using struts 1.2.9.Is it possible to move to tiles 2 with this version? 2) create a patch (I don't know how to fix it, download the source from the svn trunk); Need to findn time for this. 3) stick with the

Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-26 Thread Antonio Petrelli
2008/2/26, santosh gokak [EMAIL PROTECTED]: 1) since you are using JSF and not Struts, migrate to Tiles 2 (best option IMHO); I am using struts 1.2.9.Is it possible to move to tiles 2 with this version? Uh! I am very sorry, I don't know where I read that you use JSF :-O Anyway, you can

Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
Especially if you are using Spring then it will be very simple using CXF to expose your business logic as a web service. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Richard Sayre [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org

Re: Struts 2 and SOA

2008-02-26 Thread Richard Sayre
Could you elaborate a bit. Would the POJO contain the Business logic for calling My DAO and other classes? Would the POJO replace the action functionality? Then my action would use a POJO to do all of the work? So any logic in MyAction.save() would go into POJO.save() which would then be

Re: Struts 2 and SOA

2008-02-26 Thread Richard Sayre
I am not using Spring yet. We currently just finished migrating our application to struts 2. We have not had a chance to look into Spring yet but it was recommended by the person who started the struts migration. If this is part of the solution to getting our struts app to share it

Re: [s2] Date format in TextField

2008-02-26 Thread Richard Sayre
I'm not sure if I understand you correctly but... I want to display editable dates in textfields. This should be as simple as using a textfield (input type=text) as your date field I cannot use JavaScript, so datetimepicker isn't an option. So the user will have to manually enter the date

Re: Struts 2 and SOA

2008-02-26 Thread Dave Newton
--- Richard Sayre [EMAIL PROTECTED] wrote: I dont see any need for .NET interoperability in the future, but it would hurt to have that option. I like your typo more than what you actually meant ;) After talking briefly with a more experienced analyst, he mentioned that SOA might be worth

Re: decorator is not working after ajax call

2008-02-26 Thread Richard Sayre
When is you page disappearing? After you click Submit? You submit is not using Ajax. If you want to update your div when you submit the form then you could write a function that notifies your listen topic rather than submitting the form. Rich On Tue, Feb 26, 2008 at 7:22 AM, Prashant Khanal

Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
Spring isn't required where CXF is concerned, but since CXF has Spring integration you can expose Spring beans as web services quite easily. CXF has standard SOAP web service support, JSON and REST capabilities although I have no experience with their REST or JSON implementation.

Re: Struts 2 and SOA

2008-02-26 Thread Richard Sayre
I dont see any need for .NET interoperability in the future, but it would hurt to have that option. I like your typo more than what you actually meant ;) Ha ha, that is quite funny. Another thing to look at is the RESTful plugin. It allows the same action to serve back data in

Submit, ajax, targets and action

2008-02-26 Thread Matthew Seaborn
I have a form which contains a number of different submit buttons, each using the action attribute on the submit tag to control which action this called, this work fine. I want this form to load dynamically into a DIV on another page and then using the AJAX theme and targets attributes on the

Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
From: Richard Sayre [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Tue, 26 Feb 2008 14:08:18 -0330 To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 and SOA Could you elaborate a bit. Would the POJO contain the Business logic

Re: Submit, ajax, targets and action

2008-02-26 Thread Richard Sayre
If I understand you correctly, You could write you own submit function(s) that does its own ajax with dojo function submitFunctionA() { var kw = { url:'s:url action=myAction/', load:function(type, data, evt) { //up to you what

java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Othon Reyes Sanchez
I get the following exception when i do some stress test with jmeter. java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(Unknown Source) at java.util.AbstractList$Itr.next(Unknown Source) at

Re: Submit, ajax, targets and action

2008-02-26 Thread Richard Sayre
Sorry this posted too early... I updated the code so it submits the form fields with the ajax request: let me know if it helps. Rich function submitFunctionA() { var kw = { url:'s:url action=myAction/', load:function(type, data, evt) {

Re: Submit, ajax, targets and action

2008-02-26 Thread Musachy Barroso
Just set the href on each submit to the url that it needs to submit to, and it should work. regards musachy On Tue, Feb 26, 2008 at 1:39 PM, Richard Sayre [EMAIL PROTECTED] wrote: If I understand you correctly, You could write you own submit function(s) that does its own ajax with dojo

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Randy Burgess
I believe this exception occurs when you try and modify an ArrayList while iterating over said list. ArrayList is not thread safe. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Othon Reyes Sanchez [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Othon Reyes Sanchez
do you know a collection that is thread safe? On Tue, Feb 26, 2008 at 12:42 PM, Randy Burgess [EMAIL PROTECTED] wrote: I believe this exception occurs when you try and modify an ArrayList while iterating over said list. ArrayList is not thread safe. Regards, Randy Burgess Sr. Web

Re: Struts 2 and SOA

2008-02-26 Thread Lukasz Lenart
Hi, It is too complex to answer in one post ;-), but you almost answer all your questions ;-) I don't know all the details about your system (will it be base on some J2EE App server?), but for example: - you can implement all your core business logic as simple POJO's base on Spring, it will allow

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Dave Newton
--- Othon Reyes Sanchez [EMAIL PROTECTED] wrote: do you know a collection that is thread safe? Look in the JavaDocs: not only are there thread-safe collections but there are utility methods to create them from non-thread-safe collections. As I said in your JIRA post you should post the action

Re: Struts 2 and SOA

2008-02-26 Thread Richard Sayre
Ok. All of my actions call my DAOs for their logic. Most of my actions look like this: public String myActionMethod() { myDAO.getARecord(); //populate the action with record fields (will be displayed on a form or table etc) if (someField = Status.EDIT user.hasFullAccess() ) {

RE: [s2] Date format in TextField

2008-02-26 Thread Petzsch, Martin
Many thanks for your response. To clarify, our exact problem is as follows. We have multiple fields where we are displaying a date in an editable textfield, this date has come from some service, not necessarily from a db. When the date comes up from the service layer it is the correct date;

Re: schemaLocation value ... must have even number of URI's.

2008-02-26 Thread javaskull
Correst! How on earty did you find out that was the problem? I was pulling my hair out. : -G --- In [EMAIL PROTECTED], Laurie Harper [EMAIL PROTECTED] wrote: Your root element should be web-app xmlns=http://java.sun.com/xml/ns/j2ee;

Set an Action variable at runtime

2008-02-26 Thread Serge Bornow
Hello All, Thanks for any ideas. My Action class has a get/set homeid How can i invoke from JSP to set the value of that variable to a dynamic value A suggestion was this: s:property value=foo('huh? ')/ But i need to pass a variable and property tag doesnt allow expression. Any work

Viscious Knid

2008-02-26 Thread javaskull
I have a misbehaving tag. This works: logic:iterate name=editPermissionAgreementTermsForm property=selectedComponentBeans indexId=ctr id=selectedComponentBean type=SelectedComponentBean bean:write name=editPermissionAgreementTermsForm property='% =selectedComponentBean[ + ctr + ].label%' /

Re: Struts 2 and SOA

2008-02-26 Thread Randy Burgess
From: Richard Sayre [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Tue, 26 Feb 2008 15:32:56 -0330 To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 and SOA Ok. All of my actions call my DAOs for their logic. Most of my

package namespace

2008-02-26 Thread stanlick
Is there a reason the namespace attribute does not require a / prefix if specified? I chased a friends bug around too long this morning before realizing they had :super::super:fubar-ed the namespace! -- View this message in context:

Multiple / Nested Forms

2008-02-26 Thread Suzy Fynes
Hi, Does anyone know if its possible to have nested forms on a JSP? Essentially have a html form, then another form within it. Thanks, Suzy

Re: Multiple / Nested Forms

2008-02-26 Thread Wendy Smoak
On Tue, Feb 26, 2008 at 2:11 PM, Suzy Fynes [EMAIL PROTECTED] wrote: Does anyone know if its possible to have nested forms on a JSP? Essentially have a html form, then another form within it. Unless something changed while I wasn't looking, nested forms are not allowed in HTML.

[OT] Re: Multiple / Nested Forms

2008-02-26 Thread Dave Newton
--- Suzy Fynes [EMAIL PROTECTED] wrote: Does anyone know if its possible to have nested forms on a JSP? Essentially have a html form, then another form within it. AFAIK that would be invalid HTML (and wouldn't make any sense anyway). Dave

Re: [OT] Re: Multiple / Nested Forms

2008-02-26 Thread Musachy Barroso
Are you trying to submit to different urls with different submit buttons? musachy On Tue, Feb 26, 2008 at 4:20 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Suzy Fynes [EMAIL PROTECTED] wrote: Does anyone know if its possible to have nested forms on a JSP? Essentially have a html form,

Re: [struts] [OT] Re: Multiple / Nested Forms

2008-02-26 Thread Dale Newfield
Suzy Fynes [EMAIL PROTECTED] wrote: nested forms What is it that you're trying to achieve? If you have some inputs you want to appear in several forms the two simplest solutions would be 1 to have multiple forms and add javascript to copy values from one into hidden fields in the other just

RE: [struts] [OT] Re: Multiple / Nested Forms

2008-02-26 Thread Suzy Fynes
Cheers guys, I'm trying to submit two forms but one of the forms requires calculated values from the second so was wondering if it was possible to put one form within the other. Thanks Dale, I'll go with the javascript option of copying the required fields as hidden fields for the initial form.

Re: Set an Action variable at runtime

2008-02-26 Thread Jeromy Evans
Serge Bornow wrote: Hello All, Thanks for any ideas. My Action class has a get/set homeid How can i invoke from JSP to set the value of that variable to a dynamic value I'm not quite sure what you're trying to do. If you're just try to set a property at the time of posting to your action

RE: [struts] [OT] Re: Multiple / Nested Forms

2008-02-26 Thread Andy
I didn't catch this original post but I was actually wondering how to manage embedded forms with Struts1. In the example below, it would be nice to submit the inner form and then in the inner action class have available the inner form and the outer form, and to do so without having to

RE: [struts] [OT] Re: Multiple / Nested Forms

2008-02-26 Thread Dave Newton
--- Andy [EMAIL PROTECTED] wrote: In the example below, it would be nice to submit the inner form and then in the inner action class have available the inner form and the outer form, and to do so without having to manually copy over each field. Any creative ideas? :) So if I have:

RE: [struts] [OT] Re: Multiple / Nested Forms

2008-02-26 Thread Andy
I dont have that but I was trying to describe the concept Im going for. Thoughts appreciated. Date: Tue, 26 Feb 2008 14:11:53 -0800 From: [EMAIL PROTECTED] Subject: RE: [struts] [OT] Re: Multiple / Nested Forms To: user@struts.apache.org --- Andy [EMAIL PROTECTED] wrote: In the example

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Eduardo Dela Rosa
You stick to your code. However, update your code part such that when create your ArrayList, do it as Collections.synchronizedList(new ArrayList(...)). Also, you must be removing or updating object directly inside your list object which is why you're getting this error. Try to get a reference to

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Dave Newton
--- Eduardo Dela Rosa [EMAIL PROTECTED] wrote: Also, you must be removing or updating object directly inside your list object which is why you're getting this error. Try to get a reference to Iterator from your ArrayList object and invoke remove or add methods via the Iterator to get away from

Re: Viscious Knid

2008-02-26 Thread Laurie Harper
javaskull wrote: I have a misbehaving tag. This works: logic:iterate name=editPermissionAgreementTermsForm property=selectedComponentBeans indexId=ctr id=selectedComponentBean type=SelectedComponentBean bean:write name=editPermissionAgreementTermsForm property='% =selectedComponentBean[ +

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Eduardo Dela Rosa
You are right there. And I guess the best way to rid this exception then is to have the code part in synchronized block, i.e., synchronizing on the list object itself + get the iterator + invoke either add or remove inside the block. This will hurt the performance a bit BUT will preserve the

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Randy Burgess
Or just use a Vector instead of an ArrayList, which is synchronized. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Eduardo Dela Rosa [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Wed, 27 Feb 2008 09:59:25 +1100 To:

[S2.1.1] How to use an Interceptor from a plugin?

2008-02-26 Thread Piero Sartini
Hello, I am trying to write an authentication plugin for struts2. Goal is to reuse it across several projects so a plugin seems the way to go.. There is an Interceptor defined in struts-plugin.xml, lets call it AuthenticationInterceptor. Problem is that I am not able to use it in my main

Re: [S2.1.1] How to use an Interceptor from a plugin?

2008-02-26 Thread Jeromy Evans
You're following the right approach. Is the interceptor defined in your package? Normally either the plugin defines a package in struts-plugin.xml and your application extends that package, or your application needs to define the interceptor with an interceptor name=... tag. Also don't

Re: [s2] Date format in TextField

2008-02-26 Thread Jeromy Evans
Petzsch, Martin wrote: How is it possible to enforce that the textfield should show the date as dd/mm/? See this page: http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html It also applies to 2.0.x -

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Dave Newton
No no, I mean that even if you're not modifying the map you can get a concurrent modification exception by accessing the map via OGNL's [] notation, just in an s:property.../ tag. Dave --- Eduardo Dela Rosa [EMAIL PROTECTED] wrote: You are right there. And I guess the best way to rid this

Video sharing Website like YouTube

2008-02-26 Thread selvaraju
We have educational application, from that we need to call new application likely to be YouTube , This applcation should allow registered user to play,download and to comments the video, How we can implement in Java/J2ee technology, Which tools and framework is required, how we can upload videos

Re: Video sharing Website like YouTube

2008-02-26 Thread Jeromy Evans
selvaraju wrote: We have educational application, from that we need to call new application likely to be YouTube , This applcation should allow registered user to play,download and to comments the video, How we can implement in Java/J2ee technology, Which tools and framework is required, how we

Re: Video sharing Website like YouTube

2008-02-26 Thread Dave Newton
--- Jeromy Evans [EMAIL PROTECTED] wrote: Before the sarcastic replies arrive [...] Hey! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Video sharing Website like YouTube

2008-02-26 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans [EMAIL PROTECTED] wrote: Before the sarcastic replies arrive [...] Hey! Dave rofl. You can still have your fun! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Video sharing Website like YouTube

2008-02-26 Thread mgainty
If you're thinking of using DWR for UI using the Lucene search engine which keyword searches on metatags based on Proprietary TTS engine with a MySQL DB then take a look at.. http://www.everyzing.com M-- - Original Message - Wrom: IDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULH To:

Re: [S2.1.1] How to use an Interceptor from a plugin?

2008-02-26 Thread Piero Sartini
Am Mittwoch, 27. Februar 2008 01:59:36 schrieb Jeromy Evans: You're following the right approach. .. In any case, the approach works so you probably just have a minor config error. Post your config (struts-plugin.xml and struts.xml) if the statement above doesn't help. Thank you, that

Re: decorator is not working after ajax call

2008-02-26 Thread Prashant Khanal
The page is not disappearing after i click submit button. Actually my ajax call is made by onchange event of the text box named totalDemand. Whenever the textbox value is changed, the ajax call is made. When my page loads for the first time the header and footer disappears. After doing a debug i

Need Help Creating a Custom Validator

2008-02-26 Thread Mano Dasanayaka
Hi all, Can any one suggest me a good article that describes adding a custom validator and how to configure. Sample code along with required configurations is also appreciated. Thanks In Advance. Mano - To unsubscribe,

Re: Regarding Localization Can't Change in Struts2

2008-02-26 Thread sagarlotiya
hi Thanks for your help but finally i have found the solution and it is following I have just put the interceptor-ref name=i18n / before my login interceptor and it works fine. Laurie Harper wrote: It still seems like the most likely cause is the login interceptor invoking navigation

Context problem in struts2

2008-02-26 Thread jignesh.patel
Hi, I am having struts2 application,whenever i am doing action redirect i am getting new context instead of old one ? result name=login type=redirect../authentication/login.action/result or result name=login type=redirect-action login /result And context log looks like ...

Re: Interceptors with Ajax Actions

2008-02-26 Thread Jeromy Evans
Grish wrote: Is there a way to intercept these ajax actions and properly direct my users to the login page? Or is my approach fundamentally wrong? Any suggestions? You can only force the redirect to a login page from the client-side. There's a couple of ways you can do this: - the

Interceptors with Ajax Actions

2008-02-26 Thread Grish
In my attempt to learn about interceptors, I tried creating a login interceptor using Mark Menard's awesome cookbook. So I managed to make my own login interceptor and everything is working fine. I realized though that I will encounter a problem when I intercept ajax actions and direct the user

Re: Interceptors with Ajax Actions

2008-02-26 Thread Jeromy Evans
Grish wrote: I'm using the ajax theme with my struts tags, based on the struts 2 tutorial, to implement ajax functionality. Where can I define my code to catch the result and perform a redirect? I apologize for my inexperience. I'm a little unclear on how to hmm...ok, this is using Dojo

Re: Interceptors with Ajax Actions

2008-02-26 Thread Grish
Thanks for the reply! I'm a little unclear about using the header result and the javascript callback. So I define a specific result for ajax actions and use the header type where I define my own status code. Which will then be processed on the client side. I'm using the ajax theme with my

Restric the values in S:TextFields.

2008-02-26 Thread Sanjeewa Saman
Hi all , Can some body please tell me a way to restrict the data that we can eneter to a textfield in struts2. What I wanted to do is , for the s:textfield , I need to enter only values these values {1-10 , +,-,.} . Thank you. sanjeewa

RE: Restric the values in S:TextFields.

2008-02-26 Thread Sanjeewa Saman
Yes Chris , that can be done using JS , But I thought that there should be a way in struts2 to that. May be some one have an idea of doing it.If so pls give ur idea to us. Tnx sanjeewa -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 27, 2008

Re: Restric the values in S:TextFields.

2008-02-26 Thread Chris Pratt
On Tue, Feb 26, 2008 at 10:49 PM, Sanjeewa Saman [EMAIL PROTECTED] wrote: Hi all , Can some body please tell me a way to restrict the data that we can eneter to a textfield in struts2. What I wanted to do is , for the s:textfield , I need to enter only values these values {1-10 , +,-,.}

Re: [struts] [S2.1.1] How to use an Interceptor from a plugin?

2008-02-26 Thread Dale Newfield
Jeromy Evans wrote: You're following the right approach. If you don't intend to have your application's package extend the package defined in your plugin (which doesn't scale to multiple plugins), what's the benefit of having this be a plugin as opposed to just a .jar file? -Dale

Re: Restric the values in S:TextFields.

2008-02-26 Thread Laurie Harper
Chris Pratt wrote: On Tue, Feb 26, 2008 at 10:49 PM, Sanjeewa Saman [EMAIL PROTECTED] wrote: Hi all , Can some body please tell me a way to restrict the data that we can eneter to a textfield in struts2. What I wanted to do is , for the s:textfield , I need to enter only values these