multiox

2006-05-31 Thread Abhimanyu Koul
can anyone please tell me how do we set the values of the checkboxes in the html:multibox. and how do we retrieve the selected values. kindly explain. Abhimanyu Koul FinEng Solutions (P) Ltd. Dani Compound, 158, Vidyanagari Marg, Kalina, Santacruz (East), Mumbai - 400 098 Mobile : +91 981951009

Form shared between 2 Action, how to change bool-value?

2006-05-31 Thread Julian Tillmann
Hello, I've two actions which share the same form in with session scope. In the first action one boolean value of the form will be set to false, but in the next action the form will be retireved an the value is still true. There is the error? I tried (int Action 1): form.setValue(false); and I

Problem to add several actions

2006-05-31 Thread Hakhnazaryan, Arus
Hello. does anybody know how to add several actions to one action map. I have 2 actions, that work separatly on different pages, but on onee page under the clickon one button both of them must work. Whow to organize it in struts?

Re: Disable submit button

2006-05-31 Thread rukka
Thanks for the tip. rukka Frank W. Zammetti wrote: As previously mentioned, you'll probably want to use the onSubmit handler of the form itself. But, whether you do that or not, try adding "return true;" to the end of your handler code... I'm not sure what every browser will do by default,

Global forwards don't support Tiles definitions?

2006-05-31 Thread Scott Van Wart
I have a tiles definition (tiles-defs.xml), and a global forward (struts-config.xml), When the forward is triggered with this, the browser requests host//page.main. This gives a Tomcat "resource unavailable screen". HTML links don't seem to work either. When I try somet

Re: implementing javax.servlet.Filter w/Struts

2006-05-31 Thread CrackheadMillionaire
Hello all - This was a pebkac style error. I have solved the problem. Thank you for the rapid replies. Take care. brian "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: On the second point, can you list your web.xml, the portion where you map the filter at least? Ch

Re: Deciding which DispatchAction to use

2006-05-31 Thread Lixin Chu
how to handle action chaning in EventDispatchAction, for example, if my mapping is something like this: When we use: return mapping.findForward("nextaction"); the current parameters, including the event for the current action will be passed on to the next action class. will this confuse the nex

Re: Deciding which DispatchAction to use

2006-05-31 Thread Wendy Smoak
On 5/31/06, pantichd <[EMAIL PROTECTED]> wrote: I'm trying to figure out how to decide which "flavor" of DispatchAction (DispatchAction, LookupDispatchAction, MappingDispatchAction, etc) to use in which scenario. I'm now using 'EventDispatchAction' for anything new I write. It uses the presen

Re: implementing javax.servlet.Filter w/Struts

2006-05-31 Thread Wendy Smoak
On 5/31/06, CrackheadMillionaire <[EMAIL PROTECTED]> wrote: I recently implemented a filter to push some information into the session. Great. However, after filter processing and within my DispatchAction, if I make a call to request.getSession().getAttribute("whateverName"); the values are

Re: Deciding which DispatchAction to use

2006-05-31 Thread David Evans
This page may be helpful: http://wiki.apache.org/struts/EventActionDispatcher On Wed, 2006-05-31 at 10:42 -0700, pantichd wrote: > Hello, > > I'm trying to figure out how to decide which "flavor" of DispatchAction > (DispatchAction, LookupDispatchAction, MappingDispatchAction, etc) to use in > wh

Re: implementing javax.servlet.Filter w/Struts

2006-05-31 Thread Frank W. Zammetti
On the second point, can you list your web.xml, the portion where you map the filter at least? Chances are you have it mapped incorrectly. On the first point, can we see your filter? There's no inherent reason you can't do what your trying to do with a filter and Struts, so there is some det

implementing javax.servlet.Filter w/Struts

2006-05-31 Thread CrackheadMillionaire
Hello friends - I recently implemented a filter to push some information into the session. Great. However, after filter processing and within my DispatchAction, if I make a call to request.getSession().getAttribute("whateverName"); the values aren't there; in fact, the session attached

Re: Disable submit button

2006-05-31 Thread Frank W. Zammetti
As previously mentioned, you'll probably want to use the onSubmit handler of the form itself. But, whether you do that or not, try adding "return true;" to the end of your handler code... I'm not sure what every browser will do by default, but for onSubmit at least, you need to return true for

Re: Displaying and error

2006-05-31 Thread Monkeyden
It's no more weird than request.getAttribute(" org.apache.struts.action.EXCEPTION'"), which is what that EL snippet is equivalant to. Either way you need to tell the request which named attribute to give you. On 5/31/06, John Hutchinson <[EMAIL PROTECTED]> wrote: Bingo. Thanks. That's weird.

RE: Displaying and error

2006-05-31 Thread Samere, Adam J
I think it has to do with the "." in the key you are looking up. It causes it to look for a bean named "org" in the request scope with a nested property named 'apache' etc. By using the ['key'] syntax you're spelling out that the entire string is the key. -Adam -Original Message- From: J

Re: Displaying and error

