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 
instances(which is not garbage collected), same thing I observed for Radio Tag 
also.
 
Can any one help to make these objects as garbage 
collected.
 
Pls check the attached screen shot of the 
results.
 
The filled color shows the objects which 
are not Garbage Collected.
 
Thanks & Regards,
Ashok.D
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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 both won't happen, If I get form object from session or request it is 
giving null.

I think some centralized way need to intillize the form in my application (To avoid 
every time checking the form if it is null creating it and puttting in session or 
request).

Any suggestions or lighting on this area.

Thanks & Regards,
Ashok.D

Re: Centralized Way of Acessing the Form Bean

2003-07-03 Thread AshokD
Hi,

I need to acess the other forms in Action class not in jsp page.

I seen just now ActionFormBeans.

I think it may solve my problem. I am testing on that.

Thanks & Regards,
Ashok.D
- Original Message -
From: "Jamie M. Guillemette" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL 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 PROTECTED]>
> Sent: Thursday, July 03, 2003 12:23 PM
> 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 below logic:
>
> LoginForm lLoginForm = (LoginForm )session.getAttribute("formName");
>
> To acess Request Scope component I am using below logic:
>
> NewLoginForm lNewLoginForm =
> (NewLoginForm )request.getAttribute("formName");
>
>
>
> If i change the scope in configuration(strut-config.xml) I need to change
my
> Action classes also (where ever I am acessing the form).
>
> Their is any centralized Way of acessing the Form Bean is their ?
>
> like:
>
> Acessing all beans from request instead of session and request.
>
> Thanks in Advance,
> Ashok.D
>
>
> -
> 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]



Re: Centralized Way of Acessing the Form Bean

2003-07-03 Thread AshokD
Hi,

I am acessing the other form in a action which is not mapped to these forms.

Action1 - > form1
Actrion2 -> form2

I am accessing the form2 in Action1.

Thanks & Regards,
Ashok.D
- Original Message -
From: "Jarnot Voytek Contr AU HQ/SC" <>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 9:51 PM
Subject: RE: Centralized Way of Acessing the Form Bean


> maybe I'm confused about what you're doing, but doesn't your form bean get
> passed in to the execute method for you?
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -Original 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 below logic:
> >
> > LoginForm lLoginForm = (LoginForm )session.getAttribute("formName");
> >
> > To acess Request Scope component I am using below logic:
> >
> > NewLoginForm lNewLoginForm = (NewLoginForm
> > )request.getAttribute("formName");
> >
> >
> >
> > If i change the scope in configuration(strut-config.xml) I
> > need to change my Action classes also (where ever I am
> > acessing the form).
> >
> > Their is any centralized Way of acessing the Form Bean is their ?
> >
> > like:
> >
> > Acessing all beans from request instead of session and request.
> >
> > Thanks in Advance,
> > Ashok.D
> >
>
> -
> 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]



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 )request.getAttribute("formName");



If i change the scope in configuration(strut-config.xml) I need to change my Action 
classes also (where ever I am acessing the form).

Their is any centralized Way of acessing the Form Bean is their ?

like:

Acessing all beans from request instead of session and request.

Thanks in Advance,
Ashok.D

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

2003-07-03 Thread AshokD
Hi Sandeep,

Do you mean that, putting the ArrayList of  ValueObjects( which are
displayed as normal text - not editable like form fields) setting to a
FormBean is preferrable over putting it directly in HTTPSession.


Thanks & Regards,
Ashok.D
- Original Message -
From: "Sandeep Takhar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 12:55 AM
Subject: Re: How the Values will Update in Session List if I Used Nested
Iterator


> I would say the form.
>
> If you don't use the form, you will end up using the
> "name" attribute on all html elements.  I suppose if
> you use nested tag libraries then this wouldn't be
> true though.
>
> Whenever I do anything that involves the html tags for
> editing, I use form properties since it seems logical
> to have it in the form.
>
> Lists of things or possible values does not have to be
> and I like to place these in application scope.
>
> You could have them update to any bean.  A form is
> just a bean in some scope.
>
> If you are using request scope, then make sure that
> the getSomething(int index) which is the api required
> for iterative lists, will initialize the list as well
> since the request scope bean 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 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 of ValueObject(View only)
> > in a page. To display this values I am using Session
> > Variable.
> >
> > I think we can set this list to the form also?
> >
> > Which one is best (putting into a session(or
> > request) or setting to a form).
> >
> >
> >
> > Thanks & Regards,
> > Ashok.D
> >
> >
> >
> >
> >
>
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -
> 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]



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 of ValueObject(View only) in a page. To display this values 
I am using Session Variable.

I think we can set this list to the form also?

Which one is best (putting into a session(or request) or setting to a form).



Thanks & Regards,
Ashok.D






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,
Ashok.D



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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,
Ashok.D


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 com.vm.cart.struts.CartActionServlet -
CartActionServlet: init() : Logging Configuration Setted Sucessfully through
CartActionServlet init method

But I am not able to see any other logs except above log.

I tried with my jsp page. I am getting those logs also.

Another strage thing is I am not able to see any System.out.println also
from Action classes. But I am  able to see the System.out.println s from my
jsp page.

Can any through some light on this problem.

Thanks & Regards,
Ashok.D


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: checkboxproblem


> hi,
>
> In my web application I'm using one form where several checkboxes with
> different names and other textfields are listed. The checkboxes value is
> set to true. My problem is that per default the checkbox should be
> checked but the user has the possibility to uncheck it. In the last case
> the checkbox should be set to false/null but it isn't. It is still true.
> Why? And what can I do to solve this problem?
>
> Thanks for every hint.
> Kristine.
>
>
> -
> 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]



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 converted java file size is 384KB (5500 lines).

Their is any limitation for J2EE container w.r.t jsp size ?

2)
To over come above problem I tried to include as separate jsps (each grid as
separete jsp), It is asking form tag in that jsps.
My requirement is I need to submit 3 Grids at a time when the user Clicks
the update button. Any suggestions on this.

Their is any other way to display the nested:iterator Grids with out using
form tag (like logic:iterator by using id).

Thanks in Advance,
Ashok.D



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 & Regards,
Ashok.D




- Original Message -
From: "Richard Raquepo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 2:00 PM
Subject: i suddenly got this error from nowhere


my app is working just fine but i can't remember anything that might have
cause this error.

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.struts.taglib.tiles.InsertTag.(InsertTag.java:104)
 at _login__jsp._jspService(/login.jsp:5)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
 at com.caucho.jsp.Page.subservice(Page.java:497)
 at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
 at com.caucho.server.http.Invocation.service(Invocation.java:312)
 at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
 at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
 at java.lang.Thread.run(Thread.java:534)

