Re: Nested recursion does not recurse!
I thought I successfully migrated to Struts 1.1 rc2. I tried again and you were right, that did fix the problem. I did not need the new nested tags jar. Thanks, Arron! Chris On Tue, 17 Jun 2003 21:07:23 -0600, Arron Bates wrote: All the markup seems fine. This is very indicative of the older Struts on the newer tomcat. Double check the version of Struts. 4.1.x was broken with recursion and such things, but it's fixed for RC2. As a last resort, try this jar... keyboardmonkey.com/downloads/km-nested-v2.03.jar ...throw it into the WEB-INF/lib directory. It has just the new nested tags, should show if it's the tag version being out of whack. Sandeep: The new version of the tags above, doesn't need a for included pages. Now all the tags now use the request object to hold their references, all the nested tags just look for that rather than look at the current JSP's tag layout. It just means that as long as the nested structure is started (nested:form, nested:root, any nested parent tag), any include file can just mark up child tags like normal and it should work. I probably wouldn't have done this on purpose, but using the request object use was the only way I could get the new tomcat working for some reason. Arron. Are you sure you want to include a page that has a form in it? nested:form, nested:nest and nested:iterate all start a new "root" element that nested will use. Whenever you do a jsp:include always do a nested:root at the beginning if you are using nested tags. sandeep --- Chris Hatton <[EMAIL PROTECTED]> wrote: > Hi, everyone, > > Am I crazy? I have been trying to get recursion to > work using Arron's > examples at keyboardmonkey and it absolutely will > not recurse. It just > repeats the very first element. > > Here's what I get displayed in my HTML results: > -- > USA - productTree > ALABAMA - productTree.treeNodes[0] > ALABAMA - productTree.treeNodes[0] > ALABAMA - productTree.treeNodes[0] > ALABAMA - productTree.treeNodes[0] > -- > > Why is the same nested level repeated over and over? > Note: my Form class > returns Object arrays (i.e. TreeNode[] > getTreeNodes()). > > Here's productNode.jsp: > > -- > <%@ taglib uri="/WEB-INF/tld/struts-nested.tld" > prefix="nested" %> > > > - > > > id="node" property="treeNodes"> > page="productNode.jsp" /> > > > -- > > > And the relevant code from product.jsp: > -- > > . > > > > > > > > -- > > I should note that I set isExpanded (i.e. > "showChildren") to true for the > very top-level element. I do have other > (non-nested) Struts tags included > in this page outside the ProductTree code. > > I'm on Tomcat 4.1.18, RedHat 8.0, Struts 1.1 rc2, > jdk 1.3.1_07. > > Thanks! > Chris Hatton > Tobin International > > > > -- > Using M2, Opera's revolutionary e-mail client: > http://www.opera.com/m2/ > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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] -- Chris Hatton Sr. Software Engineer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nested recursion does not recurse!
Hi, everyone, Am I crazy? I have been trying to get recursion to work using Arron's examples at keyboardmonkey and it absolutely will not recurse. It just repeats the very first element. Here's what I get displayed in my HTML results: -- USA - productTree ALABAMA - productTree.treeNodes[0] ALABAMA - productTree.treeNodes[0] ALABAMA - productTree.treeNodes[0] ALABAMA - productTree.treeNodes[0] -- Why is the same nested level repeated over and over? Note: my Form class returns Object arrays (i.e. TreeNode[] getTreeNodes()). Here's productNode.jsp: -- <%@ taglib uri="/WEB-INF/tld/struts-nested.tld" prefix="nested" %> - -- And the relevant code from product.jsp: -- . -- I should note that I set isExpanded (i.e. "showChildren") to true for the very top-level element. I do have other (non-nested) Struts tags included in this page outside the ProductTree code. I'm on Tomcat 4.1.18, RedHat 8.0, Struts 1.1 rc2, jdk 1.3.1_07. Thanks! Chris Hatton Tobin International -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List sorting with struts tags
Check Arron's NeXt tutorials at KeyboardMonkey. --> http://www.keyboardmonkey.com/pilotlight/index.jsp?content=yesplease Chris Hatton On Mon, 2 Jun 2003 17:08:48 -0400, Franck Lefebure <[EMAIL PROTECTED]> wrote: Hi, I've a sorted ArrayList of beans eg : Foo {key, country, town} 1 - USA - NewYork 2 - USA - Washington 3 - France - Paris 4 - England - London 5 - England - Manchester Is there a smart way with html/beans tags to output something like that : USA -NewYork-WashingtonFrance -ParisEngland -London -Manchester Any Idea ? -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
for (slightly) more complex comparison
Hello, everyone, I'm using the tag but I need to match on more that one String value using logical "OR". In other words, how can I use the tag to do the following? if (((myString.equals("option_1")) || (myString.equals("option_2"))) { // Do some stuff } Thanks! Chris Hatton -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wondering
I create them with straight HTML. If you use the Tiles extension well, there's no WYSIWYG needed. As far as I know, there is no WYSIWYG editor out there with explicit support for Struts tags. If you have to have one, design your web pages with one, then go in and replace the HTML with your tags. Chris Hatton On Mon, 2 Jun 2003 11:56:02 +0200, peter bosmans <[EMAIL PROTECTED]> wrote: Hi, I'm pretty new with struts and I've created little tests with jsp-pages in the view-module. During the older days, i've got (for example) dreamweaver to create fancy html-pages on a WYSIWYG way-of-work. I was wondering how other struts-people now create there jsp-pages with the taglibs of struts, and holding the flexibility of an WYSIWYG editor. Can anybody tell me how they work to create there view-pages. (fast and fancy) Thanks in advance, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]