why does it seem like action is called twice

2002-03-03 Thread mike m
It seems like my action is being executed twice when called, and the jsp that it forwards to is submitted once right when the action is called. I created a very simple setup just to isolate this problem. I know this can't be right b/c I couldn't find archive of anyone else having similar

RE: struts-config.xml not loading - WL6.0 - urgent

2002-03-03 Thread Arik Levin ( Tikal )
Hi San. I'm working with weblogic6.1, and there's no problem with struts, if u can be more specific about, the web.xml and struts-confix.xml content And where did u put struts.jar. Look at the struts example it should work. -Original Message- From: Santhosh Kumar

RE: Struts-Application in Default Servlet Context

2002-03-03 Thread Jesse Alexander (KADA 12)
Hi, theoretically you would have to put the struts.jar into the ---default_context_dir---/WEB-INF/lib and then it should work. There are messages in the mailing-list archive that show how using Thread.currentThread().getContextClassLoader() instead of Class.forName() will allow you to put

Re: Methods In Action Class

2002-03-03 Thread Ted Husted
You would either have to skip removing the token, or replace the token in the request with the new one. The token represents a transaction, and should live through the transaction. If the transaction includes more than one request, do not remove it until the transaction is complete. If you are

Re: internationalisation

2002-03-03 Thread Ted Husted
The framework provides a common Locale object in the users session, which you can maintain and then pass as part of something like a database query. http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/Action.html#LOCALE_KEY -- Ted Husted, Husted dot Com, Fairport NY US --

Re: Wanted : a perfect solution for CharterEncoding

2002-03-03 Thread Gordon Luk
Hi David, Well, it look like a great solution, but seem not to be a perfect. I also have to write my own (different character type filters). is that have a perfect solution , that let my program could support different character type , the different type depend on client, sure, my program

Urgent help - Connection reset by peer error with Struts ..

2002-03-03 Thread Satish Jeejula
Hi All, I am using struts for my web application under apache\tomcat configuration. Everything seems to working fine and then after some time of no activity the application hangs. When I check the tomcat console for errors, I see lot of the 'Connection reset by peer' errors ... After little

Re: Best way to deal with Form object String parameters into another bean?

2002-03-03 Thread Ted Husted
Rick Reumann wrote: Before looking into this struts framework, my controler servlet would pass the request object off to the appropriate Action class which in turn might hand the request object to another class method that would create an EmployeeBean from the request object parameters. Than

Re: Urgent help - Connection reset by peer error with Struts ..

2002-03-03 Thread Ted Husted
For a production application, use Poolman www.codestudio.com You can then have your data access objects get the connection using the Poolman findDataSource method, and leave the Struts controller out of it. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with

Re: Urgent help - Connection reset by peer error with Struts ..