anyone has any idea what this error is about? my struts file are all in my
web-inf/lib directory.

thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 variables 
in ValueObject with appropriate primitive Data types only).

The above decessions are good or any suggestions ??

I am coming to my actual requirement and Doubt


I have a nested:iterate table. (I am displaying some records as nester:iterate texts)

To populate data in nested:iterate table I need to set some ArrayList of Objects.

My doubt is Shall I set these objects as ValueObjects or String Variables ValueObject.

If I kept String Variable ValueObjects as ArrayList of objects: I need to convert all 
ValueObjects into String Variable ValueObjects( this become performance issue).

If I kept ValueObject as ArrayList of objects: Here I will get initilize variables 
problem.


I think every one will face this type of design in their projects, pls help me on this.

String Variables ValueObject:  This means I am putting all variables  in this as 
String only.

Thanks & Regards,
Ashok.

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 addressList.

If I want to identify the value of  the address1 of the 2 nd row how can I do it?


document.formName.addressList[1].address1.value
or
document.formName.addressList.address[1].value

or any other correct syntax.


Thanks & Regards,
Ashok.D



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 when the logs will go into debug and when the logs will go into
normal(according to below configuration).

Code of the XML file(Log4j.xml) is :




http://jakarta.apache.org/log4j/";>

 
  
  
  
 
  
 

 
  
  
  
  
  
 
  
  
   
  
 

 
  
  
  
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 when the logs will go into debug and when the logs will go into 
normal(according to below configuration).

Code of the XML file(Log4j.xml) is :

 


http://jakarta.apache.org/log4j/";>

 
  
  
  
 
  
 

 
  
  
  
  
  
 
  
  
   
  
 

 
  
  
  
 



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 Unavailable


> What would be the typical reasons why I'd get:
>
> HTTP Status 503 - Servlet MyActionServlet is currently unavailable
>
> I have perused my web.xml and struts configuration files till beyond
normal
> patience barriers, and nothing apparent looks wrong.
> I am using Tomcat 4.1.18 and Struts 1.1-RC1.
>
> Gerrit
>
>
>
> -
> 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]



Re: PrePopulation Problem - Urgent

2003-03-20 Thread ashokd
Hi Plessia,

I check in my action class like this

ActionForward myForward = mapping.findForward("contractSucces");
System.out.println("Redirect Sattus: " +myForward.getRedirect());
//this will always return false;
return myForward;

It is printing false always.

Any help on this.

Thanks 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 redirect=false.
>
> Where we need to set redirect=false ?
>
> Thanks in Advance,
> Ashok.D
> - Original Message -
> From: "du Plessis, Corneil C" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, March 20, 2003 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 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 comes to the first page
> > then these values are populating.
> >
> > This problem is coming with Specific IE versions only.
> >
> > After putting cache invalidate tag this problem overcome in some
versions.
> > <%
> >  response.setHeader("Cache-Control","no-cache");
> >  response.setHeader("Pragma","no-cache");
> > %>
> >
> >
> > But still it is their in one Version of  I.E 5.0
> >
> > I taken the form bean values into strings and printing down in jsp page.
> >
> > These values are coming good but not prepopulating.
> >
> > Even though I tried directly assiging these string values to  > .. value="<%=var1 %>".
> >
> > Even though no result.
> >
> > If the user refreshes the pages then these values are populating.
> >
> > If any one faced same type of problem pls let me know the solution or
> causes
> > to this problem.
> >
> > Thanks In Advance,
> > Ashok.D
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > __
> >
> > Disclaimer and confidentiality note
> >
> >
> > Everything in this e-mail and any attachments relating to the official
> business of
> > Standard Bank Group Limited is proprietary to the company. It is
> confidential, legally
> > privileged and protected by law. Standard Bank does not own and endorse
> any other content.
> > Views and opinions are those of the sender unless clearly stated as
being
> that of Standard Bank.
> >
> > The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender
> > immediately if it has unintentionally reached you and do not read,
> disclose or use the content
> > in any way.
> >
> > Standard Bank can not assure that the integrity of this communication
has
> been maintained nor
> > that it is free of errors, virus, interception or interference.
> >
> > __
> >
> > -
> > 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]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PrePopulation Problem - Urgent

2003-03-20 Thread ashokd
Hi Plessia,

Thanks for your reply.
Can please explain about redirect=false.

Where we need to set redirect=false ?

Thanks in Advance,
Ashok.D
- Original Message -
From: "du Plessis, Corneil C" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 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 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 comes to the first page
> then these values are populating.
>
> This problem is coming with Specific IE versions only.
>
> After putting cache invalidate tag this problem overcome in some versions.
> <%
>  response.setHeader("Cache-Control","no-cache");
>  response.setHeader("Pragma","no-cache");
> %>
>
>
> But still it is their in one Version of  I.E 5.0
>
> I taken the form bean values into strings and printing down in jsp page.
>
> These values are coming good but not prepopulating.
>
> Even though I tried directly assiging these string values to  .. value="<%=var1 %>".
>
> Even though no result.
>
> If the user refreshes the pages then these values are populating.
>
> If any one faced same type of problem pls let me know the solution or
causes
> to this problem.
>
> Thanks In Advance,
> Ashok.D
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> __
>
> Disclaimer and confidentiality note
>
>
> Everything in this e-mail and any attachments relating to the official
business of
> Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
> privileged and protected by law. Standard Bank does not own and endorse
any other content.
> Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.
>
> The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
> immediately if it has unintentionally reached you and do not read,
disclose or use the content
> in any way.
>
> Standard Bank can not assure that the integrity of this communication has
been maintained nor
> that it is free of errors, virus, interception or interference.
>
> __
>
> -
> 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]



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 comes to the first page
then these values are populating.

This problem is coming with Specific IE versions only.

After putting cache invalidate tag this problem overcome in some versions.
<%
 response.setHeader("Cache-Control","no-cache");
 response.setHeader("Pragma","no-cache");
%>


But still it is their in one Version of  I.E 5.0

I taken the form bean values into strings and printing down in jsp page.

These values are coming good but not prepopulating.

Even though I tried directly assiging these string values to 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 

For this action I configuration Action and ActionForm classes.

I configured servlet-mappings:

  
  
action
*.go
  


