Slow execution time using struts

2000-12-07 Thread shankar
Hi, We are developing an app using struts and find the execution time is agonizingly slow. We are using Struts 0.5 and tomcat 3.2. M/cs are 64 mb. The initialization seems to take forever(sometimes more than 1-2 minutes) and is highly frustrating. One of my co-developers was using an older ver

RE: Are this bugs ?

2000-12-07 Thread Mueller, Franz
Hello, Using the current nightly build of Struts (7-th Dec) the exception stack looks like the following (the previous posted stack was not as mentioned from Struts 6-Dec, it was from Struts 5-th Dec, sorry) Exception Report: javax.servlet.ServletException: Servlet.service() for servlet defau

RE: Are this bugs ?

2000-12-07 Thread Mueller, Franz
Hello, I'm using tomcat4/milestone 4 (Struts nightly build from 06-Dec) the exception I'm getting: A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Servlet.service() for servlet default threw exception at org.apache.catalina.core.ApplicationDispatcher

Re: FW: FormBean problem

2000-12-07 Thread Wong Kok Wai
Hi, The exact same statement caused a null pointer exception in ServletExec. My patch is as follow: //>>Begin of patch<< String multipartClass = mapping.getMultipartClass(); if (multipartClass == null || multipartClass.length() == 0) { multipartClass =

RE: Struts+Weblogic=Problems. Changes to struts?

2000-12-07 Thread Ray Power
Craig, This is a copy of the thread on weblogic.developer.interest.60beta.servlet " Re: Yet another problem with struts and Weblogic 6.0 beta " Mark Spotswood <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...

FW: FormBean problem

2000-12-07 Thread Boulatian, Misak
Hi Craig and all, After giving some thought I've tried to step through ActionServlet. The problem was found in processPopulate method in the lines market with '>' below. I've included my jsp, config and java programs for you to correct me if I am wrong. If I am doing something wrong then why tho

Re: Struts+Weblogic=Problems. Changes to struts?

2000-12-07 Thread Craig R. McClanahan
Matthew Heaton wrote: > They told me that the spec will disallow it but I have no idea if that is > factual or not. It could just be their interpretation of the spec, from the > snipets I've seen it definetly says you shouldn't put Non Serializable > objects into the session but isn't very clear

Re: Rewriting the URL in a form:form action

2000-12-07 Thread Erik Horstkotte
Craig R. McClanahan wrote: > Michael Westbay wrote: > > > Please try something like: > > > > > > > > This won't work (invalid tag attribute syntax), but the following > will: > > Thanks! That works fine. -- Erik

Re: 1.0 readiness?

2000-12-07 Thread Wong Kok Wai
Hi Craig, I'm hoping for a Christmas present in the form of Struts 1.0 :-) > > My original plan was to release a 1.0 beta by the > end of November. That didn't > happen, primarily because I had to go clean up the > mess on Tomcat 3.2 and > actually get a release out. Now that that is done, >

FormBean problem

2000-12-07 Thread Boulatian, Misak
Hi all, I cannot seem to make form beans working. It seems like the instance of the form bean never gets created. Here are my web.xml, struts-config.xml, and action classes. I can never get user id and password to print from the action class. If someone can tell me where my mistake is I would rea

Re: java.io.NotSerializableException: Serialization problems running Struts on Weblogic

2000-12-07 Thread Craig R. McClanahan
Ray Power wrote: > > Also, the Serializable restriction when you specify > > relates to > > *session* attributes, not *context* attributes. Requiring > > context attributes to > > be serializable is a platform-specific restriction that WebLogic > > Craig, > > Just to clarify; when you mention "

Re: Struts examples,docs for 1.0

2000-12-07 Thread Craig R. McClanahan
"Pearce, Bill" wrote:   Hi All, Great job on Struts! We have been playing with 0.5 but now that we are going to start development we are going to download the latest 1.0 beta, and we are aware of some deprecations, changes etc etc.  Are there any real traps to look out for? Will the current examp

RE: A form with valiable number of beans

2000-12-07 Thread Oliphant, Geoff
Title: RE: A form with valiable number of beans Joe, Struts actually gets the bean from either the request or the session. In your action class or actionservlet create any object that you want and add it to the request or the session.  Struts will perform a "findAttribute" to get the objec

Re: Struts+Weblogic=Problems. Changes to struts?