2002-03-03 Thread Bryan Field-Elliot
How would you compare Poolman to the various pooling systems within Jakarta (such as DBCP, or the one built into Tomcat 4 if I'm not mistaken?) I can't keep track of them all Thanks, Bryan On Sun, 2002-03-03 at 07:23, Ted Husted wrote: For a production application, use Poolman

RE: Newbie question about struts and Tomcat 4

2002-03-03 Thread Gary leidecker
I just downloaded Struts a week ago and could NOT get it to work using Tomcat 4.0. After three days, I gave up and downloaded Tomcat 3.2.2 - works fine! Gary -Original Message- From: Tony Ziolkowski [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 02, 2002 7:11 PM To: Struts Users

Action mappings and request parameters

2002-03-03 Thread Bryan P. Glennon
Hi - I can't seem to specify more that one request parameter in my action mapping entries in the struts-config.xml file. I want to do something like this: forward name=errNoCurrentObject path=/error.jsp?type=internalreason=errNoCurrentObject/ forward name=errNoCurrentServer

Re: Action mappings and request parameters

2002-03-03 Thread Pavel Kolesnikov
On Sun, 3 Mar 2002, Bryan P. Glennon wrote: mapping entries in the struts-config.xml file. I want to do something like this: forward name=errNoCurrentObject path=/error.jsp?type=internalreason=errNoCurrentObject/ When my app loads, however, I get a load exception:

Re: struts-user Digest 3 Mar 2002 09:11:43 -0000 Issue 1190

2002-03-03 Thread Sean Owen
In my opinion, it is fine to use some Struts tags and not others. Tags look innocent enough, though they do translate into a non-trivial chunk of code in the compiled servlet! As Ted said - depending on your container, heavy use of tags can create a performance problem. So the question is

Re[2]: Best way to deal with Form object String parameters into another bean?

2002-03-03 Thread Rick Reumann
Thanks for the information Ted and your site has been very helpful to me as well. Couple more comments below.. On Sunday, March 3, 2002, 9:18:25 AM, Ted Husted wrote: TH Do that, except you can create the EmployeeBean from the EmployeeForm TH instead. TH If all the public properties you want

RE: Methods In Action Class

2002-03-03 Thread subhendukumar mohanty
So for the below example scenario i have to only validate the token and should not call saveToken method. So for these type of scenarios i have to put another parameter attribute in actionmapping of struts-config.xml to know these scenarios. And for this scenario all forward mapping should be

argument type mismatch

2002-03-03 Thread Steven Dahlin
When attempting to submit a jsp page with some fields for a database filled out I get the following: java.lang.IllegalArgumentException: argument type mismatch at java.lang.reflect.Method.invoke(Native Method) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) I

Help setting up PoolMan with Struts in Tomcat 3.3

2002-03-03 Thread Satish Jeejula
Hi All, While reading thru the poolman user guide, I found that with TOMCAT 4.0, I should put poolman.xml in my web application WEB-INF\classes directory. Is that true also with Tomcat 3.3 also?? Any help is appreciated. Thanks, Satish -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

RE: Newbie question about struts and Tomcat 4

2002-03-03 Thread Barr, Scott [IBM GSA]
Which jdk are you using? I found this problem when attempting to use jdk 1.4 with Tomcat 4.0 and the current (I think?) release build of Struts, so I've switched back to 1.3 Scott -Original Message- From: Gary leidecker [SMTP:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 3:07 AM

Re: Help setting up PoolMan with Struts in Tomcat 3.3

2002-03-03 Thread Michael Mehrle
Poolman uses the classpath of its VM to find poolman.xml - and the classes directory of your application is guaranteed to be referenced. If you want it to be anywhere else, you need to add that directory to the classpath settings of your Tomcat launch script (or build.xml). Remember not to set

RE: argument type mismatch

2002-03-03 Thread Barr, Scott [IBM GSA]
Hi Steve It sounds like you are passing a String into a property that accepts Date objects here. You aren't receiving Date objects from the JSP, you are receiving Strings. Try converting the String into Date objects first. Scott -Original Message- From: Steven Dahlin [SMTP:[EMAIL

Subject: Re: is there drawdown select box in struts?

2002-03-03 Thread @Basebeans.com
Subject: Subject: Re: is there drawdown select box in struts? 6840:From: zb cong [EMAIL PROTECTED] === -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

File Protection

2002-03-03 Thread SUPRIYA MISRA
I am creating csv file (from oracle) that can be downloaded by only authorized people. Where is the best place to put this txt file. It contains confidential data. NO FTP is allowed as a policy. _ MSN Photos is the easiest way

Re: Help setting up PoolMan with Struts in Tomcat 3.3

2002-03-03 Thread cahana
You can also jar up poolman.xml and put the jar in WEB-INF\lib directory. - Original Message - From: Satish Jeejula [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 03, 2002 1:07 PM Subject: Help setting up PoolMan with Struts in Tomcat 3.3 Hi All, While reading thru the

validator error in weblogic6.1

2002-03-03 Thread John Mammen - (ITD)
Hello Struts Users; I am trying out the validator written by David Winterfeldt on Weblogic 6.1sp2. I just copied the example war file to my weblogic application directory to run it. But I get the below error. Is there any configuration for BEA Weblogic 6.1 sp2. Is there any help documentation

Re: File Protection

2002-03-03 Thread Arron Bates
Most web servers should have a mechanism to protect your files, but if you had to go via your own authentication logic, you can make the request go through a Struts Action, set the content type etc, and stream it out from there. Arron. SUPRIYA MISRA wrote: I am creating csv file (from

Re: Action mappings and request parameters

2002-03-03 Thread yogesh b
Hi, You can try this in your action class to forward with request param. ActionForward forward = mapping.findForward(errNoCurrentObject); StringBuffer buffer = new StringBuffer(forward.getPath()); buffer.append(?type=internalreason=errNoCurrentObject)

Defining a bean for Message Resources label

2002-03-03 Thread MerrilG
Hi, Is it possible to define a bean to get a value of a property defined in the Application resources file The problem is that I would want to get the value of a message into a javascript function I tried this function showConfirm() { var t=bean:message key=allotmentnewprompt/;

Re: Action mappings and request parameters

2002-03-03 Thread Muralidhar_BR
Hi, try using forward name=errNoCurrentObject path=/error.jsp?type=internalamp;reason=errNoCurrentObject/ Regards, Murali yogesh b [EMAIL PROTECTED] on 04/03/2002 05:13:16 Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:

RE: Struts Warning messages

2002-03-03 Thread mike m
Looks like s/t is written to http response before forwarding -- strictly not allowed. Mike -Original Message- From: Jon Doe [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 02, 2002 8:14 PM To: [EMAIL PROTECTED] Subject: Struts Warning messages Hi: Does anyone know what these warning

RE: nasty prob with action forwards, formbeans, http requests and submit() methods

2002-03-03 Thread mike m
See if setting scope=session for face.Smile action helps. Mike -Original Message- From: Paul Devalier [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 10:32 AM To: [EMAIL PROTECTED] Subject: nasty prob with action forwards, formbeans, http requests and submit() methods I've got