Re: [OT] WSAD problems with Struts
Which version of WSAD are you using ? I don't have problems with 5.0 + updates or 5.1. Rouven - Original Message - From: Oliver Thiel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 26, 2004 2:09 PM Subject: [OT] WSAD problems with Struts Hi, I read that some of you had some problems to run Struts apps on WSAD and as I run into that problem too i wanted to know how you solved it! I as far as I understand some turned of different validations including the on concerning Struts, but where couldn't fide the right place to do that! And are their any outher traps that has to be solved? Thank and have a nice weekend Oliver -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz - 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]
[OT] Distribute a Struts Application on CD ??
Just want to know if its possible to run Tomcat/Resin + Java + StrutsApplication from a CD ? If yes, what have i to do ? (Precompile the JSPs i think, but what more ?) Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] WSAD Struts
Just want to know if someone knows how to customize the templates for Actions and ActionForms, which are created by WSAD, when i add a new action in the struts-config.xml. As i now use Struts 1.2 Nightly Build, i get these annoying deprecated warnings for e.g. ActionErrors, ActionError ... I assume its somewhere in the plugins, but i haven't found it yet, and i don't have any knowledge on changing a plugin. Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Solved: Re: Problems with Tomcat and nested:iterate + jsp:include
Thanx a lot, i have updated to the Struts 1.1 final version, i was first afraid to exchange it in WSAD cause WSAD causes sometimes very weird bugs. And now my application also works with Tomcat ;-) Rouven - Original Message - From: Arron Bates [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 4:57 PM Subject: RE: Problems with Tomcat and nested:iterate + jsp:include Tomcat had its JSP engine (Jasper) rewritten for version 4.1.x and is naturally a part of 5.x. It was a completely different beast, and the way the nested tags operated, well, they stopped working for new tomcats. I couldn't get them to change Jasper, so I rewrote the nested tags. This change only went into Struts at 1.1RC2. It was late, but I couldn't have the latest tomcat not working with the 1.1 release so... As a work around for you... try downloading this jar... http://keyboardmonkey.com/downloads/km-nested-v2.03.jar ...this is a jar of just the nested tags. put it into your WEB-INF/lib dir. It should load the tags from here before it finds them in the struts.jar. When there restart your app and see if it works. If it works, it means your Struts is outdated, and I recommend finding an upgrade. This jar should work fine, but there are some minor bugs that have been fixed in the latest Struts builds. And that's the state of affairs. See if it works for ya. Arron. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation: Problem with datePattern and JavaScript
Well yes this quick fix work, i have added the following : var datePattern = oDate[x][2](datePatternStrict); if(datePattern == null) { datePattern = oDate[x][2](datePattern); } But the main problem is, the javascript code, afterwards still needs a strict input (e.g. 01.06.2000) and not checks if a not so strict pattern (e.g. 1.6.2000) is a valid date. So either someone already has coded the javascript, or else i'll do it Thanx Rouven From: Andy Schmidgall [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 7:15 PM Subject: RE: Validation: Problem with datePattern and JavaScript It looks like the following line of code (in the date validator rule in validator-rules.xml) loads the pattern: var datePattern = oDate[x][2](datePatternStrict); As far as I can tell, nothing is ever loaded for plain datePattern, and this matches up with my experiences of using datePattern (i.e. datePattern doesn't do any validation at all) I haven't tried this, but it should probably be an easy fix to check if oDate[x][2](datePattern) has a value and load that into datePattern. -Andy -Original Message- From: Zakaria khabot [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 12:00 PM To: Struts Users Mailing List Subject: Re: Validation: Problem with datePattern and JavaScript Hi, Do u have an example of using validate-rules.xml in a JSP file. Thanks - Original Message - From: Rouven Gehm [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:53 PM Subject: Validation: Problem with datePattern and JavaScript I want to know if someone has updated the javascript code in the validate-rules.xml, for the datePattern option ? Because the code i have from the Struts 1.1 zip only work with datePatternStrict !!! I have searched the user mailing list, for this problem, but not found any solution. Thanx Rouven - 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] - 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: Problems with Tomcat and nested:iterate + jsp:include
Well the WSAD build in version, which is 1.1beta2. But is it a Struts problem, cause why does it work with Resin WSAD, but not with Tomcat ??? Thanx Rouven - Original Message - From: Arron Bates [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 3:34 AM Subject: Re: Problems with Tomcat and nested:iterate + jsp:include Rouven, What Struts version are you running? Arron. Hi there, hope someone has a clue, why this doesn't work with Tomcat, but works with Resin : I have a tile, where i want to show a treelike menu based on the monkey example for the struts-nested taglibs, see my code at the bottom. On the Resin and WSAD server, the tree is shown correctly, but with tomcat (4.1.? 5.0.?), only the first children of each node is shown, and i don't know why, i assume that somehow tomcat only includes the treenode.jsp once, like on PHP where i can you have include include_once. But where can i change this behavior of Tomcat ??? Thanx in advance Rouven submenu.jsp : %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % nested:form action=/treechange.do nested:nest property=rootNode jsp:include page=treenode.jsp / /nested:nest /nested:form --- treenode.jsp : --- [EMAIL PROTECTED] contentType=text/html% %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %-- monkey magic goes here --% nested:root img src=%=request.getContextPath()%/pix/spacer.gif width=nested:write property=nodeIndent / height=1 nested:equal property=showChildren value=true nested:notEqual property=level value=0 nested:image src=pix/km_minus.gif property=toggle / nested:equal property=active value=true nested:link styleClass=active page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal nested:equal property=active value=false nested:link styleClass=notactive page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal /nested:notEqual br nested:iterate property=children jsp:include page=treenode.jsp / /nested:iterate /nested:equal nested:equal property=showChildren value=false nested:equal property=hasChildren value=true nested:image src=pix/km_plus.gif property=toggle / /nested:equal nested:equal property=hasChildren value=false img src=%=request.getContextPath()%/pix/km_empty.gif /nested:equal nested:equal property=active value=true nested:link styleClass=active page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal nested:equal property=active value=false nested:link styleClass=notactive page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal br /nested:equal /nested:root - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Tomcat and nested:iterate + jsp:include
Hi there, hope someone has a clue, why this doesn't work with Tomcat, but works with Resin : I have a tile, where i want to show a treelike menu based on the monkey example for the struts-nested taglibs, see my code at the bottom. On the Resin and WSAD server, the tree is shown correctly, but with tomcat (4.1.? 5.0.?), only the first children of each node is shown, and i don't know why, i assume that somehow tomcat only includes the treenode.jsp once, like on PHP where i can you have include include_once. But where can i change this behavior of Tomcat ??? Thanx in advance Rouven submenu.jsp : %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % nested:form action=/treechange.do nested:nest property=rootNode jsp:include page=treenode.jsp / /nested:nest /nested:form --- treenode.jsp : --- [EMAIL PROTECTED] contentType=text/html% %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %-- monkey magic goes here --% nested:root img src=%=request.getContextPath()%/pix/spacer.gif width=nested:write property=nodeIndent / height=1 nested:equal property=showChildren value=true nested:notEqual property=level value=0 nested:image src=pix/km_minus.gif property=toggle / nested:equal property=active value=true nested:link styleClass=active page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal nested:equal property=active value=false nested:link styleClass=notactive page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal /nested:notEqual br nested:iterate property=children jsp:include page=treenode.jsp / /nested:iterate /nested:equal nested:equal property=showChildren value=false nested:equal property=hasChildren value=true nested:image src=pix/km_plus.gif property=toggle / /nested:equal nested:equal property=hasChildren value=false img src=%=request.getContextPath()%/pix/km_empty.gif /nested:equal nested:equal property=active value=true nested:link styleClass=active page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal nested:equal property=active value=false nested:link styleClass=notactive page=/goneu.do paramId=method paramProperty=method nested:write filter=false property=nodeName / /nested:link /nested:equal br /nested:equal /nested:root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Struts-Validation : datePattern and JavaScript
I want to know if someone has updated the javascript code for the date validation in the validate-rules.xml ? Because the datePattern option, doesn't work correctly, only datePatternStrict will be validated. I have searched the user mailing list, for this problem, but have not found any solution. Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Printing PDF Files in java
BTW what is a good tool, to create PDF with Java ? Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation: Problem with datePattern and JavaScript
I want to know if someone has updated the javascript code in the validate-rules.xml, for the datePattern option ? Because the code i have from the Struts 1.1 zip only work with datePatternStrict !!! I have searched the user mailing list, for this problem, but not found any solution. Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator: Unwanted Client side AND Server side validation
Well i have to set validate false of the action in the struts-config.xml, then i only have client side validation without submitting, but then i have to call the .validate Method in the action to do the server-side validation, if i disable JavaScript. Any more ideas to this problem ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 12:49 PM Subject: Validator: Unwanted Client side AND Server side validation Hi, When using client side validation the form is submitted regardless of Javascript validation check occuring (After clicking OK on the Javascript popup warning following an error the form get submitted anyway). I used validation already without this behaviour to occur ... I must be misconfiguring something but cannot find out what it is. Validation works as expected Server side. I am using Struts 1.1 with the bundled Validator together with Scaffold 1_0. Any idea welcome, Patrick - 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-Validator Websphere
Hi, i'm working with WSAD 5.0 to program some webapps with the builtin Struts 1.1 Beta. Now i want to use the Struts Validator, but as the builtin WSAD Struts Version doesn't support it and doesn't give me a validator-rules.xml, i want to replace it with the latest Struts release. Does anyone know if its prossible without any problems ? Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] : FormatKey how to set a format
Hi, its a little bit of topic, i have the problem, i want to show doubles on my jsps. I now use following format : #,## which works quite good, but it cuts of the 0 at the end. E.g. i have 17,56546546 it show 17,57 i have 17,50001 it shows 17,5 but i want 17,50. Is there another format i can use ? Or do i have to create Strings and add the missing 0s ? Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] : FormatKey how to set a format
Hi, it works not quite well, but if i actually have a 17,5 it still only shows 17,5 not 17,50. I can of course add 0.1 to 17,5 but thats hmm a hell of a hack. As i want to use it to show currencys, i wonder if i can use the NumberFormat.Field CURRENCY ??? Thanx - Original Message - From: Markus [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 21, 2003 1:51 PM Subject: Re: [OT] : FormatKey how to set a format Hi, its a little bit of topic, i have the problem, i want to show doubles on my jsps. I now use following format : #,## Hi, try #,00! This should work. For a deeper look go to JavaAPI NumberFormat classes Regards, Markus which works quite good, but it cuts of the 0 at the end. E.g. i have 17,56546546 it show 17,57 i have 17,50001 it shows 17,5 but i want 17,50. Is there another format i can use ? Or do i have to create Strings and add the missing 0s ? Thanx Rouven - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with search on the mail archive
Just want to know why ? When searching on the struts user mail archive i get no results, but via google i get some ? I just searched for bean:write format to get some infos about how to set a format, but within the mail archive i got no results, with google i got some hits from the struts-user mailinglist ?!? BTW does anyone has some good infos about this format / formatKey attribute ??? Have not found any useable yet. Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's the best way to do calculations ?
Hi, well i just wonder, in which class i should do my calculations. E.g. : I have a JSP, where i have a form for input values, and output values. Now i can do the math within the validate Method of the according ActionForm, or i do it in the execute Method of the Action where i have access to the form too. Or is there a third way, to do it ? Esp. whats the best way, if i have to get values from various ActionForms for my calculations ? Thanx Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Three questions
Hi, i'm new to Struts and have some minor questions which haven't been answered by Dr. Google, book or tutorial i've found and done so far, so maybe someone here can give me a fast answer. I've started working on a small application, where i nearly try to use everything Struts offers me, tiles,nested,logic,... 1. How can i access the ApplicationResources.properties within an Action and/or ActionForm ? 2. For the LookupDispatchAction, can i only use Submit-Buttons with the keys like in the official documentation, or can i also use a :link , but how do i set the key ? 3. I want to fill a tiles dynamically via a bean and tried to exchange this line tiles:put name=content value=/content/neu.jsp with this tiles:put name=content beanName=treeForm beanProperty=activeContent / and within the treeForm : public String getActiveContent(){ return /content/neu.jsp; } but it doesn't work. Have i misunderstood the use of tiles:put ??? Thanx in advance Rouven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]