[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() { userService.saveUse

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 PRO

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: 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 <[EMA

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 wit

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 h

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 Second Radio Button Group Here, the value type is Integer as it having more than one value. My

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 wonder

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 g

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 t

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) M

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 > rew

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 pr

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:

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, e

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]

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'r

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: 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 http://cwiki.apache.org/WW/

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 t

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 Strut

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 Maili

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. _

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: 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 as a global setting. Tom On 2/7/07, Dariusz Wojtas <[EMAIL PROTECTED]> wrote: > > > It generates 2 cell row + optional error message for field if parent > form is of theme 'xhtml' or 'ajax'. You may override cild behaviour

Re: s:textfield tag breaking line in page

2007-02-07 Thread Tom Schneider
or as a global setting. Tom On 2/7/07, Dariusz Wojtas <[EMAIL PROTECTED]> wrote: 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/

Re: s:textfield tag breaking line in page

2007-02-07 Thread Dariusz Wojtas
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 All, I`m using the tags textfield

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 element which positions the fields vertically. I need them horizontally, so I`d like struts just to create the tag for me, nothing more. How can this be done? Thanks, Daniel --

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.birthda

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 Messag

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 href"test.jsp?param1=3¶m2=4" Instead I believe it sho

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 th

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.

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 ret

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 Regards Dariusz Wojtas On 2/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Can you find out what is the value that is being submitted? FF plu

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: I'm

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

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: 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 Barros

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: And I get the same err

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, Fe

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 ma

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 setup action does some pre-setup stuff and forwards to home page. The home page displays well with all navigation links. Bu

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 * http://struts.apache.org/2.x/do

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

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
--- 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/brows

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 > > list="{'English','French','Italian'}" >value="English" > >label="%{getText('loginlang.loginid')}" > name="username"/> >

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 use

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 en

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 content

Re: how to specify ActionMapper

2007-02-07 Thread Ravi Mangalagiri
Exactly, I followed the example Dave mentioned.. runQueryReport /queryReport auditLogReport /pages/includes/query.jsp according to the documentation if I have a setter/getter for 'queryReportBeanName' on my QueryReportAction, and if I use

Re: how to specify ActionMapper

2007-02-07 Thread Dave Newton
--- cilquirm <[EMAIL PROTECTED]> wrote: > By specifying the "queryReportBeanName" inside the > 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 tag and put > it in inside the ta

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 comfort

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: how to specify ActionMapper

2007-02-07 Thread cilquirm
The error seems self-explanatory. By specifying the "queryReportBeanName" inside the 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 own a

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: 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 prob

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 > > > * > WebLogic Server 8.1

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:32 AM org.apache.struts.tiles.TilesPlugininitDefinitionsFactory INFO: Tiles definition factor

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 Yah

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 ha

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: runQueryReport /queryReport auditLogReport

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 he

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 variat

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 ta

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 you