Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Lukasz Lenart
Hi We are using Struts 1.2.9 and writing the JSP page as below: html:form action=/sampleAction.do html:text property=name/ html:text property=empID/ html:text property=empAddress.city/ html:text property=empAddress.state/ /html:form As I remember, Struts 1 don't

Re: [struts] Slow performance with Struts2

2008-07-03 Thread yorlick kilroy
Ok, I started a new test with ognl 2.6.11 vs ognl 2.7.2 vs ognl 2.7.2 + javassist Request-response time was stopped with Yslow firefox plugin for firefox 3 firstly ognl 2.6.11 was faster than 2.7.2 with or without javassist everytime, no matter how often I executed the test. I couldn't notice

Re: [S2] Issues with extending themes

2008-07-03 Thread Jeromy Evans
Nick Scavelli wrote: Here's what I've done: /WEB-INF/classes/struts.properties: struts.ui.theme=ccast2_0 struts.ui.templateDir=templates /templates/ccast2_0/theme.properties parent=css_xhtml Please advise because this is so annoying. I can't see anything wrong with that. I do the same

RE: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Chandramouli P
Hi, Thanks for getting back to me. All I was trying to do is getting the inside bean's values along with the ActionForm, so that I can handle those in my Action class. Please suggest a best way to achieve that. Thanks Regards, Chandra. Date: Thu, 3 Jul 2008 08:05:08 +0200 From: [EMAIL

Struts2 iterator tag

2008-07-03 Thread BGE Ger
Hello, I'm struts(2) newbie and I need some help for the iterator tag. How can I access to an updated list in the action class? My JSP looks like: s:form theme=simple s:iterator value=descList status=stat tr td s:textarea name=descList[%{stat.index}].destination

Re: Struts2 iterator tag

2008-07-03 Thread Jim Kiley
For starters, you can simplify things a lot by changing your syntax from: name=descList[%{stat.index}].destination to just: name=destination The iterator tag pushes descList[index] onto the OGNL stack in every iteration, so you can refer to its attributes directly. jk On Thu, Jul 3, 2008 at

Re: Struts2 iterator tag

2008-07-03 Thread BGE Ger
...thank you for the answer! But I've read, if I want to change the complete list with the submit action. I must use the list index. If I make a submit in each row I can use destination syntax. Isn't it right? Jim Kiley wrote: For starters, you can simplify things a lot by changing your

Re: [S2] Issues with extending themes

2008-07-03 Thread Nick Scavelli
Thanks for your reply, you were right. Once freemarker has control it's unaware of the parent theme. Pretty much all controls have #include /${parameters.templateDir}/${parameters.theme}/controlheader.ftl / in their template. Once I added my own controlheader.ftl it worked. My other problem

Re: [s] Validity of user session

2008-07-03 Thread Milan Milanovic
O.K. Could you tell me very session data is stored ? I need to know this because when user came to one page I fill session object with some values (collections), and when he click exit link then I clear session contents, but he may click to some other link (to exit) and then all objects in

Re: Firefox 3 and s:head theme=ajax/ render issues

2008-07-03 Thread Ian Roughley
This might be a dojo issue, as I think nearly all the JS code being loaded is dojo now. Have you tried their mailing lists? /Ian georz1 wrote: I'm using Struts 2.0.11 and it seem with Firefox 3 only there are rendering issues on pages where I have s:head theme=ajax. I can see the page load

Anyone want to show me up...

2008-07-03 Thread Al Sutton
I can't for the life of me get the value for getRequestURI from the HTTPServletRequest object into a hidden field. s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out where I've dumbed out? Al.

Re: [struts] Anyone want to show me up...

2008-07-03 Thread Dale Newfield
Al Sutton wrote: s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out where I've dumbed out? #request is not the Request object, but rather the request attributes. You can always add an action property that either returns the request object or the

Re: Anyone want to show me up...

2008-07-03 Thread Musachy Barroso
#request is just a map with the request attributes. If you want the real request object: #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'] there are probably other 300 ways of getting the same thing. musachy On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton [EMAIL PROTECTED] wrote: I

Re: Firefox 3 and s:head theme=ajax/ render issues

2008-07-03 Thread georz1
I have not but I'll continue to look. This behavior happens about 20% of the time and when it does I get document.write(script type='text/java...l_omit_module_check = false;/script); dojo is not defined Ian Roughley wrote: This might be a dojo issue, as I think nearly all the JS code being

Re: [struts] Slow performance with Struts2

2008-07-03 Thread Dale Newfield
yorlick kilroy wrote: firstly ognl 2.6.11 was faster than 2.7.2 with or without javassist everytime, no matter how often I executed the test. Thank you for doing this test! I guess I'll be following your lead reverting back to 2.6.11 myself. -Dale

