Re: long struts-config.xml file

2005-06-18 Thread Dakota Jack
If they used new HashMap(89) instead of just new HashMap(), the lookup would not change for 2000 objects at all because the HashMap growth beyond the initial size is ((2 times initial size) plus 1) which with 89 as the starting point keeps the size of the HashMap with a prime number well over 2000

Re: Re: long struts-config.xml file

2005-06-18 Thread John Henry Xu
Thanks Laurie for pointing that out. To validate an XML file, dtd or xsd defined order. This is an XML standard. I think one may create a new DTD (or even better a xsd ) that can separate different configuration files, while compatible with older version struts dtds. - Original Message

RE: How to get current top-level struts action?

2005-06-18 Thread Neil Aggarwal
Martin: That did the trick! FYI, if anyone needs the answer, here is what I did: ConfigHelper configHelper = new ConfigHelper(application,request,response); ActionMapping mapping = configHelper.getMapping(); String currentAction = mapping.getPath()+".do"; Thanks, Neil -- Neil Ag

Re: long struts-config.xml file

2005-06-18 Thread Craig McClanahan
Good catch Laurie ... through at least today's version of the 1.3 DTD, it is indeed sensitive to the order of the elements. For example, all the elements need to be before the element that contains all the elements. Therefore, if you're going to use the XML entities approach, you'll need to cr

Re: Wildcard action paths

2005-06-18 Thread Don Brown
You can get a copy in the nightly builds - http://svn.apache.org/builds/struts/nightly/ They are of the 1.3-dev branch so if you haven't already tried a 1.3 build, you might have some other migration issues. Glad to hear it was what you were looking for. Don On 6/18/05, Laurie Harper <[EMAIL PR

RE: [OT] Convert Java Object into XML. Is there a simple tool in Jakarta projects or elsewere

2005-06-18 Thread Martin Ravell
Try JAX-B. It is in the jwsdp. Regards Marty -Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Sent: Saturday, 18 June 2005 10:09 PM To: Struts Users Mailing List Subject: [OT] Convert Java Object into XML. Is there a simple tool in Jakarta projects or elsewere Hi all,

Re: How to get current top-level struts action?

2005-06-18 Thread Martin Gainty
Neil- configHelperInterface should help you with iwther getMapping or getActionForward methods should help you- http://struts.apache.org/api/org/apache/struts/config/ConfigHelperInterface.html Martin- - Original Message - From: "Neil Aggarwal" <[EMAIL PROTECTED]> To: "'Struts Users

Re: long struts-config.xml file

2005-06-18 Thread Laurie Harper
Craig McClanahan wrote: Validation against the DTD requires two things: * Using the DOCTYPE declaration (as shown above) in the outer configuration file * Setting the servlet init parameter "validating" to "true" in /WEB-INF/web.xml for the Struts ActionServlet It doesn't matter whether you

Re: HTML file generated by JSP is truncated...why?...Please help!...source attached

2005-06-18 Thread Laurie Harper
You're running into a limitation of the JVM I think. Java classes can only have a maximum of 64Kb (?) data heap. If you have a very large JSP, the generated Java source will contain enough string data to exceed that. In my last job our application had one JSP that was sufficiently large and com

Re: Wildcard action paths

2005-06-18 Thread Laurie Harper
Don, that absolutely rocks, you're the man! :-) Really, that's exactly what I expected and wanted to do in the config file, and that code snipet makes things even cleaner. You've just given me the means to collapse an ugly hack into a nice, clean, properly encapsulated solution. Thank you for

Re: long struts-config.xml file

2005-06-18 Thread John Henry Xu
Hi Frank, If you look at the link I provided you can see we had a pretty large project. I was working with a team working in multiple places in world. Maintaining and synchronizing struts-config.xml file did give us some bad time at beginning. So we choose the spirit of struts, MVC, but avoided th

How to get current top-level struts action?

2005-06-18 Thread Neil Aggarwal
Hello: I am trying to figure out how to get the current top-level struts action in a page. For example, if I am on the url http://dev.rentclubs.com/rentclubs/home.do I want a programmatic way to get that the action is "/home" I tried getting the requestURI, but that give me the layout since I