How the ActionForm initilizes if i called login.jsp directly in browser
(http://localhost:8080/myApp/login.jsp)

I think the above request won't go through ActionServlet. I think
ActionServlet will initilizes the ActionForm.

When this ActionServlet intilizes the ActionForm? While form submits or
while loading login.jsp.

If it loads while loading login.jsp how the ActionServlet initialized
ActionForm.



Thanks in Advance,
Ashok.D




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.

If it is not updating setNewMethod() with modified ArrayList.

private ArrayList mMyList = new ArrayList();

 public Object[] getMyList() {
   return mMyList .toArray();
 }
 public ArrayList getNewList() {
  return mMyList ;
 }
 public void setNewList(ArrayList pCList) {
  mMyList =pCList;
 }

Thanks & Regards,
Ashok.D

- Original Message -
From: "Sri Sankaran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 8:06 AM
Subject: RE: Session Problems


> Is the addAddress() method of your PersonForm simply a cover for the
ArrayList's add method?  In other words, is it simply doing
addresses.add(object-to-add)?
>
> Can you test the size of the list in the getter to see if data is indeed
being clobbered?
>
> Sri
>
> -Original Message-
> From: Jonathan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 7:20 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Session Problems
>
>
> The form bean is simply a standard action form, when its created It simply
does the following in the constructor
>
> public PersonForm() {
>
> addresses = new ArrayList(20);
> }
>
> To get the addresses and iterate through them I simply have:
>
> /**
>  * Get Addresses
>  */
> public Object[] getAddresses() {
> return (this.addresses.toArray());
> }
>
> When the second form is submitted the following method is called In the
AddAddressAction via the lookup dispatch action:
>
> public ActionForward addAddress(ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest request,
>HttpServletResponse response)
throws Exception {
>
>
>
> //Check that the token is valid, if it is then reset it
> if(isTokenValid(request)) {
>
> System.out.println("Token is valid, resetting
> the request");
> resetToken(request);
> }
> else {
> System.out.println("Token is invalid");
> }
>
>
> //Get the action form
> PersonForm personForm = (PersonForm)form;
>
> int addressId = (personForm.getNumberOfAddresses() + 1);
>
> System.out.println("New id is " + generatedId);
>
> //Create the question option from the buffered values
> Address address = new Address (generatedId, new String("address"));
>
>
>
>
> //Add the question option to the action form
> personForm.addAddress(address);
>
>
> //Save a token for this request to prevent automatic refreshing
> //from submitting the request again
> System.out.println("Saving the token");
> saveToken(request);
>
> //Now the address has been added return to the add person page
>
> return (mapping.findForward("addPerson"));
> }
>
> The address is added but the next time I try to add an address to old one
Is overwritten..
>
> Jon.
>
>
>
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]
> Sent: 27 February 2003 18:54
> To: Struts Users Mailing List
> Subject: RE: Session Problems
>
> Can you summarize the form bean you are using for the first page?  What
are its properties?  How is the Collection maintained?  How is the bean
being created?
>
> Sri
>
> -Original Message-
> From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 12:01 PM
> To: Struts Users Mailing List
> Subject: Session Problems
>
>
> Hi,
>
> I'm curerntly having problems with sessions in Struts.
>
> I have two JSP's both of which point to the same action.
>
> In my first JSP I have a number of basic properties and a list of
addresses as shown below:
>
> *Name:  Bill Blah
> *Age:  23
>
> * Addresses (list)
> 23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
> 13 Glamorgan Street  |  ER34 6TT  | Edit | Delete
>
> The addresses are simply displayed using a logic:iterate tag.
>
> I also supply a link on this page to add an address in a seperate page,
this JSP allows a user to add an address to the list in the first page.
> When the page is submitted it is simply added to in the actionform.
>
> Once I've entered the new address using this second page I'm returned tot
he first page where the new address is shown in the list of addresses. the
problem I have is that when I add a second address it removes the first
address and only the second address is shown here as:
>
> * Addresses (list)
> 13 Glamorgan Street  |  ER34 6TT  | Edit | Delete
>
> instead of
>
> * Addresses (list)
> 23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
> 13 Glamorgan Street  |  ER34 6TT  | Edit | Delete
>
> I'm assuming this is a problem with the session, could somebody please
explain to me why this happening.  I have set the scope to session for both
JSP pages and both JSP pages use the same action form so why is 

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 PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 9:29 AM
Subject: Is struts-config too verbose?


> Looking at struts-config i see an inflexible application skeleton that
makes it hard for me to do somethings, or maybe I dont know how the Struts
way is...Can someone enlighten me please?
>
> I have a Contact form.  I want to be able to reuse this contact form,
which has standard information such as name, address, etc, in several places
in my application.
>
> Looking at how action mappings work and all, the form's action field is
constant.. Therefore, if i have this:
>
> 
> 
> 
>
> in my jsp:
>
> 
> 
>
> THen inside my action class I have the code to process the form, and
forward to the "success" forward.
>
> The problem i see here is, this contact form will always be processed by
the same action servlet, and forwarded to the same forward.  What If I had
several different scenarios that needed to edit/view the contact data, maybe
even Different contact data such as User Contact, Customer Contact, etc.  So
that means that the "save" functionality might be different, and the next
page, the "results" might be different.
>
> Im befuddled how to handle this elegantly.  I want to reuse my views.
That should be simple shouldnt it?  I think im missing something.
>
>
> Thanks in advance.
>
>
> Regards,
> Mark
>
>
>
> -
> 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]



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)

Same error I got when I added some get/set methods to ActionForm and
included in jsp.


The following is the Exception Message.


 java.lang.NumberFormatException: C
  at java.lang.Integer.parseInt(Integer.java(Compiled Code))
  at java.lang.Integer.parseInt(Integer.java(Compiled Code))
  at
 org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:472)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
 at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:244)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:261)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
   at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
   at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
   at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
  at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
>
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
>
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
>
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
>
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
>
>  at
>
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
>
>  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
>  at
> com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
>  at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
>
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
>
>  at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
>
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
>
>  at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
>
>  at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
>
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
>
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
>
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
>
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
>
>  at
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
>
>  at
>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:184)
>
>  at
>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
>
>  at
>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
>
>  at
>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:125)
>
>  at
>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
>
>  at
>
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
>
>  at
>
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
>
>  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
>  at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)


Thanks & Regards,
Ashok.D


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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)

Same error I got when I added some get/set methods to ActionForm and included in jsp.


The following is the Exception Message.


 java.lang.NumberFormatException: C
  at java.lang.Integer.parseInt(Integer.java(Compiled Code))
  at java.lang.Integer.parseInt(Integer.java(Compiled Code))
  at
 org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:472)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
 at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:244)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
   at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
   at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
   at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
  at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
 at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