Re: Anyone want to show me up...

2008-07-03 Thread Al Sutton
Thanks Musachy, one day I will get to grips with OGNL :). Al. Musachy Barroso wrote: #request is just a map with the request attributes. If you want the real request object: #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'] there are probably other 300 ways of getting the

Struts 2 in action

2008-07-03 Thread bhaarat Sharma
Hi guys, Has anyone taken a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's suggestion. If you've browsed through the book, can you please provide some feedback. Thanks

Re: Struts 2 in action

2008-07-03 Thread Jim Kiley
I bought it not long after it came out and it's excellent. I hit it at least once a week, even now. The night I bought it, when I had good fiction to read, and good nerdy nonfiction to read, I chose to read *Struts 2 In Action* for fun instead. And I got something good out of doing so. I

RE: Struts 2 in action

2008-07-03 Thread Eric Hamacher
I really love this book. It's a good mix of hand-holding and advanced techniques. It taught me what I needed to know and then some. And I'm not all that bright. The book has a permanent position near my left elbow for reference. -Original Message- From: bhaarat Sharma [mailto:[EMAIL

Re: Anyone want to show me up...

2008-07-03 Thread Musachy Barroso
add debug=browser to your urls and explore the context ;) m On Thu, Jul 3, 2008 at 12:45 PM, Al Sutton [EMAIL PROTECTED] wrote: Thanks Musachy, one day I will get to grips with OGNL :). Al. Musachy Barroso wrote: #request is just a map with the request attributes. If you want the real

Re: [struts] Anyone want to show me up...

2008-07-03 Thread Dale Newfield
Musachy Barroso wrote: add debug=browser to your urls and explore the context ;) I'm confused about #context. I can't find documentation about it -- can you suggest where I should look? -Dale - To unsubscribe, e-mail:

Re: Struts 2 in action

2008-07-03 Thread Greg Lindholm
Yes, I highly recommend it, it's the top book on my desk right now. I've referenced it almost everyday since I read it. omnipresent wrote: Hi guys, Has anyone taken a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's

Re: Struts 2 in action

2008-07-03 Thread bhaarat Sharma
buy it, i shall then. Thanks guys! I've also scammed over Ian Roughly's book which was also a good read. On Thu, Jul 3, 2008 at 1:51 PM, Greg Lindholm [EMAIL PROTECTED] wrote: Yes, I highly recommend it, it's the top book on my desk right now. I've referenced it almost everyday since I read

Re: [struts] Anyone want to show me up...

2008-07-03 Thread Musachy Barroso
think of #context like that maps that holds the values in the value stack, and no, I don't think it is documented (I haven't seen it at least). musachy On Thu, Jul 3, 2008 at 1:34 PM, Dale Newfield [EMAIL PROTECTED] wrote: Musachy Barroso wrote: add debug=browser to your urls and explore the

Re: [struts] Anyone want to show me up...

2008-07-03 Thread Musachy Barroso
the map On Thu, Jul 3, 2008 at 2:10 PM, Musachy Barroso [EMAIL PROTECTED] wrote: think of #context like that maps that holds the values in the value stack, and no, I don't think it is documented (I haven't seen it at least). musachy On Thu, Jul 3, 2008 at 1:34 PM, Dale Newfield [EMAIL

Character Encoding and s:textarea

2008-07-03 Thread Richard Sayre
I have a form containing text areas. When I copy a bunch of character data such as: 2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét into the text are, it displays normally. When I save the data, the database stores the characters properly, when the data returns

Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Struts Two
Hello All: I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml validators run and they all break. I have downgraded to 2.0.11.1 and they all work again. I think there must be a bug with xwork-2.0.5.jar. The first few lines of stack trace are as follows: at

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
What you have below all looks fine; it should work as you expected. What does your form bean definition look like? Is the form bean correctly referenced by the action mapping the form is submitted to? Post the relevant bits of configuration and the full stack trace; maybe that will allow

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Lukasz Lenart wrote: We are using Struts 1.2.9 and writing the JSP page as below: html:form action=/sampleAction.do html:text property=name/ html:text property=empID/ html:text property=empAddress.city/ html:text property=empAddress.state/ /html:form As I remember, Struts

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Oh, and another thought: are you initializing ActionForm's empAddress field somewhere? It may cause problems if it is null when Struts tries to set its properties. Struts 2 can automatically create instances of beans in that situation, but Struts 1 doesn't. L. Laurie Harper wrote: What you

Re: Struts2 iterator tag

