RE: Thread pool samples

2008-09-04 Thread Reginald.Javier
You can try looking at : http://commons.apache.org/pool/ Reginald Javier Software Engineer II, Strategic Customer Solutions Implementation T: +632-859-5442 -Original Message- From: Zoran Avtarovski [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 12:44 PM To: Struts Users

Re: struts2 s:select/ How to get a option item which can invoke a action or redirect another URL

2008-09-04 Thread Mead Lai
struts2 tags: s:select name=list listKey=k listValue=v onclick= javascript:alert('mead'); / get the HTML code: select name=list id=ilistAction_list onclick= javascript:alert('mead'); option value=Name0id0/option option value=Name1id1/option option value=Name2id2/option /select but how to

[S2] Adding objects to application context at the application startup

2008-09-04 Thread ManiKanta G
Hi, How to add an object at the Struts2 based application startup? And what is the best way to process some logic while S2 application startup, like parsing XML and storing it in the application context for further processing in the later actions? Thanks in advance. Regards, ManiKanta G

One form for some tabbedpane panes

2008-09-04 Thread Francisco Exposito
Hi, I want to have two panes in a tabbed pane, each one with its textfields and selects, but only one form including both info panes. Is that possible? I've tried it, but it doesn't work... s:form id=crearContrato action=CrearContrato s:tabbedPanel id=test2

Tree State Example

2008-09-04 Thread Narayana S
Hi, i am working with tree control, recently i have upgraded to version 2.1. tree control is working fine for me after up-gradation.but i want to retain the state of the tree between different requests. can any one give me some example code using version 2.1 to implement dojo

Re: [S2] Adding objects to application context at the application startup

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, ManiKanta G wrote: How to add an object at the Struts2 based application startup? And what is the best way to process some logic while S2 application startup, like parsing XML and storing it in the application context for further processing in the later actions?

Re: S2 tags - dynamic attributes

2008-09-04 Thread stanlick
More like... Ah... hrm. Tell 'em look at the TLD, then tell 'em to check the freemarker template, then tell 'em they might have to escape the attribute. I love Java. On Wed, Sep 3, 2008 at 8:05 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Wed, 9/3/08, Wes Wannemacher wrote: If the TLD

Re: on the chrome bandwagon

2008-09-04 Thread stanlick
My Synaptics touch pad will scroll down BUT NOT up! On Wed, Sep 3, 2008 at 9:40 PM, Jeromy Evans [EMAIL PROTECTED] wrote: dynamicd wrote: Well i Just caught something. For some reason my listentopics or action from the form is not working It shows loading.. in the Chrome browser. but never

Re: [S2] Adding objects to application context at the application startup

2008-09-04 Thread ManiKanta G
Hi Dave, It is very generous of you. I've implemented this just before. I forgot to reply again. Thanks any way. Regards, ManiKanta G Dave Newton wrote: --- On Thu, 9/4/08, ManiKanta G wrote: How to add an object at the Struts2 based application startup? And what is the best way to

Re: struts2 s:select/ How to get a option item which can invoke a action or redirect another URL

2008-09-04 Thread Gabriel Belingueres
I believe is not possible to add an event to an option tag using the s:select tag. 2008/9/4, Mead Lai [EMAIL PROTECTED]: struts2 tags: s:select name=list listKey=k listValue=v onclick= javascript:alert('mead'); / get the HTML code: select name=list id=ilistAction_list onclick=

Re: struts2 s:select/ How to get a option item which can invoke a action or redirect another URL

2008-09-04 Thread Mead Lai
Thanks very much, I think I shall write a struts tag by myself! On Thu, Sep 4, 2008 at 9:21 PM, Gabriel Belingueres [EMAIL PROTECTED]wrote: I believe is not possible to add an event to an option tag using the s:select tag. 2008/9/4, Mead Lai [EMAIL PROTECTED]: struts2 tags: s:select

Validation based on other fields

2008-09-04 Thread Gundersen, Richard
Hi In Struts 2, I need to perform some validation based on other fields e.g. if cardType = 'Switch', issueNumber is mandatory I was looking for something like the validWhen tag from Struts 1. I'd like to do it with the client side javascript if possible (to prevent having to reload the

Re: Validation based on other fields

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, Gundersen, Richard wrote: I'd like to do it with the client side javascript if possible (to prevent having to reload the page just for validation) but I can't find anything in the Xwork docs. Not a problem if I do - I can move all the validation to the Java, but I'd

Re: OT: Thread pool samples

2008-09-04 Thread Miguel
you can make use a static property of a class to hold a reference to a singleton of the thread pool. You should take a look to the stuff at java.util.concurrent, there are some nice queues and other thread safe and concurrent safe stuff, like queues with multiple producers and consumers, in

How to Initialize additional components when the Struts 2 Engine starts