> 
>  at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
> 
>  at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
> 
>  at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
> 
>  at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
> 
>  at
> org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
> 
>  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
>  at
> com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
>  at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
> 
>  at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
> 
>  at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
> 
>  at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
> 
>  at
> com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
> 
>  at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
> 
>  at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
> 
>  at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
> 
>  at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
> 
>  at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
> 
>  at
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
> 
>  at
> com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
> 
>  at
> com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
> 
>  at
> com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
> 
>  at
> com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
> 
>  at
> com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
> 
>  at
> com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
> 
>  at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
> 
>  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
>  at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)


Thanks & Regards,
Ashok.D

Re: 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:  and ArrayList question


> 
> Hi,
> 
> I can't find how to do my job :
> 
> If in my FormActionBean I got an attributs
> who represent an ArrayList of elements
> how to retrieve it correctly into my view ?
> 
> For exemple I got in my action form bean :
> 
> private ArrayList foos;
> 
> private String foo;
> 
> public ArrayList getFoos ()  {
>return foos;
> }
> 
> public void setFoos (ArrayList foos) {
>   this.foos = foos;
> }
> 
> public String getFoo () {
>return foo;
> }
> 
> public void setFoo (String foo) {
> 
> }  
> 
> and then in my view : 
> 
> 
> 
> 
> 
> 
> 
> When I run it I got an error message
> who say Cannot find bean under name foos. 
> Any idea ??
> 
> Thanks for your help.
> <--
> Alexandre Jaquet
> ->
> 
> 
> 
> -
> 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]




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  in "parent.jsp" it is giving
null pointer exception (I am not put any  tag in  inner.jsp page,
but I kept  in "parent.jsp").

 When I kept  in "inner.jsp" then it is
working fine.

 I have three this type of frames. User can update any field in any
.

 Why  is checking from field in "inner.jsp"
it is their in "parent.jsp"?

 Thanks & Regards,
 Ashok.D


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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  it is giving null pointer
exception (I am not put any  tag).

When I kept  then it is working fine.

I have three this type of frames. User can update any field in any .

Why  is checking from field?

Thanks & Regards,
Ashok.D



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Nested Tags Problem .... Urgent

2003-02-11 Thread ashokd
Hi Chen,.

Thanks for your observations.
It helped me a lot and saved my time in debugging.
Your observation is correct and it solved my problem

Thanks & Regards,
Ashok.D
- Original Message -
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 2:30 AM
Subject: RE: Nested Tags Problem  Urgent


> not name .. property
>
> name: The name of the JSP bean containing the collection to be iterated
(if
> property is not specified), or the JSP bean whose property getter returns
> the collection to be iterated (if property 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:
>
> 
>
> -Original Message-
> From: ashokd [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 02, 2002 1:00 PM
> To: Struts Users Mailing List; Martin Gross
> Subject: Nested Tags Problem  Urgent
>
>
> 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) {
> this.mFormList = pFormList
> }
>
> This ArrayList contian the ValueObjects.
>
> I am getting the instance of ActionForm in another Action Class and
setting
> this variable (which is invoked before loading this page).
>
> Code in Action class:
> MyVO controlVO1 = new MyVO("600","10","100
> O","10","1","2/5/1998","12/31/"," ");
> MyVO controlVO1 = new MyVO("600","10","100
> O","10","1","2/5/1998","12/31/"," ");
> ArrayList alControl = new ArrayList();
>
> TestForm testForm =
> (TestForm)aRequest.getSession().getAttribute("testForm");
> if(testForm == null) {
>testForm = new TestForm();
>   }
>   testForm .setMyFormList(alControl)
>
>
> 
> JSP
> -
>
> 
>
>
> I am getting the follwoing exception any suggestions.
>
> Error Message:
> Error Code: 500
> Target Servlet: null
> Error Stack:
> java.lang.NullPointerException
>  at
>
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
> dPropertyHelper.java:159)
>  at
>
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
> dPropertyHelper.java:195)
>  at
>
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
> tedPropertyHelper.java:242)
>  at
>
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
> ateTag.java:115)
>  at
>
wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
> pondence_0005fpage_jsp_7.java:113)
>  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:300)
>  at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
>  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java:827)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServlet.java:167)
>  at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.java:297)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
> Servlet.java:110)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
> 2)
>  at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
> ager.java:1012)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
> er.java:913)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
> ebAppRequestDispatcher.java:523)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
> Dispatcher.java:282)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
> ispatcher.java:112)
>  at
>
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
>

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) {
> this.mFormList = pFormList
> }
>
> This ArrayList contian the ValueObjects.
>
> I am getting the instance of ActionForm in another Action Class and
setting
> this variable (which is invoked before loading this page).
>
> Code in Action class:
> MyVO controlVO1 = new MyVO("600","10","100
> O","10","1","2/5/1998","12/31/"," ");
> MyVO controlVO1 = new MyVO("600","10","100
> O","10","1","2/5/1998","12/31/"," ");
> ArrayList alControl = new ArrayList();
>
> TestForm testForm =
> (TestForm)aRequest.getSession().getAttribute("testForm");
> if(testForm == null) {
>testForm = new TestForm();
>   }
>   testForm .setMyFormList(alControl)
>
>
> 
> JSP
> -
>
> 
>
>
> I am getting the follwoing exception any suggestions.
>
> Error Message:
> Error Code: 500
> Target Servlet: null
> Error Stack:
> java.lang.NullPointerException
>  at
>
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
> dPropertyHelper.java:159)
>  at
>
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
> dPropertyHelper.java:195)
>  at
>
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
> tedPropertyHelper.java:242)
>  at
>
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
> ateTag.java:115)
>  at
>
wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
> pondence_0005fpage_jsp_7.java:113)
>  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:300)
>  at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
>  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java:827)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServlet.java:167)
>  at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.java:297)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
> Servlet.java:110)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
> 2)
>  at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
> ager.java:1012)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
> er.java:913)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
> ebAppRequestDispatcher.java:523)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
> Dispatcher.java:282)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
> ispatcher.java:112)
>  at
>
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
> va:1759)
>  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
>  at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
>  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java:827)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServlet.java:167)
>  at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.java:297)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
> Servlet.java:110)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
> 2)
>  at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
> ager.java:1012)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
> er.java:913)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
> ebAppRequestDispatcher.java:523)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
> Dispatcher.java:282)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
> ispatcher.java:112)
>  at
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
>  at
>
com.ibm.servlet.engi

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) {
this.mFormList = pFormList
}

This ArrayList contian the ValueObjects.

I am getting the instance of ActionForm in another Action Class and setting
this variable (which is invoked before loading this page).

