Re: Problem from defining JavaBean as an attribute inside ActionForm
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 support such evaluation, you can use Nested Tags [1] , example are here [2] [1] http://struts.apache.org/1.2.9/userGuide/struts-nested.html [2] http://www.mail-archive.com/[EMAIL PROTECTED]/msg47798.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Slow performance with Struts2
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 any difference in performance between 2.7.2 and 2.7.2 + javassist. Anyway, I reverted back to 2.6.11. (Still disappointed with how slow struts2 is compared to struts1 despite haven taken all the performance tuning measures listed on the apache site) On Thu, Jul 3, 2008 at 2:34 AM, Dale Newfield [EMAIL PROTECTED] wrote: yorlick kilroy wrote: I'm sorry but I only just read about javassist now, as I had no idea what it is nor does. How do I include it? do I just drop it in my lib folder like I do with other Struts plugins? How do I use it? and what exactly does it do? Yes, just drop the .jar into your WEB-INF/lib directory. http://www.csg.is.titech.ac.jp/~chiba/javassist/http://www.csg.is.titech.ac.jp/%7Echiba/javassist/ I believe it's used by ognl, if present. Javassist is a Java library providing means to manipulate the Java bytecode of an application. In this sense Javassist provides the support for structural reflection, i.e. the ability to change the implementation of a class at runtime. Basically if I understand it correctly, ognl2.7 can do some amount of expression compilation in such a way that less work is needed when those same (sub?) expressions are next evaluated. I believe most of the benefits won't be realized until we jump through a number of hoops in our use of ognl that we've yet to implement in xwork2/struts2, but if this (possibly premature) upgrade actively slows down ognl evaluation, I'd like to know. (Since I swapped in these more recent ognl version in the project I'm currently developing, I'd really like to know if that was a step backwards.) -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Issues with extending themes
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 thing in 2.1.2 so I'm confident it still works as per 2.0.x. A common problem problem occurs when you implement a template that includes a sub-template with ${parameters.theme} in its path. The issue is that ${parameters.theme} equals your theme ccast2_0 but your theme doesn't include the referenced template. That is, the S2 template system knows about template hierarchy to find the parent template, but freemarker's include tag does not. This will cause the exception you're seeing but I can't say exactly where without see what you've included in your theme. The only solution is to bring more templates into your theme from the parent and/or remove the ${parameters.theme} references (which may be in the parent). This issue shouldn't normally apply to form-close.ftl, unless (perhaps?) you included form.ftl in your theme but not form-close.ftl. Note: you'll notice many of the parent templates include hardcoded theme names in their include statements precisely for this reason. There is no fix without an overhaul of the S2 template system. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem from defining JavaBean as an attribute inside ActionForm
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 PROTECTED] To: user@struts.apache.org Subject: Re: Problem from defining JavaBean as an attribute inside ActionForm 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 support such evaluation, you can use Nested Tags [1] , example are here [2] [1] http://struts.apache.org/1.2.9/userGuide/struts-nested.html [2] http://www.mail-archive.com/[EMAIL PROTECTED]/msg47798.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=219
Struts2 iterator tag
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 value=%{destination} //td td s:textarea name=descList[%{stat.index}].category value=%{category} //td td s:textarea name=descrList[%{stat.index}].source value=%{source} //td tds:textarea name=descList[%{stat.index}].text value=%{text}//td /tr /s:iterator s:submit action=updateDescriptions / /s:form - Action class: public class DescriptionTestAction extends ActionSupport { private ListText descList; public DescriptionTestAction () { } public void setDescList(List descList) { this.descList = descList; } public List getDescList () { return this.descList; } -- The descList is a spring Bean and everything works well except the update process. If I make an update for the destination field e.g. and then submit this form the descList contains the old values! I've tried everything and spend lot of time for searching for a solution, please help! Thank you in advance! -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 iterator tag
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 8:55 AM, BGE Ger [EMAIL PROTECTED] 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 name=descList[%{stat.index}].destination value=%{destination} //td td s:textarea name=descList[%{stat.index}].category value=%{category} //td td s:textarea name=descrList[%{stat.index}].source value=%{source} //td tds:textarea name=descList[%{stat.index}].text value=%{text}//td /tr /s:iterator s:submit action=updateDescriptions / /s:form - Action class: public class DescriptionTestAction extends ActionSupport { private ListText descList; public DescriptionTestAction () { } public void setDescList(List descList) { this.descList = descList; } public List getDescList () { return this.descList; } -- The descList is a spring Bean and everything works well except the update process. If I make an update for the destination field e.g. and then submit this form the descList contains the old values! I've tried everything and spend lot of time for searching for a solution, please help! Thank you in advance! -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com
Re: Struts2 iterator tag
...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 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 8:55 AM, BGE Ger [EMAIL PROTECTED] 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 name=descList[%{stat.index}].destination value=%{destination} //td td s:textarea name=descList[%{stat.index}].category value=%{category} //td td s:textarea name=descrList[%{stat.index}].source value=%{source} //td tds:textarea name=descList[%{stat.index}].text value=%{text}//td /tr /s:iterator s:submit action=updateDescriptions / /s:form - Action class: public class DescriptionTestAction extends ActionSupport { private ListText descList; public DescriptionTestAction () { } public void setDescList(List descList) { this.descList = descList; } public List getDescList () { return this.descList; } -- The descList is a spring Bean and everything works well except the update process. If I make an update for the destination field e.g. and then submit this form the descList contains the old values! I've tried everything and spend lot of time for searching for a solution, please help! Thank you in advance! -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18259056.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Issues with extending themes
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 was that I had templates in my application root instead of /WEB-INF/classes/. Once I added it there I saw freemarker errors, telling me it was the theme variable issue. Thanks, Nick On Thu, Jul 3, 2008 at 3:14 AM, Jeromy Evans [EMAIL PROTECTED] wrote: 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 thing in 2.1.2 so I'm confident it still works as per 2.0.x. A common problem problem occurs when you implement a template that includes a sub-template with ${parameters.theme} in its path. The issue is that ${parameters.theme} equals your theme ccast2_0 but your theme doesn't include the referenced template. That is, the S2 template system knows about template hierarchy to find the parent template, but freemarker's include tag does not. This will cause the exception you're seeing but I can't say exactly where without see what you've included in your theme. The only solution is to bring more templates into your theme from the parent and/or remove the ${parameters.theme} references (which may be in the parent). This issue shouldn't normally apply to form-close.ftl, unless (perhaps?) you included form.ftl in your theme but not form-close.ftl. Note: you'll notice many of the parent templates include hardcoded theme names in their include statements precisely for this reason. There is no fix without an overhaul of the S2 template system. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s] Validity of user session
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 session will stay there until he came again to that page and when I resend data in his session. But, there is another problem which I've been talked about (but nobody anwsered :-(, is that when he cam again to my page, action class method is not fired at all, but whole page is called from some IE cache. -- Thx, Milan Laurie Harper wrote: Milan Milanovic wrote: I have an SessionAware-based action class, where I put some variables into session when user came to the page which is backed up with that action class. I'm wondering what is validity of that session object, because I'm not sure if I have possibility to clear user session ? So I need to know when session will be deleted with all its objects inside ? When user go to some other page which is not backed-up with this class or some other action class ? I'm not sure I understand your question. The session you access through SessionAware is the standard Servlet API session, which lasts for as long as the user remains active in the application. If you want to store data only until the next request, use request scope instead of session scope. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-s2--Validity-of-user-session-tp18197953p18260191.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Firefox 3 and s:head theme=ajax/ render issues
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 fully and there is a quick flash of the browser and then a blank page with FF3 stuck in a loading state. On certain pages I have made it theme=xhtml which solves the problem but some pages in my application have a s:tabbedpanel which requires the ajax theme Has anyone else seen this type of behavior or know of a work around? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone want to show me up...
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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Anyone want to show me up...
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 requestURI directly... -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone want to show me up...
#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 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Firefox 3 and s:head theme=ajax/ render issues
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 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 fully and there is a quick flash of the browser and then a blank page with FF3 stuck in a loading state. On certain pages I have made it theme=xhtml which solves the problem but some pages in my application have a s:tabbedpanel which requires the ajax theme Has anyone else seen this type of behavior or know of a work around? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Firefox-3-and-%3Cs%3Ahead-theme%3Dajax-%3E-render-issues-tp18260192p18263441.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Slow performance with Struts2
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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone want to show me up...
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 same thing. musachy On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton [EMAIL PROTECTED] wrote: 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 in action
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
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 highly recommend it to anyone who's going to be doing Struts 2. jk On Thu, Jul 3, 2008 at 12:50 PM, bhaarat Sharma [EMAIL PROTECTED] 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 suggestion. If you've browsed through the book, can you please provide some feedback. Thanks -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com
RE: Struts 2 in action
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 PROTECTED] Sent: Thursday, July 03, 2008 11:50 AM To: Struts Users Mailing List Subject: Struts 2 in action 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone want to show me up...
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 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 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Anyone want to show me up...
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 in action
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 suggestion. If you've browsed through the book, can you please provide some feedback. Thanks -- View this message in context: http://www.nabble.com/Struts-2-in-action-tp18263762p18264964.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 in action
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 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 suggestion. If you've browsed through the book, can you please provide some feedback. Thanks -- View this message in context: http://www.nabble.com/Struts-2-in-action-tp18263762p18264964.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Anyone want to show me up...
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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Anyone want to show me up...
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 PROTECTED] wrote: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Character Encoding and s:textarea
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 to the s:textarea I displays with ?? replacing some characters. I can't figure out where this is happening. When I write the data out to the page as text it all displays properly. When I initially paste it into the textarea it displays correctly, so my browser supports the character set (ISO-8859-1 or Latin-1). It's only when it comes from the database to the textarea that the characters do not display. And I verified that the database can handle the characters and that they are stored correctly. This causes a problem when the user saves the second time, the ? get saved in the db as ?. Any ideas as to what is happening or how to fix it? Thank you, Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading to struts 2.0.11.2 breaks all xml validators
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 java.lang.J9VMInternals.initialize(J9VMInternals.java:216) at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser.java:192) at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFileParser.java:72) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:361) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs(AnnotationActionValidatorManager.java:244) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:343) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem from defining JavaBean as an attribute inside ActionForm
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 someone to see the problem. L. Chandramouli P wrote: Hi, I have the below scenario: I have a java bean as below: public class Address { private String city; private String state; and public getters/setters for the above attributes; } and I have the ActionForm as below: import Address; public class EmpForm extends ActionForm { private String name; private String empID; private Address empAddress; and public getters/setters for the aboev attribute; } 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 I am getting the below error while submitting the form: E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtils..getPropertyDescriptor(PropertyUtils.java(Compiled Code)) I have read somewhere that Struts version I am using does support the nested attributes for the html:text and other tags. Are there any errors in the above code? Please help. Thanks Regards, Chandra. _ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=221 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem from defining JavaBean as an attribute inside ActionForm
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 1 don't support such evaluation, you can use For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem from defining JavaBean as an attribute inside ActionForm
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 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 someone to see the problem. L. Chandramouli P wrote: Hi, I have the below scenario: I have a java bean as below: public class Address { private String city; private String state; and public getters/setters for the above attributes; } and I have the ActionForm as below: import Address; public class EmpForm extends ActionForm { private String name; private String empID; private Address empAddress; and public getters/setters for the aboev attribute; } 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 I am getting the below error while submitting the form: E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtils..getPropertyDescriptor(PropertyUtils.java(Compiled Code)) I have read somewhere that Struts version I am using does support the nested attributes for the html:text and other tags. Are there any errors in the above code? Please help. Thanks Regards, Chandra. _ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=221 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 iterator tag
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 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 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 8:55 AM, BGE Ger [EMAIL PROTECTED] 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 name=descList[%{stat.index}].destination value=%{destination} //td td s:textarea name=descList[%{stat.index}].category value=%{category} //td td s:textarea name=descrList[%{stat.index}].source value=%{source} //td tds:textarea name=descList[%{stat.index}].text value=%{text}//td /tr /s:iterator s:submit action=updateDescriptions / /s:form - Action class: public class DescriptionTestAction extends ActionSupport { private ListText descList; public DescriptionTestAction () { } public void setDescList(List descList) { this.descList = descList; } public List getDescList () { return this.descList; } -- The descList is a spring Bean and everything works well except the update process. If I make an update for the destination field e.g. and then submit this form the descList contains the old values! I've tried everything and spend lot of time for searching for a solution, please help! Thank you in advance! -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 iterator tag
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 name=descList[%{stat.index}].destination value=%{destination}//td td s:textarea name=descList[%{stat.index}].category value=%{category} //td td s:textarea name=descrList[%{stat.index}].source value=%{source} //td tds:textarea name=descList[%{stat.index}].text value=%{text}//td /tr /s:iterator s:submit action=updateDescriptions / /s:form - Action class: public class DescriptionTestAction extends ActionSupport { private ListText descList; public DescriptionTestAction () { } public void setDescList(List descList) { this.descList = descList; } public List getDescList () { return this.descList; } -- The descList is a spring Bean and everything works well except the update process. If I make an update for the destination field e.g. and then submit this form the descList contains the old values! I've tried everything and spend lot of time for searching for a solution, please help! Thank you in advance! What do you mean that descList is a spring bean? Is it being injected into the action by Spring? If so, perhaps that is happening after the parameters are set (so overwriting the submitted values). Try tracing calls to setDescList() to see if it is being called from multiple places and, if so, in what order. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to struts 2.0.11.2 breaks all xml validators
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 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 java.lang.J9VMInternals.initialize(J9VMInternals.java:216) at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser.java:192) at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFileParser.java:72) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:361) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs(AnnotationActionValidatorManager.java:244) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:343) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Character Encoding and s:textarea
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, when the data returns to the s:textarea I displays with ?? replacing some characters. I can't figure out where this is happening. When I write the data out to the page as text it all displays properly. When I initially paste it into the textarea it displays correctly, so my browser supports the character set (ISO-8859-1 or Latin-1). It's only when it comes from the database to the textarea that the characters do not display. And I verified that the database can handle the characters and that they are stored correctly. This causes a problem when the user saves the second time, the ? get saved in the db as ?. Any ideas as to what is happening or how to fix it? Thank you, Rich - Are the characters retrieved from the database correctly? (i.e. if you check the data you're sending to the textarea, is it right?) - What character encoding are you using to serve the page? - Do you have a @page directive in the JSP specifying the correct character encoding? - Do you have a meta-equiv element in your HTML head area to tell the browser what encoding the page is in? - I assume you are using Struts :-) What version? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 iterator tag
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 only for maps, but it also doesn't work. I try this example but it doesn't work: http://www.vitarara.org/cms/struts_2_cookbook/updating_a_list_of_domain_entities Is there any other example anywhere, which I've not found? I'm really desperate! What I want is not unusual, I've thought. This must work til tomorrow (for my company) :-(( Thank you very much for helping! Laurie Harper wrote: 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 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 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 8:55 AM, BGE Ger [EMAIL PROTECTED] 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 name=descList[%{stat.index}].destination value=%{destination} //td td s:textarea name=descList[%{stat.index}].category value=%{category} //td td s:textarea name=descrList[%{stat.index}].source value=%{source} //td tds:textarea name=descList[%{stat.index}].text value=%{text}//td /tr /s:iterator s:submit action=updateDescriptions / /s:form - Action class: public class DescriptionTestAction extends ActionSupport { private ListText descList; public DescriptionTestAction () { } public void setDescList(List descList) { this.descList = descList; } public List getDescList () { return this.descList; } -- The descList is a spring Bean and everything works well except the update process. If I make an update for the destination field e.g. and then submit this form the descList contains the old values! I've tried everything and spend lot of time for searching for a solution, please help! Thank you in advance! -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts2-iterator-tag-tp18258667p18266957.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to struts 2.0.11.2 breaks all xml validators
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 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 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 java.lang.J9VMInternals.initialize(J9VMInternals.java:216) at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser..java:192) at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFileParser.java:72) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:361) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs(AnnotationActionValidatorManager.java:244) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:343) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to struts 2.0.11.2 breaks all xml validators
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 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 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 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 java.lang.J9VMInternals.initialize(J9VMInternals.java:216) at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser..java:192) at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFileParser.java:72) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:361) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs(AnnotationActionValidatorManager.java:244) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:343) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to struts 2.0.11.2 breaks all xml validators
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 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 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 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 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 java.lang.J9VMInternals.initialize(J9VMInternals.java:216) at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser..java:192) at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFileParser.java:72) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:361) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs(AnnotationActionValidatorManager.java:244) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:343) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69) I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem from defining JavaBean as an attribute inside ActionForm
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to struts 2.0.11.2 breaks all xml validators
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: Thursday, July 3, 2008 3:52:31 PM Subject: Re: Upgrading to struts 2.0.11..2 breaks all xml validators 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 __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem from defining JavaBean as an attribute inside ActionForm
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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to put customized template
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
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- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2008 8:06 AM To: Struts Users Mailing List Subject: Where to put customized template 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. !DSPAM:486d4d83151833671820667! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone want to show me up...
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: #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 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to put customized template
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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 in action
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 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 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 suggestion. If you've browsed through the book, can you please provide some feedback. Thanks -- View this message in context: http://www.nabble.com/Struts-2-in-action-tp18263762p18264964.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 doubleOnchange
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 doubleOnchange is working Here is the code s:doubleselect label=Applications doubleOnchange=javascript:changeEvent();return false; name=selectedApplication doubleName=selectedEvent list=applications doubleList=events listKey=appId doubleListKey=eventNumber listValue=name doubleListValue=title value=defaultApplication doubleValue=defaultEvent /s:doubleselect Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]