Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Jeromy Evans
Bobby Mitch wrote: yes, but i wrote that with this XML file or without this XML file, that is with annotations only (@Validation etc), i still get the same error. So i do not see the point of me trying to change that file. And I want this to work with annotations too. Thanks anyway for

Struts 1 Personal Application Resource

2008-09-10 Thread Marcello Savino
Hi everybody. I have to menage a string table (something like the application resource), that is a customer customized table. The same resource message could be different, depending on the installation. I figure out some solution (xml file, DB table) but i'd like to know if there something in

Re: Struts 1 Personal Application Resource

2008-09-10 Thread Antonio Petrelli
2008/9/10 Marcello Savino [EMAIL PROTECTED]: I have to menage a string table (something like the application resource), that is a customer customized table. The same resource message could be different, depending on the installation. Is it some sort of configuration stored in a DB? If yes,

RE: Struts 1 Personal Application Resource

2008-09-10 Thread Marcello Savino
No it's a string customer table I mean the same application must show differents strings depending on the installazion Ie.: some customer prefer the descriptor Main store and others prefer Main location on the same place of the same web page. -Original Message- From: Antonio Petrelli

Re: Struts 1 Personal Application Resource

2008-09-10 Thread Antonio Petrelli
2008/9/10 Marcello Savino [EMAIL PROTECTED]: No it's a string customer table I mean the same application must show differents strings depending on the installazion Ie.: some customer prefer the descriptor Main store and others prefer Main location on the same place of the same web page. So

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Bobby Mitch
ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it. http://forums.opensymphony.com/thread.jspa?threadID=454261

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Francisco Exposito
I've changed the order and now that error doesn't appear, but it doesn't work yet... I have done a test with this page: %@ page import=ads.web.action.UsuarioAction% %@ taglib uri=http://displaytag.sf.net; prefix=display % % Object result = session.getAttribute( result ); UsuarioAction ac =

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Dave Newton
There are too many differences between your two examples. You should build up the functionality from one to another until it breaks and start from there. One thing I'd comment is that if your divs are just containers then don't use the s:div... tag, as with the ajax theme they're really

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Jeromy Evans
Bobby Mitch wrote: ok, well for your information I asked about that problem in the JBoss problem, thinking that the problem could come from JBoss, and I just posted the question on the XWORK forum where i hope they will help me fix it.

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Francisco Exposito
The unique difference I see is that the correct one doesn't use ajax, isn't it? As I've seen, the javascripts are executed only when the menu page is loaded. When I go to the secondary page, it is not executed. I've created a button adding it a call to the function changeLoads (which is

Error messages

2008-09-10 Thread Cosmin Marginean
Hello everyone, I am trying to provide some custom validation error handling in a JSP. For this I would like to perform some logic in the JSP when a validation fails, instead (or in addition) of displaying the actual error message. Is there a way to check if a certain field error has been

please remove: [EMAIL PROTECTED] - User unknown!

2008-09-10 Thread Jeromy Evans
Anyone listening that has the kudos to remove [EMAIL PROTECTED] from struts-dev and struts-user? I've grown weary of the warning received whenever I post a message to either list. Original Message Subject:Warning: [EMAIL PROTECTED] - User unknown! Date: Wed, 10 Sep

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, Francisco Expositowrote: The unique difference I see is that the correct one doesn't use ajax, isn't it? There's a huge number of differences between the two examples. That's not how you isolate a problem. The advice I provided stands; and I'd still remove the s:div...

Re: Error messages

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, Cosmin Marginean wrote: Is there a way to check if a certain field error has been set? In S2 use ValidationAware's getFieldErrors(...) method. http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/ValidationAware.html#getFieldErrors() Dave

[S2] Ajax error

2008-09-10 Thread ManiKanta G
Hi, I've just started experimenting with Ajax capabilities in S2. For this I m getting the time from action class when ever user clicked the 'Get time' button. ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid

Re: Error messages

2008-09-10 Thread Cosmin Marginean
Sorry for the misunderstanding - might not have been so clear. I meant performing some logic in the JSP. I would like to be able to do something like: td c:if test=${an error for field 'xxx' exists} class=someErrorClass /c:if --- On Wed, 9/10/08, Cosmin Marginean wrote: Is

RE: ajax validation issue

2008-09-10 Thread Gawain Hammond
HI, Thanks very much for your input. I think a lot of the confusion I'm having is that I've been following 2.1.x documentation while using 2.0.x. Sometimes it's not been clear if the documentation I'm following is for a particular version or not, and with the many way to do something it can be

Re: [S2] Ajax error

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, ManiKanta G wrote: ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid red; theme=ajax id=timeDiv s:date name=date/ /s:div br

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Francisco Exposito
Dave, I'm lost... I don't see any difference but the ajax (between two executions I only change the struts.xml file). I'll try to explain again and please, if after my explanation you think there are too much differences, please tell me which differences do you see. But I think I've isolated

Re: ajax validation issue

2008-09-10 Thread Jeromy Evans
Gawain Hammond wrote: A really nice solution so far has been to an action tag to populate forms, which has worked nicely the rest of the time. I've really liked using this approach to fill drop-downs, like so: s:action namespace=/admin name=crud.Group.listAll id=groupAction/ ... s:select

Re: Error messages

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, Cosmin Marginean wrote: Sorry for the misunderstanding - might not have been so clear. I meant performing some logic in the JSP. I would like to be able to do something like: td c:if test=${an error for field 'xxx' exists} class=someErrorClass /c:if

Re: [S2] Ajax error

2008-09-10 Thread ManiKanta G
Thanks Dave. Yes, from action class I m returning entire jsp page. Action class: public class TimeServer extends ActionSupport { private Date date = null; public String execute() throws InterruptedException { System.out.println(Request received...);

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, Francisco Exposito wrote: s:div id=divContenedor theme=ajax /s:div Does it work if you remove *this* s:div...? Again--if the div itself isn't doing anything but is just a placeholder there's no reason to use s:div..., although I don't know if it would break anything.

RE: Include menu action with sitemesh

2008-09-10 Thread Matthew Seaborn
Found the solution: http://struts.apache.org/2.x/docs/action.html -Original Message- From: Matthew Seaborn Sent: 08 September 2008 17:12 To: Struts Users Mailing List Subject: RE: Include menu action with sitemesh Whenever I try to us s:include or jsp:include to access a Struts 2 action

Re: [S2] Ajax error

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, ManiKanta G wrote: Yes, from action class I m returning entire jsp page. Well, that would explain why you're seeing an entire page in the div, then. How can I return HTML fragment? you mean another jsp page which contains only that html fragment? Yes, if you're loading

RE: ajax validation issue

2008-09-10 Thread Gawain Hammond
Can you confirm whether crud.Group.listAll is invoked after a validation failure? No, when validation returns to the form action 'crud.Group.listAll' is not invoked. This happens with struts versions 2.0.11.x and 2.1.x So you would expect using an action tag in this manner (to produce a list

Re: Submit button with no form

2008-09-10 Thread Dan
Lukasz Lenart escribió: As Don said, implement small form, only with submit button and you wouldn't have to use JavaScript. Regards OK, I´ll try to do it Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [S2] Ajax error

2008-09-10 Thread ManiKanta G
Thanks Dave. I'll Will do accordingly. Thanks, ManiKanta Dave Newton wrote: --- On Wed, 9/10/08, ManiKanta G wrote: Yes, from action class I m returning entire jsp page. Well, that would explain why you're seeing an entire page in the div, then. How can I return HTML

RE: Error messages

2008-09-10 Thread Martin Gainty
depends on if you want JS validation action validation ajax validation explained at http://struts.apache.org/2.x/docs/ajax-validation.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to

RE: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Francisco Exposito
I've removed it (I thought it was mandatory the theme=ajax in the s:div due to the previous code s:a id=linkBuscarUsuario theme=ajax href=%{buscarUsuario}

Dynamic radio buttons with bean

2008-09-10 Thread Dan
Hi, I need to display in a jsp a form with dynamic radio buttons, I mean: There are several items in my DB. One item is read (each item has one question and 4 possible answers). I need to display the question and the 4 answers as a radio option dynamically (with a bean). Then the users cheks

Re: Dynamic radio buttons with bean

2008-09-10 Thread Mead Lai
use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - I don't deserve this award, but I have

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Struts Two
Most probably it is an xwork issue, I have been experiencing the same problem for Websphere for 2.0.11.2 and 2.1.2, though 2.0.11.1 works for me. - Original Message From: Bobby Mitch [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, September 10,

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Musachy Barroso
Didn't we fix this already in xwork trunk?, I think I committed a patch someone supplied at some point. On Wed, Sep 10, 2008 at 6:58 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Bobby Mitch wrote: ok, well for your information I asked about that problem in the JBoss problem, thinking that

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Musachy Barroso
this ticket: https://issues.apache.org/struts/browse/WW-2653 ? On Wed, Sep 10, 2008 at 9:58 AM, Musachy Barroso [EMAIL PROTECTED] wrote: Didn't we fix this already in xwork trunk?, I think I committed a patch someone supplied at some point. On Wed, Sep 10, 2008 at 6:58 AM, Jeromy Evans

Struts2 Iterator tag problem

2008-09-10 Thread amolbehl
Hi I am trying to display a ArrayList of lists using struts2 iterator tag. private void dataReady(){ for (int itr = 0; itr this.HOURS; itr++) { tempList = new ArrayList(); // Add all the till related data

Re: Struts2 Iterator tag problem

2008-09-10 Thread Gabriel Belingueres
Something like this: s:interator var=tempList value=dataList s:iterator var=number value=#tempList /s:iterator /s:iterator 2008/9/10 amolbehl [EMAIL PROTECTED]: Hi I am trying to display a ArrayList of lists using struts2 iterator tag. private void dataReady(){

Re: Dynamic radio buttons with bean

2008-09-10 Thread danipruebas
Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed

RE: Dynamic radio buttons with bean

2008-09-10 Thread Martin Gainty
http://struts.apache.org/2.x/docs/radio.html specigy your list attribute to point to iterable map ( returned from Action class ) e.g. s:action name=GenderMap var=genders/ s:radio label=Gender name=male list=#genders.genders/ Martin __ Disclaimer and

Re: Dynamic radio buttons with bean

2008-09-10 Thread danipruebas
Thanks Martin, Is this applicable to Struts 1.x? Regards - Original Message - From: Martin Gainty To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 5:12 PM Subject: RE: Dynamic radio buttons with bean http://struts.apache.org/2.x/docs/radio.html

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Struts Two
I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email below: - Original Message From: Rene Gielen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent:

Re: Dynamic radio buttons with bean

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, [EMAIL PROTECTED] wrote: Is this applicable to Struts 1.x? No. What's the issue with indexed properties? They're the recommended way to deal with indexed properties. You could just do it by hand, tool. Dave http://struts.apache.org/2.x/docs/radio.html specigy your

Re: Dynamic radio buttons with bean

2008-09-10 Thread danipruebas
Hi, There is nothing wrong : ) I just wanted to know if there was another method to deal with this. Thanks for the reply. Regards, - Original Message - From: Dave Newton To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 6:18 PM Subject: Re: Dynamic radio

Re: struts tiles problem

2008-09-10 Thread Bipin Sadhwani
Any help would be appreciated. Tks! - Original Message From: Bipin Sadhwani [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, September 9, 2008 1:07:12 PM Subject: struts tiles problem Hi everyone, I have this wierd issue with tiles. Probably its a bug. My environment is:

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Bobby Mitch
Thanks. Applying the workaround with Struts 2.0.11.1 and XWorks 2.0.4, and modifying struts.xml by adding the interceptor-ref tag does not work: 22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw exception java.lang.IllegalArgumentException: URI scheme is not file     at

Re: IS struts 2 websphere compatible?

2008-09-10 Thread Priyanka.dandekar
YES, you can backport struts 2 core and dependancy jar files to JDK 1.4 and use them. Here are the details of backporting http://struts-2-developers.blogspot.com/2008/08/backporting-struts-2-to-jdk14-using.html Backporting Struts 2 to JDK 1.4 Regards, Priya Praveen, Galagali (IE10) wrote:

Re: Custom validation with Struts2

2008-09-10 Thread Priyanka.dandekar
If Integer Range Validator does not work for you then you shoud consider regular expression validation for same, its can be done by restricting number of digits and allowing only numeric characters. Here is an example of similar problem

Re: Custom validation with Struts2

2008-09-10 Thread Dave Newton
The OP isn't really using the built-in intrange validator, but doing it manually (for some reason). The problem, however, lies in the OP's configuration fragment: action name=EmployeeCard class=com.tsystems.tintra4.actions.EmployeeCard interceptor-ref name=i18n / interceptor-ref

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Jeromy Evans
Musachy Barroso wrote: this ticket: https://issues.apache.org/struts/browse/WW-2653 ? Yeah, that's a fix for the same issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not file)

2008-09-10 Thread Struts Two
Do not give up, the game is not still over . (you can still do sth about it) As an alternative, you can import the source code of xwork into ur workspace and remove xwork the jar file, run your code in debug mode, find the culprit, fix it. Then you can replace the class file in xwork jar

Re: Sorting with displaytag issue due to theme=ajax

2008-09-10 Thread Zoran Avtarovski
I¹m not certain, but could this be a conflict between jquery and whatever new js libraries you¹ve added: script src=src/javascript/optiontransferselect.js type=text/javascript/ s:head theme=ajax/ script src=src/javascript/stuHover.js type=text/javascript/script I¹d look into these 3. That¹s

Struts 2.1 Tree Problem

2008-09-10 Thread Narayana S
Hi, now i am working with tree control, when i load the tree i want to load it default extended and what ever the node id i pass that should be activated. how i can achieve this using struts 2.1 version. and one more thing is when i select a node in the jsp page itself i have to find out the

Unit Testing Struts 2

2008-09-10 Thread Mark
Hi all: Does anyone have a working example of unit testing a Struts 2 app? I've been looking around for awhile know and found the following resources. However, I've not been able to get any of them to work. http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-

Re: Unit Testing Struts 2

2008-09-10 Thread Nils-Helge Garli Hegvik
Have you looked at the tests in the source repository? Nils-H On Thu, Sep 11, 2008 at 7:31 AM, Mark [EMAIL PROTECTED] wrote: Hi all: Does anyone have a working example of unit testing a Struts 2 app? I've been looking around for awhile know and found the following resources. However, I've

Re: Unit Testing Struts 2

2008-09-10 Thread Mark
I had a look at a few in the 2.0.11.1 source tree. I couldn't understand how they were structured. I haven't looked at the 2.1.3 source tree. Is there a particular one you would suggest? Mark On 11/09/2008, at 3:40 PM, Nils-Helge Garli Hegvik wrote: Have you looked at the tests in the