Code in Action class:
MyVO controlVO1 = new MyVO("600","10","100
O","10","1","2/5/1998","12/31/"," ");
MyVO controlVO1 = new MyVO("600","10","100
O","10","1","2/5/1998","12/31/"," ");
ArrayList alControl = new ArrayList();

TestForm testForm =
(TestForm)aRequest.getSession().getAttribute("testForm");
if(testForm == null) {
   testForm = new TestForm();
  }
  testForm .setMyFormList(alControl)



JSP
-




I am getting the follwoing exception any suggestions.

Error Message:
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NullPointerException
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:159)
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:195)
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
tedPropertyHelper.java:242)
 at
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
ateTag.java:115)
 at
wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
pondence_0005fpage_jsp_7.java:113)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:184)
 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
 at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
  

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]
For additional commands, e-mail: [EMAIL PROTECTED]




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 can help on this.

Thanks & Regards,
Ashok.D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 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);
bunchList.put("1",test1);
bunchList.put("2",test1);

request.setAttribute("bunchList",bunchList);
%>

 
 
  
    
    
    
  
 


Thanks & Regards,
Ashok.D



- Original Message -
From: "George Jacob" <[EMAIL PROTECTED]>
To: "Struts UserForm" <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 10:00 AM
Subject: bean:write problem


Hi all.

How we can write a value in JspWriter using bean:write tag which is
embedded in an object that stored in a Vector. The vector is iterated by a
logic:iterate tag. Pls help..


George


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Iterating ValueObjects by using logic:iterate - Urgent

2003-02-05 Thread ashokd
Hi Bernhard,

Thanks for your mail.

The below example is worked by using Hastable and logic:iterate combination.

<%

  java.util.Hashtable bunchList = new java.util.Hashtable();
  com.km.struts.tutorial.TestBean test1 = new
com.km.struts.tutorial.TestBean();
bunchList.put("0",test1);
bunchList.put("1",test1);
bunchList.put("2",test1);

request.setAttribute("bunchList",bunchList);
%>

 
 
  
    
    
    
  
 


I forwarding this, if any one faces same problem, 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, a Hashtable is not a Collection, so this can't work. You may use a
> HashSet or something.
>
> See http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
for
> the syntax.
>
> Regards,
> Bernhard
>
>
> -Ursprüngliche Nachricht-
> Von: ashokd [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 30. Januar 2002 11:42
> An: Struts Users Mailing List
> Betreff: Iterating ValueObjects by using logic:iterate - Urgent
>
>
> 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 com.km.struts.tutorial.TestBean());
> bunchList.add(new com.km.struts.tutorial.TestBean());
>
> request.setAttribute("bunchList",bunchList);
> %>
>
>
>  
>type="com.km.struts.tutorial.TestBean" />
>   
> property="testSize" /> 
> property="testWeight" /> 
> property="testTaste" /> 
>   
>  
>
>
> But I want to display Hashtable (which contains some keys and values are
> ValueObjects). I tried like this it is giving follwing error.
>
> WebGroup  X Servlet Error: java.util.Hashtable$Entry:
> java.lang.ClassCastException: java.util.Hashtable$Entry
>
> Code for Above Error is:
>
> <%
>java.util.Hashtbale bunchList = new java.util.Hashtable();
> bunchList.put("1",new com.km.struts.tutorial.TestBean());
> bunchList.put("2",new com.km.struts.tutorial.TestBean());
> bunchList.put("3",new com.km.struts.tutorial.TestBean());
>
> request.setAttribute("bunchList",bunchList);
> %>
>
> Any Suggestions on this please.
>
> Thanks in Advance,
> Ashok.D
>
>
> -
> 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]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 || loginName.equals("")){
 response.sendRedirect("Login.jsp");
 return;
}

%>

Don't put this code for login page.


Thanks & Regards,
Ashok.D


- Original Message -
From: "Sundar Narasimhan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 7:13 PM
Subject: Re: session timeout not working anymore :(


> >Best Suggestion is:
> >
> >1)Over Ride ActionServlet and place session expire code(redirect login
page
> >or some other stuff). This will work for if the user clicks any buttons,
> >action events.
> >
> >2) Now we need to handle page refreshes (i.e JSPs)
> >
> >write a simple jsp, which consist simple logic check session, if session
is
> >null redirect to login page or some stuff.
> >Include this jsp, where ever you required.
> But Ashok -- this is exactly what we have. What do you do if
> request.getSession(false)
> does NOT return null as advertised when the session has actually
> expired? I don't think moving the logic elsewhere will help, and I
> don't really care that much about re-factoring etc.
>
> In short, I think this is a bug! and I'd be happy to hear how you've
> solved it if you've experienced it.
>
> Thanks.
>
> -
> 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]




Re: Action Forwarding within Frames

2003-02-05 Thread ashokd
Hi,

In bottom frame  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 and each frame refers to its own
> action. I want to forward from the bottom frame
> to another jsp which contains no frames. How can i set the target for the
> next view... at the moment when i forward to a global forward it appear in
> the bottom frame. Whats the cleanest way to forward in a case like this
> using struts??
>
> Any ideas???
>
>
>
>
>
>
> _
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> -
> 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]




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 com.km.struts.tutorial.TestBean());
bunchList.add(new com.km.struts.tutorial.TestBean());

request.setAttribute("bunchList",bunchList);
%>


 
  
  
    
    
    
  
 


But I want to display Hashtable (which contains some keys and values are
ValueObjects). I tried like this it is giving follwing error.

WebGroup  X Servlet Error: java.util.Hashtable$Entry:
java.lang.ClassCastException: java.util.Hashtable$Entry

Code for Above Error is:

<%
   java.util.Hashtbale bunchList = new java.util.Hashtable();
bunchList.put("1",new com.km.struts.tutorial.TestBean());
bunchList.put("2",new com.km.struts.tutorial.TestBean());
bunchList.put("3",new com.km.struts.tutorial.TestBean());

request.setAttribute("bunchList",bunchList);
%>

Any Suggestions on this please.

Thanks in Advance,
Ashok.D


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 some other stuff). This will work for if the user clicks any buttons,
action events.

2) Now we need to handle page refreshes (i.e JSPs)

write a simple jsp, which consist simple logic check session, if session is
null redirect to login page or some stuff.
Include this jsp, where ever you required.

Thanks & Regards,
Ashok.D
VisualSoft Technoligies,
Hyderabad,
INDIA.



- Original Message -
From: "Sundar Narasimhan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 10:28 AM
Subject: Re: session timeout not working anymore :(


> >You should take this opportunity to refactor your session timeout
> >functionality.
> >
> >Extend the Struts RequestProcessor (or the TilesRequestProcessor) to
include
> >your session check and forward. Take logic out of your JSPs : )
> Ok.. I don't see either of these in 1.0. Next suggestion please?
>
>
>
> -
> 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]