Re: long struts-config.xml file

2005-06-18 Thread Frank W. Zammetti
John, what kind of problems did you encounter? Cataloging them here will likely elicit solutions, and this may help others in the future who encounter the same problems. Frank John Henry Xu wrote: Craig, I had XML editors to do that. I will try the Struts Console you mentioned. - Origin

Re: long struts-config.xml file

2005-06-18 Thread John Henry Xu
Craig, I had XML editors to do that. I will try the Struts Console you mentioned. - Original Message - From: "Craig McClanahan" To: "Struts Users Mailing List" Subject: Re: long struts-config.xml file Date: Sat, 18 Jun 2005 12:13:56 -0700 > > On 6/18/05, John Henry Xu wrote: > > Craig wro

RE: HTML file generated by JSP is truncated...why?...Please help!...source attached

2005-06-18 Thread O. Oke
Thank you all. Source code attached and also below. Please note that it appears to be a maximum number of xters problem; I am saying this because when I deleted some blank lines from my JSP source, more HTML code was generated. The problem is that I do not know where this size is set. Neverthe

RE: HTML file generated by JSP is truncated...why?...Please help!...

2005-06-18 Thread O. Oke
Thank you all. Please note that it appears to be a maximum number of xters problem; I am saying this because when I deleted some blank lines from my JSP source, more HTML code was generated. The problem is that I do not know where this size is set. Nevertheless, the source code are as follows:

Re: long struts-config.xml file

2005-06-18 Thread Craig McClanahan
On 6/18/05, John Henry Xu <[EMAIL PROTECTED]> wrote: > Craig wrote: > > > > "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" > > "http://struts.apache.org/dtds/struts-config_1_2.dtd"; [ > > > > > > > > ... > > ]> > > > > > > > > &package-a; > > &package-b; > > ... > > > > > > > >

RE: MySQL error using connection pool

2005-06-18 Thread Martin Gainty
Jörg: Increase the wait_timeout variable in the Mysql configuration file (my.cnf). Viel Gluck, Martin- __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Sender and is proprietar

RE: HTML file generated by JSP is truncated...why?...Please help!...

2005-06-18 Thread Martin Gainty
Ok- I would have to see the entire JSP before offering any suggestion Greets, Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Sender and is proprietary to Sender

Re: long struts-config.xml file

2005-06-18 Thread John Henry Xu
Craig wrote: > > "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" > "http://struts.apache.org/dtds/struts-config_1_2.dtd"; [ > > > > ... > ]> > > > > &package-a; > &package-b; > ... > > > > where "package-a.xml", "package-b.xml" and so on contain the form > beans and actions for s

Re: HTML file generated by JSP is truncated...why?...Please help!...

2005-06-18 Thread Michael Jouravlev
Do you have jsp:include on this page? If you do, do you forward from your included location to other location? On 6/18/05, O. Oke <[EMAIL PROTECTED]> wrote: > Please help!... > > > BACKGROUND > == > I am using Tomcat-5.0.27 on Windows 2000. I use > Eclipse IDEfor dev. > > Furthermore,

Re: long struts-config.xml file

2005-06-18 Thread Frank W. Zammetti
Craig McClanahan wrote: Of course, there's also an XML level solution to this problem, something that works even if the program that is reading the document doesn't support multiple configuration files -- XML entities. Now *THAT* I was totally unaware of... very cool! I love it... just woke u

HTML file generated by JSP is truncated...why?...Please help!...

2005-06-18 Thread O. Oke
Please help!... BACKGROUND == I am using Tomcat-5.0.27 on Windows 2000. I use Eclipse IDEfor dev. Furthermore, I have a JSP form that has about 50 fields; when the JSP is converted to an HTML file by Tomcat, the last 7 fields do not appear in the generated HTML document. When I viewed

[OT] Convert Java Object into XML. Is there a simple tool in Jakarta projects or elsewere

2005-06-18 Thread David Gagnon
Hi all, Sorry for this OT. I'm looking for a way to output an object into XML for debugging purpose. I'm pretty sure I can do it myself with beanUtils and xml-api ..but I hate reinventing the whell and pretty sure there is a simple tool somewhere. Thanks for your help! Have a nice week-end