Re: Struts2, tiles2 and character encoding problem

2007-02-07 Thread elin
Thank you for your reply. I upgraded from struts 2.0.4 to 2.0.5 but with the same result. I use maven to build the project which gives me the tiles version tiles-core-2.0-20070130.184344-3.jar. It seems to be the latest snapshot. Is this the version where the bug you mentioned is fixed? Or do

bean:page

2007-02-07 Thread Chris Pat
Hello I need to get the full string of my webapp, ie, http://localhost:8080/webapp/ so I can refer to it in other html tags. I see how I can use the bean:write tag with the property of application. However I dont know where is a listing of the properties that I can get out with a bean:write

Re: Struts2, tiles2 and character encoding problem

2007-02-07 Thread Joe Germuska
TILES-28 should be resolved in the SNAPSHOT version you indicate, while the subsequent change (to the Taglib URI) hadn't been changed. I just deployed a 2.0-SNAPSHOT rather than let it hang on as something less clear going forward. But back to your issue: it might seem that you've found a

Re: Struts2, tiles2 and character encoding problem

2007-02-07 Thread elin
I double-checked that there is only one tiles-core jar. Monitoring shows: Conventional Struts result response's Content-Type header is text/html;charset=utf-8 If I request a jsp directly, the response's Content-Type header is text/html;charset=utf-8 Tiles Result response has no Content-Type

how to specify ActionMapper

2007-02-07 Thread Ravi Mangalagiri
I added the following key, value in my struts.properties struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper and my action is defined as follows: struts package name=queryReports extends=struts-default namespace=/queryReport default-interceptor-ref

Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Sridhar Srigiriraju
Hello All, I am facing a strange problem. I am trying to deploy and navigate to the welcome page of Struts blank application that comes with the struts binary distribution and I face the following error stack trace. I did not face this problem while I deployed it in TOMCAT. I am hoping someone

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Dave Newton
--- Sridhar Srigiriraju wrote: [Weblogic 8.1 problem] You're using the j4 libs? Which JDK; Sun or JRockit, and which version? Which Weblogic SP? Dave Do you Yahoo!? Everyone is raving about the all-new

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Sridhar Srigiriraju
Dave, I am using *Sun JDK142_05* Weblogic *8.1 SP4* Is it identified already as a problem ? I am also attaching the trace from my server log Thanks Sridhar *Feb 7, 2007 11:00:26 AM EST Info Management BEA-141107 Version: WebLogic Server 8.1 P4 Mon Nov 29 16:21:29 PST 2004 471647 WebLogic

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Dave Newton
Are you using the j4 S2 libs? --- Sridhar Srigiriraju [EMAIL PROTECTED] wrote: Dave, I am using *Sun JDK142_05* Weblogic *8.1 SP4* Is it identified already as a problem ? I am also attaching the trace from my server log Thanks Sridhar *Feb 7, 2007 11:00:26 AM EST Info

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Sridhar Srigiriraju
By S2 you mean Struts 2, no, I am not. I am using Struts 1.2.9 On 2/7/07, Dave Newton [EMAIL PROTECTED] wrote: Are you using the j4 S2 libs? --- Sridhar Srigiriraju [EMAIL PROTECTED] wrote: Dave, I am using *Sun JDK142_05* Weblogic *8.1 SP4* Is it identified already as a problem ? I

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Dave Newton
--- Sridhar Srigiriraju wrote: By S2 you mean Struts 2, no, I am not. I am using Struts 1.2.9 Oh. Whoops. Totally missed that. Are you sure it deployed correctly to Weblogic? We're running both 1.2.9 and 1.3.5 on Weblogic 8.1 SP5/JRockit 1.4.2_08 with no difficulties using Tiles. d.

Re: how to specify ActionMapper

2007-02-07 Thread cilquirm
The error seems self-explanatory. By specifying the queryReportBeanName inside the result/ tag, you're actually setting the value on the redirect-action object ( known also by it's java name org.apache.struts2.dispatcher.ServletActionRedirectResult ). if you want to set a static param on your

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Sridhar Srigiriraju
Dave, I had no problems in deploying the code. The deployment log doesnt say much either about any possible errors. However, let me try JRockit and see how is comes through. Thanks anyways for the help. Sridhar On 2/7/07, Dave Newton [EMAIL PROTECTED] wrote: --- Sridhar Srigiriraju wrote:

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Dave Newton
--- Sridhar Srigiriraju wrote: I had no problems in deploying the code. I'm not asking if you had problems deploying it, I'm asking if it was correctly deployed, which is an entirely different thing. I ask because we have had zero issues working with S1/Tiles on 8.1SP5, so I feel pretty