2006-05-31 Thread John Hutchinson
Bingo. Thanks. That's weird. On 5/31/06, Samere, Adam J <[EMAIL PROTECTED]> wrote: Try ${requestScope['org.apache.struts.action.EXCEPTION']} -Original Message- From: John Hutchinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 1:41 PM To: user@struts.apache.org Subject: Disp

RE: Displaying and error

2006-05-31 Thread Samere, Adam J
Try ${requestScope['org.apache.struts.action.EXCEPTION']} -Original Message- From: John Hutchinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 1:41 PM To: user@struts.apache.org Subject: Displaying and error Anyone know why this doesn't work in a JSP error page: <%@ page isE

Deciding which DispatchAction to use

2006-05-31 Thread pantichd
Hello, I'm trying to figure out how to decide which "flavor" of DispatchAction (DispatchAction, LookupDispatchAction, MappingDispatchAction, etc) to use in which scenario. I know that there is a lot of "personal preference" involved but I'm hoping there is some kind of documentation that indicat

Displaying and error

2006-05-31 Thread John Hutchinson
Anyone know why this doesn't work in a JSP error page: <%@ page isErrorPage="true" %> ... test ${requestScope.org.apache.struts.action.EXCEPTION} no error found I've forced an exception, and I see org.apache.struts.action.EXCEPTION in the request attributes (w

Re: Disable submit button

2006-05-31 Thread Jorge Martín Cuervo
i was going to say you try... onclick="this.disabled=true;this.form.submit()" sorry for the delay El mié, 31 de 05 de 2006 a las 18:14, A Amarakoon escribió: > Gareth, Monkeyden, Jorge, Andy Thank you.. > > This js lib looks good. > > this code fixes it: onclick="this.disabled=true;submit(

Re: Help:validation is not working with struts1.2

2006-05-31 Thread M Hollyer
Gareth Evans msoft.co.uk> writes: > One of the best ways to check it to extract the struts jars file to a > temporary folder and see which ones it contains. > > Note: The public identifier is an exact string match i.e. > > -//Apache Software Foundation//DTD Commons Validator Rules Configuratio

Re: Help:validation is not working with struts1.2

2006-05-31 Thread Gareth Evans
Hi, If your application tries to connect to the web for any reason on startup, either to jakarta.apache.org or struts.apache.org it is because the digester is unable to find a local copy of the dtd. This can happen for a number of reasons: 1) There is a typo in your doctype declaration 2) Yo

Re: struts not forwarding after action