Re: Pre Population Problem with FormBean - Urgent

2003-02-03 Thread ashokd
Hi Fattahi,

I tried your sample java code in my jsp page. It is giving the following
output

I think the values are setting property in action class. but not displaying
form.

unitVO:
 com.vstl.wspr.WSPRUnitSelectionForm@70d90046

userId:
WUKD82

org.apache.struts.action.LOCALE:
en_US

unitselForm:
com.vstl.wspr.WSPRUnitSelectionForm@66498046

userType:
staff UserType:

C loginForm:
com.vstl.wspr.WSPRLoginForm@4a384046

Thanks & Regards,
Ashok.D


- Original Message -
From: "Alireza Fattahi" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 4:02 PM
Subject: RE: Pre Population Problem with FormBean - Urgent


> Little guide line: try to minimize the scope of the error, hope use full.
>
> Try this could on you second page, to see what values are actually in
> session:
> <%
> Enumeration enmAttributeNames;
> String strAttributeName;
> Object objAttributeValue;
>
> request.getSession(true);
>
> enmAttributeNames = session.getAttributeNames();
> while (enmAttributeNames.hasMoreElements())
> {
>   out.println("");
>   strAttributeName = (String) enmAttributeNames.nextElement();
>   out.print("" + strAttributeName + ":" );
>   objAttributeValue =  session.getAttribute(strAttributeName);
>   out.println("" + objAttributeValue + " ");
>   out.println("");
>
>
> }
> %>
>
> If the values are in session then it is tag problems, don't do any thing
> with action.
> Else the value is not actually in session so the tags ca not show them
(fix
> 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 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 : Session
>
>  Code in Action class:
>
>  TestForm unitForm =
>  (TestForm)aRequest.getSession().getAttribute("unitselForm");
>  if(unitForm == null){
>   unitForm = new TestForm( );
>  }
>unitForm.setUnit("2");
> unitForm.setUserId("Ashok");
>
>
>
>  Thanks in Advance,
>  Ashok.D
>
>
>
> -
> 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]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 : Session

 Code in Action class:

 TestForm unitForm =
 (TestForm)aRequest.getSession().getAttribute("unitselForm");
 if(unitForm == null){
  unitForm = new TestForm( );
 }
   unitForm.setUnit("2");
unitForm.setUserId("Ashok");



 Thanks in Advance,
 Ashok.D



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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?

Scope of the Next Screen : Session

Code in Action class:

TestForm unitForm =
(TestForm)aRequest.getSession().getAttribute("unitselForm");
if(unitForm == null){
 unitForm = new TestForm( );
}
  unitForm.setUnit("2");
   unitForm.setUserId("Ashok");



Thanks in Advance,
Ashok.D


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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?

Scope of the Next Screen : Session

Code in Action class:

TestForm unitForm = (TestForm)aRequest.getSession().getAttribute("unitselForm");
if(unitForm == null){
 unitForm = new TestForm( ); 
}
  unitForm.setUnit("2");
   unitForm.setUserId("Ashok");



Thanks in Advance,
Ashok.D


Re: Problem With Multiple ActionServlet - Urgent

2003-01-28 Thread ashokd
Hi Craig,

Thanks for your reply.

Your reply saved a lot of time.

Where can I get Struts Documentation on this topic.

Thanks & Regards,
Ashok.D

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Cc: "'Jacob Hookom'" <[EMAIL 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 Mailing List <[EMAIL PROTECTED]>,
> >  'Jacob Hookom' <[EMAIL PROTECTED]>
> > Subject: Problem With Multiple ActionServlet - Urgent
> >
> > Hi,
> >
> > I defined two ActionServlets, first one is the default ActionServlet and
> > second one is Custom ActionServlet.
> >
>
> As the Struts documentation will tell you, multiple controller servlets is
> not a supported configuration.  It's going to cause you nothing but grief,
> because the code in ActionServlet assumes that it is a singleton.
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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 ActionServlet is mapped to *.do

Custom ActionServlet is mapped to *.go

Problem:

In login page action we given 



but it is coming 



I think this text will be replaced by struts frame work in login page.

Where we need to configure to get




web.xml:


  
action
org.apache.struts.action.ActionServlet  

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  

  
newaction
com.vstl.wspr.WSPRActionServlet   

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  
  

  
 action
 *.do
  

  
 newaction
 *.go
  










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:
 Type mismatch: cannot convert from java.lang.Object to java.lang.String
: java.lang.Error: Unresolved compilation problem:
 Type mismatch: cannot convert from java.lang.Object to java.lang.String

 at java.lang.reflect.Constructor.newInstance(Native Method)
 at
org.apache.struts.action.WSPRActionServlet.process(WSPRActionServlet.java:49
)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:159)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:286)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:106)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:499)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:278)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:105)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:123)
 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:122)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
 at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
 at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)



Thanks in Advance,
Ashok.D


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 = theForm.getPassword();

HttpSession session = request.getSession();

if (!user.equals(password)) {
 return mapping.findForward("failure");
}
else if (!user.equals("wisper")) {
 session.setAttribute("username", user);
 return mapping.findForward("userpage");
}
else
 return mapping.findForward("adminpage");
  }

Thanks & Regards,
Ashok.D
- Original Message -
From: "Tapas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 6:56 PM
Subject: Help in Checkbox