Re: how to specify ActionMapper

2007-02-07 Thread Dave Newton
--- cilquirm [EMAIL PROTECTED] wrote: By specifying the queryReportBeanName inside the result/ tag, you're actually setting the value on the redirect-action object [...] if you want to set a static param on your own action then take it out from under the result/ tag and put it in inside

Re: how to specify ActionMapper

2007-02-07 Thread Ravi Mangalagiri
Exactly, I followed the example Dave mentioned.. action name=auditLogQueryReport class= com.fanniemae.customersolutions.ess.webapp.action.common.BaseAction result name=success type=redirect-action param name=actionNamerunQueryReport/param param

Re: Struts2, tiles2 and character encoding problem

2007-02-07 Thread Joe Germuska
OK, a few more notes: just to be clear, I have specified struts.i18n.encoding=UTF-8. This is not used to directly set the response character encoding. I use a CharacterEncodingFilter to set encoding to UTF-8. In my experience, a CharacterEncodingFilter is used to control the request

Wanna Solution on Internationalization!!!!

2007-02-07 Thread manoj sinha
Hi, Expecting solution:i m writing Login Form with Internationlization support.But as i Select Language it doesn't reflect in Form Field.Pls Suggest ASAP s:form action=Login s:combobox name=language list={'English','French','Italian'} value=English /s:combobox s:textfield

Re: how to specify ActionMapper

2007-02-07 Thread cilquirm
My apologies. I read the message wrong. Is the problem that the the value is not being set on the action being redirected to? Looking at the error message, and the source, it's just a warning. Processing continues as normal after that, so it should be setting the values correctly. I've not

Re: Wanna Solution on Internationalization!!!!

2007-02-07 Thread Dave Newton
--- manoj sinha [EMAIL PROTECTED] wrote: Expecting solution Aren't we all. But as i Select Language it doesn't reflect in Form Field.Pls Suggest ASAP s:form action=Login s:combobox name=language list={'English','French','Italian'} value=English /s:combobox s:textfield

Re: how to specify ActionMapper

2007-02-07 Thread Dave Newton
--- cilquirm [EMAIL PROTECTED] wrote: Looking at the error message, and the source, it's just a warning. Processing continues as normal after that, so it should be setting the values correctly. Dave Newton-4 wrote: This issue is in JIRA at https://issues.apache.org/struts/browse/WW-1714

Re: how to specify ActionMapper

2007-02-07 Thread Ravi Mangalagiri
The actual problem is I fixed struts.properties to use ActionMapper as show below struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper but it still uses .. ServletActionRedirectResult On 2/7/07, cilquirm [EMAIL PROTECTED] wrote: My apologies. I read the message

Re: how to specify ActionMapper

2007-02-07 Thread Dave Newton
--- Ravi Mangalagiri wrote: The actual problem is I fixed struts.properties to use ActionMapper as show below struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper but it still uses .. ServletActionRedirectResult That doesn't make any sense; one is a mapper and

Re: Wanna Solution on Internationalization!!!!

2007-02-07 Thread Ted Husted
The code here appears to be trying to store the new settings for the client as they are being changed. Of course, that's a good idea, but it also might be confusing the markup. First, I'd try simplifying the page so that it just changes the locale, as we do here *

jsessionid appended to URL and page not found`

2007-02-07 Thread Vinod Kumar
Hi All, I have a link to a struts web application in one of existing website like start.jsp?cntry_cd=US start.jsp is in struts application and contains the following line jsp:forward page=/setup.do / setup action does some pre-setup stuff and forwards to home page. The home page displays well

Re: jsessionid appended to URL and page not found`