2008-07-03 Thread Laurie Harper
I'm not sure what you mean by a 'submit in each row' but if you want to push data back into the list then yes, you need the index in the input's name as you have. L. BGE Ger wrote: thank you for the answer! But I've read, if I want to change the complete list with the submit action. I

Re: Struts2 iterator tag

2008-07-03 Thread Laurie Harper
BGE Ger wrote: Hello, I'm struts(2) newbie and I need some help for the iterator tag. How can I access to an updated list in the action class? My JSP looks like: s:form theme=simple s:iterator value=descList status=stat tr td s:textarea

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Musachy Barroso
Can you post the full stacktrace, or attach it to a Jira ticket? musachy On Thu, Jul 3, 2008 at 2:50 PM, Struts Two [EMAIL PROTECTED] wrote: Hello All: I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml validators run and they all break. I have downgraded to 2.0.11.1 and

Re: Character Encoding and s:textarea

2008-07-03 Thread Laurie Harper
Richard Sayre wrote: I have a form containing text areas. When I copy a bunch of character data such as: 2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét into the text are, it displays normally. When I save the data, the database stores the characters properly,

Re: Struts2 iterator tag

2008-07-03 Thread BGE Ger
Hi Laurie, thank you for help! you are right that's what I want: to push back the updated fields into the list. And then I want access the updated fields in the update action class . I think maybe there is somesthing wrong in my tag syntax? I found out that I must use {} instead of [] which is

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Struts Two
I have opened a JIRA ticket for this issue. - Original Message From: Musachy Barroso [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, July 3, 2008 3:23:25 PM Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators Can you post the full

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Musachy Barroso
Looks like another case of the classloader returning weird URIs: Caused by: java.lang.IllegalArgumentException: URI scheme is not file at java.io.File.init(File.java:364) musachy On Thu, Jul 3, 2008 at 3:44 PM, Struts Two [EMAIL PROTECTED] wrote: I have opened a JIRA ticket for this

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Musachy Barroso
It looks a lot like: https://issues.apache.org/struts/browse/WW-2633 musachy On Thu, Jul 3, 2008 at 3:52 PM, Musachy Barroso [EMAIL PROTECTED] wrote: Looks like another case of the classloader returning weird URIs: Caused by: java.lang.IllegalArgumentException: URI scheme is not file

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Lukasz Lenart
For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. Upsss... ;-) Could you clarify my doubts, from which version? Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Struts Two
It looks like it. I opened sometime ago JIRA WW-2382 with similar classloader issues but that was for struts 2.1.2 and the fix is going to be included in 2.1.3. - Original Message From: Musachy Barroso [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent:

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Lukasz Lenart wrote: For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. Upsss... ;-) Could you clarify my doubts, from which version? From day one, as far as I know. L.

Where to put customized template

2008-07-03 Thread [EMAIL PROTECTED]
Hi all, I modified fielderror.ftl and want to apply it to my app. Could anyone tell me where I should put it in my app? In WEB-INF/classes/folder or somewhere else? Thanks.

RE: Where to put customized template

2008-07-03 Thread Timothy Wonil Lee
I believe the default value is WEB-INF/template, but I may be wrong. The good news is that you can specify it to fit your need. http://struts.apache.org/2.0.11.2/docs/selecting-template-directory.html Timothy Wonil Lee Java Developer http://timundergod.blogspot.com/ -Original Message-

Re: Anyone want to show me up...

2008-07-03 Thread Gabriel Belingueres
simple ways like: input type=hidden name=uri value=%= request.getRequestURI() %/ though I sometimes feel guilty for not using the equivalent S2 tag :P 2008/7/3 Musachy Barroso [EMAIL PROTECTED]: #request is just a map with the request attributes. If you want the real request object:

Re: Where to put customized template

2008-07-03 Thread Jeromy Evans
Timothy Wonil Lee wrote: I believe the default value is WEB-INF/template, but I may be wrong. Almost, the default is in the *classpath* at /template So that should read WEB-INF/classes/template Also, don't forget the theme.properties file.

Re: Struts 2 in action

2008-07-03 Thread aum strut
Hi Bharat, Its a Gud deal go ahead. i almost went through all the books in the market with title Struts2 but it is best go for it boss.. --aum On Thu, Jul 3, 2008 at 11:34 PM, bhaarat Sharma [EMAIL PROTECTED] wrote: buy it, i shall then. Thanks guys! I've also scammed over Ian

Struts 2 doubleOnchange

2008-07-03 Thread Saqib Shehzad
Hi, I am using struts 2.0.11. I want to call a javascript method from the doubleselect tag's doubleOnchange attribute but its not working. The html code generated does not show any code against the second select onchang attribute. Can anyone help ???. Or provide me an example where