> Hi All,
>  I am using Struts since last 6 months.
>  Right now, I am Facing 2 problems which is described
> below.
>
> 1. In a single page, I am using two form i.e. A
> company form(to add new company) and below that a
> department form.
>
> I would like to  add new record to the database and
> for that in the department form I would like to have
> the value of some textboxes of company form. This is
> very easily solved by using ASP/JSP. But using struts
> I don't know how to retrieve the form's value.
>
> 2. In a form I am showing a list of values(a
> checkbox,company's name,url and phone number).
>Below the list, a delete button is ther and when I
> have to press delete button, all the values those are
> been checked should be deleted from the database.
>
> Thanks in advance.Hoping for a quick response from you
> guys.
>
> With regards
> Tapas
>
>
>
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 suggest download the example and
go through the code. It is really very simple and easy to implement and
enhance.

Hope this helps
- Original Message -
From: "João Paulo Batistella" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 7:04 PM
Subject: A form with a List


>
> Hi!
>
> I have the following situation:
>
> One form that have 20 lines of professionals. The problem is how to get
the 20 professionals using only one form? Can I have a collection (or List)
as an attribute of a Form?
>
> The number 20 is dynamic. It could bem 20, 30 or more.
>
> Thanks,
>
> Joao Paulo.
>
>
>
> -
> Busca Yahoo!
> O melhor lugar para encontrar tudo o que você procura na Internet


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 3:03 AM
Subject: RE: Need Dynamic Form Beans feature for Struts1.0.2


>
>
> Thanks, Craig, I got to trust you :-)
>
> Saul
>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 4:13 PM
> To: Struts Users Mailing List
> Subject: Re: Need Dynamic Form Beans feature for Struts1.0.2
>
>
>
>
>
>
>
> On Wed, 8 Jan 2003, Yuan, Saul (TOR-ML) wrote:
>
> > Date: Wed, 8 Jan 2003 15:55:29 -0500
> > From: "Yuan, Saul (TOR-ML)" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Need Dynamic Form Beans feature for Struts1.0.2
> >
> > Hi,
> >
> >
> >
> > We really need the Dynamic Form Beans feature in Struts1.1, but we're
> > stuck with Struts1.0.2, just wondering what's the best way to add that
> > feature to Struts1.0.2? Or any existing samples out there?
> >
>
> (1) Upgrade to 1.1 -- the easy way :-)
> (2) Go make about 1000 lines worth of code changes
> to the o.a.s.u.BeanUtils and o.a.s.u.PropertyUtils
> classes, along with changes to most of the tags,
> to implement it yourself.
>
> In short, it is not really very practical.
>
> >
> >
> > Thanks in advance,
> >
> >
> >
> > Saul
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 web based.

Let me know your thoughs also on this.

I tried same example in my system. If you have any doubts share with me.

Thanks & Regards,
Ashok.D



- Original Message -
From: "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 10:40 AM
Subject: multiple records editing


> I'm sure this has been answered and discussed before, but the list
archives
> do no appear to be searchable.
>
> Here's what I need to do: the user would like to edit 10 (or so) records
at
> a time.  My plan is to provide ten rows of input fields on the page.  Each
> row would contain the input fields that correspond to a particular record.
>
> I'd love to see an example of how to accomplish this, specifically what to
> do in the form bean and what to do in the jsp.
>
> Thanks,
> Voytek Jarnot
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 key) {
return values.get(key);
}


How to define these controls in JSP page?


I defined like below:

<% for (int i=0; i<10; i++) {
String name = "value(" + i + ")";
%>

<%
}
%>


But it is throwing exception:

No getter method for property value(0) of bean 
org.apache.struts.taglib.html.BEAN: javax.servlet.jsp.JspException: No getter method 
for property value(0) of bean org.apache.struts.taglib.html.BEAN

Can any one help on this (How to set in JSP page)

Thanks in Advace,

Ashok.D




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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());
logger = Logger.getLogger(ClassName);

Then depeding upon type of message (DEBUG, INFO,WARN,ERROR...)

debug(DebugStatement);
info(DebugStatement)
warn(DebugStatement)
error(DebugStatement)

I given the rough idea, you can custamize it according to your requirement.
You can enhance also...(like PropertiesName you can put as a Final Variable
in that class like that)

Thanks & Regards,
Ashok.D


- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 10:32 AM
Subject: Re: using Log4J