2008-09-04 Thread Carlos Luis Zúñiga Sibaja
Hi All, I'm starting a Struts 2 project and there are some tasks (check for the DB version, correctness of the schema, etc.) I'd like to perform when the webapp inits. I'd like to execute these tasks right when the Struts engine starts, because I'd like to get advantage from the Spring IoC

Re: How to Initialize additional components when the Struts 2 Engine starts

2008-09-04 Thread Gabriel Belingueres
Use a ServletContextListener [1]. [1] http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html 2008/9/4, Carlos Luis Zúñiga Sibaja [EMAIL PROTECTED]: Hi All, I'm starting a Struts 2 project and there are some tasks (check for the DB version, correctness of the schema,

Re: How to Initialize additional components when the Struts 2 Engine starts

2008-09-04 Thread Carlos Luis Zúñiga Sibaja
This sounds a bit like what I need, my only issue would that here I can't access the Spring context that is associated to the Struts Engine. I would have to instantiate it by myself, right? Carlos Luis Zúñiga Sibaja __ [EMAIL PROTECTED] divide et impera... On Thu, Sep

RE: Validation based on other fields

2008-09-04 Thread Gundersen, Richard
Cheers Dave, I'll check it out in the morning Appreciate you help -Richard -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thu 04/09/2008 17:14 To: Struts Users Mailing List Subject: Re: Validation based on other fields --- On Thu, 9/4/08, Gundersen, Richard

Re: OT: Thread pool samples

2008-09-04 Thread Laurie Harper
Zoran Avtarovski wrote: I¹m trying to implement a simple thread pool model (Java 1.4) for a telemetry application. I¹m getting up to speed with threads but I haven¹t been able to find any examples of setting a thread pool in a server/servlet environment. I have a number of remote units which

Re: How to Initialize additional components when the Struts 2 Engine starts

2008-09-04 Thread Laurie Harper
Why? Spring provides facilities for using managed beans as context listeners. Instead of trying to make your listener aware of Spring by hand, just use Springs facilities to register/manage your listener. L. Carlos Luis Zúñiga Sibaja wrote: This sounds a bit like what I need, my only issue

Re: How to Initialize additional components when the Struts 2 Engine starts

