Re: unit testing struts actions

2006-10-26 Thread Volker Krebs
Asthana, Rahul schrieb: We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write and difficult to maintain.Any other suggestions? Winrunner? Try: http://strutstestcase.sourceforge.net/

RE: How to make dropdown box editable.

2006-10-26 Thread kumar.vinodh
Page has got a drop down box, with pre defined set of elements. User should be able to select one among them, or else he can enter his own option, which would be added to the drop down. -Original Message- From: Madhav Bhargava [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 12

Re: disable enter key functionality

2006-10-26 Thread Chris Pratt
Unfortunately that would still cause traffic to the server, which is probably fine for an Intranet App, but wouldn't be too friendly if you have dial-up internet users. (*Chris*) On 10/26/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 10/26/06, fea jabi <[EMAIL PROTECTED]> wrote: > Is it possi

Re: Struts2 Basic Questions

2006-10-26 Thread Don Brown
Correct on all accounts :) Don On 10/26/06, Mark Menard <[EMAIL PROTECTED]> wrote: On 10/26/06 5:06 PM, "Jim Reynolds" <[EMAIL PROTECTED]> wrote: > From reading about Struts2, I can see that it is a marriage of Struts > 1.x and WebWork. Now WebWork actually consisted of 2 frameworks from > my

Re: Struts2 Basic Questions

2006-10-26 Thread Ted Husted
On 10/26/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: From reading about Struts2, I can see that it is a marriage of Struts 1.x and WebWork. It's a marriage of the communities, but the codebase is the technical equivalent of WebWork 2.3. We've added a few new features, like wildcards and plugin

Re: tiles: detect controller pg?

2006-10-26 Thread maya
Niall Pemberton wrote: On 10/23/06, maya <[EMAIL PROTECTED]> wrote: am fairly new to struts, so not sure you can do this... I was wondering if it's possible for a tile to detect what page is calling it.. I have corp logo in header tile; header tile is called by all pgs, but I would like the c

Re: disable enter key functionality

2006-10-26 Thread Wendy Smoak
On 10/26/06, fea jabi <[EMAIL PROTECTED]> wrote: Is it possible in struts to disable the functionality of the enter key which would usually execute the first submit button in the page. Can we do this at form level? If so how to do this? http://www.google.com/search?q=struts+enter+submit I us

Re: Struts2 Basic Questions

2006-10-26 Thread Mark Menard
On 10/26/06 5:06 PM, "Jim Reynolds" <[EMAIL PROTECTED]> wrote: > From reading about Struts2, I can see that it is a marriage of Struts > 1.x and WebWork. Now WebWork actually consisted of 2 frameworks from > my understanding. WebWork framework for Web and underneath that was > XWork framework. Als

Re: new line char in xml

2006-10-26 Thread Ed Griebel
To generate a blank line I've used HTH, -ed On 10/26/06, Chris Pratt <[EMAIL PROTECTED]> wrote: You can't specify a newline character in XML. XML specifically normalizes all whitespace out of the data. If you need to handle data that contains specific formatting, you need to apply that forma

Re: disable enter key functionality

2006-10-26 Thread Martin Gainty
on submit or submitTag override the onClick property and or setup your own JS function to handle the onClick event Anyone else? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are n

Re: unit testing struts actions

