Garbage Collection Problem with Write Tag

2003-08-05 Thread AshokD
Hi, I am using Struts framework to my application. I observed some of the strange things. After executing a action I am displaying a set of records in a Grid (50 records). I tested this application by using WSAD Profiling. In the profiling results, I seen 120 live WriteTag

Re: How the Values will Update in Session List if I Used Nested Iterator

2003-07-03 Thread AshokD
won't be there any more. This has been my experience with exception of the latter paragraph. I work on a project with session scope, so didn't have to deal with this. Reading this list has indicated that it is necessary. sandeep --- AshokD [EMAIL PROTECTED] wrote: Hi, 1) I am

Centralized Way of Acessing the Form Bean

2003-07-03 Thread AshokD
Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using below logic: LoginForm lLoginForm = (LoginForm )session.getAttribute(formName); To acess Request Scope component I am using below logic: NewLoginForm lNewLoginForm = (NewLoginForm

Re: Centralized Way of Acessing the Form Bean

2003-07-03 Thread AshokD
Message- From: AshokD [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:24 AM To: Struts Users Mailing List Subject: Centralized Way of Acessing the Form Bean Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using

Re: Centralized Way of Acessing the Form Bean

2003-07-03 Thread AshokD
PROTECTED] Sent: Thursday, July 03, 2003 10:05 PM Subject: Re: Centralized Way of Acessing the Form Bean use the struts bean tag to get your form.. it will search all layers of the session. JMG - Original Message - From: AshokD [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Best Way of Initilizing the Forms

2003-07-03 Thread AshokD
Hi, I have 10 forms in my Application. In LoginAction itselft I need to set some data in another 5 forms. In another Action I need to set some data in another forms(which are not initilized yet). I think that form instance will set after acessing the page or acessing the Action. In my case

Best Way putting ArrayList of ValueObjects in Struts.

2003-07-02 Thread AshokD
Hi, I have doubt regarding some implementation in Form. I have a list of ValueObjects, some are editable and some are not editable. We can implement this, putting this list to a Form or putting this list into a Session. Which implementation is best in above two options ? Thanks Regards,

Any Possibility of Passing Parameters to a ActionMapping

2003-07-02 Thread AshokD
Hi, I have a question regarding ActionMapping and Forwards. I have a url which is configured in struts-config.xml as forward. From my Action class I can simply forward to this url, but I need to pass a parameter to this URL. Is it possible ? If yes how can we do this? Thanks in Advance,

How the Values will Update in Session List if I Used Nested Iterator

2003-07-02 Thread AshokD
Hi, 1) I am displaying a list of ValueObjects(which are editable) in a page by setting a ArrayList to form.. When I submit the form the values are updating into form arraylist variable. What is the logic behind in updation of list in a from when I submit the form. 2) I am displaying a list

I am Not Able To See any Logs From My Action Classes

2003-06-25 Thread AshokD
Dear All, I am in a confusion problem. I configured Log4J through my CustomActionServlet, init() method. It is configuread successfully I got a log from this init() method also. [6/25/03 8:27:46:888 GMT-05:00] 63ffdf SystemOut U 08:27:46,887 [ORB.thread.pool:2] DEBUG

Re: checkboxproblem

2003-06-12 Thread ashokd
Hi, In the reset method you need to set as false, other wise it won't uncheck the selection. Thanks Regards, Ashok.D - Original Message - From: Kristine Weissbarth [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:59 PM Subject:

Re: i suddenly got this error from nowhere

2003-06-02 Thread ashokd
Hi, What IDE and Application Server you are using? I think this problem will solve after restarting. But this is not a solution but this temporary remeady to come out from the problem. This problem due to placing of log4j.jar file and reloading of the application after restarting. Thanks

Branch Too Large Exception with Nested Iterator

2003-06-02 Thread ashokd
Hi, 1) I am using Nested Iterator to display the content as text boxes. In each row I have 10 fields, If the rows are increasing I am getting the Branch Too Large Exception. I have 3 types of grids in a page, If I kept 2 Grids it is working fine, If I kpet 3 Grids then it is giving error. jsp

Nested Iterator Design Question (ValueObject or String variables ValueObject)