2008-09-04 Thread Carlos Luis Zúñiga Sibaja
Ohh, I see what you are saying. Then using the Event handling native to spring is a better solution ( http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#context-functionality-events). I'll give it a try. Thanks all, Carlos Luis Zúñiga Sibaja __

s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul
Hi, Does anyone know of any problems with using s:head theme=ajax and s:url I have a jsp which uses s:head theme=ajax and as soon as I go this jsp, all other s:urls's in the page stops working. It just shows me the last link created. Any pointers/help regarding this will much appreciated.

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, tutul wrote: Does anyone know of any problems with using s:head theme=ajax and s:url I have a jsp which uses s:head theme=ajax and as soon as I go this jsp, all other s:urls's in the page stops working. It just shows me the last link created. What do you mean by the

Help: Getting Error Message Not able to load configuration for specified action

2008-09-04 Thread krishnan.1000
I am a Struts 2 newbie and I am trying to develop a simple web application. The application consists of a simple login page containing a text field and password field and submit button. When I try to load the web page, this is the error tht I get. I am deploying the application using Tomcat v6.

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul
Thanks form responding. I am using struts2 with tiles and I have a commonlayout.jsp with all the relevant links in the application, for ex, Add, View Search etc. One of the jsp's has all the link in it and which appears on the left pane of the page.. (Just like a regular html page). The links

Re: Help: Getting Error Message Not able to load configuration for specified action

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, krishnan.1000 wrote: When I try to load the web page, this is the error tht I get. I am deploying the application using Tomcat v6. The requested resource (/turorial/login) is not available. Is that a typo? init-param param-nameactionPackages/param-name

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, tutul wrote: s:url id =search action=SearchClient includeParams=none s:a href=%{search}/ /s:url Did you try it like this? s:url id=search action=SearchClient includeParams=none/ s:a href=%{#search}/ Dave

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul
I changed it to the option you had suggested. It doesn't work. The thing is the links are working if I remove the theme=ajax from the s:head tag. So I am guessing it has to do with how ajax works. I am very new to this ajax thing...May be missing out on some settings newton.dave wrote: ---

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, tutul wrote: I changed it to the option you had suggested. It doesn't work. The thing is the links are working if I remove the theme=ajax from the s:head tag. So I am guessing it has to do with how ajax works. I am very new to this ajax thing...May be missing out on some

Re: Help: Getting Error Message Not able to load configuration for specified action

2008-09-04 Thread krishnan.1000
Hi Dave, Thanks for your reply: I have inlined my replies. newton.dave wrote: --- On Thu, 9/4/08, krishnan.1000 wrote: When I try to load the web page, this is the error tht I get. I am deploying the application using Tomcat v6. The requested resource (/turorial/login) is not available.

Re: Help: Getting Error Message Not able to load configuration for specified action

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, krishnan.1000 wrote: newton.dave wrote: --- On Thu, 9/4/08, krishnan.1000 wrote: When I try to load the web page, this is the error that I get. The requested resource (/turorial/login) is not available. Is that a typo? No this is not a typo. You're telling me you type

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul
That worked. I was not actually trying to make Ajax request. I was just using the ajax theme to populate a certain part of the jsp. Thanks for the response. newton.dave wrote: --- On Thu, 9/4/08, tutul wrote: I changed it to the option you had suggested. It doesn't work. The thing is the

JSON and RPC without JSON-RPC

2008-09-04 Thread Tom McLaughlin
Hi All, I've got a javascript front-end that makes asynchronous requests to perform various CRUD operations. Ideally, I'd like to write an Action and expose it directly to my client using JSONUtils to serialize and deserialize my objects. The JSON plugin gets me close, but I don't like having

Re: Does Struts 1.3.x supports PUT and DELETE methods of HTTP

2008-09-04 Thread Laurie Harper
Kamlesh123 wrote: Hi, I want to know that whether Struts 1.3.x or any lower version of Struts support HTTP PUT, DELETE and HEAD methods. I need to use them to develop a REST based application. I haven't checked the source code, but as far as I recall, Struts 1's action servlet only handles

Re: how to import something with html:xxx tage into a form?

2008-09-04 Thread Laurie Harper
Guojun Zhu wrote: Hi, I am using struts 1.2.9 with tomcat 5.5. I had a few pages with big html:form. There are some common part (with some html:text tags) in the form. So I tried to put them aside as an import. I tried jsp:include jstl c:import and tiles:insert, all of them import

Re: Loading message resources properties from a database

2008-09-04 Thread Laurie Harper
laredotornado wrote: Hi, I'm using Struts 1. We want to load our message resources properties, currently defined in our struts-config.xml file: message-resources parameter=MessageResources / from a database. Now of course, they are in a file called MessageResources.properties. What is the

Re: Problem with radiobuttons

2008-09-04 Thread Laurie Harper
Mitxel Mitxelisimo wrote: Hi, I´m trying to make a form to fill in a questionform that is composed by some questions and one radiobutton for each, and this is the problem, what can i do to this in my action? how i can fill in each radiobutton? the questionformbean has an questionbean`s array

Re: Ampersand sign problem

2008-09-04 Thread Laurie Harper
Nayyer Kamran wrote: Hello, Thanks for your answer. You are right that's what happening. On submission input text sterling sign £ escaped to the ISO-8859-1 #163; and when try to display it again in the same html:text box it escape it again. So how can I avoid it what should I do. UTF8 work fine

Re: how to import something with html:xxx tage into a form?

2008-09-04 Thread Guojun Zhu
The final page import the tags literally. So I see something like html:text xxx in the page server sends back to browser. Of course, browser has no idea about it. Sincerely Zhu, Guojun On Thu, Sep 4, 2008 at 2:09 PM, Laurie Harper [EMAIL PROTECTED] wrote: Guojun Zhu wrote: Hi, I am using

Re: how to import something with html:xxx tage into a form?

2008-09-04 Thread Guojun Zhu
Sorry, I misunderstood your last email. I will try that later to see whether it is the problem of including in my struts. But my problem is that I need to move part of the form into one fragment file. Thanks. Zhu, Guojun On Thu, Sep 4, 2008 at 2:09 PM, Laurie Harper [EMAIL PROTECTED] wrote:

Re: JSON and RPC without JSON-RPC

2008-09-04 Thread Musachy Barroso
That would be closer to RPC, but would be less strutish, I think you could easily extend the JSON plugin to accomplish this. musachy On Thu, Sep 4, 2008 at 3:57 PM, Tom McLaughlin [EMAIL PROTECTED]wrote: Hi All, I've got a javascript front-end that makes asynchronous requests to perform

Re: Help: Getting Error Message Not able to load configuration for specified action

2008-09-04 Thread krishnan.1000
newton.dave wrote: --- On Thu, 9/4/08, krishnan.1000 wrote: newton.dave wrote: --- On Thu, 9/4/08, krishnan.1000 wrote: When I try to load the web page, this is the error that I get. The requested resource (/turorial/login) is not available. Is that a typo? No this is not a typo.

Re: Help: Getting Error Message Not able to load configuration for specified action

2008-09-04 Thread Dave Newton
Could you not put characters in front of your response? It makes it very difficult to read and reply to. --- On Thu, 9/4/08, krishnan.1000 wrote: [It still doesn't work, and there are no errors on startup.] You'll have to provide further information then. After adding the appropriate DOCTYPE

Re: Tree State Example

2008-09-04 Thread Narayana S
Hi, Can any one please reply to this email ? On Thu, Sep 4, 2008 at 3:29 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, i am working with tree control, recently i have upgraded to version 2.1. tree control is working fine for me after up-gradation.but i want to retain the state