2006-10-26 Thread Chris Pratt
You might want to check out jWebUnit (http://jwebunit.sourceforge.net/). (*Chris*) On 10/26/06, Asthana, Rahul <[EMAIL PROTECTED]> wrote: We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write

unit testing struts actions

2006-10-26 Thread Asthana, Rahul
We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write and difficult to maintain.Any other suggestions? Winrunner?

Several inputs for an action

2006-10-26 Thread Joel Espinosa
Hi, I'm usign struts 1.2 and I want to use validator framework for and action that makes the CRUD operations for a bean, I want to know if its possible to have 2 or more input forms for this action, that's beacuse I want to personalise the HTML code of each input form but the form fields are

Re: new line char in xml

2006-10-26 Thread Chris Pratt
You can't specify a newline character in XML. XML specifically normalizes all whitespace out of the data. If you need to handle data that contains specific formatting, you need to apply that formatting yourself, either using a technique like HTML (inserting elements in the XML) or using somethi

Re: disable enter key functionality

2006-10-26 Thread Chris Pratt
It's definitely not something that Struts can do, but you can do that using a JavaScript onkeypress handler that returns false if window.event.keyCode== 13. (*Chris*) On 10/26/06, fea jabi <[EMAIL PROTECTED]> wrote: Is it possible in struts to disable the functionality of the enter key which w

Struts2 Basic Questions

2006-10-26 Thread Jim Reynolds
Hello, From reading about Struts2, I can see that it is a marriage of Struts 1.x and WebWork. Now WebWork actually consisted of 2 frameworks from my understanding. WebWork framework for Web and underneath that was XWork framework. Also, WebWork in 2.2 I believe was starting to use Spring IOC fo

Re: new line char in xml

2006-10-26 Thread Martin Gainty
CR LF -or- #0D #0A M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and tha

disable enter key functionality

2006-10-26 Thread fea jabi
Is it possible in struts to disable the functionality of the enter key which would usually execute the first submit button in the page. Can we do this at form level? If so how to do this? Thanks. _ Add a Yahoo! contact to Windows

Re: How to make dropdown box editable.

2006-10-26 Thread Madhav Bhargava
Post the exact requirement. On 10/27/06, Chris Pratt <[EMAIL PROTECTED]> wrote: It's not possible in straight HTML. There are some DHTML tricks that combine text boxes with select boxes, but most that I've seen are ugly and unworkable. If you find a good solution to the problem, please post i

Re: How to make dropdown box editable.

2006-10-26 Thread Chris Pratt
It's not possible in straight HTML. There are some DHTML tricks that combine text boxes with select boxes, but most that I've seen are ugly and unworkable. If you find a good solution to the problem, please post it here. (*Chris*) On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi

Re: Where to download the Tiles build?

2006-10-26 Thread Greg Reddin
On Oct 26, 2006, at 12:51 PM, Vernon wrote: I need the Tiles library from my other Spring application. To my knowledge, now the Tiles is separated from the Struts. The Tiles 2 project is an effort to separate Tiles from Struts. Tiles 1.x is still part of the Struts 1.x framework. I assume

Re: new line char in xml

2006-10-26 Thread Brian Lee
You can also try using the xml new line character " " (possibly with the carriage return too if you need it- " "). I like this better than \n as the & and ; really set off that you are using a special character. Retain this document in your official grant file. "/> BAL

RE: new line char in xml

2006-10-26 Thread Coelho.Joao
You may need to use single or back quotes within the quotes for the newline . Something like "'\n'" or "...`\n`...". But I am not sure since I am myself a newbie with struts. -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 10:53 AM

Re: new line char in xml

2006-10-26 Thread temp temp
I tried that it did not work . Regards Miro Li <[EMAIL PROTECTED]> wrote: try the following Wish it works On 10/27/06, temp temp wrote: > > Here is my xml could you tell me how to put new line char?. > > Here is my xml > > > > > > > Li wrote: have you trie

Re: new line char in xml

2006-10-26 Thread Li
try the following Wish it works On 10/27/06, temp temp <[EMAIL PROTECTED]> wrote: Here is my xml could you tell me how to put new line char?. Here is my xml Li <[EMAIL PROTECTED]> wrote: have you tried "\n"? it should work On 10/27/06, temp temp wrote: > >

Re: new line char in xml

2006-10-26 Thread temp temp
Here is my xml could you tell me how to put new line char?. Here is my xml Li <[EMAIL PROTECTED]> wrote: have you tried "\n"? it should work On 10/27/06, temp temp wrote: > > I have some text in xml file which I will show in a text area to > edit .

Where to download the Tiles build?

2006-10-26 Thread Vernon
I need the Tiles library from my other Spring application. To my knowledge, now the Tiles is separated from the Struts. On the Tiles home site, I can't see any lead to the download. The Tiles without Struts link points to the same web page of Tiles with Struts. Can someone tell me where to down

Re: new line char in xml

2006-10-26 Thread Li
have you tried "\n"? it should work On 10/27/06, temp temp <[EMAIL PROTECTED]> wrote: I have some text in xml file which I will show in a text area to edit . I don't know how to specify a new line char in xml. Currently I am using tag instead of a new line char .Using works in jsp

new line char in xml

2006-10-26 Thread temp temp
I have some text in xml file which I will show in a text area to edit . I don’t know how to specify a new line char in xml. Currently I am using tag instead of a new line char .Using works in jsp but a text area displays them as which would confuse user .So I need to put

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Chris Pratt
Another option would be using JavaScript and an onclick handler on the delete button to update a single contactID hidden field before form submission. (*Chris*) On 10/26/06, Gallagher, Jim (RBoS ITD&S Dublin) <[EMAIL PROTECTED]> wrote: Hi, I've discovered the answer, although it may n

Re: Validation with actions

2006-10-26 Thread Chris Pratt
Ummm... If you don't call there won't be any client side validation code inserted, so there won't be any client side validation performed, IIRC. (*Chris*) On 10/26/06, zeta <[EMAIL PROTECTED]> wrote: Ok, sorry. If I use DynaValidationActionForm instead of DynaValidationForm for creating my f

[OT][ANN] JAVAWUG BOF 23 / Skills Matter Sun London / 15 Sept 2006 @ 18:30 / Open Space Discussion

2006-10-26 Thread Peter . Pilgrim
Hi I would like to formally announce that ``JAVAWUG'' (Java Web User Group) is holding the Twenty Third Birds-of-Feather at the Skills Matter's London Office on Wednesday, 15th Novemeber 2006 from 18:30. +-+--+ | TWO QUESTIONS | Open

RE: Form not found for locale 'en_US' warning message

2006-10-26 Thread Levan Dvalishvili
Probably worth trying to steps found in from http://wiki.apache.org/struts/StrutsUpgradeNotes12to13: Quote: 3.3 Commons Validator 1.3.0 Struts 1.3 now depends on [WWW] Commons Validator version 1.3.0 (previous was version 1.1.4) - remember to upgrade the Validator jar. * Validator 1

Re: Form not found for locale 'en_US' warning message

2006-10-26 Thread Niall Pemberton
OK so how about copying/pasting one of the actual messages and the associated action mapping from your struts-config.xml Niall On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: This warning message is coming for all the pages. Whever I try to access the page this message is getting pr

RE: Form not found for locale 'en_US' warning message

2006-10-26 Thread kumar.vinodh
This warning message is coming for all the pages. Whever I try to access the page this message is getting printed. It is getting thrown from validatorResources class. I am reffering to Validator plugin in strutsconfig file, but not using struts validation in all the pages. Only in few pages I m

Re: Form not found for locale 'en_US' warning message

2006-10-26 Thread Niall Pemberton
If you're not using client side validation then its not related to that bug. What class is producing this message (you should be able to tell from the actual log message - or change your logging config so that it is displayed)? A similar warning is also produced by the ValidatorResources class

Re: cant use xsl:include, xsl:import, or document() for Struts 2.0.1

2006-10-26 Thread Kimus Linuxus
no one can help me here?? On Thu, 2006-10-26 at 12:03 +0100, Kimus Linuxus wrote: > Hi, > > I'm using the xslt resut type and I cant use xsl:include, xsl:import, or > document()! > > I have a main,xsl file that includes another xsl in the same directory. > And gives me the following error: > >

RE: Form not found for locale 'en_US' warning message

2006-10-26 Thread kumar.vinodh
I m not using struts validator framework for client side validation. It was known issue in struts 1.2.9, but in was fixed in struts 1.3.5. I have upgraded to 1.3.5 but still I m seeing this issue. -Original Message- From: Strachan, Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, October

RE: Struts1.3.5 error

2006-10-26 Thread kumar.vinodh
Thanks Levan, It is working fine now. I am not seeing error message after making necessary changes as said by you. Regards, Vinodh -Original Message- From: Levan Dvalishvili [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 1:55 AM To: 'Struts Users Mailing List' Subject: RE: S

How to make dropdown box editable.

2006-10-26 Thread kumar.vinodh
Hi all, I have requirement where in I want drop down box to be editable. Is this possible using struts html tag lib. Please let me know how to go about making drop down box editable. Regards, Vinodh The information contained in this electronic message and any attachments to this messag

Re: Get current Action using Tiles

2006-10-26 Thread JCO
Thanks, I solved this using: request.getAttribute("javax.servlet.forward.servlet_path"); apetrelli wrote: > > JCO ha scritto: >> Hello, >> >> I want to know the current Action through the request.getRequestURI(), >> but >> I'm using Tiles and I get: >> >> /jguiri/jsp/layouts/layoutDetalle.jsp

Re: bean write. escape HTML

2006-10-26 Thread Puneet Lakhina
On 10/26/06, Balwinder <[EMAIL PROTECTED]> wrote: Puneet Lakhina wrote: > I am writing something on a JSP page using bean write. But its escaping > HTML. i.e suppose I have a bean named msgs with the value > "Message" > (without the quotes) > > I get the literal string Message on my JSP Page. i

Re: Get current Action using Tiles

2006-10-26 Thread Antonio Petrelli
JCO ha scritto: Hello, I want to know the current Action through the request.getRequestURI(), but I'm using Tiles and I get: /jguiri/jsp/layouts/layoutDetalle.jsp (layoutDetalle.jsp is my Tiles layout, not the real URI) Where are you calling request.getRequestURI()? -

Re: bean write. escape HTML

2006-10-26 Thread Balwinder
Puneet Lakhina wrote: I am writing something on a JSP page using bean write. But its escaping HTML. i.e suppose I have a bean named msgs with the value "Message" (without the quotes) I get the literal string Message on my JSP Page. i.e it escapes HTML. which means the generated HTML is

Me


Re: S:ITERATOR

2006-10-26 Thread Ted Husted
The simplest thing is to expose the vproperty through the Action class, and the tag will find it there automatically. That way the tag doesn't need to know anything about scopes. So, on the Action place a property that obtains the value from application scope. The MailReader application does this

bean write. escape HTML

2006-10-26 Thread Puneet Lakhina
I am writing something on a JSP page using bean write. But its escaping HTML. i.e suppose I have a bean named msgs with the value "Message" (without the quotes) I get the literal string Message on my JSP Page. i.e it escapes HTML. which means the generated HTML is

Message I dont want that


Re: Too many moving parts in Tiles

2006-10-26 Thread Antonio Petrelli
Greg Reddin ha scritto: We've had some discussions on the dev list about restructuring the tags in Tiles 2. The problem is that the tag means multiple things. In some cases it means "insert this definition here" (like your example above). Chris, see also this JIRA issue: http://issues.apa

cant use xsl:include, xsl:import, or document()

2006-10-26 Thread Kimus Linuxus
Hi, I'm using the xslt resut type and I cant use xsl:include, xsl:import, or document()! I have a main,xsl file that includes another xsl in the same directory. And gives me the following error: ERROR: '/home/share/software/develop/eclipse/variables.xsl (No such file or directory)' FATAL ERROR:

RE: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Gallagher, Jim (RBoS ITD&S Dublin)
Hi, I've discovered the answer, although it may not be the most elegant. Rather than having one form, have one form per row. This is achieved by placing the tags inside the ones, then the tag will contain the correct value when the button is pressed. Thanks

Re: Unable to Download Struts2

2006-10-26 Thread Ted Husted
Not the humongous "all" distriubtion, but the library JARs and applications can be had here: * https://sourceforge.net/project/showfiles.php?group_id=49385&package_id=209277 -Ted. On 10/25/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote: Is there someplace else where i can download this? Tha

[tiles] Re: Adding Elements to a

2006-10-26 Thread Antonio Petrelli
Chris Pratt ha scritto: Is it possible to add elements to a list started by a "super" tile definition? In other words, is something like this doable? For the moment you can't, but what you're asking seems to be a new feature that could be helpful. I opened an issue for Tiles 2 for this: http

[ANN] Struts 2.0.1 JARs available on SourceForge

2006-10-26 Thread Ted Husted
The ASF infrastructure is undergoing a migration, and we've had to unexpectedly replace a critical machine, which has left some services temporarily unavailable. While the infrastructure issues are being worked out, the Struts 2.0.1 library JARs and application WARs are now available on Sourceforg

Re: Validation with actions

2006-10-26 Thread zeta
Ok, sorry. If I use DynaValidationActionForm instead of DynaValidationForm for creating my forms, what should I do in order to disable form validation in both sides: client (javascript) and server? I know how to bypass server validation (using validate=false in the action tag) but I haven't been a

R: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Marcello Savino
Give to the hyperlink a button appereance , don't know other way to do this Marcello Savino ALDEBRA S.p.A. tel. 0461302441 -Messaggio originale- Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:[EMAIL PROTECTED] Inviato: giovedì 26 ottobre 2006 12.27 A: 'Struts Users Mailing List' Ogget

RE: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Gallagher, Jim (RBoS ITD&S Dublin)
Thanks for this - unfortunately I'm required to use a button, not a hyperlink. Is it possible? Regards, Jim Jim Gallagher, New BACS Team, Domestic Payments, Payments, Security & Fraud, Royal Bank of Scotland, Parkgate B

XSLT parameters and include problem

2006-10-26 Thread Kimus Linuxus
Hi, I'm using the xslt resut type and I cant use includes (or imports)?? I have a main,xsl file that includes another xsl in the same directory. And gives me the following error: ERROR: '/home/share/software/develop/eclipse/variables.xsl (No such file or directory)' FATAL ERROR: 'Could not com

R: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Marcello Savino
Sorry i forgot something in my code ">Delete HIH Ciao, marcello -Messaggio originale- Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:[EMAIL PROTECTED] Inviato: giovedì 26 ottobre 2006 12.02 A: 'user@struts.apache.org' Oggetto: Issue: using logic:iterate to display r

R: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Marcello Savino
Use a url instead: Somethin like that: HIH Ciao, marcello -Messaggio originale- Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:[EMAIL PROTECTED] Inviato: giovedì 26 ottobre 2006 12.02 A: 'user@struts.apache.org' Oggetto: Issue: using logic:iterate to display rows an

Reload MessageResources

2006-10-26 Thread biocore5-strutsting
Hello, I'm developing a struts (1.2) application and wanted to add some administration tasks. One that I'd like to have is the possibility to reload MessageResources. I already defined my own MessageResourcesFactory and PropertyMessageResources but I can't figure out how to implement the reload

RE : RE : Re: several html forms

2006-10-26 Thread Jean-Marie Pitre
Thank you, it works fine. Is it fundamentally correct and usually used in struts dev ? Regards, Jean-Marie. -Message d'origine- De : Puneet Lakhina [mailto:[EMAIL PROTECTED] Envoyé : jeudi 26 octobre 2006 11:10 À : Struts Users Mailing List Objet : Re: RE : Re: several html forms On

Issue: using logic:iterate to display rows and html:button to dis tinguish one of them

2006-10-26 Thread Gallagher, Jim (RBoS ITD&S Dublin)
Hi Apologies if this is a simple issue, but it's driving me insane. In my web app (using Struts 1.1 on Java 1.4 & Websphere) I have a jsp that is using logic:iterate to display a sequence of records. On each row I have a "Delete" button, which should cause the object that row represents to be d

Get current Action using Tiles

2006-10-26 Thread JCO
Hello, I want to know the current Action through the request.getRequestURI(), but I'm using Tiles and I get: /jguiri/jsp/layouts/layoutDetalle.jsp (layoutDetalle.jsp is my Tiles layout, not the real URI) but really the URL I see is: http://localhost:8080/jguiri/aplicaciones.do?op=Detalle&id=2

Re: RE : Re: several html forms

2006-10-26 Thread Puneet Lakhina
On 10/26/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Thank you for your reply. In fact, I have several forms with same name; Each form is generated by the iterate close. I would like to that to avoid to post all data in the formbean. This thing should have no problem fundamentally, as lo

Re: ActionMessages in Struts?

2006-10-26 Thread Venkata Phani Kumar
hi mallik, you can save some messages in action so that they can be accessed from jsp ActionMessages errorMsgs = new ActionMessages(); errorMsgs.add("messageId", new ActionMessage("message.Inserted_successfully")); saveErrors(request, errorMsgs); in jsp, - Original Message - From: "Mal

ActionMessages in Struts?

2006-10-26 Thread Mallik
HI friends i want to send some message from action class to view. that is like "Inserted successfully", after inserting data to database. how can i do this? help me please... ur's Mallik -- View this message in context: http://www.nabble.com/ActionMessages-in-Struts--tf2512442.html#a70066

RE : Re: several html forms

2006-10-26 Thread Jean-Marie Pitre
Thank you for your reply. In fact, I have several forms with same name; Each form is generated by the iterate close. I would like to that to avoid to post all data in the formbean. Regards, Jean-Marie. -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Laurie Harper