2007-02-07 Thread Joe Germuska
What is handling the basic HTTP service for your application? If it is not a servlet container, but rather an HTTP server which proxies certain requests to a servlet container, then there is probably just a configuration problem. The scenario you describe is standard. A Servlet Container (or

RE: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Karr, David
Did you specify prefer-web-inf-classes in the weblogic.xml file? If you don't do this, the app will use the Struts jars that are installed with WebLogic, which would be an earlier version. -Original Message- From: Sridhar Srigiriraju [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: [S2] datetimepicker and dates

2007-02-07 Thread Dariusz Wojtas
Hi Musachy, I compiled the latest xwork 2.0.1 snapshot. I used S2.0.5 snapshot (last weekend) and today's xwork 2.0.1 snapshot. I have double checked if I use correct JAR files. The problem is still there. Exactly the same symptoms. Date is not set, property is null: s:datetimepicker

Re: Struts 2 JSON

2007-02-07 Thread Musachy Barroso
Just as a follow up to anyone interested, I added the interceptor to the JSON plugin. Dates in RFC 3339 format are also supported. Serialization and deserialization can be customized using annotations. For more details: http://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy Musachy

Re: [S2] datetimepicker and dates

2007-02-07 Thread Musachy Barroso
Can you find out what is the value that is being submitted? FF plugin Tamper Data is handy for this. The other thing is that the datepicker is the only one working right now, the timepicker is broken (doesn't use RFC 3339). I think you are using datepicker, but I just wanted to make sure :)

Re: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Sridhar Srigiriraju
David, Thanks a lot. It worked like a charm!! Here comes my next question just out of curiosity at the risk of sounding dumb :) Why would weblogic package Struts jars in its distribution if its not part of standard JCP process and also with the conventional wisdom that weblogic versions cannot

Struts action call in a JS method returns blank page

2007-02-07 Thread Christopher Loschen
Hi all, I'm honestly unsure if I'm having a problem with Struts (sadly, 1.1) or with Javascript, or something else. But my best guess is it's a Struts issue, and anyway, there are a lot of very knowledgeable people on both of those technologies here, so I hope someone can help. Bottom line:

Re: [S2] datetimepicker and dates

2007-02-07 Thread Dariusz Wojtas
No problem, here is the pair I get for this property. I get such pair for each Date prop. myDateProperty=2007-02-07 dojo.myDateProperty=2007-02-07 s:datetimepicker name=myDateProperty displayFormat=-MM-dd label=My Date Label/ Regards Dariusz Wojtas On 2/7/07, Musachy Barroso

Re: Struts action call in a JS method returns blank page

2007-02-07 Thread Musachy Barroso
When you post the form, after the action, struts will send a response, usually a page. Because you don't want to change the current page, you could do this by making an asynchronous request. I'm probably wrong, but I don't think you can make a post, and stay on the same page (unless you are

Re: [S2] datetimepicker and dates

2007-02-07 Thread Dariusz Wojtas
I have created issue WW-1717 describing the problem of logging values by the parameters interceptor. Regards Dariusz Wojtas On 2/7/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: Hi Musachy, I compiled the latest xwork 2.0.1 snapshot. I used S2.0.5 snapshot (last weekend) and today's xwork 2.0.1

Re: [S2] datetimepicker and dates

2007-02-07 Thread Musachy Barroso
It seems to be submitting the value on the right format, so the problem is somewhere else (i18?). Does the UI tags example in showcase works for you? It has a date field, which it prints when the form is submitted. thanks musachy Dariusz Wojtas wrote: No problem, here is the pair I get for

Struts taglib HTML 4.01 compliance

2007-02-07 Thread Liam Brady
I am using Struts taglib version 1.3.5, but I notice for LinkTag, FormTag, ReWriteTag the parameters in the querystring are being appended with the ampersand unencoded - this is leading to a validation error for HTML 4.01 for example : I have hreftest.jsp?param1=3param2=4 Instead I believe it

RE: Struts action call in a JS method returns blank page

2007-02-07 Thread Christopher Loschen
Thanks Musachy. I changed the success action forward to point to the original page (or really the action which creates that page) and that works, though it does rebuild the page, which is unfortunate overhead. But it does do what I need to do, so I'm happy. Thank you. Chris -Original

Re: [S2] datetimepicker and dates

2007-02-07 Thread Dariusz Wojtas
I checked it against struts2-showcase build fresh on s2 trunk. After build I replaced xwork 2.0 with my snapshot xwork 201. I cleaned tomcat (5.5) work temp dirs before running it. Did not work. Params fetched with the DataTamper plugin for FF Content-Disposition: form-data; name=dojo.birthday

s:textfield tag breaking line in page

2007-02-07 Thread Daniel Amadei
Hi All, I`m using the tags textfield and password and I noticed it is creating a new tr element which positions the fields vertically. I need them horizontally, so I`d like struts just to create the input tag for me, nothing more. How can this be done? Thanks, Daniel

Re: s:textfield tag breaking line in page

2007-02-07 Thread Dariusz Wojtas
s: textfield name=... theme=simple / It generates 2 cell row + optional error message for field if parent form is of theme 'xhtml' or 'ajax'. You may override cild behaviour by setting theme 'simple' on a single tag. regards Dariusz Wojtas On 2/7/07, Daniel Amadei [EMAIL PROTECTED] wrote: Hi

Re: s:textfield tag breaking line in page

2007-02-07 Thread Tom Schneider
or constant name=struts.ui.theme value=simple / as a global setting. Tom On 2/7/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: s: textfield name=... theme=simple / It generates 2 cell row + optional error message for field if parent form is of theme 'xhtml' or 'ajax'. You may override cild

Re: s:textfield tag breaking line in page

2007-02-07 Thread Daniel Amadei
Great! Thanks a lot! 2007/2/7, Tom Schneider [EMAIL PROTECTED]: or constant name=struts.ui.theme value=simple / as a global setting. Tom On 2/7/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: s: textfield name=... theme=simple / It generates 2 cell row + optional error message for field if

global forward in struts 2

2007-02-07 Thread Daniel Amadei
Hi All, Is there a way to set up a global forward in Struts 2 and set it to forward to a tiles def? Thanks, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: global forward in struts 2

2007-02-07 Thread Dave Newton
--- Daniel Amadei wrote: Is there a way to set up a global forward in Struts 2 and set it to forward to a tiles def? You can create global-results with any result type you want. http://cwiki.apache.org/WW/result-configuration.html d.

RE: Error while running struts blank on Weblogic 8.1

2007-02-07 Thread Karr, David
Weblogic uses Struts 1.1 for some of its internal views. It started using that quite a long time ago, when Struts 1.1 was the latest version. -Original Message- From: Sridhar Srigiriraju [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 11:11 AM To: Struts Users Mailing

Re: global forward in struts 2

2007-02-07 Thread Daniel Amadei
Hi Dave, Unfortunately, this does not do what I want. I need to type an action in the URL and get redirected to the result without having to code the Action. Thanks, Daniel 2007/2/7, Dave Newton [EMAIL PROTECTED]: --- Daniel Amadei wrote: Is there a way to set up a global forward in Struts

Verbose error message

2007-02-07 Thread Gonçalo Luiz
Hello, I'm using display tag and getting an error. However this e-mail is not to try to figure out the error, but to try to obtain a more verbose error message instead of a generic jsp include error (at the end of this message) that I get to _every and single one_ error I have in jsp, no matter

Re: global forward in struts 2

2007-02-07 Thread Dave Newton
--- Daniel Amadei wrote: Unfortunately, this does not do what I want. I need to type an action in the URL and get redirected to the result without having to code the Action. Ah. Then you don't want a global forwards, you want wildcard action mappings, from

struts2 newbie question

2007-02-07 Thread Brian Bruns
Hi all, I'm building a non-essential app in struts2 to get my feet wet and ran into something right away. We make heavy use of LookupDispatchAction in struts1 and I'm having trouble figuring out how to do the same thing in struts2. I see from the docs that you can use wildcards to map saveFoo

Re: struts2 newbie question

2007-02-07 Thread Dave Newton
--- Brian Bruns [EMAIL PROTECTED] wrote: [...] but how does one use a single action and control which method is called based on, for instance, the value of the submit button? http://cwiki.apache.org/WW/submit.html Submit takes both action and method parameters; perhaps that's what you're

Re: Struts 2 Action Mapping - Redirect

2007-02-07 Thread Nate Drake
The NPE in ServletRedirectResult is a bug. It has been fixed in 2.0.5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

binding select value to a Java 5 enum

2007-02-07 Thread Daniel Amadei
Hi All, I`m trying to bind the value of a select to an enum but I`m getting the following error: Invalid field value for field Does anybody knows how can I set the value to be the enum type? Thanks, Daniel - To unsubscribe,

Re: jsessionid appended to URL and page not found`

2007-02-07 Thread Vinod Kumar
Hi Joe, Thanks for your reply. Basic Http Service is handled by apache web server and servlet requests are handled by Tomcat. So I have apache+tomcat integrated. What confirguration settings, do I need to make this work in this scenario. Thanks Vinod --- Joe Germuska [EMAIL PROTECTED] wrote:

Re: jsessionid appended to URL and page not found`

2007-02-07 Thread Dave Newton
--- Vinod Kumar [EMAIL PROTECTED] wrote: So I have apache+tomcat integrated. What confirguration settings, do I need to make this work in this scenario. IIRC when we had this problem we used one of the rewrite mods to nudge Apache to know that the ;jsessionid etc. was special. There's

Re: jsessionid appended to URL and page not found`

2007-02-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: --- Vinod Kumar [EMAIL PROTECTED] wrote: So I have apache+tomcat integrated. What confirguration settings, do I need to make this work in this scenario. IIRC when we had this problem we used one of the rewrite mods

Re: binding select value to a Java 5 enum

2007-02-07 Thread Daniel Amadei
Hi All, Per my message above I was able to set value for an Enum which is a property of my action using a converter as in the showcase example, but I was not able to set the enum to a nested, when the enum never gets called. My structure is similar to: person.gender (where gender is an enum)

Struts 1.3, JSON, and Action Forms

2007-02-07 Thread Alejandro Calbazana
Hello, I am wondering if anyone has made use of Ajax and SON under Struts 1.3... I'd like to make use of JSON in my Struts application in order to ease the process of data binding Dojo widgets. I'd also like to use JSON to serve as my client side model where changes made to a JSON graph, on

Re: binding select value to a Java 5 enum

2007-02-07 Thread Dave Newton
--- Daniel Amadei wrote: person.gender=mypackage.EnumConverter Element_person.gender=mypackage.Gender Does it work if you remove the person. part? I'm still not entirely clear why one of my current apps does conversion correctly, but my -conversion file only has the last part of the object

Re: Struts 1.3, JSON, and Action Forms

2007-02-07 Thread Musachy Barroso
I've been working on a JSON plugin to serialize/deserialize actions to/from JSON, but it is for Struts 2. You could at least reuse the serialization/deserialization code: http://code.google.com/p/jsonplugin/ musachy On 2/7/07, Alejandro Calbazana [EMAIL PROTECTED] wrote: Hello, I am

How to hold values in html:radio Button Group using Java Script

2007-02-07 Thread Jeevan Kumar Kade
Hi All, I have 2 Radio Button Group How can i call the following html:radio code in javascript html:radio code First Radio Button Group html:radio property=firstRadioGroup value=0/ html:radio property=firstRadioGroup value=1/ Second Radio Button Group

Re: How to hold values in html:radio Button Group using Java Script

2007-02-07 Thread Musachy Barroso
What do you mean how can I hold those values in the javascript.? Do you mean, how to get the values in javascript? regards musachy On 2/7/07, Jeevan Kumar Kade [EMAIL PROTECTED] wrote: Hi All, I have 2 Radio Button Group How can i call the following html:radio code in javascript

Re: struts2 newbie question

2007-02-07 Thread Dale Newfield
Dave Newton wrote: http://cwiki.apache.org/WW/submit.html Submit takes both action and method parameters; perhaps that's what you're looking for? The example makes me think that the method attribute enables the ability to specify get vs. post on a submit button by submit button basis within

Re: How to hold values in html:radio Button Group using Java Script

2007-02-07 Thread Jeevan Kumar Kade
Hi musachy, Thanks a lot for your reply. Your are correct, how to get the values in the javascript. Kindly please provide me code. Really it will be helpful me a lot. I am trying a lot from 3 days. Please help me Thanks in Advance Jeevan Musachy Barroso

Re: Wanna Solution on Internationalization!!!!

2007-02-07 Thread manoj sinha
Oh Yes!! Label should reflect changes as per Language Selection Dave Newton [EMAIL PROTECTED] wrote: --- manoj sinha wrote: Expecting solution Aren't we all. But as i Select Language it doesn't reflect in Form Field.Pls Suggest ASAP list={'English','French','Italian'}

RE: Struts action call in a JS method returns blank page

2007-02-07 Thread Yee Kai Lai
It returns a blank page might be due to form.submit(); in your JS. I think if you have a form named 'service.device.selected-devices-form' then it will never be null hence it will always submit. May you could enlightened why u need a form.submit() ? From: Christopher Loschen [EMAIL

[S2] @Result annotation not working

2007-02-07 Thread Laurie Harper
What do I need to do to make @Result annotations on my action methods work? I'm using the code-behind and zero-config plugins, and tried to add the annotation like this: @Result(value = users, type = ServletActionRedirectResult.class) public String save() {