RE: corporate hierarchy
hi , http://www.jenkov.dk/projects/treetag/treetag.jsp Have a look at it its really simple i used it . if any doubts get back cheers srinivas McCormack, Chris [EMAIL PROTECTED] wrote: Write it using DHTML. I have written a few things that sound similar to what you are trying to achieve all using DHTML. Populate your divs using jstl and style them nicely using css. Write a few simple reusable javascript functions to show/hide the divs and you are away. If you need any more help etc mail me off list. Chris -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: 13 February 2004 21:08 To: Struts Users Mailing List Subject: Re: corporate hierarchy On Friday 13 February 2004 19:59, sean jones wrote: Is there any struts tricks or tips that would help display an orgranizational tree i have a 17 level tree that i want to represent as a tree on a jsp page. i want to use +, - images to expand and collapse the tree. is there a java class avalable to do this also. anyone any ideas. This depends on the amount of data to be displayed and the level of responsiveness you want. If we're really talking about a *17 level* thing here, first check if you really want to confront the user with such a beast. Not only that it will clutter up the entire screen, the user will inevitably get dizzy and feel lost beyond - let's say - subnodes at level 7 or 8, at the maximum. Then, most of them will call the support line, and the really wicked ones may finally send Evil Clowns after you or whatever. In such cases, it's better to provide a wizard or something else to avoid such infavorable circumstances. That said, some things coming instantly to my mind when it comes to Trees; there are several other implemenations around: 1. You can use the tags and use recursion. As was said, there is a fine manual on Arron Bates's website (www.keyboardmonkey.com) explaining everything step-by-step. The advantage of this is that you understand things after you completed the tutorial, plus you have your own, 'home-built' tree you can refine later on. This is proba- bly what I would choose if I had to do a TreeView in Struts. 2. There's a project around named which, among other things, provides a TreeView control, among other things. Check out http://struts.application-servers.com/doc/tags/treeview.html to find out more. Don't know if it can handle 17 levels as well, but what they provide looks promising. Never got wise from their license policy terms for commercial applications, though, so I never looked further into this. 3. Find a Javascript implementation and populate it via Struts and JSP. JavaScript has the advantage of being really responsive (serverside tree implementations always require a roundtrip to the server upon each click, and the entire page has to be rebuilt), but it's not always available on the client and a major pain in the *** if I were asked. I avoid it where I can, but it definitely has its advantages. Note that if you choose this approach, you have to initially populate *everything* when building the Tree, but it will be faster afterwards. Still don't know if JavaScript can handle 17 levels. But you can always 'reuse' the icons, at least. Presenting a 'plus' sign, therefore, should be considered as one of your lowest-priority problems. Thanks Sean Just my 2 cents, and HTH, -- Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
RE: dbcp and mysql
hi Andrea this is my configuration ResourceParams name=jdbc/mysql parameter nameurl/name valuejdbc:mysql://localhost:3306/xx/value /parameter parameter namemaxIdle/name value2/value /parameter parameter namemaxActive/name value5/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameusername/name valueroot/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value100/value /parameter parameter namepassword/name value/value /parameter please note the driver is different from yours. ithink try to change to the driver mentioned above and also make sure that the lib's are in tomcat_home/common/lib directory [EMAIL PROTECTED] wrote: Tank you, but I already had it and the problem persists. Matthias Wessendorf wrote: hi do you have also pool.jar in /WEB-INF/lib http://jakarta.apache.org/commons/pool/ it was time ago problem in my case. greetings, matthias -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, January 25, 2004 8:32 PM To: [EMAIL PROTECTED] Subject: dbcp and mysql I have: Struts 1.1 Tomcat 4.1 mysql-connector-java-3.0.10-stable last version of commons-dbcp and http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; type=org.apache.commons.dbcp.BasicDataSource value=com.mysql.jdbc.Driver / value=jdbc:mysql://localhost/catalog / but when it run give: javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:963) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3421) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo yer.java:700) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2 52) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1683) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634) at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:385) at org.apache.catalina.core.StandardHost.install(StandardHost.java:803) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java :442) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at
RE: deleted ApplicationResources_de.properties ghost
Hi Eric i think if ur application does not know which file to read then by default it reads AppXX_de.props file.as _de.props comes before _en.props (in alphabatical order after de we get en) thanks srinivas Eric Bariaux [EMAIL PROTECTED] wrote: Do you have a default xxx.properties file, one without _en? This would explain why setting the browser the en gives you the correct result and setting nothing or de gives you the incorrect strings. Eric. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 2:25 PM To: Struts Users Mailing List Subject: Re: deleted ApplicationResources_de.properties ghost Deployed my war file on a server I'd never touched before. Same problem. I re-created the German xxx_de.properties file with a copy of the English, and changed a couple of strings into German to hilight the difference. This change took effect - the 'ghost' German disappeared and was replaced by the real German. However as I feared when I deleted this new German properties file, the previous 'ghost' German reappeared. What logical conclusion can I draw from that? On 01/20/2004 12:07 PM Andriy Ruzhevych wrote: Did you seach German string or xxx_de.properties file in all ear/war of the web server? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Thanks Heya, but not wild crazy enough :) - I already did that. In fact I made a war file and tested it on a completely different server. On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote: This is one of those wild crazy ideas that you asked for... I know you grepped but maybe didn't grep properly? There are usually two copies of your resources files, one under your source directory and that is copied to your classes directory by Tomcat. The one in classes is actually read by the server, but the one in source is the one you edit because it should replace the classes one. Just check manually rather than grepping and see if you find the ghost file. Adam Hardy 20/01/2004 06:12 PM Please respond to Struts Users Mailing List Does anybody have any ideas on this? Even wild, stupid, ridiculous ideas. Anything? On 01/19/2004 07:02 PM Adam Hardy wrote: Actually I just did get access to a third server and did a complete fresh install of java tomcat and my app.war, and the ghost German strings came up. So the German strings must be in the war file. But there is only the one ApplicationResources.properties file there in the war file! I just checked. Again, deleting or adding the German locale to the browser settings makes the strings change, so it is definitely the resource bundles. On 01/19/2004 06:17 PM Adam Hardy wrote: Yes, unfortunately it does. On my dev machine and my future production server. But I had them both running earlier with the German .properties, so it would be the same problem. I don't have a third server to test it on. On 01/19/2004 05:54 PM Tim Kettering wrote: Does the same thing happen when you build/run the webapp on a different computer? Not sure what to tell you here, but that should at least narrow the scope to something in the source or some ghost file on your dev machine. -tim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:35 AM To: Struts Users Mailing List Subject: deleted ApplicationResources_de.properties ghost I'm having a nightmare with the ApplicationResources_de.properties resource bundle in my webapp. I asked a colleague to look at it and he's baffled too. I had my resource bundle in an English and also a German .properties file, for testing purposes, but then decided to ditch the German version until it's completely finished. Even though I deleted the German xxx_de.properties file, shutdown tomcat, deleted the whole webapp and redeployed and deleted the cache in $CATALINA_HOME/work/ , the German strings are still being cached somewhere. I have run a grep on a German string to find it in any file in the whole of the tomcat, and the whole of my dev-env, but haven't found it. In the HTTP headers, I have set pragma=no-cache, cache-control=no-cache expires=Thu, 01 Jan 1970 00:00:00 GMT I have cleared the cache from my browser and done refreshes a thousand times. This is now about a month afterwards and the ghost German text is still coming up. If I set the browser locale to en, then I get the correct English version, but if I then set it back to de, somehow, somewhere it is finding the deleted German resource bundle. Any advice much appreciated. :( -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT Chart generation Framework
Hi otavio, http://www.jfree.org/jfreechart/samples.html may be this url should help. we use Cwolf its really good for charts if u have any issues please get back srinivas Otávio Augusto [EMAIL PROTECTED] wrote: I've heard and read a lot about Cewolf, but was not able to work withit. I tryed to follow its manual, but with no success. Then I used another open source option (don't remember its name, was long time ago). Anyway, I'd like to know if you guys who have already worked with Cewolf have any nice tutorial/manual link which could help me. Thanks in advance Otávio Augusto On Tue, 20 Jan 2004 13:28:03 -0800 (PST) Daniel H. F. e Silva wrote: Hi Vinicius, Cewolf is really a good option. It is a taglib that abstracts a lot of JFreeChart complexity. I used it in some projects and it did a great job. As far as i know, it is the best open-source option. There are other libraries, but Cewolf+JFreeChart offers the largest amount of features. Cheers, Daniel Silva. --- Vinicius Carvalho wrote: Hi there! Does anyone here uses a chart Framework? I've heard about Cewolf, seems to be nice, any suggestions on this? Thanks Vinicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - 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] - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
RE: [OT ]BasicDataSource class of package org.apache.commons.dbcp
hello jitesh, why do u need to bother about BasicDataSource code if u r running it on any server just configure the configuration files and use JNDI lookup to get the connection and your close() on Connection object returns the con obj to pool regards srinivas Jitesh Sinha [EMAIL PROTECTED] wrote: No friends for me on this list ! :( -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 3:12 PM To: Struts Users Mailing List Subject: BasicDataSource class of package org.apache.commons.dbcp Hello all, I am making use of BasicDataSource class to get connections .The code which I write to get a connection is as follows : basicDataSource = new BasicDataSource(); basicDataSource.setDefaultAutoCommit(autoCommit); basicDataSource.setUrl(jdbcUrl); basicDataSource.setDriverClassName(driver); basicDataSource.setUsername(user); basicDataSource.setPassword(password); basicDataSource.setMaxIdle(maxIdle); basicDataSource.setMaxActive(maxConn); basicDataSource.setRemoveAbandonedTimeout(removeAbandonedTimeout); basicDataSource.setMaxWait(maxWait); basicDataSource.setRemoveAbandoned(removeAbandoned); basicDataSource.setLogAbandoned(logAbandoned); basicDataSource.setValidationQuery(validationQuery); Connection conn =basicDataSource.getConnection() ; Does getConnection() method of BasicDataSource create a new connection to the database or internally manage some connection pool from which a new connection is taken? Will I need to write any extra code to make use of a connectionpool ? Thanks, Jitesh - 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] - Do you Yahoo!? Free Pop-Up Blocker - Get it now
Re: Scheduler
Hi All, we are using a simple servlet which acts as a scheduler. in its init() we get the at what time to execute from props file and call java.util.Timer.schedule() in it.the schedule() takes an object(which implements java.util.TimerTask) as parameter regards srinivas - Do you Yahoo!? Free Pop-Up Blocker - Get it now
RE: Can't open file: 'vip_detail_tab.MYD'. (errno: 144)
Hai Viru, even i had the same problem some time back could fix it with this below command mysqlrepair table vip_detail_tab; u can look at the help options under mysql command prompt srinivas Marcos Oliva [EMAIL PROTECTED] wrote: Viru, have you tried looking into the MySQL errro 144 ?, you may have to issue the myisamchk with the -force option and see if that helps marcos oliva -Original Message- From: virupaksha [mailto:[EMAIL PROTECTED] Sent: Wed 11/26/2003 6:42 PM To: Struts Users Mailing List Cc: Subject: Can't open file: 'vip_detail_tab.MYD'. (errno: 144) Dear All, I am very sorry to ask MySQL releted question in Struts group.. i am facing this problem since one week but couldn't able to sovle... could any one faced following error before..? while accessing table called vip_detail_tab, i m getting following error.. Can't open file: 'vip_detail_tab.MYD'. (errno: 144) i feel this table may corrupted.. expecting some ray of hope from this group..:( Regards, viru - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
RE: Actions which create sessions seem to hang
hi brian , java.util.Enumeration enum = session.getAttributeNames(); may be this will help u find out how many sessions are there. cheers srinivas Brian McSweeney [EMAIL PROTECTED] wrote: Hi Mike, Thanks very much for the reply. I think in jboss there is a standard session timeout anyway of 30 minutes. I've changed this now to 10 minutes. Is there a way to tell how many sessions you have running on an application server? Cheers, Brian -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 13:48 To: 'Struts Users Mailing List' Subject: RE: Actions which create sessions seem to hang Perhaps you don't have a session timeout set in JBoss and you are hitting an upper limit (65K sessions or something)? worse is better -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 6:11 AM To: 'Struts Users Mailing List' Subject: Actions which create sessions seem to hang Hi guys, This is a bit of a vague question I know, but perhaps someone can help. It may be a struts issue or a jboss issue. I'm not sure. I'm using JBoss 3.2.2 and struts. After about 24 hours of my application running, struts actions which create a http session seem to hang. I have no idea why this would be. If I restart jboss the behaviour goes away. Is there anything I can do to see why this would be? Or what I could do about it? Any help would be so greatly appreciated. Thanks very much, Brian - This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - 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] - Do you Yahoo!? Free Pop-Up Blocker - Get it now
Re: [OT] generate HTML file from XML and XSLT
to get an Html output you can use JAXP's javax.xml.transform.* Package. to mail the same out put you have to generate a String containing all the html output and use the ByteArrayDataSource.java class which u get from java mail examples from sun. i did this in one of my project.let me know if u have any trouble regards srinivas Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, I have a XML file and a XSLT file, i need to create a HTML file in a temp directory then read this file to get a String so can email this String or print the String as HTML is it possible to do it?? and how I am using jdk1.4.1 Ashish = A$HI$H __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard