RE: HELP!!! Struts2 bugs? DoubleSeclect tag with default values

2008-11-10 Thread Jipu Jiang
Hi Felippe, Thank you for your fast reply. I have double checked with what you have suggested. But the problem is still here. Regarding to the situation, the second list contains all the options actually. If I show only the doubleselect box without default values to show, all the options are the

Re: update for struts-2.0.dtd: missing package/default-class-ref attribute

2008-11-10 Thread Jim Walmsley
Thanks for your reply Dave. The DTD in the struts2-core jar is correct. The issue is that Eclipse gives me a validation error when I have the out-of-date public DTD in the XML header. (The code works anyway, but we don't want validation errors.) The URL header is checked before searching t

Re: HELP!!! DoubleSeclect tag with default values

2008-11-10 Thread Felippe Scheidt
Hi Jipu, Well, if i understood correctly, the second list, "tertiaryoptions" is been completed with only one city, and there is another cities of course. The doubleselect tag bind the two lists behind through ValueStack. For this works correctly, verify the first list, "menu.menuoptions". This is

REST and JSON: null values, content type

2008-11-10 Thread Alex Milanovic
Hi All, Two questions about the REST plugin and its support for JSON (note I am using 2.1.3-SNAPSHOT to be able to use hierarchical REST resources): 1. I noticed that when the plugin serializes the response to JSON a null string is serialized as an empty string and a null array is serialized as a

RE: HELP!!! DoubleSeclect tag with default values

2008-11-10 Thread Jipu Jiang
Hi Felippe, Thank you so much for the response. Sure, here is the code: JSP:

RE: logic:notEqual does not appear to work correctly

2008-11-10 Thread Russo, Joe
This works. if(!artMetId.equals(partMetId)){ For some reason the logic:notEqual tag does not do a dot equals comparision but a ==. -Original Message- From: Russo, Joe [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 9:49 AM To: Struts Users Mailing List Subject: logic:not

RE: logic:notEqual does not appear to work correctly

2008-11-10 Thread Russo, Joe
Might be Trying now. -Original Message- From: Russo, Joe [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 9:49 AM To: Struts Users Mailing List Subject: logic:notEqual does not appear to work correctly Hi, I am trying to do a comparision on the highlighted code a

logic:notEqual does not appear to work correctly

2008-11-10 Thread Russo, Joe
Hi, I am trying to do a comparision on the highlighted code and output in my JSP. For some reason the comparison does not equal 33584. Any ideas why? Thanks, Joe <% System.out.println("artMetId=*" + artMetId + "*"); System.out.println("partMetId=*" + part

Re: update for struts-2.0.dtd: missing package/default-class-ref attribute

2008-11-10 Thread Dave Newton
--- On Sun, 11/9/08, Jim Walmsley wrote: > The dtd at http://www.opensymphony.com/xwork/xwork-2.0.dtd > appears to be a valid alternative as a temporary measure. Is > there any reason why it should not be used? It's *probably* okay, although I've never tried it. Have you tried using the DTD recom

Re: HELP!!! DoubleSeclect tag with default values

2008-11-10 Thread Felippe Scheidt
Can you paste your code please? Scheidt. On Mon, Nov 10, 2008 at 9:04 AM, Jipu Jiang <[EMAIL PROTECTED]> wrote: > Dear all, > > I was trying to display a JSP page with some parameters from the > database. Everything shows up perfectly except the second dropdown list > of the doubleselect tag, w

HELP!!! DoubleSeclect tag with default values

2008-11-10 Thread Jipu Jiang
Dear all, I was trying to display a JSP page with some parameters from the database. Everything shows up perfectly except the second dropdown list of the doubleselect tag, which should display the value from java action but it always shows the first value of the second list. For example, the fir

Re: Struts2 upload

2008-11-10 Thread Nick J
Thanks to everyone who responded. It is now working. I removed the - it's not needed I added method="post" to the HTML form element - I had forgotten it. The extends="json-default" in the pacjage is needed because of one of the other actions produces a JSON response. Nick J wrote: > > Hi, I

Re: [Struts 2] Dojo datetimepicker - simple

2008-11-10 Thread AvK
Hello, I am also facing similar problem. I have given date time picker. I am able to log the value from action class. but cannot get the value to the jsp page. i did it like Auction Start Date i have tried a lot but am getting the error like Could not parse date java.text.ParseException: U