> Hi
> i am using the Jboss its having in built log4j. if i use the
> common-logging then there won't be any prob. if i can use where do i
> need to place the common-loggin.jar. beacuse i need to logging in the
> entitybeans also
>
> Thanks
> usha
> [EMAIL PROTECTED] wrote:
>
> >So having a wrapper around my log4j won't reduce the performance?
> >
> >Regards,
> >
> >
> >PQ
> >
> >"This Guy Thinks He Knows Everything"
> >"This Guy Thinks He Knows What He Is Doing"
> >
> >-Original Message-
> >From: Karl Baum [mailto:[EMAIL PROTECTED]]
> >Sent: January 7, 2003 11:12 AM
> >To: Struts Users Mailing List
> >Subject: Re: using Log4J
> >
> >The main benefit is that you are not pinning the user of your package to
a
> >specific Logger.  By editing configurations or implementing some
interfaces,
> >commons logging can wrap almost any Logging utility.
> >
> >
> >- Original Message -
> >From: <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, January 07, 2003 9:56 AM
> >Subject: RE: using Log4J
> >
> >
> >
> >
> >>What's the benefit of using commons-logging if I have log4j setup and
> >>working?
> >>
> >>Regards,
> >>
> >>
> >>PQ
> >>
> >>"This Guy Thinks He Knows Everything"
> >>"This Guy Thinks He Knows What He Is Doing"
> >>
> >>-Original Message-
> >>From: Dan Tran [mailto:[EMAIL PROTECTED]]
> >>Sent: January 7, 2003 1:43 AM
> >>To: Struts Users Mailing List
> >>Subject: Re: using Log4J
> >>
> >>Struts source code uses common-logging interface which will use log4j
> >>implementation if you place log4j.properties in the classpath.
> >>
> >>So take a look at the source.
> >>
> >>-D
> >>
> >>
> >>- Original Message -
> >>From: "usha" <[EMAIL PROTECTED]>
> >>To: <[EMAIL PROTECTED]>
> >>Sent: Monday, January 06, 2003 9:00 PM
> >>Subject: using Log4J
> >>
> >>
> >>
> >>
> >>>Hi
> >>>
> >>>can anybody tell me how where i can get the examples using LOG4J in
> >>>
> >>>
> >>struts.
> >>
> >>
> >>>thanks
> >>>usha
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>>
> >>>
> >>
> >>
> >>
> >>>For additional commands, e-mail:
> >>>
> >>>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> >>For additional commands, e-mail:
> >>
> >>
> >>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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 everybody (and happy new year :-)
>
> I have a jsp page with multibox. When i check some boxes and submit the
> form, then setter of my form is never used ! So i can not get the selected
> values, Can anybody help me please ?
> I'm using Struts 1.02
>
> thanks for you help,
>
> Marc
>
> Here are my codes :
>
>
> ___struts-config.xml :
> ...
>   
>   type="cus.baza.action.ExportUtilsForm"/>
>  ...
>   
> 
>   
>  
>  ...
>   
> ...
>   
>type="cus.baza.action.RealiserExportUtilAction"
> name="exportUtilsForm"
> scope="request"/>
>   ...
>   
> ...
>
>
> ___JSP : choix_export_util.jsp:
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld"prefix="logic" %>
> ...
>  type="cus.baza.action.ExportUtilsForm">
> ...
>  
>
>  
>
>  
>
>  
>  
>
>  
> ...
> 
>
> ___ActionForm: ExportUtilsForm.java :
>
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionMapping;
> import javax.servlet.http.HttpServletRequest;
>
> public class ExportUtilsForm extends ActionForm {
>
> protected String[] selectedAnnuaires = new String[0]; //{"REF"};
> protected String[] annuaires = {"REF", "SIGAGIP", "NT",  "EXCHANGE",
> "INMS", "TEL", "ORACLE"};
> public String[] getSelectedAnnuaires() {
> return selectedAnnuaires;
> }
>
> public void setSelectedAnnuaires(String[] selectedAnnuaires) {
> System.out.println("->
> ExportUtilsForm.setSelectedAnnuaires(selectedAnnuaires)");
> this.selectedAnnuaires = selectedAnnuaires;
> }
>
> public String[] getAnnuaires() {
> return annuaires;
> }
>
> public void setAnnuaires(String[] annuaires) {
> this.annuaires=annuaires;
> }
>
> public void reset(ActionMapping mapping, HttpServletRequest request) {
>selectedAnnuaires = new String[0];
>annuaires = new String[] {"REF", "SIGAGIP", "NT", "EXCHANGE",
"INMS",
> "TEL", "ORACLE"};
> }
>
>
> ___Perfom :
>  String[] selectedAnnuaires = form.getSelectedAnnuaires();
>  for (int i=0; i  System.out.println("\t\t"+i+" : "+selectedAnnuaires[i]); // Here i
> obtain a zero for the length of the array
>  }
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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"


action
org.apache.struts.tiles.ActionComponentServlet

definitions-config
/WEB-INF/tileDefinitions.xml


  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml

 


Please help if any one faced the same type of problem.

The below is the logs for this exception.


[5/2/02 22:03:16:777 GMT+05:30] 3dd27426 SystemOut U Set 
org.apache.struts.action.ActionMapping properties
[5/2/02 22:03:16:777 GMT+05:30] 3dd27426 SystemOut U Call 
org.apache.struts.tiles.ActionComponentServlet.addMapping(ActionMapping[path=/admin/removeMapping,
 type=org.apache.struts.actions.RemoveMappingAction])
[5/2/02 22:03:16:797 GMT+05:30] 3dd27426 SystemOut U Pop 
org.apache.struts.action.ActionMapping
[5/2/02 22:03:16:837 GMT+05:30] 3dd27426 SystemOut U register('-//Apache Software 
Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/D:/Program 
Files/IBM/Application Developer Integration 
Edition/workspace/wsadWebProject/webApplication/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
[5/2/02 22:03:16:837 GMT+05:30] 3dd27426 SystemOut U register('-//Sun 
Microsystems, Inc.//DTD Web Application 2.2//EN', 'jar:file:/D:/Program 
Files/IBM/Application Developer Integration 
Edition/workspace/wsadWebProject/webApplication/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
[5/2/02 22:03:16:847 GMT+05:30] 3dd27426 SystemOut U register('-//Sun 
Microsystems, Inc.//DTD Web Application 2.3//EN', 'jar:file:/D:/Program 
Files/IBM/Application Developer Integration 
Edition/workspace/wsadWebProject/webApplication/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
[5/2/02 22:03:16:867 GMT+05:30] 3dd27426 SystemOut U resolveEntity('-//Sun 
Microsystems, Inc.//DTD Web Application 2.2//EN', 
'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd')
[5/2/02 22:03:16:897 GMT+05:30] 3dd27426 SystemOut U  Resolving to alternate DTD 
'jar:file:/D:/Program Files/IBM/Application Developer Integration 
Edition/workspace/wsadWebProject/webApplication/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
[5/2/02 22:03:17:257 GMT+05:30] 3dd27426 SystemOut U Call 
org.apache.struts.tiles.ActionComponentServlet.addServletMapping(action/java.lang.String,*.go/java.lang.String)
[5/2/02 22:03:17:257 GMT+05:30] 3dd27426 WebGroup  I SRVE0091I: [Servlet LOG]: 
action: Process servletName=action, urlPattern=*.go
[5/2/02 22:03:17:267 GMT+05:30] 3dd27426 WebGroup  I SRVE0091I: [Servlet LOG]: 
action: Mapping for servlet 'action' = '*.go'
[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.
[5/2/02 22:03:18:389 GMT+05:30] 3dd27426 SystemOut U 
org.xml.sax.SAXParseException: Element type "component-definitions" must be declared.
[5/2/02 22:03:18:389 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
[5/2/02 22:03:18:399 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1737)
[5/2/02 22:03:18:409 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:3552)
[5/2/02 22:03:18:409 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1159)
[5/2/02 22:03:18:419 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:938)
[5/2/02 22:03:18:459 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
[5/2/02 22:03:18:459 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
[5/2/02 22:03:18:459 GMT+05:30] 3dd27426 SystemOut U  at 
javax.xml.parsers.SAXParser.parse(SAXParser.java:379)
[5/2/02 22:03:18:469 GMT+05:30] 3dd27426 SystemOut U  at 
javax.xml.parsers.SAXParser.parse(SAXParser.java:191)
[5/2/02 22:03:18:509 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.commons.digester.Digester.parse(Digester.java:859)
[5/2/02 22:03:18:509 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:355)
[5/2/02 22:03:18:509 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:527)
[5/2/02 22:03:18:519 GMT+05:30] 3dd27426 SystemOut U  at 
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.p

Re: Help needed

2003-01-06 Thread ashokd
MessageHi,

If we displayed  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 ActionError class, to get this.

Thanks & Regards,
Ashok.D
  - Original Message - 
  From: C.Bhaskaran 
  To: 'Struts Users Mailing List' ; [EMAIL PROTECTED] 
  Sent: Monday, January 06, 2003 4:42 PM
  Subject: RE: Help needed


  put  tag
-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 06, 2003 4:30 PM
To: [EMAIL PROTECTED]
Subject: Help needed


Hi,

I have a login page. If the login fails, I want to show the errors next to the 
specific field (if username is wrong, the error is shown next to username field, etc.) 
I am using programmatic exception handling.

try {
service.authenticate(userName, password) ;
} catch (InvalidLoginException ile) {
  
  System.out.println("adding action errors in action class") ;
  
  ActionErrors errors = new ActionErrors();
  errors.add( "userName", new ActionError("invalid.login") );
  saveErrors( request, errors );
  
  return mapping.findForward("Failure") ;
}

How should I access these errors in my JSP to show the errors?

Thanks,
Suresh


--


  --
  To unsubscribe, e-mail:   
  For additional commands, e-mail: 



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:   
For additional commands, e-mail: 




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:   
For additional commands, 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.

Thanks in Advance in resolving this problem.

Thanks & Regards,
Ashok.D




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.

Please give your suggestion on this.

Thanks & Regards,
Ashok.D