2006-05-31 Thread Homero Cardoso de Almeida
Just replying to say that using execute instead of perform made it work fine. Thanks. =) On 5/30/06, Homero Cardoso de Almeida <[EMAIL PROTECTED]> wrote: Thanks for the help, David. Yeah, I really think the book is a little outdated (i'm really using perform() instead of execute()). I think the

Re: Disable submit button

2006-05-31 Thread A Amarakoon
Gareth, Monkeyden, Jorge, Andy Thank you.. This js lib looks good. this code fixes it: onclick="this.disabled=true;submit()" rukka - Original Message - From: Gareth Evans <[EMAIL PROTECTED]> Date: Wednesday, May 31, 2006 11:02 am Subject: Re: Disable submit button > Hi, > > I use th

Re: Help:validation is not working with struts1.2

2006-05-31 Thread M Hollyer
http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd";> I am experiencing the same issue when my network connection is off. The validator cannot reference the "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"; when there is no network connection. This is bad because validato

Re: Disable submit button

2006-05-31 Thread Gareth Evans
Hi, I use the following script to do this, it requires the prototype javascript library: function disableOnClick ( className ) { var elements = document.getElementsByClassName( className ); for ( var index = 0; index < elements.length; index ++ ) { Event.observe( elements[index

Re: Disable submit button

2006-05-31 Thread Monkeyden
Is it nested within the tag? What browser are you using? Any JS errors on the client? On 5/31/06, A Amarakoon <[EMAIL PROTECTED]> wrote: Thank you for quick reply.. This does not work for me.. once you click the submit button it disables button. but does not submit action to the server. May

Re: Disable submit button

2006-05-31 Thread A Amarakoon
Thank you for quick reply.. This does not work for me.. once you click the submit button it disables button. but does not submit action to the server. May be I am missing something?? thanks rukka - Original Message - From: Jorge Mart�n Cuervo <[EMAIL PROTECTED]> Date: Wednesday, May 31,

Re: Maven + Struts

2006-05-31 Thread Wendy Smoak
On 5/31/06, marcus biel (innoWake gmbh) <[EMAIL PROTECTED]> wrote: To be honest, I was "forced" to convert my struts project that I created in eclipse using a nice eclipse plugin, to Maven. The only problems are: 1) I have no much of an idea of Maven 2) I created the necessary project.properties

Re: Maven + Struts

2006-05-31 Thread Monkeyden
Ok, joke's over. That was funny...notepad. You had me going for a sec. On 5/31/06, Marco Mistroni <[EMAIL PROTECTED]> wrote: Hello, My 2 c ents again.. Maybe everything has worked perferctly for me cos I m still Developing in Notepad :) Rgds marco -Original Message- From:

Re: forms in struts-layout tabs ??

2006-05-31 Thread Monkeyden
Whether or not you persist the data between screens is dependent on whether or not the screens make up a single transaction. Suppose you have an HR system that allows the user to enter all new employee information. That system may require that the user enter all the employee's information or he/

RE: Maven + Struts

2006-05-31 Thread Marco Mistroni
Hello, My 2 c ents again.. Maybe everything has worked perferctly for me cos I m still Developing in Notepad :) Rgds marco -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: 31 May 2006 15:23 To: Struts Users Mailing List Subject: RE: Maven + Struts Your er

AW: Maven + Struts

2006-05-31 Thread marcus biel \(innoWake gmbh\)
Maven takes the jar file like "struts-1.2.9.jar" and puts em into \WEB-INF\lib - I am just not sure if the "1.2.9" ending is fine - before it was just struts.jar. Could this be the problem? If so, how to avoid it? Marcus -Ursprüngliche Nachricht- Von: David Friedman [mailto:[EMAIL PROTEC

RE: Maven + Struts

2006-05-31 Thread David Friedman
Your error suggests your war file doesn't have the appropriate struts .jar file(s) in /WEB-INF/lib. I had a similar Maven problem until I double checked I was using the proper Maven directory structure AND had appropriate pom.xml project dependencies. Have you double checked that Maven put your .

Re: Disable submit button

2006-05-31 Thread Jorge Martín Cuervo
this works well PD: i've tested in firefox El mié, 31 de 05 de 2006 a las 16:36, rukka escribió: > As a part of solution to multiple reloads and to block the multiple > submit requests in long running service layer methods, we like to > disable submit button once user hit that once. Does ht

RE: Disable submit button

2006-05-31 Thread Miller, Andy
You should attach the event to the form and not the button. If the user clicks the enter key on the keyboard and you have used an "onClick" event, then the event will not fire if the user hits enter. Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: rukka [mailto

Re: Disable submit button

2006-05-31 Thread Jorge Martín Cuervo
i've not tested but i think it should work: El mié, 31 de 05 de 2006 a las 16:36, rukka escribió: > As a part of solution to multiple reloads and to block the multiple > submit requests in long running service layer methods, we like to > disable submit button once user hit that once. Does h

RE: html:link question

2006-05-31 Thread Samere, Adam J
You could use the message tag from JSTL to lookup and store the message from your resource bundle. Then use the EL version of the Struts HTML tag library to output the saved value. <%-- This stores the value of my.link.1 in myLink1 --%> <%-- now plug it in for the href attribute --%> something

Struts Dialog question...

2006-05-31 Thread rukka
We use Struts Dialog to run a wizard. One problem we have is in long running transaction (3-4 seconds) user can hit submit button multiple times. In turn struts controller originates multiple service requests. with isTokenValid() method, we are going to lose the response coming back from servi

AW: Maven + Struts

2006-05-31 Thread marcus biel \(innoWake gmbh\)
To be honest, I was "forced" to convert my struts project that I created in eclipse using a nice eclipse plugin, to Maven. The only problems are: 1) I have no much of an idea of Maven 2) I created the necessary project.properties and project.xml files, but in order to make them work I had to adjust

Disable submit button

2006-05-31 Thread rukka
As a part of solution to multiple reloads and to block the multiple submit requests in long running service layer methods, we like to disable submit button once user hit that once. Does html:submit button tag has java scripts associated with it? If you do have any links on client side fix, I

html:link question

2006-05-31 Thread rukka
Hello, I do have a jsp tag like this: something I want to pull href link "my.link" from Message.resources (Application.properties). how do I do that? Thanks in advance to any replies... rukka - To unsubscribe, e-mail:

RE: Maven + Struts

2006-05-31 Thread Marco Mistroni
Hello, I have one that I can mail you privately.. I m just curious on Why you mention 'Struts with Maven'.. Do you need it for creating webapp or are you particularly interested In special features (I m not aware of them) that Maven offers for struts? Thx and regards Marco -Original Me

Maven + Struts

2006-05-31 Thread marcus biel \(innoWake gmbh\)
Does anyone of you have an example project.xml and project.properties file to use Struts with Maven? Thanks, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Re: multiple

2006-05-31 Thread Medicherla Lakshmi
Thanks All of you. Finally, i could implement it with ajax. Lakshmi. Dave Newton <[EMAIL PROTECTED]> wrote: Medicherla Lakshmi wrote: > Am using struts and my requirement is i have two selects i a jsp. On change > of value in the first select, the values in the secon select should pop up

How to get the list of locales supported by a struts application ?

2006-05-31 Thread Francois D.
Good morning for a struts application I need to display the list of locales supported by the application. Can I avoid to manage this list manually ? i..e is there a simple way to know all the locales that have a corresponding ApplicationResources file ? thank you for any suggestion F

Re: Help:validation is not working with struts1.2

2006-05-31 Thread M.Liang Liu
Thanks to all of you. I learned a lot from this chain of letters. You fellows are so kind that I am sure struts is a beautiful struts :) Many questions are coming as I will pay a lot of time to study struts as a freshman. Thank you again.