2003-03-31 Thread ashokd
Hi, I have some doubts regarding ValueObject and ActionForm. I am putting all variables in ActionForm as Strings (because I doesn't want to populate default values in a form (like 0 for int and 0.0 for float)). Data getting/setting from Business Layer as ValueObjects (I am putting all

Identification of a Field Name of a IterateForm in JavaScript

2003-03-27 Thread ashokd
Hi, I have a doubt regarding identification(in javascript) of field name of Nested Iterator. I have a Nested Iterator form. In Nested Iterator I am displalying address1 and address2 properties of a ValueObject. I have 5 records. Property name of the nested iterator is

Fw: Multiple Log Files Configuration Doubt

2003-03-25 Thread ashokd
Hi, My Requirement is: I need to capture the logs into two different log files. For the above requirement I got a sample xml file, I configured that. I have a doubt regarding the configuration of the xml file. In below xml file I have two appenders, one is dubug another is normal. My doubt is

Multiple Log Files Configuration Doubt

2003-03-25 Thread ashokd
Hi, My Requirement is: I need to capture the logs into two different log files. For the above requirement I got a sample xml file, I configured that. I have a doubt regarding the configuration of the xml file. In below xml file I have two appenders, one is dubug another is normal. My doubt is

Re: ActionServlet Unavailable

2003-03-21 Thread ashokd
Hi, Some times the server won't load the Custom ActionServlet. I also faced same problem. Pls restart the server and try once. Thanks Regards, Ashok.D - Original Message - From: Gerrit [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 22, 2003 5:27 AM Subject: ActionServlet

Re: PrePopulation Problem - Urgent

2003-03-20 Thread ashokd
1:02 PM Subject: RE: PrePopulation Problem - Urgent Makes sure redirect=false in the forward. -Original Message- From: ashokd [mailto:[EMAIL PROTECTED] Sent: 21 March, 2002 07:11 To: [EMAIL PROTECTED] Subject: PrePopulation Problem - Urgent Importance: High Hi, I have a .jsp

Re: PrePopulation Problem - Urgent

2003-03-20 Thread ashokd
inAdvance, Ashok.D - Original Message - From: ashokd [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 21, 2002 2:40 PM Subject: Re: PrePopulation Problem - Urgent Hi Plessia, Thanks for your reply. Can please explain about

PrePopulation Problem - Urgent

2003-03-19 Thread ashokd
Hi, I have a .jsp page, In this page if the user clicks a Hyper link one Action class will invoke. In this action class I am setting some values to the Form Bean and redirecting to the same page. These values are not prepopulating in jsp page. When the user navigates to another page and then

struts-menu with Struts 1.0.2

2003-03-18 Thread ashokd
Hi, struts-menu examples are possible with Struts 1.0.2 ?? In struts-config.xml (struts-menu example) I seen Plug Ins Configuration. I think that Plug Ins Configuration won't support with Struts 1.0.2 is it correct or I am wrong? Thanks in Advance, Ashok.D

Multiple Log File Configuration Through Log4j

2003-03-17 Thread ashokd
Hi, I have a doubt/requirement. How to configure to multiple log files (one for debug and another for error) by using Log4j. I think it is repeated question. Any documentation or Example available on this requirement. Thanks in Adavance, Ashok.D

Basic Doubt Regarding Initialization of ActionForm when invoked a jsp page

2003-03-14 Thread ashokd
Dear ALL, I have a basic doubt regarding initilization of ActionForm in an application. Example: I have a login.jsp. In login.jsp I have html:form action=login.go For this action I configuration Action and ActionForm classes. I configured servlet-mappings: !-- Standard Action Servlet

Commons Logging Configuration

2003-03-06 Thread ashokd
Hi, I have a question regarding configuration of Commons Logging (for Log4j). Where I need to place this configuration property file. Their is any user guide to configure commons Logging. Thanks Regards, Ashok.D - To

Nested Iterate Proerty value in a hidden field

2003-03-06 Thread ashokd
Hi, How to capture a nested iterate property value into a hidden field. I am displaying only one record depending upon the condition, At this time i wan to captrue some values into a hidden fields. How can we do this? Thanks Regards, Ashok.D

Re: Is struts-config too verbose?

2003-02-27 Thread ashokd
Hi Mark, What is your contact.Saved action mapping ? In forward don't give another action, simply give some jsp page. If we need pre processing before loading the page then only you give to another action for forward. Thanks Regards, Ashok.D - Original Message - From: Mark [EMAIL

Re: Session Problems

2003-02-27 Thread ashokd
Hi, Write another get/set method is PersonForm() which returns/sets ArrayList. This method will return addresses ArrayList. By using getNewMethod(), get the ArrayList and Add to this. I think you no need to setNewMethod() once again. because it will pass by reference. Even though you check once.

NumberFormat Exception with ActionServlet

2003-02-26 Thread ashokd
Hi, I extended ActionServlet and written my CustomActionServlet. Some time I am getting NumberFormat Exception when I added any jsp scriplets in my jsp page, like % System.out.println(I am working..); % The exception is at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)

NumberFormat Exception with ActionServlet

2003-02-26 Thread ashokd
Hi, I extended ActionServlet and written my CustomActionServlet. Some time I am getting NumberFormat Exception when I added any jsp scriplets in my jsp page, like % System.out.println(I am working..); % The exception is at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)

Re: html:select and ArrayList question

2003-02-21 Thread ashokd
Hi, Put foos in session. Remove from ActionForm. Thanks Regards, Ashok.D - Original Message - From: alexj [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 21, 2003 11:26 AM Subject: html:select and ArrayList question Hi, I can't find how

Re: Nested Tags Problem .... Urgent

2003-02-12 Thread ashokd
Hi, If I am displaying nested tags in a jsp page it is working fine. When I include some other jsp page as iframe it is giving null pointer exception (I am not put any html:form tag). When I kept html:form action=myAction.go then it is working fine. I have three this type of frames. User can

Re: Nested Tags Problem .... Urgent

2003-02-12 Thread ashokd
Hi, If I am displaying nested tags in a jsp page it is working fine. When I include inner.jsp page as iframe in parent.jsp it is giving null pointer exception (I am not put any html:form tag in inner.jsp page, but I kept html:form in parent.jsp). When I kept html:form action=myAction.go in

Nested Tags Problem .... Urgent

2003-02-11 Thread ashokd
Hi, I am facing problem with Nested Tags. I have a method in ActionForm private ArrayList mFormList = new ArrayList(); public Object[] getFormList() { return mFormList.toArray(); } public ArrayList getMyFormList() { return mFormList } public setMyFormList(ArrayList

Re: Nested Tags Problem .... Urgent

2003-02-11 Thread ashokd
is specified). property: Name of the property, of the JSP bean specified by name, whose getter returns the collection to be iterated. So it should be: nested:iterate property=formList -Original Message- From: ashokd [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 1:00 PM

Nested Tags Problem .... Urgent

2003-02-11 Thread ashokd
Hi, I am facing problem with Nested Tags. I have a method in ActionForm private ArrayList mFormList = new ArrayList(); public Object[] getFormList() { return mFormList.toArray(); } public ArrayList getMyFormList() { return mFormList } public setMyFormList(ArrayList pFormList) {

ActionForm methods Naming Conventions - Urgent

2003-02-10 Thread ashokd
Hi, Their is any naming conventions for ActionForm methods ? I got a problem with this. First I used like below then I got the problem(NumberFormatException: getTName() setTName() Later I changed to getTableName(); setTableName(); By using above two method names the exception gone. Any one

Usage of PropertyConfigurator Logger Classes

2003-02-10 Thread ashokd
Hi, My basic doubt what is the relations ship between PropertyConfigurator and Logger classes. Can I configure ProperConfigurator for each Logger object? Thanks Regards, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: bean:write problem

2003-02-06 Thread ashokd
The below example is worked by using Hastable and logic:iterate combination. I think it is usefull for you Let me know.. % java.util.Hashtable bunchList = new java.util.Hashtable(); com.km.struts.tutorial.TestBean test1 = new com.km.struts.tutorial.TestBean(); bunchList.put(0,test1);

Iterating ValueObjects by using logic:iterate - Urgent

2003-02-05 Thread ashokd
Hi, I tested a sample example to display list of ValueObjects. If i setted these VOs to ArrayList the following code is working fine. % java.util.ArrayList bunchList = new java.util.ArrayList(); bunchList.add(new com.km.struts.tutorial.TestBean()); bunchList.add(new

Re: Action Forwarding within Frames

2003-02-05 Thread ashokd
Hi, In bottom frame form tag place target=_top. Thanks Regards, Ashok.D - Original Message - From: Pat Quinn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 6:43 PM Subject: Action Forwarding within Frames Hi Guys, I have a jsp which contains two frames

Re: session timeout not working anymore :(

2003-02-05 Thread ashokd
Hi Sundar, Istead of checking the session. Put a parameter in session which is required to your entire application. Check this parameter value. % // check whether the UserName in the session is null String loginName = (String)session.getValue(LoginName); if (loginName == null ||

Re: Iterating ValueObjects by using logic:iterate - Urgent

2003-02-05 Thread ashokd
, they can use this. Thanks Regards, Ashok.D - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 6:58 PM Subject: AW: Iterating ValueObjects by using logic:iterate - Urgent Ashokd

Re: session timeout not working anymore :(

2003-02-04 Thread ashokd
Hi, You can overLoad ActionServlet, in this class also you can implment this functionlity. Only issue is you need to take care all requests should pass through the ActionServlet (for jsp also). Best Suggestion is: 1)Over Ride ActionServlet and place session expire code(redirect login page or

Re: Pre Population Problem with FormBean - Urgent

2003-02-03 Thread ashokd
the action). Try to read the session without using struts tags. -Original Message- From: ashokd [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 9:23 PM To: Struts Users Mailing List Subject: Pre Population Problem with FormBean - Urgent Hi, In my application in Action Class

Pre Population Problem with FormBean - Urgent

2003-02-02 Thread ashokd
Hi, In my application in Action Class we are setting FormBean values for next screen. In this scenario first time the values are not pre populating in next screen. If we refreshed the page i.e: the action invoking once again then the values are prepopulating. Scope of the Next FormBean :

Problem in Population of Data with FormBean

2003-01-31 Thread ashokd
Hi, In my application in One Action Class we are setting FormBean values for next screen. In this scenario first time the values are not pre populating in next screen, If we refreshed the page i.e: the action invoking once again then the values are prepopulating. Can any one faced same type of

Problem in Population of Data with FormBean

2003-01-31 Thread ashokd
Hi, In my application in One Action Class we are setting FormBean values for next screen. In this scenario first time the values are not pre populating in next screen, If we refreshed the page i.e: the action invoking once again then the values are prepopulating. Can any one faced same type of

Re: Problem With Multiple ActionServlet - Urgent

2003-01-28 Thread ashokd
PROTECTED] Sent: Tuesday, January 28, 2003 12:21 PM Subject: Re: Problem With Multiple ActionServlet - Urgent On Fri, 25 Jan 2002, ashokd wrote: Date: Fri, 25 Jan 2002 13:26:44 +0530 From: ashokd [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

Problem with Custom ActionServlet

2003-01-27 Thread ashokd
Hi, To implement session expire, I written Custom ActionServlet, which extends the ActionServlet. When action fires it is giving the following error: I am using Struts1.0.2 [02.01.25 01:27:40:012 GMT+05:30] 4f39724f WebGroup X Servlet Error: Unresolved compilation problem:

Problem With Multiple ActionServlet - Urgent

2003-01-27 Thread ashokd
Hi, I defined two ActionServlets, first one is the default ActionServlet and second one is Custom ActionServlet. The purpose of Custom ActionServlet is to redirect login page when the user name is not in session. For loginpage action we need to call the default ActionServlet. Default

Re: Help in Checkbox

2003-01-22 Thread ashokd
Hi, I think below code will help you to retrieve from values in action class. if (form instanceof LoginForm) { LoginForm theForm = (LoginForm) form; //retrieve the text data String user = theForm.getUser(); //retrieve the file representation String password =

Re: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread ashokd
Hi, By using 1.0.2 also we can use Dynamic Form. For this we need to add some .zar files. I expermented with 1.0.2 Thnaks Regards, Ashok.D - Original Message - From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003

Re: A form with a List

2003-01-15 Thread ashokd
Hi, Use Dynamic Forms for this functionlity. Go to www.keyboardmonkey.com or you can see running examples: http://www.keyboardmonkey.com/StrutMonkey/monkey-action.do and a better one on http://www.keyboardmonkey.com/StrutMonkey/MonkeyStruts_v2.jsp The site has tutorials as well but I would

Re: multiple records editing

2003-01-14 Thread ashokd
Hi Jarnot, I also required to develop the same type of functionlity. You can see the dynamic forms example in below url: http://www.keyboardmonkey.com/StrutMonkey/MonkeyStruts_v2.jsp Only constraint in this, we need to submit large data while submitting the form, I think this became an issue in

Dynamic Forms Problem

2003-01-09 Thread ashokd
MessageHi, In my application the form fields are dynamic. For this functionlity in FormAction class I defined the following code: private final List values = new ArrayList(); public void setValue(int key, Object value) { values.set(key, value); } public Object getValue(int

Acessing Session Scope Form Bean

2003-01-08 Thread ashokd
Hi, How to acess the Session Scope Form Bean in Action (this action related to another form) Class. Thanks in Advance, Ashok.D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: using Log4J

2003-01-08 Thread ashokd
Hi, You write your own class, in that you write a method log(ClassName, PropertiesName,DebugStatement). In that method put the below code: PropertyLocator propertyLocator = new PropertyLocator(PropertiesName); PropertyConfigurator.configure(propertyLocator.getFilePath());

Fw: Acessing Session Scope Form Bean

2003-01-08 Thread ashokd
Hi, How to acess the Session Scope Form Bean values in another Action class(this action related to another form) Class. Thanks in Advance, Ashok.D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Doubt Regarding Form Scope In Struts

2003-01-08 Thread ashokd
Hi, I observed that Form scope is setting at actionMappings (in struts-config.xml). Is their any way to set the scope of the form. Thanks in Advance, Ashok.D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Help needed

2003-01-06 Thread ashokd
MessageHi, If we displayed html:errors tag, All errors will display. If we want appropirate error we would get by using key (errors.add( userName, new ActionError(invalid.login) );) In above example userName is the key to get appropriage error message corresponding. In API we have method on

Problem in using of Tiles with Struts 1.0.2

2003-01-06 Thread ashokd
Hi, I am getting the following exception while starting of the application server. [5/2/02 22:03:18:389 GMT+05:30] 3dd27426 SystemOut U Parse Error at line 2 column 24: Element type component-definitions must be declared. But i defined this in tileDefinitions.xml

URL to Download the tiles-blank-struts1-0.war

2003-01-06 Thread ashokd
Hi, From where I can download the tiles-blank-struts1-0.war . Can any one hlep me in this. Thanks Regards, Ashok.D - Original Message - From: AMIR-TAHMASSEB Marc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 7:44 PM Subject: Multibox and setter problem Hi

Frames with Struts (Multiple Forms Usage in Single Page)

2003-01-06 Thread ashokd
Hi, How can we get different Frames Forms data in Struts. Their is any possibility of using multiple forms in a single page. Thanks in Advance, Ashok.D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

PrePopulation of FormBean Values

2003-01-05 Thread ashokd
Hi, How to propopulate the Form values in a Form (which is using the Struts FormBean) The scope of the FormBean is request. Please provide an example on this. Thanks in Advance, Ashok.D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Tiles with Struts1.0.2

2003-01-04 Thread ashokd
Hi, I have a doubt regarding usage of Tiles in Struts 1.0.2 Shall I use Tiles by using .xml file in Sturtust 1.0.2 ? If yes their is any configuration is needed ? Can I get any example like this. Thanks in Advance for helping me in this. Thanks Regards, Ashok.D -- To unsubscribe, e-mail:

Refresh Problem

2003-01-02 Thread ashokd
Hi, In my application, I has a form, after submitting the form, success page is coming. When I refresh the success page, once again the previous form action is calling. Anyone has an idea about this. I tried in Action class putting some variable as false, even though i getting the same problem.

Dynamic Forms

2003-01-01 Thread ashokd
Hi, In my project, I am displaying all exisiting data in row format, user can update any row(We don't know how many rows will come every time, it depends upon the records exist in database). For this type of project shall I use Struts, If yes how can I create FormBeans for this type of forms.