2000-12-07 Thread Craig R. McClanahan
"Punyansky, Alex" wrote: > Thanks Matt, > > Does it mean that I need to modify Struts by removing support for > internationalization ( removing/replacing PropertiesResourceBundle from > MessageResources )? > > Craig, are you planning to change Struts so that it complies with Servlet > 2.3 ( makin

RE: Struts+Weblogic=Problems. Changes to struts?

2000-12-07 Thread Matthew Heaton
They told me that the spec will disallow it but I have no idea if that is factual or not. It could just be their interpretation of the spec, from the snipets I've seen it definetly says you shouldn't put Non Serializable objects into the session but isn't very clear about putting them into the Pa

RE: java.io.NotSerializableException: Serialization problems running Struts on Weblogic

2000-12-07 Thread Ray Power
> Also, the Serializable restriction when you specify > relates to > *session* attributes, not *context* attributes. Requiring > context attributes to > be serializable is a platform-specific restriction that WebLogic Craig, Just to clarify; when you mention " *context* attributes ", you are r

Re: Rewriting the URL in a form:form action

2000-12-07 Thread Michael Westbay
McClanahan-san wrote: > This approach definitely works ... but it would seem to make sense for the > tag to assume a path starting with "/" should be interpreted as > context relative. Let me think about it a little more -- if there are no > gotchas, I will make the tag smarter about this. The

Re: Submitting forms to alternate actions

2000-12-07 Thread Michael Westbay
Andris-san wrote: > How do you get the values for SUBMIT_xxx.do out of the request ? > > I don't see any attribute or parameter in the request with name "name" or > "SUBMIT_xxx.do" The "xxx" is the variable part. Take the following page and load it in your browser: --- begin test.html

Re: war files, and form action question

2000-12-07 Thread Jim Richards
"Craig R. McClanahan" wrote: > Tomcat only knows how to auto-expand WAR files if you store them in the webapps >directory > -- not if they are elsewhere in your filesystem. I'll assume this is a feature. > Yes there has, compared to Struts 0.5 ... the validate() method now takes arguments.

Struts examples,docs for 1.0

2000-12-07 Thread Pearce, Bill
Title: Struts examples,docs for 1.0 Hi All, Great job on Struts! We have been playing with 0.5 but now that we are going to start development we are going to download the latest 1.0 beta, and we are aware of some deprecations, changes etc etc.  Are there any real traps to look out for? Wi

RE: Use struts with Weblogic

2000-12-07 Thread Lori M Olson
Title: Use struts with Weblogic http://archive.covalent.net/ Search the archive for information.  There's lots there. -Original Message-From: Hua Wu [mailto:[EMAIL PROTECTED]]Sent: Thursday, December 07, 2000 1:09 PMTo: '[EMAIL PROTECTED]'Subject: Use struts with Weblogic

Re[2]: Are this bugs ?

2000-12-07 Thread Matthias Kerkhoff
>> Just wondering: >> In the code of ActionServlet I've noticed that the access to the actions >> member in the method processActionCreate >> (in the try - block) is not synchronized. >> > Currently, "actions" is implemented as a Hashtable, which guarantees thread safe > behavior for you without

RE: Struts+Weblogic=Problems. Changes to struts?

2000-12-07 Thread Punyansky, Alex
Thanks Matt, Does it mean that I need to modify Struts by removing support for internationalization ( removing/replacing PropertiesResourceBundle from MessageResources )? Craig, are you planning to change Struts so that it complies with Servlet 2.3 ( making all attributes Serializable )? Alex

Re: EJB references

2000-12-07 Thread Craig R. McClanahan
"Boulatian, Misak" wrote: > Hi Jim and Alex, > > I think both of you understood me wrong. I am not planning to access EJBs > from JSP pages at all. I will have a lot of session EJBs to manipulate > Entity EJBs. But, the suggested approach accessing them from servlets was: > - Declare EJB referenc

Use struts with Weblogic

2000-12-07 Thread Hua Wu
Title: Use struts with Weblogic Anybody has experience in using struts with Weblogic? I can't get Weblogic find resource file. Any thought? Struts works great with Tomcat. Hua Hua Wu Clarify eBusiness Applications, Nortel Networks 5501 Dillard Drive, Suite 100, Cary NC 27511 Voice: (919) 86

Re: Rewriting the URL in a form:form action

2000-12-07 Thread Craig R. McClanahan
Michael Westbay wrote: > Horstkotte-san wrote: > > > There doesn't appear to be any way to cause the URL in a > > tag's "action" parameter to be rewritten using the webapp's context > > path. As a result, if I use an action="x", it directs the action to > > x in the current directory, which in m

Re: 1.0 readiness?

2000-12-07 Thread Craig R. McClanahan
Laird Nelson wrote: > Does anyone (Craig) know when 1.0 will be released? Craig, are you > holding off for bugfixes or some other piece of functionality? > Well, indirectly it's for functionality that has already been promised, but it's really been an issue of time :-(. My original plan was to

Re: Recommended way of using form:options

2000-12-07 Thread Craig R. McClanahan
Wong Kok Wai wrote: > What's the recommended usage of form:options? The > problem I see from the example source is I need to > ensure the list of values need to be synchronised in > both the JSP and the action form instance. > One approach that works well when the list of available options is st

Re: java.io.NotSerializableException: Serialization problems running Struts on Weblogic

2000-12-07 Thread Craig R. McClanahan
"Punyansky, Alex" wrote: > Hi, > > We created an application based on struts and are trying to deploy it on > Weblogic 6.0 beta2. Looks like Weblogic doesn't look at in > web.xml and requires all classes that can be used as context attributes to > be serializable. We tried to make MessageResourc

Re: Example for Internationalization

2000-12-07 Thread Craig R. McClanahan
Aditya, I'd like to see your changes also ... this sounds like something that would be a nice addition to the standard Struts example. Craig McClanahan Aditya Kapur wrote: > Hi All, > I was building some prototype for my company and I have modified the Struts > out-of-box example to add a lan

Re: Struts License Model?

2000-12-07 Thread Craig R. McClanahan
"McKisson, Shawn" wrote: > > > What is the licensing model for struts? > > The FAQ off of the Jakarta site is broken and I could not find any sort of > archive. > > Thanks. > > --shawn Struts, like all projects on the Jakarta site, is licensed under the Apache Software License

Re: DB connection pool

2000-12-07 Thread Craig R. McClanahan
"NESTORS Andris (AC-Creation)" wrote: > The Struts documentation gives some clear instructions on how to set up a > servlet which will create a DB connection pool (of your choice) on startup. > > Out of interest, why use this technique rather than make the connection pool > a singleton [GoF] whic

Re: war files, and form action question

2000-12-07 Thread Craig R. McClanahan
See intermixed. Jim Richards wrote: > I've got two questions, > > this is more to do with my tomcat configuration, but I can't get the > documentation and exmaples to load as .war files, currently I have > in tomcat.xml (renamed form server.xml) > > Context path="/struts-documentation" >

Re: Are this bugs ?

2000-12-07 Thread Craig R. McClanahan
"Mueller, Franz" wrote: > Hello, > > I've noticed the following behaviour: > > declaring an Action like: > > type="action.LogonAction" >name="logonForm" > >input="/Logon.html" > << >scope="request" >valid

Re: Rewriting the URL in a form:form action

2000-12-07 Thread Erik Horstkotte
Westbay-san wrote: > Please try something like: > > > > While I'm still learning the Struts' tag libraries, I believe that > this is the way to do it. I belive that scriplets parse before > taglibs, so the result of <%= request.getContextPath() %> will be put > into the action attribute b

Re: design question

2000-12-07 Thread Craig R. McClanahan
"Lacerda, Wellington (AFIS)" wrote: > If you can identify consistent patterns in your scriptlet usage, yes. > Otherwise it's questionable. Even the division of labor is questionable case > you can't, because page designers will end up having to deal with several > different tags used once or twic

Re: Rewriting the URL in a form:form action

2000-12-07 Thread Craig R. McClanahan
Colin Sampaleanu wrote: > The action parameter can handle a runtime expression, so you should be able > to build a custom value in there that includes the context path... > This approach definitely works ... but it would seem to make sense for the tag to assume a path starting with "/" should b

Re: How does one get an instance of the GenericDataSource?

2000-12-07 Thread Craig R. McClanahan
"George Henry C. Daswani" wrote: > Hello, > > I've editted the configuration in my "struts-config.xml" and added > a data source. I'm wondering, how does one grab an instance of a generic > data source so that I get do a getConnection on it.. > > By default, is it dumped into the servlet

RE: A form with valiable number of beans

2000-12-07 Thread Joe Peer
hi! i've got another question regarding the "valiable number of beans" - problem i am using a similar workaround as Geoff explained. my question acutally is: Goeff, gets your ActionForm - Bean populated automatically by struts or do you have to set the "dynamic" properties (the order items)

RE: Struts+Weblogic=Problems

2000-12-07 Thread Matthew Heaton
I posted my concerns on BEA's message board about Weblogic not allowing non Serialized objects to be placed inside the PageContext are two of the responses is below. I was basically told that the servlet 2.3 spec disallow non serialized objects in the PageContext so built this into the current re

RE: Example for Internationalization

2000-12-07 Thread Aditya Kapur
Hi, I have attached the changed classes and the jsp files along with the source. Heres how to use it. Replace the logon.jsp in struts-example subdir with the file in my distribution. Also replace the class files LogonAction.class and LogonForm.class (If you unzip this zip file in your webapps dire

getting Locale strings in a ActionForm

2000-12-07 Thread Johan Compagner
hi, I want to use a html select with a few options. Those options are specified in resourcebundles for different locales. I have a CustomForm class: class CustomForm { public String[] getOptionValues() { return new String[]{"resourcekey1","resourcekey2"} } public Stri

RE: Submitting forms to alternate actions

2000-12-07 Thread NESTORS Andris (AC-Creation)
Michael How do you get the values for SUBMIT_xxx.do out of the request ? I don't see any attribute or parameter in the request with name "name" or "SUBMIT_xxx.do" I think I may have misunderstood - Nes # -Original Message- # From: Michael Westbay [mailto:[EMAIL PROTECTED]] #

Struts License Model?

2000-12-07 Thread McKisson, Shawn
Title: Struts License Model? What is the licensing model for struts? The FAQ off of the Jakarta site is broken and I could not find any sort of archive. Thanks. --shawn

java.io.NotSerializableException: Serialization problems running Struts on Weblogic

2000-12-07 Thread Punyansky, Alex
Hi, We created an application based on struts and are trying to deploy it on Weblogic 6.0 beta2. Looks like Weblogic doesn't look at in web.xml and requires all classes that can be used as context attributes to be serializable. We tried to make MessageResources and ErrorMessages classes implemen

DB connection pool

2000-12-07 Thread NESTORS Andris (AC-Creation)
The Struts documentation gives some clear instructions on how to set up a servlet which will create a DB connection pool (of your choice) on startup. Out of interest, why use this technique rather than make the connection pool a singleton [GoF] which would initialise itself on the first request

Are this bugs ?

2000-12-07 Thread Mueller, Franz
Hello, I've noticed the following behaviour: declaring an Action like: input="/Logon.html" << scope="request" validate="true"> I'm getting a servlet exception and as a result the Logon.html file is overwritten (the file itself

Re: Sruts Mailing List Archive

2000-12-07 Thread Angus Mezick
Nope, this isn't a frequently asked question. --Angus Ted Husted wrote: > > http://www.mail-archive.com/struts-user%40jakarta.apache.org/ > > is also good. > > *** REPLY SEPARATOR *** > > On 12/6/2000 at 11:38 AM Evan Vaala wrote: > > Is there a Struts Mailing List Archive s

RE: org.apache.struts.action.MESSAGE exception with orion 1.4

2000-12-07 Thread Wong Kok Wai
I'd similar problem with ServletExec. My solution is the put all the property and dtd files needed by Struts in a separate jar and add it to the classpath. --- Juan Gargiulo <[EMAIL PROTECTED]> wrote: > I finally got it working by removing > struts-config_1_0.dtd from the > struts.jar file. And l

RE: EJB references

2000-12-07 Thread Wong Kok Wai
Caching of home references will not work in a clustered environment as the reference will become invalid if the original server goes down and another takes over. --- Alix Jermyn <[EMAIL PROTECTED]> wrote: > > Pretty much what I was thinking of too - my vague > memory is that the Bean > container

Re: Article on JavaWorld

2000-12-07 Thread Curtis Cooley
Haven't read it yet but the November issue of The Java Report has a struts article. Ted Husted wrote: [EMAIL PROTECTED]">On 12/4/2000 Jean-Baptiste Nizet wrote: This shows, once again, that Struts is more andmore used and recognized in the Java community.On 11/3/2000 Nikolaus Rumm wrote:

RE: EJB references

2000-12-07 Thread Alix Jermyn
Pretty much what I was thinking of too - my vague memory is that the Bean container handles the synchronisation problem, so you can share the single home references from your cache helper across the application without any worries. If you are feeling really confident, you may want to control the

RE: design question

2000-12-07 Thread Lacerda, Wellington (AFIS)
If you can identify consistent patterns in your scriptlet usage, yes. Otherwise it's questionable. Even the division of labor is questionable case you can't, because page designers will end up having to deal with several different tags used once or twice among the several pages (which tag for what

AW: Struts+Weblogic+WARs

2000-12-07 Thread Andre Wittenburg
Hi Jeff, > Andre, > > I am running into the exact same situation as you described in your > original > post, so I was excited to see the solution. However, when I tried it, I > get > a NullPointerException when I startup weblogic. > > [Andre Wittenburg] The following 4 line