Turning logging off

2004-03-12 Thread jmutonho





Hi guys?

Is there a setting to turn off logging in struts(1.1) ?What do I need
to do to turn off a log such as the following :


[INFO] RequestUtils - - Looking for ActionForm bean instance in scope
'request' under attribute key 'actionForm'




Jeff  Mutonho
J2EE Developer
Safmarine Computer Services(Pty Ltd)
ph : + 27 21 408  6230
mob  : +27 82 907 6420
web  : www.scs.co.za



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



How can IIS and Tomcat share data?

2004-03-12 Thread dream_and_yang
Failed to subscribe to the Tomcat mailing list,
i have to post question here,hoping someone 
would offer me help.
Someone have suggested me using file or database,
but is there any easier way?

  Thanks very much!



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



RE: submit an arraylist

2004-03-12 Thread Mu Mike
I write this in jsp file,but it failed

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean1 
indexId=0
   html:text  property=testBean value=string1 /
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

is my jsp code right?


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: submit an arraylist
Date: Fri, 12 Mar 2004 07:55:33 +
I have a form as the below

TestBeanForm.java 
public class TestBeanForm extends ActionForm {   
public ArrayList getTestBean() {
if(testBean==null) 
testBean=new ArrayList();  
return testBean;   
}

  public void setTestBean(ArrayList testBean) { 
   this.testBean = testBean; 
}

  private ArrayList  testBean;

}

how should I write in my configruatio file using logic:iterate to 
submit values for my ArrayList testBean?

_
 MSN Explorer:   http://explorer.msn.com/lccn/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
 MSN Explorer:   http://explorer.msn.com/lccn/  

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


Re: submit an arraylist

2004-03-12 Thread Mark Lowe
The name in the iterate tag needs to match the name you've using to 
define the form bean in struts-config

form-bean name=testForm type=com.mike.struts.TestBeanForm /

html:form action=/testAction.do
logic:iterate id=mybean name=testForm property=testBean
html:text name=mybean property=string1 indexed=true /
...
On 12 Mar 2004, at 09:23, Mu Mike wrote:

I write this in jsp file,but it failed

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean1 
indexId=0
   html:text  property=testBean value=string1 /
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

is my jsp code right?


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: submit an arraylist
Date: Fri, 12 Mar 2004 07:55:33 +
I have a form as the below

TestBeanForm.java public class TestBeanForm extends ActionForm {   
public ArrayList getTestBean() {
if(testBean==null) testBean=new ArrayList();  return 
testBean;   }

  public void setTestBean(ArrayList testBean) {this.testBean = 
testBean; }

  private ArrayList  testBean;

}

how should I write in my configruatio file using logic:iterate to 
submit values for my ArrayList testBean?

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
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: submit an arraylist

2004-03-12 Thread Mark Lowe
does your nested bean have a getString1() method?

There's load of examples in the archives. Have a look.



On 12 Mar 2004, at 09:48, Mu Mike wrote:

Mark
I did as you wrote
form-bean name=TestBeanForm type=com.mycom.form.TestBeanForm/

in jsp file:
html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean1  
indexId=index1
   html:text  name=mybean1 property=string1 indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

it says no collection found

I then changed the jsp file to this

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean1  
indexId=index1
   html:text  name=mybean1 property=testBean value=string1  
indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

it still reports no collection found

ThanksRegards


From: Mark Lowe [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: submit an arraylist
Date: Fri, 12 Mar 2004 09:35:11 +0100
The name in the iterate tag needs to match the name you've using to  
define the form bean in struts-config

form-bean name=testForm type=com.mike.struts.TestBeanForm /

html:form action=/testAction.do
logic:iterate id=mybean name=testForm property=testBean
html:text name=mybean property=string1 indexed=true /
...
On 12 Mar 2004, at 09:23, Mu Mike wrote:

I write this in jsp file,but it failed

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean  
id=mybean1 indexId=0
   html:text  property=testBean value=string1 /
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

is my jsp code right?


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List  
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: submit an arraylist
Date: Fri, 12 Mar 2004 07:55:33 +

I have a form as the below

TestBeanForm.java public class TestBeanForm extends ActionForm {
public ArrayList getTestBean() {
if(testBean==null) testBean=new ArrayList();  return  
testBean;   }

  public void setTestBean(ArrayList testBean) {this.testBean =  
testBean; }

  private ArrayList  testBean;

}

how should I write in my configruatio file using logic:iterate to  
submit values for my ArrayList testBean?

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
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]
_
 MSN Hotmail  http://www.hotmail.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]


RE: struts-workflow-extension and DynaValidatorForm

2004-03-12 Thread shirishchandra.sakhare
Hi Dean,
The struts workflow extension will just work as well with dynaValidatorForms or any 
other type of bean you use as form bean.The only point where it differs from standard 
struts is the ActionMapping.It uses a ActionMapping class of its own.But that also can 
be taken care of.

Just start with it and if you have any questions, there are people in this list(myself 
included) who will be glad to help.

HTH.
Regards,
Shirish.



-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 6:19 PM
To: [EMAIL PROTECTED]
Subject: struts-workflow-extension and DynaValidatorForm


I am interested in using the workflow extension but do
not want to give up using DynaValidatorForm. Is it
possible?

Dean Hoover


-
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: submit an arraylist

2004-03-12 Thread Mu Mike
Mark
I did as you wrote
form-bean name=TestBeanForm type=com.mycom.form.TestBeanForm/

in jsp file:
html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean1 
indexId=index1
   html:text  name=mybean1 property=string1 indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

it says no collection found

I then changed the jsp file to this

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean1 
indexId=index1
   html:text  name=mybean1 property=testBean value=string1 
indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

it still reports no collection found

ThanksRegards


From: Mark Lowe [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: submit an arraylist
Date: Fri, 12 Mar 2004 09:35:11 +0100
The name in the iterate tag needs to match the name you've using to 
define the form bean in struts-config

form-bean name=testForm type=com.mike.struts.TestBeanForm /

html:form action=/testAction.do
logic:iterate id=mybean name=testForm property=testBean
html:text name=mybean property=string1 indexed=true /
...
On 12 Mar 2004, at 09:23, Mu Mike wrote:

I write this in jsp file,but it failed

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean 
id=mybean1 indexId=0
   html:text  property=testBean value=string1 /
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

is my jsp code right?


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List 
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: submit an arraylist
Date: Fri, 12 Mar 2004 07:55:33 +

I have a form as the below

TestBeanForm.java public class TestBeanForm extends ActionForm {   
public ArrayList getTestBean() {
if(testBean==null) testBean=new ArrayList();  return 
testBean;   }

  public void setTestBean(ArrayList testBean) {this.testBean 
= testBean; }

  private ArrayList  testBean;

}

how should I write in my configruatio file using logic:iterate to 
submit values for my ArrayList testBean?

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
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]
_
 MSN Hotmail  http://www.hotmail.com  

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


RE: submit an arraylist

2004-03-12 Thread Dixit, Shashank (Cognizant)
Hi Mike

If you want arraylist to be filled by proper values after submission then you have to 
write nested tags

   nested:iterate name=TestBeanForm property=testBean id=mybean1
 indexId=index1
nested:text  property=string1 indexed=true/ // Note that name is  
not there
   /nested:iterate

   html:submit property=submitValueSubmit Changes/html:submit
 /html:form

Hope this helps

Shashank Dixit
cognizant technology solutions pvt. ltd.


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 March 2004 8:00 PM
To: Struts Users Mailing List
Subject: Re: submit an arraylist


does your nested bean have a getString1() method?

There's load of examples in the archives. Have a look.



On 12 Mar 2004, at 09:48, Mu Mike wrote:

 Mark
 I did as you wrote

 form-bean name=TestBeanForm type=com.mycom.form.TestBeanForm/

 in jsp file:
 html:form action=/testAction.do
   logic:iterate name=TestBeanForm property=testBean id=mybean1
 indexId=index1
html:text  name=mybean1 property=string1 indexed=true/
   /logic:iterate
   html:submit property=submitValueSubmit Changes/html:submit
 /html:form

 it says no collection found

 I then changed the jsp file to this

 html:form action=/testAction.do
   logic:iterate name=TestBeanForm property=testBean id=mybean1
 indexId=index1
html:text  name=mybean1 property=testBean value=string1  
 indexed=true/
   /logic:iterate
   html:submit property=submitValueSubmit Changes/html:submit
 /html:form

 it still reports no collection found

 ThanksRegards


 From: Mark Lowe [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: submit an arraylist
 Date: Fri, 12 Mar 2004 09:35:11 +0100


 The name in the iterate tag needs to match the name you've using to
 define the form bean in struts-config

 form-bean name=testForm type=com.mike.struts.TestBeanForm /

 html:form action=/testAction.do
  logic:iterate id=mybean name=testForm property=testBean
  html:text name=mybean property=string1 indexed=true / ...

 On 12 Mar 2004, at 09:23, Mu Mike wrote:

 I write this in jsp file,but it failed

 html:form action=/testAction.do
   logic:iterate name=TestBeanForm property=testBean
 id=mybean1 indexId=0
html:text  property=testBean value=string1 /
   /logic:iterate
   html:submit property=submitValueSubmit Changes/html:submit
 /html:form


 is my jsp code right?


 From: Mu Mike [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: submit an arraylist
 Date: Fri, 12 Mar 2004 07:55:33 +

 I have a form as the below

 TestBeanForm.java public class TestBeanForm extends ActionForm {
 public ArrayList getTestBean() {
 if(testBean==null) testBean=new ArrayList();  return  
 testBean;   }

   public void setTestBean(ArrayList testBean) {this.testBean =  
 testBean; }


   private ArrayList  testBean;

 }


 how should I write in my configruatio file using logic:iterate to
 submit values for my ArrayList testBean?

 _
 ~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/


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


 _
 ~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/

 
 -
 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]


 _
  MSN Hotmail  http://www.hotmail.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]

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) 
and may contain confidential and privileged information.If you are not the intended 
recipient,
please contact the sender by reply e-mail and destroy all copies of the original 
message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and may be
unlawful.

Visit us at http://www.cognizant.com

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

Re: submit an arraylist

2004-03-12 Thread Mu Mike
I think I have done the right ,yet it still doesnt work 

this is mynested bean file
FontBean.java
public class FontBean  {
   public int getSize() {
   return size;
   }
   public void setSize(int size) {
   this.size = size;
   }
   public String getFontName() {
   return fontName;
   }
   public void setFontName(String fontName) {
   this.fontName = fontName;
   }
   private int size;
   private String fontName;
}

This is my form bean file
TestBeanForm.java
public class TestBeanForm extends ActionForm {
   public FontBean[] getTestBean() {
   return testBean;
   }
   public void setTestBean(FontBean[] testBean) {
   this.testBean = testBean;
   }
   private FontBean[] testBean;

}

this is what I wrote in jsp file

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean 
indexId=index1
   html:text  name=mybean property=fontName value=arial 
indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

anyway, running the jsp file still tells no collection found 
what happened? I m exahusted!
ThanksRegards








From: Mark Lowe [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: submit an arraylist
Date: Fri, 12 Mar 2004 09:59:50 +0100
does your nested bean have a getString1() method?

There's load of examples in the archives. Have a look.



On 12 Mar 2004, at 09:48, Mu Mike wrote:

Mark
I did as you wrote
form-bean name=TestBeanForm type=com.mycom.form.TestBeanForm/

in jsp file:
html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean 
id=mybean1  indexId=index1
   html:text  name=mybean1 property=string1 indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

it says no collection found

I then changed the jsp file to this

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean 
id=mybean1  indexId=index1
   html:text  name=mybean1 property=testBean value=string1  
indexed=true/
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

it still reports no collection found

ThanksRegards


From: Mark Lowe [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List 
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: submit an arraylist
Date: Fri, 12 Mar 2004 09:35:11 +0100

The name in the iterate tag needs to match the name you've using 
to  define the form bean in struts-config

form-bean name=testForm type=com.mike.struts.TestBeanForm /

html:form action=/testAction.do
logic:iterate id=mybean name=testForm property=testBean
html:text name=mybean property=string1 indexed=true /
...
On 12 Mar 2004, at 09:23, Mu Mike wrote:

I write this in jsp file,but it failed

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean  
id=mybean1 indexId=0
   html:text  property=testBean value=string1 /
  /logic:iterate
  html:submit property=submitValueSubmit 
Changes/html:submit
/html:form

is my jsp code right?


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List  
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: submit an arraylist
Date: Fri, 12 Mar 2004 07:55:33 +

I have a form as the below

TestBeanForm.java public class TestBeanForm extends ActionForm { 
   public ArrayList getTestBean() {
if(testBean==null) testBean=new ArrayList();  return 
 testBean;   }

  public void setTestBean(ArrayList testBean) {
this.testBean =  testBean; }

  private ArrayList  testBean;

}

how should I write in my configruatio file using logic:iterate 
to  submit values for my ArrayList testBean?

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
 
-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
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]

_
 MSN Hotmail  
http://www.hotmail.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]

Re: Populating form Elements from another object.

2004-03-12 Thread Niall Pemberton
Shanmugam,

I think your problem lies in the way you have defined your two actions in the 
struts-config.xml - one of them has scope=session and the other doesn't, which means 
it will probably default to request. I think this is causing your problem because 
Struts only looks for the ActionForm in the scope of the mapping specified - so in 
your case I believe its creating two versions of severityForm. Try addding a 
scope=session to your /severityDetails action and see if that sorts it out.

Niall

  - Original Message - 
  From: shanmugampl 
  To: Struts Users Mailing List 
  Sent: Friday, March 12, 2004 3:55 AM
  Subject: Re: Populating form Elements from another object.


  Hi Niall,

 Thanks for your inputs. I followed your methodology with slight changes. I 
have a class MCDynaClass which equals your LazyDynaClass. Instead of having a separate 
bean as LazyDynaBean, i extended the DynaActionForm as MCDynaActionForm and overridden 
the set methods as per my requirement.  The entry in the struts-config.xml will be 
like 

  form-beans
  form-bean name = severityForm type = 
com.adventnet.client.struts.action.MCDynaActionForm/
  /form-beans

  action path = /severityDetails type = 
com.adventnet.client.struts.action.SeverityDetailsAction   name = severityForm 
 forward name = details path = /jsp/detailsPage.jsp/
  /action
  action path = /updateSeverity type = 
com.adventnet.client.struts.action.UpdateSeverityDetailsAction name = severityForm 
input = /severityDetails.do scope = session
forward name = success path = /jsp/results.jsp/
  /action

 In the  ActionClass i will get the DataObject(my own object) and set it to 
the form through the setDataObject method.

  MCDynaActionForm userForm = (MCDynaActionForm) form;
  userForm.setDataObject(newDO);

 By this way i am able to populate the values dynamically. The problems comes 
when i am submitting the form. When the form is submitted, the instance of the form 
that i am getting in the action class is different. As a result, I cannot update the 
dataObject as it is null. I could not figure out where i have gone wrong. I have 
attached my source. Kindly help me.

  Thanks
  Shanmugam PL



  Niall Pemberton wrote:

Yup, thats it - plus dynamic=true

 form-bean name=fooForm1
type=lib.framework.struts.LazyValidatorActionForm dynamic=true /
 form-bean name=fooForm2
type=lib.framework.struts.LazyValidatorActionForm dynamic=true /
 form-bean name=fooForm3
type=lib.framework.struts.LazyValidatorActionForm dynamic=true /
 form-bean name=fooForm4
type=lib.framework.struts.LazyValidatorActionForm dynamic=true /

Oh, I noticed an error in LazyValidatorForm, its declared as abstract -
which it shouldn't be - I don't use it directly, I use
LazyValidatorActionForm which extends it.

Niall


- Original Message - 
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 8:53 AM
Subject: Re: Populating form Elements from another object.


  I haven't seen the code but if what i understand of what Niall has been
saying you'd  use them instead of DynaActionForm.

form-bean name=fooForm type=com.ilovesparrows.struts.NiallsForm /

of course you'll need to call the package and class name to something
appropriate.

On 9 Mar 2004, at 09:47, shanmugampl wrote:

Hi,

   I saw your code. I have one doubt. How do you plugin your own
DynaBean implementation into the struts framework.

Shanmugam PL

Niall Pemberton wrote:

  I wrote these

http://www.niallp.pwp.blueyonder.co.uk

Niall

- Original Message - From: shanmugampl
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 7:00 AM
Subject: Populating form Elements from another object.



Hi,

 I have a requirement where i need to populate the values of a
form from another object, and then again transform the contents of
the form back to the object once the form is submitted. i.e Say,
when i click a button, i do some functionalities and have a
Properties object as an output. The keys in the Properties object
are not static. These values need to be shown in a form. As the keys
retrieved for the current operation is not known, i cant define the
values in the struts-config.xml for the dynaactionclass.

  Is it possible to extend the dynaactionclass, and during its
init or something, iterate the properties object and populate the
form.  Are there any other way of doing it.

Thanks
Shanmugam PL


-
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 

Re: WAS: problems with html:base/ - Help Please - ActionServlet fails on startup

2004-03-12 Thread Lukas Latz
 I see your confusion. I don't use TC, but remembered a while back there 
 was a lot of conversation about certain versions people had trouble with. 
 Perhaps it does work, but maybe you have to jump through hoops to get it 
 to do so. The archives might have more background on the specific issues 
 with TC 3.2.x. If you wanted, you could submit a bugzilla request for site
 
 documentation clarification.
 
 Good luck,
 Susan 

I've now upgraded to TC 3.3.2 and everything worked right away. I see your
point about how 3.2.x might be considered workable with twists.

Thanks

Lukas


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Christian Schlaefcke
Hi Folks,

This is the situation:
A struts application that uses tiles. A user needs to logon to work with
the app. A logged-on user has a value object userSessionVO with some
authenication parameter in the session. A not-logged-on user could be
identified by the missing session attribute.

To prevent a bad guy catching an url from an logged-on user and call the
corresponding action directly from his browser I want to use a Filter.
That Filter looks in the session for the usersession attribute and if not
found redirects to the login page.

The problem:
The filtering itself works fine, just when the filter tries to redirect my
application throws an java.net.SocketException: Conection aborted by peer:
socket write error

Before this exception happens I can see the following Struts debug message:
Can´t insert page 'mypage.jsp': Conection aborted by peer: socket write
error at InsertTag.java:945.

This is the code that manages the redirect within the filter doFilter method:

if(usersessionNotFound) {
  HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper
((HttpServletResponse)response);
  wrapper.sendRedirect(wrapper.encodeRedirectURL(myRequest.getContextPath()
+ /myAction.do));
  response = wrapper.getResponse();
}

chain.doFilter(request, response);

What is wrong? Is it my approach in general or just the way I redirect?
Without redirecting everything works fine

Thanx  Regards,

Chris

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



Re: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Mark Lowe
try

request.getRequestDispatcher(/myACtion.do).forward(request, response);

rather than redirect.

On 12 Mar 2004, at 10:59, Christian Schlaefcke wrote:

Hi Folks,

This is the situation:
A struts application that uses tiles. A user needs to logon to work  
with
the app. A logged-on user has a value object userSessionVO with some
authenication parameter in the session. A not-logged-on user could be
identified by the missing session attribute.

To prevent a bad guy catching an url from an logged-on user and call  
the
corresponding action directly from his browser I want to use a Filter.
That Filter looks in the session for the usersession attribute and if  
not
found redirects to the login page.

The problem:
The filtering itself works fine, just when the filter tries to  
redirect my
application throws an java.net.SocketException: Conection aborted by  
peer:
socket write error

Before this exception happens I can see the following Struts debug  
message:
Can´t insert page 'mypage.jsp': Conection aborted by peer: socket write
error at InsertTag.java:945.

This is the code that manages the redirect within the filter doFilter  
method:

if(usersessionNotFound) {
  HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper
((HttpServletResponse)response);
   
wrapper.sendRedirect(wrapper.encodeRedirectURL(myRequest.getContextPath 
()
+ /myAction.do));
  response = wrapper.getResponse();
}

chain.doFilter(request, response);

What is wrong? Is it my approach in general or just the way I redirect?
Without redirecting everything works fine
Thanx  Regards,

Chris

-
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]


help! I m going mad

2004-03-12 Thread Mu Mike
I just cant use logic:iterate correctly!

this is my form bean class:
public class TestBeanForm extends ActionForm {
   public String[] getTestBean() {
   return testBean;
   }
   public void setTestBean(String[] testBean) {
   this.testBean = testBean;
   }
   String[] testBean;

and this is my form bean declaration
   form-bean name=TestBeanForm type=com.mike.form.TestBeanForm/
and this is what I have in my jsp file:
html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean 
indexId=index1 
%-- html:text  property=fontName value=12 indexed=true/--%
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

you can see, I commented out the html:text line, but I still kept getting 
No collection found error, why? arent String[] a collection?

_
 MSN Messenger:  http://messenger.msn.com/cn  

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


Re: On usage of Resource Bundle

2004-03-12 Thread Niall Pemberton
I hesitate to answer this as I don't use modules. However, my understanding
goes like this:

All message resources are stored in application context. The default
module is stored under either the key specified in message-resources or
the default, which is Globals.MESSAGES_KEY.  Message Resources for modules
are the same except they append the module prefix to store the message
resources in application scope.

So, in your two modules, if one is a default module (i.e.
param-valueconfig/param-value in web.xml), you can just specify the
message resources there.

If neither of your modules is a default module (i.e. both
param-valueconfig/mymodule1/param-value in web.xml), then why don't you
add a default module struts-config.xml, which just has the message
resources in.

In Struts 1.1 things like the bean:messages tag either look for messages
resources (using RequestUtils) under the default key (Globals.MESSAGES_KEY)
or you have to specify it as a bundle attribute - so if you wanted a
module specific message resources, you need to specify the whole key in
the bundle attribute - even if in your struts-config.xml, you let it get
set to the default (i.e.Globals.MESSAGES_KEY + module prefix) .

In Struts 1.2 they have improved bean:messages so that it looks for
messages resources (using TagUtils) first under a key specified by bundle
plus the module prefix appended (default for bundle being
Globals.MESSAGES_KEY) and then, if not found under a key specified just by
the bundle attribute. This means that if you have module specific
message resources, you now DONT have to specify the whole key in the
bundle attribute if in your struts-config.xml, you let it get set to the
default (i.e.Globals.MESSAGES_KEY + module prefix).

Anyway to summarise, in your scenario, I don't think the differences between
1.1 and 1.2 affect what you want to do. You just need to specify your
message resources in the default module.

Niall


- Original Message - 
From: Ashutosh Satyam [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:12 AM
Subject: RE: On usage of Resource Bundle


Still waiting if somebody can reply to the below question which I had posted
yesterday.

Regards,
Ashutosh

-Original Message-
From: Ashutosh Satyam
Sent: Thursday, March 11, 2004 11:22 AM
To: Struts Users Mailing List
Subject: On usage of Resource Bundle

Hi,
 I needed one small clarification regarding the usage of resource bundle.
My web application is divided into two sub modules i.e. basically the
application uses two struts configuration file.
 I'm going to have only one resource bundle. Now, is it necessary to
have message-resources
tag configured in both the struts configuration file? Will providing the
configuration at one
place won't suffice? Since, MessageResources objects are created by the
controller i.e. ActionServlet and saved
in the ServletContext using either a generic key Globals.MESSAGES_KEY or the
key provided as part
of the 'key' attribute.
   So, I feel it should be accessible to the Action classes, which are part
of
the other struts configuration file too.

Is my understanding correct? Anyone who can provide me a better insight on
the same
will be useful.


Regards,
Ashutosh



-
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]



form class isn't populated

2004-03-12 Thread Otto, Frank
hi,

I have a difficult problem. After I submit a form, the form class would not been 
populated.

If I click the back button of the browser and submit the form again, the form will be 
populated.

Has someone the same problem? I think it occurs only in IE 6.0.


Regards,

Frank

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



Re: help! I m going mad

2004-03-12 Thread Mark Lowe
Okay here's a full example, first of all i'm going to mess with your 
naming conventions as they'd drive me mad also
//bean
package com.sparrow.struts;

public class TestBean {
private String name;
public String getName() {
return name;
}   

public void setName(String name) {
this.name = name;
}
}
//the form
package com.sparrow.struts;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts.action.ActionForm;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.collections.Factory;
public class TestBeanForm extends ActionForm {

	private List testBeanList;

public SizesForm() {
initLists();
}
private void initLists() {
Factory factory = new Factory() {
public Object create() {
return new TestBean();
}
};
this. testBeanList = ListUtils.lazyList(new ArrayList(), 
factory);
}
	
	public List getTestBeans() {
		return testBeanList;
	}

public void setTestBeans(List testBeanList) {
this. testBeanList = testBeanList;
}
public TestBean getTestBean(int index) {
return (TestBean) testBeanList.get(index);
}
public void setTestBean(int index,TestBean testBean) {
this. testBeanList.add(index, testBean);
}
}

//struts config

form-bean name=testBeanForm type=com.sparrow.struts.TestBeanForm /

action path=/testAction name=testBeanForm scope=request ...

//jsp

html:form action=/testAction.do

logic:iterate id=mybean name=testBeanForm property=testBeans
html:text name=mybean property=name indexed=true /
...




On 12 Mar 2004, at 11:17, Mu Mike wrote:

I just cant use logic:iterate correctly!

this is my form bean class:
public class TestBeanForm extends ActionForm {
   public String[] getTestBean() {
   return testBean;
   }
   public void setTestBean(String[] testBean) {
   this.testBean = testBean;
   }
   String[] testBean;

and this is my form bean declaration
   form-bean name=TestBeanForm 
type=com.mike.form.TestBeanForm/
and this is what I have in my jsp file:

html:form action=/testAction.do
  logic:iterate name=TestBeanForm property=testBean id=mybean 
indexId=index1 
%-- html:text  property=fontName value=12 
indexed=true/--%
  /logic:iterate
  html:submit property=submitValueSubmit Changes/html:submit
/html:form

you can see, I commented out the html:text line, but I still kept 
getting No collection found error, why? arent String[] a collection?

_
~{SkA*;z5DEsSQ=xPP=;Aw#,GkJ9SC~} MSN Messenger:  http://messenger.msn.com/cn
-
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: help! I m going mad

2004-03-12 Thread Niall Pemberton
In your struts-config.xml, is the action which initially displays your jsp
page associated with TestBeanForm?

Niall

- Original Message - 
From: Mu Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 10:17 AM
Subject: help! I m going mad


 I just cant use logic:iterate correctly!

 this is my form bean class:
 public class TestBeanForm extends ActionForm {

 public String[] getTestBean() {
 return testBean;
 }

 public void setTestBean(String[] testBean) {
 this.testBean = testBean;
 }

 String[] testBean;

 and this is my form bean declaration
 form-bean name=TestBeanForm type=com.mike.form.TestBeanForm/
 and this is what I have in my jsp file:

 html:form action=/testAction.do
logic:iterate name=TestBeanForm property=testBean id=mybean
 indexId=index1 
 %-- html:text  property=fontName value=12 indexed=true/--%
/logic:iterate
html:submit property=submitValueSubmit Changes/html:submit
 /html:form

 you can see, I commented out the html:text line, but I still kept
getting
 No collection found error, why? arent String[] a collection?

 _
  MSN Messenger:  http://messenger.msn.com/cn


 -
 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: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Niall Pemberton
There is a SecurityFilter on source forge. Either you can look at how they
do it, or maybe use it

http://securityfilter.sourceforge.net/

Niall

- Original Message - 
From: Christian Schlaefcke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 9:59 AM
Subject: Struts, Tiles, javax.servlet.Filter: Redirect Problem


 Hi Folks,

 This is the situation:
 A struts application that uses tiles. A user needs to logon to work with
 the app. A logged-on user has a value object userSessionVO with some
 authenication parameter in the session. A not-logged-on user could be
 identified by the missing session attribute.

 To prevent a bad guy catching an url from an logged-on user and call the
 corresponding action directly from his browser I want to use a Filter.
 That Filter looks in the session for the usersession attribute and if not
 found redirects to the login page.

 The problem:
 The filtering itself works fine, just when the filter tries to redirect my
 application throws an java.net.SocketException: Conection aborted by peer:
 socket write error

 Before this exception happens I can see the following Struts debug
message:
 Can´t insert page 'mypage.jsp': Conection aborted by peer: socket write
 error at InsertTag.java:945.

 This is the code that manages the redirect within the filter doFilter
method:

 if(usersessionNotFound) {
   HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper
 ((HttpServletResponse)response);

wrapper.sendRedirect(wrapper.encodeRedirectURL(myRequest.getContextPath()
 + /myAction.do));
   response = wrapper.getResponse();
 }

 chain.doFilter(request, response);

 What is wrong? Is it my approach in general or just the way I redirect?
 Without redirecting everything works fine

 Thanx  Regards,

 Chris

 -
 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: [OT] unable to build ejb using ant in weblogic 8.1

2004-03-12 Thread Duncan Alexander
Also, 
Try writing to a relevant mailing list. That may help you more.

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: 05 March 2004 23:13
To: Struts Users Mailing List
Subject: Re: [OT] unable to build ejb using ant in weblogic 8.1

Try checking your settings in system classpath also
(Start-Settings-Control Panel)

[EMAIL PROTECTED] wrote:


Hi,



I am trying to build my ejb using ant and getting the following
Exception. I have checked my classpath for tools.jar and my Java Home
variable is pointing to jdk directory. any idea why this error comes up



Thanks for any help



Regards



Anant



callEjbBuild:



copyDescriptorsTri:

[copy] Warning: META-INF\ejb-jar.xml modified in the future.

[copy] Warning: META-INF\weblogic-ejb-jar.xml modified in the
future.

[copy] Copying 2 files to
C:\mina\Phase1\codeMarch5\SourceCode\stage\Trillium



copyEJBForBuildTri:

[echo] Copy for Build Completed Successfully



make-temp-jars-tri:

[jar] Building jar:
C:\mina\Phase1\codeMarch5\SourceCode\stage\Trillium\Trillium-tem

p.jar



ejbBuildTri:

[java] 

lliumService has a class com.marsh.mina.trillium.ejb.TrilliumEJB that is
in the classpath.

This class should only be located in the ejb-jar file.

[java] 

lliumService has a class com.marsh.mina.trillium.ejb.TrilliumHome that
is in the classpath

. This class should only be located in the ejb-jar file.

[java] 

lliumService has a class com.marsh.mina.trillium.ejb.TrilliumService
that is in the classp

ath. This class should only be located in the ejb-jar file.

[java] Compiler class: 'com.sun.tools.javac.Main', not found

[java] java.lang.ClassNotFoundException: com.sun.tools.javac.Main

[java] at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)

[java] at java.security.AccessController.doPrivileged(Native
Method)

[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)

[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

[java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

[java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

[java] at java.lang.Class.forName0(Native Method)

[java] at java.lang.Class.forName(Class.java:140)

[java] at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoke

r.java:407)

[java] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:32

9)

[java] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:33

7)

[java] at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)

[java] at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)

[java] at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)

[java] at weblogic.ejbc20.runBody(ejbc20.java:519)

[java] at weblogic.utils.compiler.Tool.run(Tool.java:146)

[java] at weblogic.utils.compiler.Tool.run(Tool.java:103)

[java] at weblogic.ejbc.main(ejbc.java:29)



[java] ERROR: Error from ejbc: Compiler class:
'com.sun.tools.javac.Main', not found





[java] ERROR: ejbc couldn't invoke compiler



Confidentiality Notice

The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


-
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster.


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



Re: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Christian Schlaefcke
I tried this, but had a problem with an IllegalStateException: response
already commited.

This happens when I run chain.doFilter(...) afterwards. When I leave out
this step I don´t get forwarded. So how does it work?

Regards,

Chris

 try

 request.getRequestDispatcher(/myACtion.do).forward(request, response);

 rather than redirect.

 On 12 Mar 2004, at 10:59, Christian Schlaefcke wrote:

 Hi Folks,

 This is the situation:
 A struts application that uses tiles. A user needs to logon to work
 with
 the app. A logged-on user has a value object userSessionVO with some
 authenication parameter in the session. A not-logged-on user could be
 identified by the missing session attribute.

 To prevent a bad guy catching an url from an logged-on user and call
 the
 corresponding action directly from his browser I want to use a Filter.
 That Filter looks in the session for the usersession attribute and if
 not
 found redirects to the login page.

 The problem:
 The filtering itself works fine, just when the filter tries to
 redirect my
 application throws an java.net.SocketException: Conection aborted by
 peer:
 socket write error

 Before this exception happens I can see the following Struts debug
 message:
 Can´t insert page 'mypage.jsp': Conection aborted by peer: socket write
 error at InsertTag.java:945.

 This is the code that manages the redirect within the filter doFilter
 method:

 if(usersessionNotFound) {
   HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper
 ((HttpServletResponse)response);

 wrapper.sendRedirect(wrapper.encodeRedirectURL(myRequest.getContextPath
 ()
 + /myAction.do));
   response = wrapper.getResponse();
 }

 chain.doFilter(request, response);

 What is wrong? Is it my approach in general or just the way I redirect?
 Without redirecting everything works fine

 Thanx  Regards,

 Chris

 -
 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: asking for help about indexed properties

2004-03-12 Thread Lenny Sorey
On Thu, 11 Mar 2004 21:08:23 -0800, Michael McGrady wrote:

http://jakarta.apache.org/struts/faqs/indexedprops.html

At 07:15 PM 3/11/2004, you wrote:
I have the follow in a jsp file

  html:form action=indexedtest5.do
   logic:iterate name=stringbean property=stringArray id=foo
  indexId=ctr
 (QUESTION: WHAT DO name,property,id,indexId MEAN HERE? WHAT VALUES 
 CAN I SET TO THEM?)

html:text name=stringbean
   property='%= labelValue[ + ctr + ].label %' /
 (QUESTION: WHAT DO name,property  MEAN HERE? WHAT VALUES CAN I SET TO 
 THEM?)

   /logic:iterate
   html:submit property=submitValueSubmit Changes/html:submit
  /html:form

I searched online about the meaning of these properties only fail to find 
any clear descritpions, the api of struts says little about them, can 
anyone tell me the meanings of them?
by the way, for this jsp file ,can any one give me the related bean files 
that can be used in it?

ThanksRegards

_
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn


-
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]



-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGP SDK 3.0

mQGiBEAClqERBADeE/tHvN70Bkf9PhQ/WiouqfbXKLeQKQ0baG/FWrbmvOzhcHg7
huljwUY0KuxkdZH0Hdgfn0YPh44A0C/lKTPAzoXhy6ANHx4A0szhu74M2tbRunFS
74wNHQhEPFq9B6gRCYzKyk1GYBQGjTBPtWztgNdC5VxcLDNS36RLZmLEIQCg/4Tb
vDfmEkH4P4QrzCqcKNCmTG8EAJZzv4z+wukdzJV8Vkx+c3dxWLx+S1tfTn/BH0U4
VVPn7S73p77PY7ziuIR4t8mBfUmm1TvW2LDEb0zcJo6BOVr0iADOAhNkHtahIBFv
uoyF9OQksH8o5pTbR6hTqXjIQZAZDKk3MI4jnGF7kc0cplgN6MNh1yplc+4lwkP5
HSTUBAC/UGkVxa1HTG1FSnCP0Ln8M85Pp7Z2liZRpuJmxQLbLq0Qb87+OlDP6ciV
2+X1GTrHVfT4JzAbDHBKN0DPUmiZ1kRtiT0SxkCQ+DiyjNKNrC+rLyODZouKUnWk
8Nk07fTf62nBl/9PQCL5hWJbVHSjXQdzeJgK3GcTC1YILfhwJ7QgTGVubnkgU29y
ZXkgPGxyc29yZXlAZmF0ZG90LmNvbT6JAF0EEBECAB0FAkAClqENCwMCATA0OEOJ
4AIZAQUbAwAKCRDmL6PAFcSh0XUGAKCsOdUe81UztypXUwLLBqC1FP/n
rACgtY34ocZm19ODpmuCdQrllJOOgOi5Ag0EQAKWoRAIAPZCV7cIfwgXcqK61qlC
8wXo+VMROU+28W65Szgg2gGnVqMU6Y9AVfPQB8bLQ6mUrfdMZIZJ+AyDvWXpF9Sh
01D49Vlf3HZSTz09jdvOmeFXklnN/biudE/F/Ha8g8VHMGHOfMlm/xX5u/2RXscB
qtNbno2gpXI61Brwv0YAWCvl9Ij9WE5J280gtJ3kkQc2azNsOA1FHQ98iLMcfFst
jvbzySPAQ/ClWxiNjrtVjLhdONM0/XwXV0OjHRhs3jMhLLUq/zzhsSlAGBGNfISn
CnLWhsQDGcgHKXrKlQzZlp+r0ApQmwJG0wg9ZqRdQZ+cfL2JSyIZJrqrol7DVeky
CzsAAgIH/R+ctSJOUSBUfJ4e2q+VAESrSy4iu1QMLY0KeU5jR3BlayXPw/N5i9z2
7biYjoPAMqZq2Cq9hrPgpNixP9tOnJxSRYQ1W26nXTGYLRZnJRQOjfxD2ZiHIFzO
A03fGk6YjmTq71cc9LQSR4RxO0Lb02/whqndyugli59bAeL/g4WDNKh1SdfIB8z7
KdAbS0NIFV2Ncluoj1pUywqzHKrJ9Ckxj2esBAhV7FN4D6o6upY7NfCde0NxhsCP
NzhyFgUcVstDnCyvPaDi4CtODMAohLHM2uDWvUpkm/Di/M+uvWMf0U+3b8BlBz/i
ro+Ya29HpXFlSaYdjDaN59ssZuFlo7uJAEwEGBECAAwFAkAClqEFGwwACgkQ
5i+jwBXEodEsRgCfbDiOdvtHdFmjeQBt+9qHv1i0oW0An2Wx3POznsfG9o7++FuR
E9FPi8V6
=Wjdw
-END PGP PUBLIC KEY BLOCK-




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



Re: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Mark Lowe
boolean isAJollyGoodFellow = false;

//some logic here where you check whether s/he is a jolly good fellow

if(isAJollyGoodFellow) {
	filterChain.doFilter(request, response);
} else {
	request.getRequestDispatcher(/myAction.do).forward(request,  
response);
}

doFilter method passes on the request, and lets the request through to  
be checked but whatever the next filter is.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/javax/ 
servlet/FilterChain.html

On 12 Mar 2004, at 12:29, Christian Schlaefcke wrote:

I tried this, but had a problem with an IllegalStateException: response
already commited.
This happens when I run chain.doFilter(...) afterwards. When I leave  
out
this step I don´t get forwarded. So how does it work?

Regards,

Chris

try

request.getRequestDispatcher(/myACtion.do).forward(request,  
response);

rather than redirect.

On 12 Mar 2004, at 10:59, Christian Schlaefcke wrote:

Hi Folks,

This is the situation:
A struts application that uses tiles. A user needs to logon to work
with
the app. A logged-on user has a value object userSessionVO with  
some
authenication parameter in the session. A not-logged-on user could be
identified by the missing session attribute.

To prevent a bad guy catching an url from an logged-on user and call
the
corresponding action directly from his browser I want to use a  
Filter.
That Filter looks in the session for the usersession attribute and if
not
found redirects to the login page.

The problem:
The filtering itself works fine, just when the filter tries to
redirect my
application throws an java.net.SocketException: Conection aborted by
peer:
socket write error
Before this exception happens I can see the following Struts debug
message:
Can´t insert page 'mypage.jsp': Conection aborted by peer: socket  
write
error at InsertTag.java:945.

This is the code that manages the redirect within the filter doFilter
method:
if(usersessionNotFound) {
  HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper
((HttpServletResponse)response);
wrapper.sendRedirect(wrapper.encodeRedirectURL(myRequest.getContextPa 
th
()
+ /myAction.do));
  response = wrapper.getResponse();
}

chain.doFilter(request, response);

What is wrong? Is it my approach in general or just the way I  
redirect?
Without redirecting everything works fine

Thanx  Regards,

Chris

-
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]


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


RE: On usage of Resource Bundle

2004-03-12 Thread Ashutosh Satyam
Hi Niall,
It was quite an elaborative explanation. You clarified most of my doubts.
In my case, I just wanted to define one resource bundle and use it across any
sub module. 
   

Thanks again,
  Ashutosh



-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:04 PM
To: Struts Users Mailing List
Subject: Re: On usage of Resource Bundle

I hesitate to answer this as I don't use modules. However, my understanding
goes like this:

All message resources are stored in application context. The default
module is stored under either the key specified in message-resources or
the default, which is Globals.MESSAGES_KEY.  Message Resources for modules
are the same except they append the module prefix to store the message
resources in application scope.

So, in your two modules, if one is a default module (i.e.
param-valueconfig/param-value in web.xml), you can just specify the
message resources there.

If neither of your modules is a default module (i.e. both
param-valueconfig/mymodule1/param-value in web.xml), then why don't you
add a default module struts-config.xml, which just has the message
resources in.

In Struts 1.1 things like the bean:messages tag either look for messages
resources (using RequestUtils) under the default key (Globals.MESSAGES_KEY)
or you have to specify it as a bundle attribute - so if you wanted a
module specific message resources, you need to specify the whole key in
the bundle attribute - even if in your struts-config.xml, you let it get
set to the default (i.e.Globals.MESSAGES_KEY + module prefix) .

In Struts 1.2 they have improved bean:messages so that it looks for
messages resources (using TagUtils) first under a key specified by bundle
plus the module prefix appended (default for bundle being
Globals.MESSAGES_KEY) and then, if not found under a key specified just by
the bundle attribute. This means that if you have module specific
message resources, you now DONT have to specify the whole key in the
bundle attribute if in your struts-config.xml, you let it get set to the
default (i.e.Globals.MESSAGES_KEY + module prefix).

Anyway to summarise, in your scenario, I don't think the differences between
1.1 and 1.2 affect what you want to do. You just need to specify your
message resources in the default module.

Niall


- Original Message -
From: Ashutosh Satyam [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:12 AM
Subject: RE: On usage of Resource Bundle


Still waiting if somebody can reply to the below question which I had posted
yesterday.

Regards,
Ashutosh

-Original Message-
From: Ashutosh Satyam
Sent: Thursday, March 11, 2004 11:22 AM
To: Struts Users Mailing List
Subject: On usage of Resource Bundle

Hi,
 I needed one small clarification regarding the usage of resource bundle.
My web application is divided into two sub modules i.e. basically the
application uses two struts configuration file.
 I'm going to have only one resource bundle. Now, is it necessary to
have message-resources
tag configured in both the struts configuration file? Will providing the
configuration at one
place won't suffice? Since, MessageResources objects are created by the
controller i.e. ActionServlet and saved
in the ServletContext using either a generic key Globals.MESSAGES_KEY or the
key provided as part
of the 'key' attribute.
   So, I feel it should be accessible to the Action classes, which are part
of
the other struts configuration file too.

Is my understanding correct? Anyone who can provide me a better insight on
the same
will be useful.


Regards,
Ashutosh



-
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]

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



RE: [OT] Database password

2004-03-12 Thread Paul McCulloch
Why not put the file in area that is accessible only to the right users and
have the app server run under a user account with the relevant privelages?

Paul

 -Original Message-
 From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
 Sent: 11 March 2004 18:59
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] Database password
 
 
 Users cant access this file, but the file can be accessed by 
 people that
 is not from Information Security area (Seguridad Informática). The
 password shouldnt be known neither by the application 
 deployer, nor the
 system administrator, but only by Information Security people.
 
 -Original Message-
 From: Lucas Gonzalez [mailto:[EMAIL PROTECTED] 
 Sent: Jueves, 11 de Marzo de 2004 03:56 p.m.
 To: Struts Users Mailing List
 Subject: Re: [OT] Database password
 
 
 If the problem is the user accesing the plain text file by typing the
 URL in the browser...
 
 a better solution would be to tell apache to hide those files...
 
 
 - Original Message - 
 From: Guillermo Meyer [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 3:49 PM
 Subject: [OT] Database password
 
 
  Hi:
  Our Struts application is currently in production. This applciation 
  uses an Oracle Database (we are using DBCP from jakarta). We access 
  this database through url, user a password and we need to 
 hide the 
  production database password. The password is stored in a 
  configuration file and is in plain text.
 
  Have you got some best practices in this scenario? How 
 are your Java
 
  Applications get connected to production databases and how is the 
  database password protected? If we encrypt the password 
 with 3DES, how
 
  should the key be protected?
 
  Cheers.
  Guillermo.
 
 
  NOTA DE CONFIDENCIALIDAD
  Este mensaje (y sus anexos) es confidencial, esta dirigido 
  exclusivamente
 a las personas direccionadas en el mail y puede contener informacion
 (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el
 secreto profesional. Cualquier opinion en el contenido, es 
 exclusiva de
 su autor y no representa necesariamente la opinion de 
 Interbanking S.A.
 El acceso no autorizado, uso, reproduccion, o divulgacion esta
 prohibido. Interbanking S.A no asumira responsabilidad ni obligacion
 legal alguna por cualquier informacion incorrecta o alterada contenida
 en este mensaje. Si usted ha recibido este mensaje por error, 
 le rogamos
 tenga la amabilidad de destruirlo inmediatamente junto con todas las
 copias del mismo, notificando al remitente. No debera 
 utilizar, revelar,
 distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si
 usted no es el destinatario. Muchas gracias.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 NOTA DE CONFIDENCIALIDAD
 Este mensaje (y sus anexos) es confidencial, esta dirigido 
 exclusivamente a las personas direccionadas en el mail y 
 puede contener informacion (i)de propiedad exclusiva de 
 Interbanking S.A. o (ii) amparada por el secreto profesional. 
 Cualquier opinion en el contenido, es exclusiva de su autor y 
 no representa necesariamente la opinion de Interbanking S.A. 
 El acceso no autorizado, uso, reproduccion, o divulgacion 
 esta prohibido. Interbanking S.A no asumira responsabilidad 
 ni obligacion legal alguna por cualquier informacion 
 incorrecta o alterada contenida en este mensaje. Si usted ha 
 recibido este mensaje por error, le rogamos tenga la 
 amabilidad de destruirlo inmediatamente junto con todas las 
 copias del mismo, notificando al remitente. No debera 
 utilizar, revelar, distribuir, imprimir o copiar este mensaje 
 ni ninguna de sus partes si usted no es el destinatario. 
 Muchas gracias.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake 

Re: Turning logging off

2004-03-12 Thread Dmitrii
If you are using jdk 1.4 then you can try to add
following in
your %JAVA_HOME%\jre\lib\logging.properties file:

 org.apache.struts.level = WARNING # whatever level
you need

you can also be interested in changing
java.util.logging.ConsoleHandler.level


HTH,
Dima.





jzsc Hi guys?

jzsc Is there a setting to turn off logging in
struts(1.1) ?What do I need
jzsc to do to turn off a log such as the following :


jzsc [INFO] RequestUtils - - Looking for ActionForm
bean instance in scope
jzsc 'request' under attribute key 'actionForm'




jzsc Jeff  Mutonho
jzsc J2EE Developer
jzsc Safmarine Computer Services(Pty Ltd)
jzsc ph : + 27 21 408  6230
jzsc mob  : +27 82 907 6420
jzsc web  : www.scs.co.za



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



-- 
Best regards,
 Dmitrii   
mailto:[EMAIL PROTECTED]

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



Re: Strange behaviour?

2004-03-12 Thread Niall Pemberton
The question is, where does your action forward to in the valid scenario
after it has saved your properties? Are you forwarding to another action
which is re-popoulating the form from the request?

How about putting the cleanWhitespace() in your setters, rather than the
validate() method:

   public void setAnswer1(String answer1) {
this.answer1 = cleanWhitespace(answer1);
   }

Niall

- Original Message - 
From: Frank Burns [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:01 AM
Subject: Strange behaviour?


 I have a validate() method in my ActionForm class that includes some
cleanup
 (removes redundant whitespace) of some of the ActionForm bean's
properties.
 The related Action has validate=true set in struts-config. So validate()
 should always be called.

 The Action class then uses the ActionsForm's getters to read these
 properties and saves them.

 However, the saved properties have only been cleaned when errors are found
 by the validate() method.

 Why?

 The validate() method is ALWAYS called and executes the cleanup methods on
 the properties whether validate() discover errors or not, right?

 Specifically, in the code below, the answer1, answer2, etc., are only
 cleaned if there is an error found in the email address.

 /*** code snippet ***/

  public ActionErrors validate(
   ActionMapping mapping,
   HttpServletRequest request) {

   /* clean redundant whitespace from answers properties */
   answer1 = cleanWhitespace(answer1);
   answer2 = cleanWhitespace(answer2);
   answer3 = cleanWhitespace(answer3);

   ActionErrors errors = new ActionErrors();

   /*** validate email address ***/

   /* check is email address is not empty */
   if ((emailAddr == null) || (emailAddr.length()  1)){
errors.add(emailaddressempty,
 new ActionError(errors.required.emailaddress));
   }

 ...

 return errors;
 }




 -
 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: submit an arraylist

2004-03-12 Thread Michael McGrady
This is totally different than your first question, Mu.  You don't think 
that FontBean[] is the same as ArrayList, do you?  You used ArrayList in 
your original question but that has now become FontBean[].

- Mike

At 01:16 AM 3/12/2004, you wrote:
I think I have done the right ,yet it still doesnt work
this is mynested bean file
FontBean.java
public class FontBean  {
   public int getSize() {
   return size;
   }
   public void setSize(int size) {
   this.size = size;
   }
   public String getFontName() {
   return fontName;
   }
   public void setFontName(String fontName) {
   this.fontName = fontName;
   }
   private int size;
   private String fontName;
}

This is my form bean file
TestBeanForm.java
public class TestBeanForm extends ActionForm {
   public FontBean[] getTestBean() {
   return testBean;
   }
   public void setTestBean(FontBean[] testBean) {
   this.testBean = testBean;
   }
   private FontBean[] testBean;

}

this is what I wrote in jsp file

Submit Changes anyway, running the jsp file still tells no collection 
found  what happened? I m exahusted! ThanksRegards
From: Mark Lowe Reply-To: Struts Users Mailing List To: Struts 
Users Mailing List Subject: Re: submit an arraylist Date: Fri, 12 Mar 
2004 09:59:50 +0100  does your nested bean have a getString1() 
method?  There's load of examples in the archives. Have a 
look.On 12 Mar 2004, at 09:48, Mu Mike wrote:  Mark I did as 
you wrotein jsp file:   id=mybean1 
indexId=index1Submit Changes   it says no collection 
found  I then changed the jsp file to thisid=mybean1 
indexId=index1  indexed=true/   Submit Changes   it 
still reports no collection found  ThanksRegards
  From: Mark Lowe Reply-To: Struts Users Mailing 
List  To: Struts Users Mailing List Subject: Re: submit an 
arraylist Date: Fri, 12 Mar 2004 09:35:11 +0100   The name in 
the iterate tag needs to match the name you've using to define the 
form bean in struts-config   ...  On 12 
Mar 2004, at 09:23, Mu Mike wrote:  I write this in jsp file,but 
it failedid=mybean1 indexId=0
Submit Changesis my jsp code 
right?   From: Mu Mike Reply-To: Struts Users 
Mailing List  To: [EMAIL PROTECTED] Subject: 
submit an arraylist Date: Fri, 12 Mar 2004 07:55:33 
+  I have a form as the below  TestBeanForm.java 
public class TestBeanForm extends ActionForm {  public ArrayList 
getTestBean() { if(testBean==null) testBean=new ArrayList(); 
return  testBean; }   public void setTestBean(ArrayList 
testBean) { this.testBean = testBean; }private 
ArrayList testBean;  }   how should I write in 
my configruatio file using logic:iterate to submit values for my 
ArrayList 
testBean?  _ 
 ~{Cb7QOBTX~} MSN Explorer: 
http://explorer.msn.com/lccn/   --- 
- - To unsubscribe, 
e-mail: [EMAIL PROTECTED] For 
additional commands, 
e-mail: [EMAIL PROTECTED]   __ 
___ ~{Cb7QOBTX~} 
MSN Explorer: 
http://explorer.msn.com/lccn/  --- 
-- 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]   __ 
___ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþ 
ϵͳ¡ª MSN 
Hotmail¡£ http://www.hotmail.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]  
_ 
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn 
- 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: How can IIS and Tomcat share data?

2004-03-12 Thread Martin Gainty
Did you take a look at configuring IIS to Tomcat redirector plugin at
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
Keep me apprised,
~Martin~
- Original Message - 
From: dream_and_yang [EMAIL PROTECTED]
To: struts-user [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:13 AM
Subject: How can IIS and Tomcat share data?


 Failed to subscribe to the Tomcat mailing list,
 i have to post question here,hoping someone 
 would offer me help.
 Someone have suggested me using file or database,
 but is there any easier way?
 
   Thanks very much!
 
 
 
 -
 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]



Thread Safe Action

2004-03-12 Thread Joao Batistella
Hello.

I read that an Action in struts can be shared among another requests. This
means that we shouldn't use class attributes in the logic that response a
request?

Thanks,
JP


RE: Thread Safe Action

2004-03-12 Thread Irving, Dave
broadly speaking, yes.

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 12:53
To: 'Struts Users Mailing List'
Subject: Thread Safe Action


Hello.

I read that an Action in struts can be shared among another requests. This
means that we shouldn't use class attributes in the logic that response a
request?

Thanks,
JP

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.

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



RE: Thread Safe Action

2004-03-12 Thread Shahak.Nagiel
Correct: Struts instantiates only one action object (per JVM), so all variables should 
be locally (method)-scoped.

Class variables (statics--typically for constants) are fine, but nothing that's tied 
to a particular request or user.

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 7:53 AM
To: 'Struts Users Mailing List'
Subject: Thread Safe Action


Hello.

I read that an Action in struts can be shared among another requests.
This
means that we shouldn't use class attributes in the logic that response
a
request?

Thanks,
JP

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



Switching from HTTPS to HTTP

2004-03-12 Thread Joao Batistella
Hello!

In my application the login page uses HTTPS to send username and password to
the server. But after that, if login operation succeed, I want to send the
user to the main application page using HTTP protocol, not HTTPS. How can I
switch?

Thanks in advance,
JP


Re: Thread Safe Action

2004-03-12 Thread Martin Gainty
Yes
You should design your interactions to avoid static, properly track
resources
You can Control Thread specific interactions via Action class setServlet
method
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/Acti
on.html
HTH,
~Martin~
- Original Message -
From: Irving, Dave [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 7:56 AM
Subject: RE: Thread Safe Action


 broadly speaking, yes.

 -Original Message-
 From: Joao Batistella [mailto:[EMAIL PROTECTED]
 Sent: 12 March 2004 12:53
 To: 'Struts Users Mailing List'
 Subject: Thread Safe Action


 Hello.

 I read that an Action in struts can be shared among another requests. This
 means that we shouldn't use class attributes in the logic that response a
 request?

 Thanks,
 JP

 This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.

 -
 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: Switching from HTTPS to HTTP

2004-03-12 Thread Mark Lowe
There's some java thingy you can use to do this, sslext or something..

If you are using apache for your webserver you can use mod_rewrite 
which means less hassle configuring development envionments and such 
like.

Here's an example.

NameVirtualHost machinedomain.net:80

VirtualHost  www.sparrow.com:80
DocumentRoot /www/www.sparrow.com
SSLEngine off
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^\/checkout 
https://%{SERVER_NAME}%{REQUEST_FILENAME} [R,L]
RewriteRule ^\/admin https://%{SERVER_NAME}%{REQUEST_FILENAME} 
[R,L]

/VirtualHost

Listen *:443
NameVirtualHost [i used the ip here]:443
VirtualHost www.sparrow.com:443
DocumentRoot /www/www.sparrow.com
SSLEngine on
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule !^(\/checkout)|(\/admin) 
http://%{SERVER_NAME}%{REQUEST_FILE
NAME} [R,L]

SSLCertificateFile /[apache home]/conf/ssl.crt/server.crt
SSLCertificateKeyFile /[apache home]/conf/ssl.key/server.key
SSLCACertificateFile /[apache home]/conf/ssl.crt/intermediate.ca
/VirtualHost
and requests containing /admin or /checkout will have https scheme 
forced those that are not wont.

On 12 Mar 2004, at 13:59, Joao Batistella wrote:

Hello!

In my application the login page uses HTTPS to send username and 
password to
the server. But after that, if login operation succeed, I want to send 
the
user to the main application page using HTTP protocol, not HTTPS. How 
can I
switch?

Thanks in advance,
JP


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


Re: Thread Safe Action

2004-03-12 Thread Niall Pemberton
Shahak is correct except its not one action object per JVM  - its one
action object per Struts module.

Struts uses a separate RequestProcessor for each module, the
RequestProcessor stores a single instance of each different Action class in
your module, which it re-uses.

Niall

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 12:57 PM
Subject: RE: Thread Safe Action


Correct: Struts instantiates only one action object (per JVM), so all
variables should be locally (method)-scoped.

Class variables (statics--typically for constants) are fine, but nothing
that's tied to a particular request or user.

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 7:53 AM
To: 'Struts Users Mailing List'
Subject: Thread Safe Action


Hello.

I read that an Action in struts can be shared among another requests.
This
means that we shouldn't use class attributes in the logic that response
a
request?

Thanks,
JP

-
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: Switching from HTTPS to HTTP

2004-03-12 Thread Joao Batistella
But, I would like to find a way in Java, not in the web server because, for
now, I'm using Tomcat web server.
Can I just use a send redirect to a HTTP address??

Ex:
sendRedirect(http://myserver/myapp/main.jsp;);

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 13:30
To: Struts Users Mailing List
Subject: Re: Switching from HTTPS to HTTP


There's some java thingy you can use to do this, sslext or something..

If you are using apache for your webserver you can use mod_rewrite 
which means less hassle configuring development envionments and such 
like.

Here's an example.

NameVirtualHost machinedomain.net:80

VirtualHost  www.sparrow.com:80
 DocumentRoot /www/www.sparrow.com
 SSLEngine off
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^80$
 RewriteRule ^\/checkout 
https://%{SERVER_NAME}%{REQUEST_FILENAME} [R,L]
 RewriteRule ^\/admin https://%{SERVER_NAME}%{REQUEST_FILENAME} 
[R,L]

/VirtualHost

Listen *:443
NameVirtualHost [i used the ip here]:443

VirtualHost www.sparrow.com:443
 DocumentRoot /www/www.sparrow.com
 SSLEngine on
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^443$
 RewriteRule !^(\/checkout)|(\/admin) 
http://%{SERVER_NAME}%{REQUEST_FILE
NAME} [R,L]

 SSLCertificateFile /[apache home]/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /[apache home]/conf/ssl.key/server.key
 SSLCACertificateFile /[apache home]/conf/ssl.crt/intermediate.ca
/VirtualHost


and requests containing /admin or /checkout will have https scheme 
forced those that are not wont.

On 12 Mar 2004, at 13:59, Joao Batistella wrote:

 Hello!

 In my application the login page uses HTTPS to send username and 
 password to
 the server. But after that, if login operation succeed, I want to send 
 the
 user to the main application page using HTTP protocol, not HTTPS. How 
 can I
 switch?

 Thanks in advance,
 JP


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


Re: form class isn't populated

2004-03-12 Thread amr





Here's a link to a post that may have your solution.  It sounds like
problem we discussed last week.  Basically it's an IE bug and there's a
patch for it.  This post has a link to an description of the problem and
how to get the fix, etc.

http://marc.theaimsgroup.com/?l=struts-userm=107884882422516w=2

Amy



   
 Otto, Frank 
 [EMAIL PROTECTED] 
 .de   To 
   '[EMAIL PROTECTED]'  
 03/12/2004 05:37  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to form class isn't populated  
   Struts Users   
   Mailing List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




hi,

I have a difficult problem. After I submit a form, the form class would not
been populated.

If I click the back button of the browser and submit the form again, the
form will be populated.

Has someone the same problem? I think it occurs only in IE 6.0.


Regards,

Frank

-
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: Thread Safe Action

2004-03-12 Thread Juan Espinosa
hi everyone, i need information about struts, but no begginer information,
im developing applications with struts and i want to know how it works
internally
i want to know what is a requestproccessor for example, how works strust
since i press a button in a web page etc etc
if somebody have or know where to find this kind of information.(papers,
blue prints, class diagrams)

thank you all of you

john
Shout America
Montevideo - Uruguay

- Original Message - 
From: Niall Pemberton [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:31 PM
Subject: Re: Thread Safe Action


 Shahak is correct except its not one action object per JVM  - its one
 action object per Struts module.

 Struts uses a separate RequestProcessor for each module, the
 RequestProcessor stores a single instance of each different Action class
in
 your module, which it re-uses.

 Niall

 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 12:57 PM
 Subject: RE: Thread Safe Action


 Correct: Struts instantiates only one action object (per JVM), so all
 variables should be locally (method)-scoped.

 Class variables (statics--typically for constants) are fine, but nothing
 that's tied to a particular request or user.

 -Original Message-
 From: Joao Batistella [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 7:53 AM
 To: 'Struts Users Mailing List'
 Subject: Thread Safe Action


 Hello.

 I read that an Action in struts can be shared among another requests.
 This
 means that we shouldn't use class attributes in the logic that response
 a
 request?

 Thanks,
 JP

 -
 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: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Julio Cesar De Salvo
Maybe the bug in the ValidatorActionForm can be replaced using the page
number workaround?

Thanks

-Mensaje original-
De: Pingili, Madhupal [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
Para: 'Struts Users Mailing List'
Asunto: RE: have anybody ever managed to work the
ValidatorActionForm i don't think so

This was discussed in another thread couple of weeks ago.
Here is the link to that thread:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html

Reddy Pingili

 -Original Message-
 From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 4:08 PM
 To:   'Struts Users Mailing List'
 Subject:  have anybody ever managed to work the
 ValidatorActionForm i don't think so
 
 If so, please send the validation.xml, the jsp file and the Form bean.
  
 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: help! I m going mad

2004-03-12 Thread Siamack
Hello:
 
the  name attribute in your logic:iterate should be your object name not your class 
name. Hope this helps.
 
html:form action=/testAction.do
   logic:iterate name=YOUR OBJECT NAME property=testBean id=mybean 
indexId=index1 
%-- html:text  property=fontName value=12 
indexed=true/--%
   /logic:iterate
   html:submit property=submitValueSubmit Changes/html:submit
/html:form



 
regards,
 
 



-
Post your free ad now! Yahoo! Canada Personals


Re: Switching from HTTPS to HTTP

2004-03-12 Thread Niall Pemberton
Haven't used it but there is a Struts extension for this

   http://sslext.sourceforge.net

Niall

- Original Message - 
From: Joao Batistella [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:36 PM
Subject: RE: Switching from HTTPS to HTTP


But, I would like to find a way in Java, not in the web server because, for
now, I'm using Tomcat web server.
Can I just use a send redirect to a HTTP address??

Ex:
sendRedirect(http://myserver/myapp/main.jsp;);

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 13:30
To: Struts Users Mailing List
Subject: Re: Switching from HTTPS to HTTP


There's some java thingy you can use to do this, sslext or something..

If you are using apache for your webserver you can use mod_rewrite
which means less hassle configuring development envionments and such
like.

Here's an example.

NameVirtualHost machinedomain.net:80

VirtualHost  www.sparrow.com:80
 DocumentRoot /www/www.sparrow.com
 SSLEngine off
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^80$
 RewriteRule ^\/checkout
https://%{SERVER_NAME}%{REQUEST_FILENAME} [R,L]
 RewriteRule ^\/admin https://%{SERVER_NAME}%{REQUEST_FILENAME}
[R,L]

/VirtualHost

Listen *:443
NameVirtualHost [i used the ip here]:443

VirtualHost www.sparrow.com:443
 DocumentRoot /www/www.sparrow.com
 SSLEngine on
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^443$
 RewriteRule !^(\/checkout)|(\/admin)
http://%{SERVER_NAME}%{REQUEST_FILE
NAME} [R,L]

 SSLCertificateFile /[apache home]/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /[apache home]/conf/ssl.key/server.key
 SSLCACertificateFile /[apache home]/conf/ssl.crt/intermediate.ca
/VirtualHost


and requests containing /admin or /checkout will have https scheme
forced those that are not wont.

On 12 Mar 2004, at 13:59, Joao Batistella wrote:

 Hello!

 In my application the login page uses HTTPS to send username and
 password to
 the server. But after that, if login operation succeed, I want to send
 the
 user to the main application page using HTTP protocol, not HTTPS. How
 can I
 switch?

 Thanks in advance,
 JP


-
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: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Niall Pemberton
What is the bug in ValidatorActionForm?

Niall

- Original Message - 
From: Julio Cesar De Salvo [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:48 PM
Subject: RE: have anybody ever managed to work the ValidatorActionForm i
don't think so


 Maybe the bug in the ValidatorActionForm can be replaced using the page
 number workaround?

 Thanks

 -Mensaje original-
 De: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
 Para: 'Struts Users Mailing List'
 Asunto: RE: have anybody ever managed to work the
 ValidatorActionForm i don't think so

 This was discussed in another thread couple of weeks ago.
 Here is the link to that thread:
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html

 Reddy Pingili

  -Original Message-
  From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
  Sent: Thursday, March 11, 2004 4:08 PM
  To: 'Struts Users Mailing List'
  Subject: have anybody ever managed to work the
  ValidatorActionForm i don't think so
 
  If so, please send the validation.xml, the jsp file and the Form bean.
 
  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]





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



Q: How to see Controller 'debug' output?

2004-03-12 Thread bOOyah
Is there a way for me to see what the controller/processor is doing?  I 
added this line to my struts-config.xml but I don't see any 'debug' 
output on stdout or stderr:

controller contentType=text/html debug=2 
processorClass=org.apache.struts.action.RequestProcessor/

I'm running on Tomcat 4.

I'm trying to figure out why a forward doesn't forward to the JSP it's 
supposed to.

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


html:image - running into an infinite loop

2004-03-12 Thread anuj . upadhyay


Hi,
I have read old mails regarding the html:image implementation and the
recommendations related to identifying which image is clicked in the form. For
reference is used Ted's - 'Struts Tip #1 - Use an ImageButtonBean to represent
an image button' @ http://husted.com/struts/tips/001.html

My problem is a step further in the same. I will try my best to explain it, I
hope I get it right.

I have a mainpage which has many image buttons, they all map to different
actions that they must perform. Once the image is clicked, I identify the image
and perform the relevant action by forwarding the call to the relevant action
mapping. Most actions have a .jsp (UI) and action class and are defined in the
struts-config.xml part shown below:

struts-config
  form-beans
form-bean name=dataForm type=com.data.struts.form.DataForm
/form-bean
  /form-beans
  global-forwards
forward name=getData path=/getData.do/
forward name=resetData path=/resetData.do/
  /global-forwards
  action-mappings
action path=/getData type=com.data.struts.action.DataAction
name=dataForm scope=request input=/jsp/dataForm.jsp
  forward name=success path=/jsp/dataForm.jsp/
/action
action path=/resetData type=com.data.struts.action.ResetDataAction
name=dataForm scope=request 
  forward name=success path=/getData.do/
/action
  /action-mappings
  message-resources parameter=ApplicationResources/
/struts-config

In my case DataAction class receives the click event and forward the call to
/resetData.

  //as below
  if (dataForm.getRestButton().pressed()  errors == null) {

   Log.debug(RESET BUTTON :+ dataForm. getRestButton ().getName()
   +, X : + dataForm. getRestButton ().getX()
   +, Y : + dataForm. getRestButton ().getY());
 return (mapping.findForward(resetData));
  }

The ResetDataAction process the request (does some thing) and must return back
to the caller - forward to /getData finally.

//as below
mapping.findForward(getData)

All button handling working fine and I can do the processing in ResetDataAction
but the problem start when I forward the call back to /getData. The call forward
to DataAction class but the button click is identified and the call gets
forwarded back to /resetData and then back here I get into a loop.

I tried to reset on the form (which is common to both action classes) but no
success, I tried explicitly setting the button beans X  Y values to null, still
no success.

What I could do was do the process I was doing in ResetDataAction in DataAction
but that is not what I would like to do.

I want to keep the two implementations separate as one only delegates and the
other does some processing. Can someone throw more light onto this? I have been
reading a lot but have not come across a person who faced a similar problem. It
may be something really basic but I can't solve it the way I want and it's
bothering me.

Any help on this will be much appreciated.
Thanks in advance,

Anuj







__
NOTICE:  This communication and any files transmitted with it (communication)
may contain privileged or other confidential information. This communication is
intended solely for the individual or entity to whom it is addressed. If you are
not the intended recipient, or believe that you have received this communication
in error, please do not print, copy, retransmit, disseminate, or otherwise use
this communication.  Also, please indicate to the sender that you have received
this communication in error, and then delete this communication and any copies.
Thank you.





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



Re: Thread Safe Action

2004-03-12 Thread Niall Pemberton
In Struts 1.0 ActionServlet was the guts of struts with all the processing
logic for a request. In Struts 1.1 the processing logic for a request was
re-factored out into the RequestProcessor. If you want to understand what
happens when struts receieves a request then look at the process() method in
RequestProcessor.

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/action/RequestProcessor.java

Each struts module has a RequestProcessor, if you don't specify it in the
struts-config.xml then you just get the default one (unless your using
Tiles). If you want to configure struts to use your own version of
RequestProcessor then you can do so in the controller element of
struts-config.xml

http://jakarta.apache.org/struts/userGuide/configuration.html#controller_config

I think the best way to understand struts is look at the source, but other
than that a good start is to read the User Manual

http://jakarta.apache.org/struts/userGuide/index.html

Niall

- Original Message - 
From: Juan Espinosa [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 9:39 AM
Subject: Re: Thread Safe Action


 hi everyone, i need information about struts, but no begginer information,
 im developing applications with struts and i want to know how it works
 internally
 i want to know what is a requestproccessor for example, how works strust
 since i press a button in a web page etc etc
 if somebody have or know where to find this kind of
information.(papers,
 blue prints, class diagrams)

 thank you all of you

 john
 Shout America
 Montevideo - Uruguay

 - Original Message - 
 From: Niall Pemberton [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 2:31 PM
 Subject: Re: Thread Safe Action


  Shahak is correct except its not one action object per JVM  - its one
  action object per Struts module.
 
  Struts uses a separate RequestProcessor for each module, the
  RequestProcessor stores a single instance of each different Action class
 in
  your module, which it re-uses.
 
  Niall
 
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, March 12, 2004 12:57 PM
  Subject: RE: Thread Safe Action
 
 
  Correct: Struts instantiates only one action object (per JVM), so all
  variables should be locally (method)-scoped.
 
  Class variables (statics--typically for constants) are fine, but nothing
  that's tied to a particular request or user.
 
  -Original Message-
  From: Joao Batistella [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 12, 2004 7:53 AM
  To: 'Struts Users Mailing List'
  Subject: Thread Safe Action
 
 
  Hello.
 
  I read that an Action in struts can be shared among another requests.
  This
  means that we shouldn't use class attributes in the logic that response
  a
  request?
 
  Thanks,
  JP
 
  -
  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]





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



RE: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Julio Cesar De Salvo
I'm going mad with this issue. I've started using the
ValidatorActionForm but It does not generates the javascript code in the
jsp file.

Many examples have been sent to this mailing list but I've tried them
all and nothing happens.
Struts seems not to understand the action name so no validation is
generated, so I need help.

This is my code if someone can help me.

Struts_config.xml
-
action path=/updateObjetivoCliente

type=org.itechnology.actions.SaveObjetivoAction
name=objetivoForm
validate=true
scope=request
input=objetivo
  forward name=objetivo
path=/objetivo.jsp/
  forward name=success
path=/getObjetivos.do/
/action

Validation.xml
--
form name=/updateObjetivoCliente
field 
property=descripcion
depends=required
  arg0 key=prompt.descripcion/
/field
field 
property=comentario
depends=required
  arg0 key=prompt.comentario/
/field
field property=recursos
   depends=required
 arg0 key=prompt.recursos/
/field
field property=fechaEntrega
   depends=required, date
 arg0 key=prompt.fechaEntrega/
var

var-namedatePatternStrict/var-name

var-valuedd-MM-/var-value
/var
/field
field  property=idCliente
   depends=required
 arg0 key=prompt.cliente/
/field
field property=idProyexto
   depends=required
 arg0 key=prompt.proyecto/
/field
/form

JSP FILE (objetivo.jsp)
--
html:javascript formName=/updateObjetivoCliente
dynamicJavascript=true
 staticJavascript=false method=validateObjetivoForm/
script language=Javascript1.1 src=staticJavascript.jsp/script

and obviously the ObjetivoForm.java extend the ValidatorActionForm
class.


-Mensaje original-
De: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Enviado el: Viernes, 12 de Marzo de 2004 11:01 a.m.
Para: Struts Users Mailing List
Asunto: Re: have anybody ever managed to work the
ValidatorActionForm i don't think so

What is the bug in ValidatorActionForm?

Niall

- Original Message - 
From: Julio Cesar De Salvo [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:48 PM
Subject: RE: have anybody ever managed to work the
ValidatorActionForm i
don't think so


 Maybe the bug in the ValidatorActionForm can be replaced using the
page
 number workaround?

 Thanks

 -Mensaje original-
 De: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
 Para: 'Struts Users Mailing List'
 Asunto: RE: have anybody ever managed to work the
 ValidatorActionForm i don't think so

 This was discussed in another thread couple of weeks ago.
 Here is the link to that thread:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html

 Reddy Pingili

  -Original Message-
  From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
  Sent: Thursday, March 11, 2004 4:08 PM
  To: 'Struts Users Mailing List'
  Subject: have anybody ever managed to work the
  ValidatorActionForm i don't think so
 
  If so, please send the validation.xml, the jsp file and the Form
bean.
 
  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]





-
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: My wizard workflow code.. doesnt work :S

2004-03-12 Thread shirishchandra.sakhare
Hello Edd,

I do not see any reason why the workflow extension should not work with STXX or any 
other extension..Apart from only one reason..STXX needs its own request processor 
which is not working
.But As I have not used STXX,i am not sure about it.

But from what you have posted to me ,I can tell you as follows.

Once the action does a forward, there is some step inSTXX extension, which will use 
the given forward(in your case forward name=success
transform name=default path=/wizardScreen1.xsl/
/forward ) to perform the XML to html conversion using the defined XSLT 
..Most preferably in the  processForwardConfig(request, response, forward) method of 
the  request processor as this is the method that is called after the action returns a 
forward.

Please let me know if STXX uses a custom request processor and have a look in the 
method i have mentioned.

Else I can have a go at it.

HTH.

Regards,
Shirish.


-Original Message-
From: Edd Dawson [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:38 PM
To: Sakhare, Shirishchandra
Subject: RE: My wizard workflow code.. doesnt work :S


Hi Shirish

I am having another crack at getting the workflows working with stxx in
struts...

I am now basically trying converting the example application (the
addition of 2 numbers example) to work with stxx

if the struts-config.xml i have set the following section up :

  action path=/displayWizardScreen1 
   
type=com.livinglogic.struts.workflow.demo.PrepareWizardScreen1Action
name=wizardForm
scope=session
validate=false
set-property property=secondaryWorkflow value=prepareWizard
/
set-property property=prevState value=initialized /
set-property property=primaryWorkflow value=wizardScreen1
/
set-property property=newState value=displayed /
set-property property=nextState value=submitted /
   forward name=success
transform name=default path=/wizardScreen1.xsl/
/forward
  /action


The only change in their to the standard example is :

   forward name=success
transform name=default path=/wizardScreen1.xsl/
/forward


When i run the application when it trys to show the first page of the
wizard it displays a blank screen, i sent it in debug mode as well which
would show the raw xml being output by struts, and it displayed
absolutely nothing as well.

I am now thinking that the workflow extensions may not be able to work
with stxx at all.

What would your opinion be on this?

cheers
Edd

p.s I still cannot get on the struts-user list as my work havent taken
it off the spam list yet :(

 [EMAIL PROTECTED] 03/08/04 4:20 PM 
Hi,
You should find out what ever is the syntax for html hidden paramaters
and Using XSLT , create that string from the XML/or bean property what
ever approach you are using.

-Original Message-
From: Edd Dawson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 5:10 PM
To: Sakhare, Shirishchandra
Subject: RE: My wizard workflow code.. doesnt work :S


Hi Shirish

I tried this method, and it doesn't work as beans don't execute in an
xslt, so it just displays the text : html:hidden name=RegisterForm
property=userName  in plain text above the form!

oh well worth a try :S

Edd

 [EMAIL PROTECTED] 03/08/04 10:34 AM 
I am speaking about html hidden parameters.

In jsp world, After the login page, on the user_details.jsp page would
have something like
html:hidden mame=myFormBean property=userName
html:hidden mame=myFormBean property=password  which will in turn
create 2 hidden parameters of same name on the html for
user_details.jsp(for html details of same, see some HTML site..I am bad
with html syntax..Just know jsps.).So when the user enters all data ,
along with his data, the 2 hidden parameters will be again passed.And
hence available on the second action.SO you can apply similar technique
even with XSLT.


regards,
Shirish

-Original Message-
From: Edd Dawson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 11:30 AM
To: Sakhare, Shirishchandra
Subject: RE: My wizard workflow code.. doesnt work :S


How do the hidden paremeters work? do they get passed via the url?

i.e http://mysite.com/Mypage.do?parameter1=hello,parameter2=world

?

 [EMAIL PROTECTED] 03/08/04 10:26 AM 
Hi,
Also just an afterthought.

If this is just oneoff thing then there is a simpler solution to sharing
data.Use hidden parameters..But in this case as the data contains
username/password, I will not recommand it.

Regards,
Shirish.

-Original Message-
From: Edd Dawson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 11:24 AM
To: Sakhare, Shirishchandra
Subject: RE: My wizard workflow code.. doesnt work :S


thanks shirish

I will have a go with this and see what comes of it, i will have to
modify to try and use stxx, as i am not using jsp's for this project (i
am useless at jsp's) it has to be done using 

Re: How to see Controller 'debug' output?

2004-03-12 Thread Niall Pemberton
I don't think setting debug actually does anything. Struts uses Commons
logging which is a bridge with various logging implementations (I use
log4j).

You need to configure the logging implementation to see the output you want.

Niall

- Original Message - 
From: bOOyah [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:07 PM
Subject: Q: How to see Controller 'debug' output?


 Is there a way for me to see what the controller/processor is doing?  I
 added this line to my struts-config.xml but I don't see any 'debug'
 output on stdout or stderr:

 controller contentType=text/html debug=2
 processorClass=org.apache.struts.action.RequestProcessor/

 I'm running on Tomcat 4.

 I'm trying to figure out why a forward doesn't forward to the JSP it's
 supposed to.

 Thanks.
 -- 
 bOOyah


 -
 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: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Pingili, Madhupal
Here is my jsp that has html:javascript tag:

html:form action=/findLoans focus=accountNo
 onsubmit=return validateFindLoans(this);

 table border=0 width=100%
  tr
   th align=right
bean:message key=prompt.accountNo/
   /th
   td align=left
html:text property=accountNo/
   /td
  /tr
 /table
/html:form

html:javascript formName=/findLoans
method=validateFindLoans
dynamicJavascript=true
 staticJavascript=true/
script language=Javascript1.1 src=staticJavascript.jsp/script


staticJavascript=true  will generate javascript 
and you can view the html source and find yourself.

Reddy Pingili


 -Original Message-
 From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 9:27 AM
 To:   'Struts Users Mailing List'
 Subject:  RE: have anybody ever managed to work the
 ValidatorActionForm i don't think so
 
 I'm going mad with this issue. I've started using the
 ValidatorActionForm but It does not generates the javascript code in the
 jsp file.
 
 Many examples have been sent to this mailing list but I've tried them
 all and nothing happens.
 Struts seems not to understand the action name so no validation is
 generated, so I need help.
 
 This is my code if someone can help me.
 
 Struts_config.xml
 -
 action   path=/updateObjetivoCliente
   
 type=org.itechnology.actions.SaveObjetivoAction
   name=objetivoForm
   validate=true
   scope=request
   input=objetivo
   forward name=objetivo
 path=/objetivo.jsp/
   forward name=success
 path=/getObjetivos.do/
 /action
 
 Validation.xml
 --
   form name=/updateObjetivoCliente
   field 
   property=descripcion
 depends=required
 arg0 key=prompt.descripcion/
   /field
   field 
   property=comentario
 depends=required
 arg0 key=prompt.comentario/
   /field
   field property=recursos
  depends=required
arg0 key=prompt.recursos/
   /field
   field property=fechaEntrega
  depends=required, date
arg0 key=prompt.fechaEntrega/
   var
   
 var-namedatePatternStrict/var-name
   
 var-valuedd-MM-/var-value
 /var
   /field
   field  property=idCliente
  depends=required
arg0 key=prompt.cliente/
   /field
   field property=idProyexto
  depends=required
arg0 key=prompt.proyecto/
   /field
   /form
 
 JSP FILE (objetivo.jsp)
 --
 html:javascript formName=/updateObjetivoCliente
 dynamicJavascript=true
  staticJavascript=false method=validateObjetivoForm/
 script language=Javascript1.1 src=staticJavascript.jsp/script
 
 and obviously the ObjetivoForm.java extend the ValidatorActionForm
 class.
 
 
 -Mensaje original-
 De: Niall Pemberton [mailto:[EMAIL PROTECTED] 
 Enviado el: Viernes, 12 de Marzo de 2004 11:01 a.m.
 Para: Struts Users Mailing List
 Asunto: Re: have anybody ever managed to work the
 ValidatorActionForm i don't think so
 
 What is the bug in ValidatorActionForm?
 
 Niall
 
 - Original Message - 
 From: Julio Cesar De Salvo [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 1:48 PM
 Subject: RE: have anybody ever managed to work the
 ValidatorActionForm i
 don't think so
 
 
  Maybe the bug in the ValidatorActionForm can be replaced using the
 page
  number workaround?
 
  Thanks
 
  -Mensaje original-
  De: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
  Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
  Para: 'Struts Users Mailing List'
  Asunto: RE: have anybody ever managed to work the
  ValidatorActionForm i don't think so
 
  This was discussed in another thread couple of weeks ago.
  Here is the link to that thread:
 
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html
 
  Reddy Pingili
 
   -Original Message-
   From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
   Sent: Thursday, March 11, 2004 4:08 PM
   To: 'Struts Users Mailing List'
   Subject: have anybody ever managed to work the
   ValidatorActionForm i don't think so
  
   If so, please send the validation.xml, the jsp file and the Form
 bean.
  
   Thanks
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, 

Re: Switching from HTTPS to HTTP

2004-03-12 Thread Mark Lowe
You could use a filter which without knowing anything about it i 
imagine what sslext does.

Better than hardcoding redirects. jstl may have something to force the 
scheme also. IMO doing it with mod_rewrite is easier because you any 
have to worry about your live deployment, but if you're using catalina 
as your webserver then I guess that you're going to have to configure 
that.



On 12 Mar 2004, at 14:36, Joao Batistella wrote:

But, I would like to find a way in Java, not in the web server 
because, for
now, I'm using Tomcat web server.
Can I just use a send redirect to a HTTP address??

Ex:
sendRedirect(http://myserver/myapp/main.jsp;);
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 13:30
To: Struts Users Mailing List
Subject: Re: Switching from HTTPS to HTTP
There's some java thingy you can use to do this, sslext or something..

If you are using apache for your webserver you can use mod_rewrite
which means less hassle configuring development envionments and such
like.
Here's an example.

NameVirtualHost machinedomain.net:80

VirtualHost  www.sparrow.com:80
 DocumentRoot /www/www.sparrow.com
 SSLEngine off
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^80$
 RewriteRule ^\/checkout
https://%{SERVER_NAME}%{REQUEST_FILENAME} [R,L]
 RewriteRule ^\/admin https://%{SERVER_NAME}%{REQUEST_FILENAME}
[R,L]
/VirtualHost

Listen *:443
NameVirtualHost [i used the ip here]:443
VirtualHost www.sparrow.com:443
 DocumentRoot /www/www.sparrow.com
 SSLEngine on
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^443$
 RewriteRule !^(\/checkout)|(\/admin)
http://%{SERVER_NAME}%{REQUEST_FILE
NAME} [R,L]
 SSLCertificateFile /[apache home]/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /[apache home]/conf/ssl.key/server.key
 SSLCACertificateFile /[apache 
home]/conf/ssl.crt/intermediate.ca
/VirtualHost

and requests containing /admin or /checkout will have https scheme
forced those that are not wont.
On 12 Mar 2004, at 13:59, Joao Batistella wrote:

Hello!

In my application the login page uses HTTPS to send username and
password to
the server. But after that, if login operation succeed, I want to send
the
user to the main application page using HTTP protocol, not HTTPS. How
can I
switch?
Thanks in advance,
JP


-
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]


[OT] Your Message to struts-user@jakarta.apache.org is Blocked

2004-03-12 Thread Mark Lowe
Anyone else been getting these when you send stuff to the list?

I doubt I've got a virus as I don't use windoze.

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


RE: [OT] Your Message to struts-user@jakarta.apache.org is Blocke d

2004-03-12 Thread Joao Batistella
I'm getting also. And I don't got a virus... I hope :-)

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 14:43
To: Struts Users Mailing List
Subject: [OT] Your Message to [EMAIL PROTECTED] is Blocked 


Anyone else been getting these when you send stuff to the list?

I doubt I've got a virus as I don't use windoze.


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


Re: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Niall Pemberton
You say I've started using the ValidatorActionForm but It does not
generates the javascript code  in the jsp file.

Theres a couple of problems with this:
1) ValidatorActionForm and in fact any ActionForm has nothing to do with
generating javascript - html:javascript tag generates javascript.
2) Nothing is generated in the jsp file - the jsp does the generating to
output to your browser - are you saying that when you do view source in
your browser there is no javascript being generated for validation?

Niall

- Original Message - 
From: Julio Cesar De Salvo [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:26 PM
Subject: RE: have anybody ever managed to work the ValidatorActionForm i
don't think so


 I'm going mad with this issue. I've started using the
 ValidatorActionForm but It does not generates the javascript code in the
 jsp file.

 Many examples have been sent to this mailing list but I've tried them
 all and nothing happens.
 Struts seems not to understand the action name so no validation is
 generated, so I need help.

 This is my code if someone can help me.

 Struts_config.xml
 -
 action path=/updateObjetivoCliente

 type=org.itechnology.actions.SaveObjetivoAction
 name=objetivoForm
 validate=true
 scope=request
 input=objetivo
   forward name=objetivo
 path=/objetivo.jsp/
   forward name=success
 path=/getObjetivos.do/
 /action

 Validation.xml
 --
 form name=/updateObjetivoCliente
 field
 property=descripcion
 depends=required
   arg0 key=prompt.descripcion/
 /field
 field
 property=comentario
 depends=required
   arg0 key=prompt.comentario/
 /field
 field property=recursos
 depends=required
   arg0 key=prompt.recursos/
 /field
 field property=fechaEntrega
 depends=required, date
   arg0 key=prompt.fechaEntrega/
 var

 var-namedatePatternStrict/var-name

 var-valuedd-MM-/var-value
 /var
 /field
 field  property=idCliente
 depends=required
   arg0 key=prompt.cliente/
 /field
 field property=idProyexto
 depends=required
   arg0 key=prompt.proyecto/
 /field
 /form

 JSP FILE (objetivo.jsp)
 --
 html:javascript formName=/updateObjetivoCliente
 dynamicJavascript=true
  staticJavascript=false method=validateObjetivoForm/
 script language=Javascript1.1 src=staticJavascript.jsp/script

 and obviously the ObjetivoForm.java extend the ValidatorActionForm
 class.


 -Mensaje original-
 De: Niall Pemberton [mailto:[EMAIL PROTECTED]
 Enviado el: Viernes, 12 de Marzo de 2004 11:01 a.m.
 Para: Struts Users Mailing List
 Asunto: Re: have anybody ever managed to work the
 ValidatorActionForm i don't think so

 What is the bug in ValidatorActionForm?

 Niall

 - Original Message - 
 From: Julio Cesar De Salvo [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 1:48 PM
 Subject: RE: have anybody ever managed to work the
 ValidatorActionForm i
 don't think so


  Maybe the bug in the ValidatorActionForm can be replaced using the
 page
  number workaround?
 
  Thanks
 
  -Mensaje original-
  De: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
  Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
  Para: 'Struts Users Mailing List'
  Asunto: RE: have anybody ever managed to work the
  ValidatorActionForm i don't think so
 
  This was discussed in another thread couple of weeks ago.
  Here is the link to that thread:
 
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html
 
  Reddy Pingili
 
   -Original Message-
   From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
   Sent: Thursday, March 11, 2004 4:08 PM
   To: 'Struts Users Mailing List'
   Subject: have anybody ever managed to work the
   ValidatorActionForm i don't think so
  
   If so, please send the validation.xml, the jsp file and the Form
 bean.
  
   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]
 
 



 -
 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: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Julio Cesar De Salvo
Thanks, when I received your code I've realized that the backslashes
were causing the problem with the ValidationACtionForm class.

Thanks so much everyone,
Julio

-Mensaje original-
De: Pingili, Madhupal [mailto:[EMAIL PROTECTED] 
Enviado el: Viernes, 12 de Marzo de 2004 11:33 a.m.
Para: 'Struts Users Mailing List'
Asunto: RE: have anybody ever managed to work the
ValidatorActionForm i don't think so

Here is my jsp that has html:javascript tag:

html:form action=/findLoans focus=accountNo
 onsubmit=return validateFindLoans(this);

 table border=0 width=100%
  tr
   th align=right
bean:message key=prompt.accountNo/
   /th
   td align=left
html:text property=accountNo/
   /td
  /tr
 /table
/html:form

html:javascript formName=/findLoans
method=validateFindLoans
dynamicJavascript=true
 staticJavascript=true/
script language=Javascript1.1 src=staticJavascript.jsp/script


staticJavascript=true  will generate javascript 
and you can view the html source and find yourself.

Reddy Pingili


 -Original Message-
 From: Julio Cesar De Salvo [SMTP:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 9:27 AM
 To:   'Struts Users Mailing List'
 Subject:  RE: have anybody ever managed to work the
 ValidatorActionForm i don't think so
 
 I'm going mad with this issue. I've started using the
 ValidatorActionForm but It does not generates the javascript code in
the
 jsp file.
 
 Many examples have been sent to this mailing list but I've tried them
 all and nothing happens.
 Struts seems not to understand the action name so no validation is
 generated, so I need help.
 
 This is my code if someone can help me.
 
 Struts_config.xml
 -
 action   path=/updateObjetivoCliente
   
 type=org.itechnology.actions.SaveObjetivoAction
   name=objetivoForm
   validate=true
   scope=request
   input=objetivo
   forward name=objetivo
 path=/objetivo.jsp/
   forward name=success
 path=/getObjetivos.do/
 /action
 
 Validation.xml
 --
   form name=/updateObjetivoCliente
   field 
   property=descripcion
 depends=required
 arg0 key=prompt.descripcion/
   /field
   field 
   property=comentario
 depends=required
 arg0 key=prompt.comentario/
   /field
   field property=recursos
  depends=required
arg0 key=prompt.recursos/
   /field
   field property=fechaEntrega
  depends=required, date
arg0 key=prompt.fechaEntrega/
   var
   
 var-namedatePatternStrict/var-name
   
 var-valuedd-MM-/var-value
 /var
   /field
   field  property=idCliente
  depends=required
arg0 key=prompt.cliente/
   /field
   field property=idProyexto
  depends=required
arg0 key=prompt.proyecto/
   /field
   /form
 
 JSP FILE (objetivo.jsp)
 --
 html:javascript formName=/updateObjetivoCliente
 dynamicJavascript=true
  staticJavascript=false method=validateObjetivoForm/
 script language=Javascript1.1 src=staticJavascript.jsp/script
 
 and obviously the ObjetivoForm.java extend the ValidatorActionForm
 class.
 
 
 -Mensaje original-
 De: Niall Pemberton [mailto:[EMAIL PROTECTED] 
 Enviado el: Viernes, 12 de Marzo de 2004 11:01 a.m.
 Para: Struts Users Mailing List
 Asunto: Re: have anybody ever managed to work the
 ValidatorActionForm i don't think so
 
 What is the bug in ValidatorActionForm?
 
 Niall
 
 - Original Message - 
 From: Julio Cesar De Salvo [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 1:48 PM
 Subject: RE: have anybody ever managed to work the
 ValidatorActionForm i
 don't think so
 
 
  Maybe the bug in the ValidatorActionForm can be replaced using the
 page
  number workaround?
 
  Thanks
 
  -Mensaje original-
  De: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
  Enviado el: Jueves, 11 de Marzo de 2004 06:07 p.m.
  Para: 'Struts Users Mailing List'
  Asunto: RE: have anybody ever managed to work the
  ValidatorActionForm i don't think so
 
  This was discussed in another thread couple of weeks ago.
  Here is the link to that thread:
 

http://www.mail-archive.com/[EMAIL PROTECTED]/msg95429.html
 
  Reddy Pingili
 
   -Original Message-
   From: Julio Cesar De Salvo [SMTP:[EMAIL 

Re: [OT] Your Message to struts-user@jakarta.apache.org is Blocked

2004-03-12 Thread Niall Pemberton
Yes, quite a few.

- Original Message - 
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:43 PM
Subject: [OT] Your Message to [EMAIL PROTECTED] is Blocked 


 Anyone else been getting these when you send stuff to the list?
 
 I doubt I've got a virus as I don't use windoze.
 
 
 -
 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: [OT] Your Message to struts-user@jakarta.apache.org is Blocke d

2004-03-12 Thread Mark Lowe
These seem to be the folks sending such useful information

http://www.s2lservers.com/

On 12 Mar 2004, at 15:44, Joao Batistella wrote:

I'm getting also. And I don't got a virus... I hope :-)

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 14:43
To: Struts Users Mailing List
Subject: [OT] Your Message to [EMAIL PROTECTED] is Blocked
Anyone else been getting these when you send stuff to the list?

I doubt I've got a virus as I don't use windoze.

-
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: html:image - running into an infinite loop

2004-03-12 Thread Niall Pemberton
The problem you are having, is that each time you forward to an action then
struts will re-populate the form from the request.

That is why you are getting into a loop - when your ResetDataAction
forwards back to getData - the action for getData is having the form
re-populated from the request, including the x, y co-ordinates.

If you did a redirect then you would effectively get a whole new request,
but you would loose everything, not just the x, y co-ordinates.

Niall


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:11 PM
Subject: html:image - running into an infinite loop




Hi,
I have read old mails regarding the html:image implementation and the
recommendations related to identifying which image is clicked in the form.
For
reference is used Ted's - 'Struts Tip #1 - Use an ImageButtonBean to
represent
an image button' @ http://husted.com/struts/tips/001.html

My problem is a step further in the same. I will try my best to explain it,
I
hope I get it right.

I have a mainpage which has many image buttons, they all map to different
actions that they must perform. Once the image is clicked, I identify the
image
and perform the relevant action by forwarding the call to the relevant
action
mapping. Most actions have a .jsp (UI) and action class and are defined in
the
struts-config.xml part shown below:

struts-config
  form-beans
form-bean name=dataForm type=com.data.struts.form.DataForm
/form-bean
  /form-beans
  global-forwards
forward name=getData path=/getData.do/
forward name=resetData path=/resetData.do/
  /global-forwards
  action-mappings
action path=/getData type=com.data.struts.action.DataAction
name=dataForm scope=request input=/jsp/dataForm.jsp
  forward name=success path=/jsp/dataForm.jsp/
/action
action path=/resetData type=com.data.struts.action.ResetDataAction
name=dataForm scope=request 
  forward name=success path=/getData.do/
/action
  /action-mappings
  message-resources parameter=ApplicationResources/
/struts-config

In my case DataAction class receives the click event and forward the call to
/resetData.

  //as below
  if (dataForm.getRestButton().pressed()  errors == null) {

   Log.debug(RESET BUTTON :+ dataForm. getRestButton ().getName()
   +, X : + dataForm. getRestButton ().getX()
   +, Y : + dataForm. getRestButton ().getY());
 return (mapping.findForward(resetData));
  }

The ResetDataAction process the request (does some thing) and must return
back
to the caller - forward to /getData finally.

//as below
mapping.findForward(getData)

All button handling working fine and I can do the processing in
ResetDataAction
but the problem start when I forward the call back to /getData. The call
forward
to DataAction class but the button click is identified and the call gets
forwarded back to /resetData and then back here I get into a loop.

I tried to reset on the form (which is common to both action classes) but no
success, I tried explicitly setting the button beans X  Y values to null,
still
no success.

What I could do was do the process I was doing in ResetDataAction in
DataAction
but that is not what I would like to do.

I want to keep the two implementations separate as one only delegates and
the
other does some processing. Can someone throw more light onto this? I have
been
reading a lot but have not come across a person who faced a similar problem.
It
may be something really basic but I can't solve it the way I want and it's
bothering me.

Any help on this will be much appreciated.
Thanks in advance,

Anuj








__
NOTICE:  This communication and any files transmitted with it
(communication)
may contain privileged or other confidential information. This communication
is
intended solely for the individual or entity to whom it is addressed. If you
are
not the intended recipient, or believe that you have received this
communication
in error, please do not print, copy, retransmit, disseminate, or otherwise
use
this communication.  Also, please indicate to the sender that you have
received
this communication in error, and then delete this communication and any
copies.
Thank you.





-
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]



wizard best practices?

2004-03-12 Thread Dean A. Hoover
I've been reading books, the internet, this list, and
experimenting, attempting to build a model for
best practice for a wizard utilizing struts 1.1 and
DynaValidatorAction. I've got a simple model
working but validation does not work. In other
words, the validator framework does not seem to
be doing its thing. I've recently used DynaValidatorAction
on single forms with great success. The other thing
I am wondering about, assuming the Validator
will validate, is once the code runs the
Action, I'd like to be able to do secondary
validation based on business logic. This means
I would need to get the page number, and I am
not sure I understand how this works. I have a hidden
field on each form in the wizard for page. This
presumably works in conjuction with the field
page attribute in the validation config file. If someone
can explain how I can complete this thing, I would
be grateful. Also, maybe this example could be added
to the struts website as I have to believe I am not the
only one struggling with this.
Many thanks.
Dean Hoover
Here are the files:

=== struts-config.xml ===
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD 
Struts Configuration 1.0//EN 
http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

struts-config
 form-beans
   form-bean name=MyWizard
  type=org.apache.struts.validator.DynaValidatorForm
 form-property name=x type=java.lang.String/
 form-property name=y type=java.lang.String/
 form-property name=z type=java.lang.String/
 form-property name=method type=java.lang.String/
   /form-bean
 /form-beans

 action-mappings

   action path=/mywizard1
   type=MyWizardAction
   name=MyWizard
   scope=session
   input=/mywizard1.jsp
   parameter=method
   validate=true
 forward name=next path=/mywizard2.jsp/
 forward name=cancel path=/mywizardcancel.html/
   /action
   action path=/mywizard2
   type=MyWizardAction
   name=MyWizard
   scope=session
   input=/mywizard2.jsp
   parameter=method
   validate=true
 forward name=previous path=/mywizard1.jsp/
 forward name=next path=/mywizard3.jsp/
 forward name=cancel path=/mywizardcancel.jsp/
   /action
   action path=/mywizard3
   type=MyWizardAction
   name=MyWizard
   scope=session
   input=/mywizard3.jsp
   parameter=method
   validate=true
 forward name=previous path=/mywizard2.jsp/
 forward name=finish path=/mywizarddone.jsp/
 forward name=cancel path=/mywizardcancel.jsp/
   /action
 /action-mappings

 message-resources parameter=resources.application/

 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames
 value=/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml/
 /plug-in
/struts-config
=== validation.xml ===
form-validation
 formset
   form name=MyWizard
 !-- page 1 --
 field property=x page=1 depends=required/
 !-- page 2 --
 field property=y page=2 depends=required/
 !-- page 3 --
 field property=z page=3 depends=required/
   /form
 /formset
/form-validation
=== mywizard1.jsp ===
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
html:html
body
h3Page 1/h3
html:errors/
html:form method=post action=/mywizard1.do
html:hidden property=page value=1/
x = html:text property=x/
html:submit property=methodbean:message 
key=button.next//html:submit
html:submit property=methodbean:message 
key=button.cancel//html:submit
/html:form
/body
/html:html
=== mywizard2.jsp ===
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
html:html
body
h3Page 2/h3
html:errors/
html:form method=post action=/mywizard2.do
html:hidden property=page value=2/
y = html:text property=y/
html:submit property=methodbean:message 
key=button.previous//html:submit
html:submit property=methodbean:message 
key=button.next//html:submit
html:submit property=methodbean:message 
key=button.cancel//html:submit
/html:form
/body
/html:html
=== mywizard3.jsp ===
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
html:html
body
h3Page 3/h3
html:errors/
html:form method=post action=/mywizard3.do
html:hidden property=page value=3/
z = html:text property=z/
html:submit property=methodbean:message 
key=button.previous//html:submit
html:submit property=methodbean:message 
key=button.finish//html:submit
html:submit property=methodbean:message 
key=button.cancel//html:submit
/html:form
/body
/html:html
=== mywizarddone.jsp ===
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
html:html
body
x = bean:write name=MyWizard property=x/br/
y = bean:write name=MyWizard property=y/br/
z = bean:write name=MyWizard property=z/br/
/body
/html:html
=== mywizardcanel.jsp ===

Re: [OT] Your Message to struts-user@jakarta.apache.org is Blocked

2004-03-12 Thread Christian Bollmeyer
+1

Two of my recent mails got a Spam Assassin rating of 10.1
(5.0 required), with the confirmation mails boasting about
'just to prove the power of this service' (whose name I
already forgot again). Just wish they wouldn't reply in
HTML with all those pictures included (104K) each time.
That's extremely annoying with the 56K modem connection
I'm doomed to at home, in particular.

-- Chris.

- Original Message - 
From: Joao Batistella [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:44 PM
Subject: RE: [OT] Your Message to [EMAIL PROTECTED] is Blocked


I'm getting also. And I don't got a virus... I hope :-)

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 14:43
To: Struts Users Mailing List
Subject: [OT] Your Message to [EMAIL PROTECTED] is Blocked


Anyone else been getting these when you send stuff to the list?

I doubt I've got a virus as I don't use windoze.


-
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: wizard best practices?

2004-03-12 Thread Niall Pemberton
Did you add a page property to your DynaValidatorAction form definition in
the struts-config.xml?

Niall

- Original Message - 
From: Dean A. Hoover [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:15 PM
Subject: wizard best practices?


 I've been reading books, the internet, this list, and
 experimenting, attempting to build a model for
 best practice for a wizard utilizing struts 1.1 and
 DynaValidatorAction. I've got a simple model
 working but validation does not work. In other
 words, the validator framework does not seem to
 be doing its thing. I've recently used DynaValidatorAction
 on single forms with great success. The other thing
 I am wondering about, assuming the Validator
 will validate, is once the code runs the
 Action, I'd like to be able to do secondary
 validation based on business logic. This means
 I would need to get the page number, and I am
 not sure I understand how this works. I have a hidden
 field on each form in the wizard for page. This
 presumably works in conjuction with the field
 page attribute in the validation config file. If someone
 can explain how I can complete this thing, I would
 be grateful. Also, maybe this example could be added
 to the struts website as I have to believe I am not the
 only one struggling with this.

 Many thanks.
 Dean Hoover

 Here are the files:

 === struts-config.xml ===
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD
 Struts Configuration 1.0//EN
 http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

 struts-config
   form-beans
 form-bean name=MyWizard
type=org.apache.struts.validator.DynaValidatorForm
   form-property name=x type=java.lang.String/
   form-property name=y type=java.lang.String/
   form-property name=z type=java.lang.String/

   form-property name=method type=java.lang.String/
 /form-bean

   /form-beans

   action-mappings

 action path=/mywizard1
 type=MyWizardAction
 name=MyWizard
 scope=session
 input=/mywizard1.jsp
 parameter=method
 validate=true

   forward name=next path=/mywizard2.jsp/
   forward name=cancel path=/mywizardcancel.html/
 /action

 action path=/mywizard2
 type=MyWizardAction
 name=MyWizard
 scope=session
 input=/mywizard2.jsp
 parameter=method
 validate=true

   forward name=previous path=/mywizard1.jsp/
   forward name=next path=/mywizard3.jsp/
   forward name=cancel path=/mywizardcancel.jsp/
 /action

 action path=/mywizard3
 type=MyWizardAction
 name=MyWizard
 scope=session
 input=/mywizard3.jsp
 parameter=method
 validate=true

   forward name=previous path=/mywizard2.jsp/
   forward name=finish path=/mywizarddone.jsp/
   forward name=cancel path=/mywizardcancel.jsp/
 /action

   /action-mappings

   message-resources parameter=resources.application/

   plug-in className=org.apache.struts.validator.ValidatorPlugIn
 set-property property=pathnames
   value=/WEB-INF/validator-rules.xml,
  /WEB-INF/validation.xml/
   /plug-in

 /struts-config
 === validation.xml ===
 form-validation
   formset
 form name=MyWizard
   !-- page 1 --
   field property=x page=1 depends=required/

   !-- page 2 --
   field property=y page=2 depends=required/

   !-- page 3 --
   field property=z page=3 depends=required/
 /form
   /formset
 /form-validation
 === mywizard1.jsp ===
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 html:html
 body
 h3Page 1/h3
 html:errors/
 html:form method=post action=/mywizard1.do
 html:hidden property=page value=1/
 x = html:text property=x/
 html:submit property=methodbean:message
 key=button.next//html:submit
 html:submit property=methodbean:message
 key=button.cancel//html:submit
 /html:form
 /body
 /html:html
 === mywizard2.jsp ===
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 html:html
 body
 h3Page 2/h3
 html:errors/
 html:form method=post action=/mywizard2.do
 html:hidden property=page value=2/
 y = html:text property=y/
 html:submit property=methodbean:message
 key=button.previous//html:submit
 html:submit property=methodbean:message
 key=button.next//html:submit
 html:submit property=methodbean:message
 key=button.cancel//html:submit
 /html:form
 /body
 /html:html
 === mywizard3.jsp ===
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 html:html
 body
 h3Page 3/h3
 html:errors/
 html:form method=post action=/mywizard3.do
 html:hidden property=page value=3/
 z = html:text property=z/
 html:submit property=methodbean:message
 key=button.previous//html:submit
 

Problem while accessing modules via multiple struts config files

2004-03-12 Thread Sudhakar G
Hi All,
I have multiple config file for a ActionServlet to support different
modules.I have configured in web.xml as follows.Then I created a jsp under
the app root to which as the content as follows,when I try to click the link
present in the JSP It shows Request URI not found.Can any one help me out to
solve the problem.

web.xml:
servlet
servlet-nameaction/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-nameconfig/prg/param-name

param-value/WEB-INF/struts-prg-config.xml/param-value
/init-param
init-param
param-nameconfig/home/param-name

param-value/WEB-INF/struts-home-config.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-value2/param-value
/init-param
init-param
param-namedetail/param-name
param-value2/param-value
/init-param
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
/servlet

Jsp Content:
a href=home/Homehome/a



Thanks  Regards

Sudhakar
Mindtree Consulting Private Ltd.
Bangalore.

Quote:-
Imagination is more important than knowledge. 
--Albert Einstein 




DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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



Someone out there must have done this with Struts 1.0

2004-03-12 Thread Au-Yeung, Stella H
Has someone out there successfully set the selected option of a
html:select under Struts 1.0?

What I try to do is to set the option as selected when userId matches
shopWorkOrder.engineerId:
bean:define id=eList name=ShopWorkOrderFormBean
property=engineerList/
html:select property=shopWorkOrder.engineerId 
   html:options collection=eList name=ShopWorkOrderFormBean
property=userId labelproperty=commonName/
/html:select

I tried the following two things based on all your input but still can't get
it working:
Using optionsCollection  -
1) The following gave a compilation error claiming doesn't recognize
optionsCollection.   I think this is a Struts 1.0 problem.
 bean:define id=eList name=ShopWorkOrderFormBean
property=engineerList/
 html:select property=shopWorkOrder.engineerId
html:optionsCollection  name=eList value=userId
label=commonName/
 /html:select

Using value%=...%   -
2) The following also gave a compilation error that it doesn't like
value%=...%
 bean:define id=eList name=ShopWorkOrderFormBean
property=engineerList/
 html:select property=shopWorkOrder.engineerId
value=%=shopWorkOrder.engineerId%
html:options collection=eList name=ShopWorkOrderFormBean
property=userId labelproperty=commonName/
 /html:select

I use debug statements inside the JSP to make sure there is a matching
userId:
 Eng id:bean:write name=ShopWorkOrderFormBean
property=shopWorkOrder.engineerId/br
 bean:define id=engrList name=ShopWorkOrderFormBean
property=engineerList/
 logic:iterate id=element name=engrList
  Label:bean:write name=element property=commonName/nbsp;nbsp;
  Value:bean:write name=element property=userId/brbr
 /logic:iterate

 Here's the output from the above debug:
 Eng id:8
 Label:JOE ENGINEER L   Value:3
 Label:VERLINDA BROOME   Value:NZW32M
 Label:FRANK WHITON   Value:NZ7Z1Q
 Label:Another Active Engineer   Value:8

Setting the selected in a html:select is a very basic operation.  I
can't see that being a bug in Struts 1.0.   But somehow it doesn't work. 
Has anyone done it successfully before???



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



RE: Validation failing when connected through Proxy???

2004-03-12 Thread Paul, R. Chip
Found some references to others with the same problem.  It seems the problem
usually pops up when you are using Apache mod_proxy to proxy a Struts app
with IE 6.0

I found another reference to calling invalidate on the sesison fixing this
problem.  It sounds to me like the session might not be getting set
correctly, but this problem only manifests on a few of our pages.  

The validation failing is as I suspected just the symptom of the problem -
either the parameters aren't making it to the server, or the bean isn't
getting populated.

This ringing any bells out there?

-Original Message-
From: Paul, R. Chip [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 11, 2004 5:49 PM
To: Struts User ([EMAIL PROTECTED])
Subject: Validation failing when connected through Proxy???


When testing our deployed app through a proxy server (clients - Proxy with
SSL, then through firewall to true server), we've run into a problem where
in some pages Validation fails for *some* clients.  It looks almost as if
all the form fields are blanked on submission.

The confusing part is that it happens consistently on some computers, but
not on others. The problem exists both with and without the same version of
I.E, on static or dynamic Ips, one same or different net address ranges
(10.* and 139.*), and on various OS's.

Has anyone seen this before, or can point me to some things to double check?
The app works fine for all users when not going through the proxy.

Chip Paul
Sr Software Engineer
ComFrame Software Corporation
 
Listen.Understand.Innovate
www.comframe.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]



Re: Someone out there must have done this with Struts 1.0

2004-03-12 Thread Niall Pemberton
The html:optionsCollection tag was introduced in Struts 1.1 so thats why
it doesn't work - which means you are correct to use the html:options tag.

The only comment I have, the difference between your debug stuff and the
html:select tag is you missed out the name attribute on the
html:select  tag . Also, on the html:options tag if you use the
collection attribute then the name attribute is not used - its not an
issue, but you just don't need it.

Try

 bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
 html:select name=ShopWorkOrderFormBean
  property=shopWorkOrder.engineerId 
html:options collection=eList property=userId
labelProperty=commonName/
 /html:select


Niall

- Original Message - 
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:31 PM
Subject: Someone out there must have done this with Struts 1.0


 Has someone out there successfully set the selected option of a
 html:select under Struts 1.0?

 What I try to do is to set the option as selected when userId matches
 shopWorkOrder.engineerId:
 bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
 html:select property=shopWorkOrder.engineerId 
html:options collection=eList name=ShopWorkOrderFormBean
 property=userId labelproperty=commonName/
 /html:select

 I tried the following two things based on all your input but still can't
get
 it working:
 Using optionsCollection  -
 1) The following gave a compilation error claiming doesn't recognize
 optionsCollection.   I think this is a Struts 1.0 problem.
  bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
  html:select property=shopWorkOrder.engineerId
 html:optionsCollection  name=eList value=userId
 label=commonName/
  /html:select

 Using value%=...%   -
 2) The following also gave a compilation error that it doesn't like
 value%=...%
  bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
  html:select property=shopWorkOrder.engineerId
 value=%=shopWorkOrder.engineerId%
 html:options collection=eList name=ShopWorkOrderFormBean
 property=userId labelproperty=commonName/
  /html:select

 I use debug statements inside the JSP to make sure there is a matching
 userId:
  Eng id:bean:write name=ShopWorkOrderFormBean
 property=shopWorkOrder.engineerId/br
  bean:define id=engrList name=ShopWorkOrderFormBean
 property=engineerList/
  logic:iterate id=element name=engrList
   Label:bean:write name=element property=commonName/nbsp;nbsp;
   Value:bean:write name=element property=userId/brbr
  /logic:iterate
 
  Here's the output from the above debug:
  Eng id:8
  Label:JOE ENGINEER L   Value:3
  Label:VERLINDA BROOME   Value:NZW32M
  Label:FRANK WHITON   Value:NZ7Z1Q
  Label:Another Active Engineer   Value:8

 Setting the selected in a html:select is a very basic operation.  I
 can't see that being a bug in Struts 1.0.   But somehow it doesn't work.
 Has anyone done it successfully before???



 -
 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]



html:img unexpected behaviour....

2004-03-12 Thread Leticia Golubov
I have the following code on a jsp page:

html:image src=/precision/images/button_toolbar_debug_stop.png
onclick=document.forms[0].submit();

onmouseover=javascript:SwapImage('stop','/precision/images/button_toolbar_d
ebug_stop_over.png'); SetStatus('Stop Discovery'); return true;
property=mode value=stop
border=0 alt=Stop
/html:image

onmouseover, onmouseout, etc doesn't work when it comes to swapping the
image, but that's the least of my worries at the minute (although I'd
greatly appreciate some light being shed on that one...)

The big question is, in Netscape 7.1 the behaviour is as I'd expect when I
click on the image (i.e. the mode is set to stop in my form)I verify
this by printing debug from the equivalent action class.

On Internet Explorer, however, the value for mode doesn't change (to
stop when onclick is invoked...  why?!?!

regards

Leticia


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



Re: html:image - running into an infinite loop

2004-03-12 Thread anuj . upadhyay



Niall, Thanks for the help. Atleast now I know where to look to solve the
problem.

My next question, how to remove / reset the button parameters (x  y) in the
Request?

I need the other parameters to stay (sort of refresh / repost, but don't want to
 go back to 'ResetDataAction') .


-Anuj


Response to: html:image - running into an infinite loop
([EMAIL PROTECTED])

From: Niall Pemberton [EMAIL PROTECTED]
Subject: html:image - running into an infinite loop
Date: Fri, 12 Mar 2004 15:03:02 -
Content-Type: text/plain;
 charset=iso-8859-1

The problem you are having, is that each time you forward to an action then
struts will re-populate the form from the request.

That is why you are getting into a loop - when your ResetDataAction
forwards back to getData - the action for getData is having the form
re-populated from the request, including the x, y co-ordinates.

If you did a redirect then you would effectively get a whole new request,
but you would loose everything, not just the x, y co-ordinates.

Niall


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:11 PM
Subject: html:image - running into an infinite loop




Hi,
I have read old mails regarding the html:image implementation and the
recommendations related to identifying which image is clicked in the form.
For
reference is used Ted's - 'Struts Tip #1 - Use an ImageButtonBean to
represent
an image button' @ http://husted.com/struts/tips/001.html

My problem is a step further in the same. I will try my best to explain it,
I
hope I get it right.

I have a mainpage which has many image buttons, they all map to different
actions that they must perform. Once the image is clicked, I identify the
image
and perform the relevant action by forwarding the call to the relevant
action
mapping. Most actions have a .jsp (UI) and action class and are defined in
the
struts-config.xml part shown below:

struts-config
  form-beans
form-bean name=dataForm type=com.data.struts.form.DataForm
/form-bean
  /form-beans
  global-forwards
forward name=getData path=/getData.do/
forward name=resetData path=/resetData.do/
  /global-forwards
  action-mappings
action path=/getData type=com.data.struts.action.DataAction
name=dataForm scope=request input=/jsp/dataForm.jsp
  forward name=success path=/jsp/dataForm.jsp/
/action
action path=/resetData type=com.data.struts.action.ResetDataAction
name=dataForm scope=request 
  forward name=success path=/getData.do/
/action
  /action-mappings
  message-resources parameter=ApplicationResources/
/struts-config

In my case DataAction class receives the click event and forward the call to
/resetData.

  //as below
  if (dataForm.getRestButton().pressed()  errors == null) {

   Log.debug(RESET BUTTON :+ dataForm. getRestButton ().getName()
   +, X : + dataForm. getRestButton ().getX()
   +, Y : + dataForm. getRestButton ().getY());
 return (mapping.findForward(resetData));
  }

The ResetDataAction process the request (does some thing) and must return
back
to the caller - forward to /getData finally.

//as below
mapping.findForward(getData)

All button handling working fine and I can do the processing in
ResetDataAction
but the problem start when I forward the call back to /getData. The call
forward
to DataAction class but the button click is identified and the call gets
forwarded back to /resetData and then back here I get into a loop.

I tried to reset on the form (which is common to both action classes) but no
success, I tried explicitly setting the button beans X  Y values to null,
still
no success.

What I could do was do the process I was doing in ResetDataAction in
DataAction
but that is not what I would like to do.

I want to keep the two implementations separate as one only delegates and
the
other does some processing. Can someone throw more light onto this? I have
been
reading a lot but have not come across a person who faced a similar problem.
It
may be something really basic but I can't solve it the way I want and it's
bothering me.

Any help on this will be much appreciated.
Thanks in advance,

Anuj





__
NOTICE:  This communication and any files transmitted with it (communication)
may contain privileged or other confidential information. This communication is
intended solely for the individual or entity to whom it is addressed. If you are
not the intended recipient, or believe that you have received this communication
in error, please do not print, copy, retransmit, disseminate, or otherwise use
this communication.  Also, please indicate to the sender that you have received
this communication in error, and then delete this communication and any copies.
Thank you.





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

Re: wizard best practices?

2004-03-12 Thread Dean A. Hoover
Niall Pemberton wrote:

Did you add a page property to your DynaValidatorAction form definition in
the struts-config.xml?
Niall

 

OK. Just added that... BTW it must be defined as Integer as in:
 form-property name=page type=java.lang.Integer/
Thanks alot, that solves part of my problem. How do I solve the
other problem? I want to be able to perform secondary validation
based on business logic in the MyWizardAction class as given
in my previous message. Let's just say for argument sake, that
on page 2 it is determined that y cannot be aaa. What modification
needs to be done to MyWizardAction.java and struts-config.xml
to accomplish this?
Dean Hoover

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


RE: help implementing modules...

2004-03-12 Thread Liu, Anne I
I think it might be a problem with using the html tag library?? 

I use straight HTML and it seems to work fine

form action=DomainSearch.do
 -Original Message-
 From: Damm, Gary [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 5:50 PM
 To:   Daniel; Struts Users Mailing List
 Subject:  RE: help implementing modules...
 
 Thanks for the feedback.  I removed these and still the same problem.
 
 Also, I originally put them in on the guidance of the UserGuide.
 
 Anything else look like a problem?
 
 Thanks,
 Gary
 
  -Original Message-
  From: Daniel [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 11, 2004 1:41 PM
  To: Struts Users Mailing List
  Subject: Re: help implementing modules...
  
  ops ;-) and contextRelative too.
  
  
  - Original Message -
  From: Liu, Anne I [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Thursday, March 11, 2004 5:08 PM
  Subject: RE: help implementing modules...
  
  
   I don't know if this will help, but you have to prepend the module
 name
  into
   your URL.
  
   Thus, your link should look like
  
   html-el:form action=module1/DomainSearch
  
   I've found the short section in the struts the most helpful when
 dealing
   with modules
  
  
 
 http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_
 mo
  du
   les
  
-Original Message-
From: Damm, Gary [SMTP:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 1:56 PM
To: [EMAIL PROTECTED]
Subject: help implementing modules...
   
I've successfully used Struts for several applications and have
 been
very happy with it.  I am getting ready to use it for a larger
 project
and would like to use modules but I'm having some problems.
   
It appears that when I attempt to switch from the default module
 to a
new module (module1) it never actually recognizes the new module.
  When
I attempt to go to a page in the new module that references an
 action
that is defined in the new module action mappings I consistently
 get
  the
following error.  I have looked through the documentation and
 browsed
the list archive and still can not figure out what I'm doing
 wrong.
  Any
help appreciated.
   
Also, if anyone knows a good book that documents modules well I'd
 like
to know (Struts In Action and Jakarta Struts have little
 information
  on
modules).
   
The error:
...
[2004/03/11 11:23:07] Cannot retrieve mapping for action
 /DomainSearch
javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/DomainSearch
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at
   
 
 org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
at _module1._home__jsp._jspService(_home__jsp.java:448)
...
   
Here is my web.xml where I define the module:
   
...
init-param id=InitParam_4
param-nameconfig/module1/param-name
param-value/WEB-INF/struts-config-module1.xml/param-value
/init-param
...
   
Here is my forward to the page in module1:
...
action
  path=/Module1HomeLink
  type=com.qualcomm.bds.struts.SampleAppSuccessAction
  unknown=false
  validate=false 
   
  forward
name=success
path=/module1/Home.jsp
contextRelative=true
redirect=true /
   
/action
...
   
Here is my link on the originating jsp (in default module):
...
html-el:link action=Module1HomeLinkbean:message
key=label.module1//html-el:link
...
   
Here is the form in the new module that references the action:
...
html-el:form action=DomainSearch
...
   
Here is the action in the module1 config file:
...
action
  path=/DomainSearch
  name=SearchForm
  type=com.qualcomm.bds.struts.SampleAppSearchAction
  unknown=false
  validate=true
  input=/module1/Home.jsp 
   
  forward
name=success
path=/module1/List.jsp
contextRelative=true /
   
exception
key=errors.generic
type=java.lang.Exception/
   
/action
...
   
   
 -
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]

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

URL Rewriting

2004-03-12 Thread Joao Batistella
Hello!

Why sometimes and I can see the the attribute jsessionid in the URL of my
app and sometimes and I can't?
Anybody know how to control this behaviour?

Thanks,
JP


how to automatically forward user's page to a html link at speified time

2004-03-12 Thread
Hi, all
   
   I want the struts application have an internal timer. When the 
specified time(like 9:00pm) arrive, the user's current page should be 
forwarded to another html link. I know the java.util.timer and 
java.util.TimerTask can do such thing. Maybe I can put the timer class 
stuff in HttpSessionListener or ServletContextListener, but I just have no 
idea how to forward a page inside the TimerTask class not inside action as 
usual?

   So did anyone come across the similar problem? Could you shed me light 
on it?

   Thanks in Advance.

Best Regards,
Alex
_
 MSN Explorer:   http://explorer.msn.com/lccn/  

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


RE: Someone out there must have done this with Struts 1.0

2004-03-12 Thread Au-Yeung, Stella H
Thanks Niall.   Actually my original version did have the name attribute
in it.   It just got lost after I tried so many different things. 
In your opinion, don't you think one should be able to set selected under
Struts 1.0?  I dig through the Struts User Guide and Struts web site, there
is no example and no mentioning that being a bug.   Do you know is there a
way that I can get to or send an email to one of the original Struts tag
developers to ask the question?  

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 10:54 AM
To: Struts Users Mailing List
Subject: Re: Someone out there must have done this with Struts 1.0


The html:optionsCollection tag was introduced in Struts 1.1 so thats why
it doesn't work - which means you are correct to use the html:options tag.

The only comment I have, the difference between your debug stuff and the
html:select tag is you missed out the name attribute on the
html:select  tag . Also, on the html:options tag if you use the
collection attribute then the name attribute is not used - its not an
issue, but you just don't need it.

Try

 bean:define id=eList name=ShopWorkOrderFormBean
property=engineerList/  html:select name=ShopWorkOrderFormBean
  property=shopWorkOrder.engineerId 
html:options collection=eList property=userId
labelProperty=commonName/  /html:select


Niall

- Original Message - 
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:31 PM
Subject: Someone out there must have done this with Struts 1.0


 Has someone out there successfully set the selected option of a 
 html:select under Struts 1.0?

 What I try to do is to set the option as selected when userId 
 matches
 shopWorkOrder.engineerId:
 bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
 html:select property=shopWorkOrder.engineerId 
html:options collection=eList name=ShopWorkOrderFormBean
 property=userId labelproperty=commonName/
 /html:select

 I tried the following two things based on all your input but still 
 can't
get
 it working:
 Using optionsCollection  -
 1) The following gave a compilation error claiming doesn't recognize
 optionsCollection.   I think this is a Struts 1.0 problem.
  bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
  html:select property=shopWorkOrder.engineerId
 html:optionsCollection  name=eList value=userId
 label=commonName/
  /html:select

 Using value%=...%   -
 2) The following also gave a compilation error that it doesn't like 
 value%=...%
  bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/
  html:select property=shopWorkOrder.engineerId
 value=%=shopWorkOrder.engineerId%
 html:options collection=eList name=ShopWorkOrderFormBean
 property=userId labelproperty=commonName/
  /html:select

 I use debug statements inside the JSP to make sure there is a matching
 userId:
  Eng id:bean:write name=ShopWorkOrderFormBean
 property=shopWorkOrder.engineerId/br
  bean:define id=engrList name=ShopWorkOrderFormBean
 property=engineerList/
  logic:iterate id=element name=engrList  Label:bean:write 
  name=element property=commonName/nbsp;nbsp;
   Value:bean:write name=element property=userId/brbr 
  /logic:iterate
 
  Here's the output from the above debug:
  Eng id:8
  Label:JOE ENGINEER L   Value:3
  Label:VERLINDA BROOME   Value:NZW32M
  Label:FRANK WHITON   Value:NZ7Z1Q
  Label:Another Active Engineer   Value:8

 Setting the selected in a html:select is a very basic operation.  I
 can't see that being a bug in Struts 1.0.   But somehow it doesn't work.
 Has anyone done it successfully before???



 -
 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: how to automatically forward user's page to a html link at speified time

2004-03-12 Thread Shahak.Nagiel
If the intent is to forward to a home or logout page after a period of inactivity, 
using a javascript method or META:REFRESH tag is the only way to do so out of the 
context of a request, since--as you said--in a separate thread or servlet, any timer 
wouldn't have access to the action class.

You could, I suppose, have all your action classes check some session- or 
globally-scoped timer and redirect based on that criteria, but it doesn't sound like 
that's what you're after...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 11:18 AM
To: [EMAIL PROTECTED]
Subject: how to automatically forward user's page to a html link at speified time


Hi, all

I want the struts application have an internal timer. When the 
specified time(like 9:00pm) arrive, the user's current page should be 
forwarded to another html link. I know the java.util.timer and 
java.util.TimerTask can do such thing. Maybe I can put the timer class 
stuff in HttpSessionListener or ServletContextListener, but I just have no 
idea how to forward a page inside the TimerTask class not inside action as 
usual?

So did anyone come across the similar problem? Could you shed me light 
on it?

Thanks in Advance.

Best Regards,
Alex

_
 MSN Explorer:   http://explorer.msn.com/lccn/  


-
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: help implementing modules...

2004-03-12 Thread Liu, Anne I
After doing a little more research, it looks like the html:form tag only
uses the current module.  Thus, what you need to do is switch modules before
you do a form post.

One way to do this is change your default config xml to link to the html
form page in your module1

action path=/Module1HomeLink
type=com.qualcomm.bds.struts.SampleAppSuccessAction validate=false 

  forward name=success path=module1/home.do  /   
/action


Then in your struts-config-module1.xml add the following entry
action path=/home forward=/Home.jsp /

action
  path=/DomainSearch
  name=SearchForm
  type=com.qualcomm.bds.struts.SampleAppSearchAction
  input=/Home.jsp 

Hope this helps!
 -Original Message-
 From: Liu, Anne I [SMTP:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 10:13 AM
 To:   'Struts Users Mailing List'
 Subject:  RE: help implementing modules...
 
 I think it might be a problem with using the html tag library?? 
 
 I use straight HTML and it seems to work fine
 
 form action=DomainSearch.do
  -Original Message-
  From:   Damm, Gary [SMTP:[EMAIL PROTECTED]
  Sent:   Thursday, March 11, 2004 5:50 PM
  To: Daniel; Struts Users Mailing List
  Subject:RE: help implementing modules...
  
  Thanks for the feedback.  I removed these and still the same problem.
  
  Also, I originally put them in on the guidance of the UserGuide.
  
  Anything else look like a problem?
  
  Thanks,
  Gary
  
   -Original Message-
   From: Daniel [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 11, 2004 1:41 PM
   To: Struts Users Mailing List
   Subject: Re: help implementing modules...
   
   ops ;-) and contextRelative too.
   
   
   - Original Message -
   From: Liu, Anne I [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' [EMAIL PROTECTED]
   Sent: Thursday, March 11, 2004 5:08 PM
   Subject: RE: help implementing modules...
   
   
I don't know if this will help, but you have to prepend the module
  name
   into
your URL.
   
Thus, your link should look like
   
html-el:form action=module1/DomainSearch
   
I've found the short section in the struts the most helpful when
  dealing
with modules
   
   
  
  http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_
  mo
   du
les
   
 -Original Message-
 From: Damm, Gary [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 1:56 PM
 To: [EMAIL PROTECTED]
 Subject: help implementing modules...

 I've successfully used Struts for several applications and have
  been
 very happy with it.  I am getting ready to use it for a larger
  project
 and would like to use modules but I'm having some problems.

 It appears that when I attempt to switch from the default module
  to a
 new module (module1) it never actually recognizes the new module.
   When
 I attempt to go to a page in the new module that references an
  action
 that is defined in the new module action mappings I consistently
  get
   the
 following error.  I have looked through the documentation and
  browsed
 the list archive and still can not figure out what I'm doing
  wrong.
   Any
 help appreciated.

 Also, if anyone knows a good book that documents modules well I'd
  like
 to know (Struts In Action and Jakarta Struts have little
  information
   on
 modules).

 The error:
 ...
 [2004/03/11 11:23:07] Cannot retrieve mapping for action
  /DomainSearch
 javax.servlet.jsp.JspException: Cannot retrieve mapping for action
 /DomainSearch
 at
 org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at

  
  org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
 at _module1._home__jsp._jspService(_home__jsp.java:448)
 ...

 Here is my web.xml where I define the module:

 ...
 init-param id=InitParam_4
 param-nameconfig/module1/param-name
 param-value/WEB-INF/struts-config-module1.xml/param-value
 /init-param
 ...

 Here is my forward to the page in module1:
 ...
 action
   path=/Module1HomeLink
   type=com.qualcomm.bds.struts.SampleAppSuccessAction
   unknown=false
   validate=false 

   forward
 name=success
 path=/module1/Home.jsp
 contextRelative=true
 redirect=true /

 /action
 ...

 Here is my link on the originating jsp (in default module):
 ...
 html-el:link action=Module1HomeLinkbean:message
 key=label.module1//html-el:link
 ...

 Here is the form in the new module that references the action:
 ...
 html-el:form action=DomainSearch
 ...

 Here is the action in the module1 config file:
 ...
 action
   

Re: Switching from HTTPS to HTTP

2004-03-12 Thread Adam Hardy
sslext works brilliantly with struts and container-managed security. 
Definitely what you want. You put attributes in your action mappings to 
tell it whether you want the action mapping under SSL or not. It handles 
the redirection to / from SSL.

Adam

On 03/12/2004 03:39 PM Mark Lowe wrote:
You could use a filter which without knowing anything about it i imagine 
what sslext does.

Better than hardcoding redirects. jstl may have something to force the 
scheme also. IMO doing it with mod_rewrite is easier because you any 
have to worry about your live deployment, but if you're using catalina 
as your webserver then I guess that you're going to have to configure that.



On 12 Mar 2004, at 14:36, Joao Batistella wrote:

But, I would like to find a way in Java, not in the web server 
because, for
now, I'm using Tomcat web server.
Can I just use a send redirect to a HTTP address??

Ex:
sendRedirect(http://myserver/myapp/main.jsp;);
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 12 de março de 2004 13:30
To: Struts Users Mailing List
Subject: Re: Switching from HTTPS to HTTP
There's some java thingy you can use to do this, sslext or something..

If you are using apache for your webserver you can use mod_rewrite
which means less hassle configuring development envionments and such
like.
Here's an example.

NameVirtualHost machinedomain.net:80

VirtualHost  www.sparrow.com:80
 DocumentRoot /www/www.sparrow.com
 SSLEngine off
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^80$
 RewriteRule ^\/checkout
https://%{SERVER_NAME}%{REQUEST_FILENAME} [R,L]
 RewriteRule ^\/admin https://%{SERVER_NAME}%{REQUEST_FILENAME}
[R,L]
/VirtualHost

Listen *:443
NameVirtualHost [i used the ip here]:443
VirtualHost www.sparrow.com:443
 DocumentRoot /www/www.sparrow.com
 SSLEngine on
 RewriteEngine on
 RewriteCond %{SERVER_PORT} ^443$
 RewriteRule !^(\/checkout)|(\/admin)
http://%{SERVER_NAME}%{REQUEST_FILE
NAME} [R,L]
 SSLCertificateFile /[apache home]/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /[apache home]/conf/ssl.key/server.key
 SSLCACertificateFile /[apache home]/conf/ssl.crt/intermediate.ca
/VirtualHost
and requests containing /admin or /checkout will have https scheme
forced those that are not wont.
On 12 Mar 2004, at 13:59, Joao Batistella wrote:

Hello!

In my application the login page uses HTTPS to send username and
password to
the server. But after that, if login operation succeed, I want to send
the
user to the main application page using HTTP protocol, not HTTPS. How
can I
switch?


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


Re: how to automatically forward user's page to a html link at speified time

2004-03-12 Thread Mark Lowe
Filter will do what you want if you're using a supporting container.

On 12 Mar 2004, at 17:18, ~{UT~} ~{F=~} wrote:

Hi, all
  I want the struts application have an internal timer. When the 
specified time(like 9:00pm) arrive, the user's current page should be 
forwarded to another html link. I know the java.util.timer and 
java.util.TimerTask can do such thing. Maybe I can put the timer class 
stuff in HttpSessionListener or ServletContextListener, but I just 
have no idea how to forward a page inside the TimerTask class not 
inside action as usual?

   So did anyone come across the similar problem? Could you shed me 
light on it?

   Thanks in Advance.

Best Regards,
Alex
_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn/
-
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: Someone out there must have done this with Struts 1.0

2004-03-12 Thread Niall Pemberton
It does work. I used it in Struts 1.0.

Niall
- Original Message - 
From: Au-Yeung, Stella H [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:19 PM
Subject: RE: Someone out there must have done this with Struts 1.0


 Thanks Niall.   Actually my original version did have the name attribute
 in it.   It just got lost after I tried so many different things.
 In your opinion, don't you think one should be able to set selected
under
 Struts 1.0?  I dig through the Struts User Guide and Struts web site,
there
 is no example and no mentioning that being a bug.   Do you know is there a
 way that I can get to or send an email to one of the original Struts tag
 developers to ask the question?

 -Original Message-
 From: Niall Pemberton [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 10:54 AM
 To: Struts Users Mailing List
 Subject: Re: Someone out there must have done this with Struts 1.0


 The html:optionsCollection tag was introduced in Struts 1.1 so thats why
 it doesn't work - which means you are correct to use the html:options
tag.

 The only comment I have, the difference between your debug stuff and the
 html:select tag is you missed out the name attribute on the
 html:select  tag . Also, on the html:options tag if you use the
 collection attribute then the name attribute is not used - its not an
 issue, but you just don't need it.

 Try

  bean:define id=eList name=ShopWorkOrderFormBean
 property=engineerList/  html:select name=ShopWorkOrderFormBean
   property=shopWorkOrder.engineerId 
 html:options collection=eList property=userId
 labelProperty=commonName/  /html:select


 Niall

 - Original Message - 
 From: Au-Yeung, Stella H [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 3:31 PM
 Subject: Someone out there must have done this with Struts 1.0


  Has someone out there successfully set the selected option of a
  html:select under Struts 1.0?
 
  What I try to do is to set the option as selected when userId
  matches
  shopWorkOrder.engineerId:
  bean:define id=eList name=ShopWorkOrderFormBean
  property=engineerList/
  html:select property=shopWorkOrder.engineerId 
 html:options collection=eList name=ShopWorkOrderFormBean
  property=userId labelproperty=commonName/
  /html:select
 
  I tried the following two things based on all your input but still
  can't
 get
  it working:
  Using optionsCollection  -
  1) The following gave a compilation error claiming doesn't recognize
  optionsCollection.   I think this is a Struts 1.0 problem.
   bean:define id=eList name=ShopWorkOrderFormBean
  property=engineerList/
   html:select property=shopWorkOrder.engineerId
  html:optionsCollection  name=eList value=userId
  label=commonName/
   /html:select
 
  Using value%=...%   -
  2) The following also gave a compilation error that it doesn't like
  value%=...%
   bean:define id=eList name=ShopWorkOrderFormBean
  property=engineerList/
   html:select property=shopWorkOrder.engineerId
  value=%=shopWorkOrder.engineerId%
  html:options collection=eList name=ShopWorkOrderFormBean
  property=userId labelproperty=commonName/
   /html:select
 
  I use debug statements inside the JSP to make sure there is a matching
  userId:
   Eng id:bean:write name=ShopWorkOrderFormBean
  property=shopWorkOrder.engineerId/br
   bean:define id=engrList name=ShopWorkOrderFormBean
  property=engineerList/
   logic:iterate id=element name=engrList  Label:bean:write
   name=element property=commonName/nbsp;nbsp;
Value:bean:write name=element property=userId/brbr
   /logic:iterate
  
   Here's the output from the above debug:
   Eng id:8
   Label:JOE ENGINEER L   Value:3
   Label:VERLINDA BROOME   Value:NZW32M
   Label:FRANK WHITON   Value:NZ7Z1Q
   Label:Another Active Engineer   Value:8
 
  Setting the selected in a html:select is a very basic operation.  I
  can't see that being a bug in Struts 1.0.   But somehow it doesn't work.
  Has anyone done it successfully before???
 
 
 
  -
  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]





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



testing for presence of GLOBAL_ERROR

2004-03-12 Thread mucus snot
Hi,

I know that you can test for the presence of actionErrors with the following.

logic:present name=org.apache.struts.action.ERROR

But how can I test specifically for the presence of a GLOBAL_ERROR?

Many thanks, al


Re: wizard best practices?

2004-03-12 Thread Niall Pemberton
You just added page as an attribute to your DynaValidatorActionForm - so
you get it the same way as you would get any other property out of your
form.

public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {

DynaBean dynaForm = (DynaBean)form;

ActionMessages errors = new ActionMessages ();

Integer page = (Integer)dynaForm.get(page);

if (page.intValue() == 2  !(aaa.equals(dynaForm.get(y {
   errors.add(y, new ActionMessage(errors.y));
}

if (errors.isEmpty()) {
return mapping.findForward(success);
} else {
   request.setAttribute(Globals.ERROR_KEY, errors);
   return mapping.findForward(mapping.getInput());
}

}

Niall
- Original Message - 
From: Dean A. Hoover [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:05 PM
Subject: Re: wizard best practices?


 Niall Pemberton wrote:

 Did you add a page property to your DynaValidatorAction form definition
in
 the struts-config.xml?
 
 Niall
 
 
 
 OK. Just added that... BTW it must be defined as Integer as in:
   form-property name=page type=java.lang.Integer/

 Thanks alot, that solves part of my problem. How do I solve the
 other problem? I want to be able to perform secondary validation
 based on business logic in the MyWizardAction class as given
 in my previous message. Let's just say for argument sake, that
 on page 2 it is determined that y cannot be aaa. What modification
 needs to be done to MyWizardAction.java and struts-config.xml
 to accomplish this?

 Dean Hoover


 -
 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: [OT]JSP Debugger

2004-03-12 Thread Raphaël di Cicco
Not really, it works great for me, you can find the incriminated line then
correct it

- Original Message - 
From: Paul-J Woodward [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 5:40 PM
Subject: RE: [OT]JSP Debugger


 sorry - should have said a quick, dirty and very temporary solution.

 Paul
 
 Global Equity Derivatives Technology
 Deutsche Bank [/]
 




 Larry Meadors [EMAIL PROTECTED]
 10/03/2004 16:32
 Please respond to Struts Users Mailing List


 To: [EMAIL PROTECTED]
 cc:
 Subject:RE: [OT]JSP Debugger


 I think a better solution would be to use the tomcat (or even struts)
 built-in exception handling.

 It works very well and doesn't force scriptlets into your jsps.

 Larry

  [EMAIL PROTECTED] 03/10/04 9:21 AM 
 In some circumstances it can help to put a try/catch around the whole
 JSP
 and print the stack trace  error.

 Paul
 
 Global Equity Derivatives Technology
 Deutsche Bank [/]
 




 Larry Meadors [EMAIL PROTECTED]
 10/03/2004 15:54
 Please respond to Struts Users Mailing List


 To: [EMAIL PROTECTED]
 cc:
 Subject:RE: [OT]JSP Debugger


 I have used both netbeans and eclipse (without myEclipse) for this with
 tomcat and struts (never jboss, but I know people who are doing this
 using the JPDA debugger).

 Larry

  [EMAIL PROTECTED] 03/10/04 8:46 AM 
 If you have the code to the tags, you can set breakpoints there, and
 debug at that level.
 I have found that to meet 100% of my debugging needs as far as JSP
 debugging goes.

 1.May I know which tool you are talking about..??
 2.If you are talking about MyEclipse I agree that it works well with
 Tomcat,JBoss as separate container...when it comes to JBoss 3.2.3
 bundle(contains Tomcat) it doesn't works.

 -Ramadoss


 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 10:39 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [OT]JSP Debugger


 If you have the code to the tags, you can set breakpoints there, and
 debug at that level.

 I have found that to meet 100% of my debugging needs as far as JSP
 debugging goes.

 Larry

  [EMAIL PROTECTED] 03/10/04 7:48 AM 
 1.First my apology for post this question which I have asked it already.

 2.This is question reg Debugging JSP,I do understand that debugging JSP
 is not really required if we are really follow MVC pattern as we are not
 putting too much of logic in it...BUT just wanted to know that is there
 any JSP debugger tool/plugin available for Eclipse? we know that
 myeclipse works well with Tomcat as a separate container but when it
 comes with JBoss Tomcat bundle I could not debug JSP using the same
 tool.

 Tnx in advance,

 -Ramadoss

 -
 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]




 -
 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]





 -
 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: testing for presence of GLOBAL_ERROR

2004-03-12 Thread Niall Pemberton
logic:present name=org.apache.struts.action.ERROR
property=org.apache.struts.action.GLOBAL_ERROR

- Original Message - 
From: mucus snot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:51 PM
Subject: testing for presence of GLOBAL_ERROR


 Hi,

 I know that you can test for the presence of actionErrors with the
following.

 logic:present name=org.apache.struts.action.ERROR

 But how can I test specifically for the presence of a GLOBAL_ERROR?

 Many thanks, al




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



Re: wizard best practices?

2004-03-12 Thread Dean A. Hoover
Thanks!!!

Niall Pemberton wrote:

You just added page as an attribute to your DynaValidatorActionForm - so
you get it the same way as you would get any other property out of your
form.
public ActionForward execute(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {
   DynaBean dynaForm = (DynaBean)form;

   ActionMessages errors = new ActionMessages ();

   Integer page = (Integer)dynaForm.get(page);

   if (page.intValue() == 2  !(aaa.equals(dynaForm.get(y {
  errors.add(y, new ActionMessage(errors.y));
   }
   if (errors.isEmpty()) {
   return mapping.findForward(success);
   } else {
  request.setAttribute(Globals.ERROR_KEY, errors);
  return mapping.findForward(mapping.getInput());
   }
}

Niall
- Original Message - 
From: Dean A. Hoover [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:05 PM
Subject: Re: wizard best practices?

 

Niall Pemberton wrote:

   

Did you add a page property to your DynaValidatorAction form definition
 

in
 

the struts-config.xml?

Niall



 

OK. Just added that... BTW it must be defined as Integer as in:
 form-property name=page type=java.lang.Integer/
Thanks alot, that solves part of my problem. How do I solve the
other problem? I want to be able to perform secondary validation
based on business logic in the MyWizardAction class as given
in my previous message. Let's just say for argument sake, that
on page 2 it is determined that y cannot be aaa. What modification
needs to be done to MyWizardAction.java and struts-config.xml
to accomplish this?
Dean Hoover

-
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: wizard best practices?

2004-03-12 Thread Matthias Wessendorf
Dean!

got it to work?

i use this use-case for multiform-pages...
like big poll.

class: DynaValidatorActionForm
and the path in validator-xml.file 


however, here is validation XML and the definition for
the ValidatorActionForm:

Cheers!
Matthias Weßendorf

struts-cfg.xml_:

!-- multipage formular --
form-bean name=umfrageFormular
type=org.apache.struts.validator.DynaValidatorActionForm

form-property name=frage1
type=java.lang.String/
form-property name=frage2
type=java.lang.String/
form-property name=frage3
type=java.lang.String/

form-property name=frage4
type=java.lang.String/
form-property name=frage5
type=java.lang.String/
form-property name=frage6
type=java.lang.String/

form-property name=frage7
type=java.lang.String/
form-property name=frage8
type=java.lang.String/
form-property name=frage9
type=java.lang.String/

/form-bean



validation.xml:


   formset
!-- poll --  
form name=/umfrage1
field property=frage1
depends=required
arg0 key=frage1/
/field
field property=frage2
depends=required
arg0 key=frage2/
/field
field property=frage3
depends=required
arg0 key=frage3/
/field
/form

form name=/umfrage2
field property=frage4
depends=required,integer
arg0 key=frage4/
/field
field property=frage5
depends=required
arg0 key=frage5/
/field
field property=frage6
depends=required
arg0 key=frage6/
/field
/form
form name=/umfrage3
field property=frage7
depends=required
arg0 key=frage7/
/field
field property=frage8
depends=required
arg0 key=frage8/
/field
field property=frage9
depends=required
arg0 key=frage9/
/field
/form   
!--ENDE  UMFRAGE--   
...
/formset
--
Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Telefon: 0 25 72 - 9 17 02 75
Handy: 01 79 - 1 11 89 79
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net
ICQ: 47016183 


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



[OT] Jericho == Struts 2.0?

2004-03-12 Thread Larry Meadors
This name seems like a bad choice.

The city of Jericho was destroyed and all its inhabitants were put to
the sword.

That sounds like a bad thing to me.

Larry

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



Re: wizard best practices?

2004-03-12 Thread Dean A. Hoover
Whoops. Wait a minute. The statement in your code:
return mapping.findForward(mapping.getInput());
does not work for me... I end up getting an empty page
generated (htmlbody/body/html). Then I
looked at the API for ActionMapping and saw a
getInputForward() method. I tried that instead and still
get the empty page. Do you know why it would do
that?
Dean A. Hoover wrote:

Thanks!!!

Niall Pemberton wrote:

You just added page as an attribute to your DynaValidatorActionForm 
- so
you get it the same way as you would get any other property out of your
form.

public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
DynaBean dynaForm = (DynaBean)form;

ActionMessages errors = new ActionMessages ();

Integer page = (Integer)dynaForm.get(page);

if (page.intValue() == 2  !(aaa.equals(dynaForm.get(y {
errors.add(y, new ActionMessage(errors.y));
}
if (errors.isEmpty()) {
return mapping.findForward(success);
} else {
request.setAttribute(Globals.ERROR_KEY, errors);
return mapping.findForward(mapping.getInput());
}
}



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


Re: testing for presence of GLOBAL_ERROR

2004-03-12 Thread Niall Pemberton
Sorry, I meant to put the logic:messagesPresent tag and you don't need to
specify the name, it defaults to the Globals.ERROR_KEY

For messages stored under Globals.ERROR_KEY
logic:messagesPresent property=org.apache.struts.action.GLOBAL_ERROR

For messages stored under Globals.MESSAGE_KEY
logic:messagesPresent message=true
property=org.apache.struts.action.GLOBAL_ERROR

Niall

- Original Message - 
From: Niall Pemberton [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 5:36 PM
Subject: Re: testing for presence of GLOBAL_ERROR


 logic:present name=org.apache.struts.action.ERROR
 property=org.apache.struts.action.GLOBAL_ERROR

 - Original Message - 
 From: mucus snot [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 4:51 PM
 Subject: testing for presence of GLOBAL_ERROR


  Hi,
 
  I know that you can test for the presence of actionErrors with the
 following.
 
  logic:present name=org.apache.struts.action.ERROR
 
  But how can I test specifically for the presence of a GLOBAL_ERROR?
 
  Many thanks, al
 



 -
 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: wizard best practices?

2004-03-12 Thread Slattery, Tim - BLS
 Whoops. Wait a minute. The statement in your code:
 return mapping.findForward(mapping.getInput());
 
 does not work for me... I end up getting an empty page 
 generated (htmlbody/body/html). Then I looked at the 
 API for ActionMapping and saw a
 getInputForward() method. I tried that instead and still
 get the empty page. Do you know why it would do
 that?

Do you have an input= attribute for this page in your struts-config.xml
file?

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: wizard best practices?

2004-03-12 Thread Dean A. Hoover
Matthias,

Sorry, I must be over tired... First off, how does one
decide between using DynaValidatorForm and
DynaValidatorActionForm? Second, I'm not
understanding what the path relates to. For
example, where is /umfrage1 defined outside
of what you included in your message. Maybe
if I saw that, I would make the connection you
are explaining. BTW, thanks for responding,
I've been beating my head against the wall
trying to figure out how to properly build
a wizard.
Dean

Matthias Wessendorf wrote:

Dean!

got it to work?

i use this use-case for multiform-pages...
like big poll.
class: DynaValidatorActionForm
and the path in validator-xml.file 

however, here is validation XML and the definition for
the ValidatorActionForm:
Cheers!
Matthias Weßendorf
struts-cfg.xml_:

!-- multipage formular --
form-bean name=umfrageFormular
type=org.apache.struts.validator.DynaValidatorActionForm
form-property name=frage1
type=java.lang.String/
form-property name=frage2
type=java.lang.String/
form-property name=frage3
type=java.lang.String/
form-property name=frage4
type=java.lang.String/
form-property name=frage5
type=java.lang.String/
form-property name=frage6
type=java.lang.String/
form-property name=frage7
type=java.lang.String/
form-property name=frage8
type=java.lang.String/
form-property name=frage9
type=java.lang.String/
		/form-bean



validation.xml:

  formset
!-- poll --  
   form name=/umfrage1
   field property=frage1
   depends=required
   arg0 key=frage1/
   /field
   field property=frage2
   depends=required
   arg0 key=frage2/
   /field
   field property=frage3
   depends=required
   arg0 key=frage3/
   /field
   /form

   form name=/umfrage2
   field property=frage4
   depends=required,integer
   arg0 key=frage4/
   /field
   field property=frage5
   depends=required
   arg0 key=frage5/
   /field
   field property=frage6
   depends=required
   arg0 key=frage6/
   /field
   /form
   form name=/umfrage3
   field property=frage7
   depends=required
   arg0 key=frage7/
   /field
   field property=frage8
   depends=required
   arg0 key=frage8/
   /field
   field property=frage9
   depends=required
   arg0 key=frage9/
   /field
   /form   
!--ENDE  UMFRAGE--   
...
/formset
--
Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Telefon: 0 25 72 - 9 17 02 75
Handy: 01 79 - 1 11 89 79
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net
ICQ: 47016183 

-
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: wizard best practices?

2004-03-12 Thread Dean A. Hoover
Tim,

Yes, I included all relavent files, including struts-config.xml in my
original message sent this morning. I hesitate to keep appending to
that message as it was quite large.
Dean

Slattery, Tim - BLS wrote:

Whoops. Wait a minute. The statement in your code:
return mapping.findForward(mapping.getInput());
   

 

does not work for me... I end up getting an empty page 
generated (htmlbody/body/html). Then I looked at the 
API for ActionMapping and saw a
getInputForward() method. I tried that instead and still
get the empty page. Do you know why it would do
that?
   

Do you have an input= attribute for this page in your struts-config.xml
file?
--
Tim Slattery
[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]


[OT] 2 JSF questions

2004-03-12 Thread Anderson, James H [IT]
1) Since JSF is written in Java, why does Sun have 3 different download available, 
Windows, Solaris, Linux?

2) Would any of those work for Mac OS X?

Thanks,

jim

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



RE: wizard best practices?

2004-03-12 Thread Matthias Wessendorf
whops... it is a german-sample...

okay... here for you!

DynaValidatorForm is for a form on ONE page
it uses the name of you bean in your scope
--
mapping.getAttribute() MyWizard



DynaValidatorActionForm is for a Action-path
-- /mywizard3

ist uses in source the mapping.getPath()
like /mywuzard3

in my case umfrage == poll ;-) sorry...

i have 3 questions per page (frage)
here for you

form-validation
  formset
 form name=/mywizard1
field property=x
depends=required
arg0 key=x/
/field
/form   
...and so on...

okay?
or i will mail you my sample but its german...
but it is only a test-sample ... ;-)
but it runs...




-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 7:24 PM
To: Struts Users Mailing List
Subject: Re: wizard best practices?


Matthias,

Sorry, I must be over tired... First off, how does one
decide between using DynaValidatorForm and
DynaValidatorActionForm? Second, I'm not
understanding what the path relates to. For
example, where is /umfrage1 defined outside
of what you included in your message. Maybe
if I saw that, I would make the connection you
are explaining. BTW, thanks for responding,
I've been beating my head against the wall
trying to figure out how to properly build
a wizard.

Dean

Matthias Wessendorf wrote:

Dean!

got it to work?

i use this use-case for multiform-pages...
like big poll.

class: DynaValidatorActionForm
and the path in validator-xml.file 


however, here is validation XML and the definition for
the ValidatorActionForm:

Cheers!
Matthias Weßendorf

struts-cfg.xml_:

   !-- multipage formular --
   form-bean name=umfrageFormular
type=org.apache.struts.validator.DynaValidatorActionForm

   form-property name=frage1
type=java.lang.String/
   form-property name=frage2
type=java.lang.String/
   form-property name=frage3
type=java.lang.String/

   form-property name=frage4
type=java.lang.String/
   form-property name=frage5
type=java.lang.String/
   form-property name=frage6
type=java.lang.String/

   form-property name=frage7
type=java.lang.String/
   form-property name=frage8
type=java.lang.String/
   form-property name=frage9
type=java.lang.String/

   /form-bean



validation.xml:


   formset
!-- poll --  
form name=/umfrage1
field property=frage1
depends=required
arg0 key=frage1/
/field
field property=frage2
depends=required
arg0 key=frage2/
/field
field property=frage3
depends=required
arg0 key=frage3/
/field
/form

form name=/umfrage2
field property=frage4
depends=required,integer
arg0 key=frage4/
/field
field property=frage5
depends=required
arg0 key=frage5/
/field
field property=frage6
depends=required
arg0 key=frage6/
/field
/form
form name=/umfrage3
field property=frage7
depends=required
arg0 key=frage7/
/field
field property=frage8
depends=required
arg0 key=frage8/
/field
field property=frage9
depends=required
arg0 key=frage9/
/field
/form   
!--ENDE  UMFRAGE--   
...
/formset
--
Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Telefon: 0 25 72 - 9 17 02 75
Handy: 01 79 - 1 11 89 79
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net
ICQ: 47016183 


-
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]



sent specific html:hidden field depending which html:link was use d

2004-03-12 Thread Zmitko, Jan
Hello,
 
i´ve a problem, that I`ve two links and each link has an html:hidden field.
I´want to sent only the hidden Field which is included in the clicked link.
Is this possible?
 
My code shows as follows:
 
html:link href=JavaScript:sendFormNeuanlage();
 html:hidden property=CMD value=aktualisieren/
 img src=/images/bAngebotAktualisieren.gif width=140 height=14
alt=aktualisieren hspace=14 border=0
/html:link

html:link href=JavaScript:sendFormNeuanlage(); styleId=bestaetigen
 html:hidden property=CMD value=bestaetigen name=bestaetigen/
 img src=/images/bAbsenden.gif width=84 height=14 alt=absenden
border=0
/html:link
 
Thanks for any ideas,

Jan



RE: help implementing modules...

2004-03-12 Thread Damm, Gary
Thanks, this is the best explanation I've read so far on switching
modules.

One issue I have with this.  In my applications I always have an
application specific BaseAction that all of my Action classes extend
from.  This is to enforce my business rules on every request.  I do not
use generic/predefined Actions.  When I have found the need for the
functionality of the predefined actions (Success, Dispatch, Switch, etc)
I've reimplemented them so they extend my BaseAction.

What I would like to see, and this is targeted to the community in
general, is a way to use these generic behaviors without having to
bypass my BaseAction or reimplement them.  Maybe as helper classes that
I call from my actions.  

There are several ways to solve this and I just thought I should put it
out there to see if others have experienced the same issues and have
some other solutions.

 -Original Message-
 From: Srikanth Shenoy [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 7:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: help implementing modules...
 
 Hi Gary,
 
 I would suggest download the following free chapter from my book -
 Struts Survival Guide.
 Go to http://www.objectsource.com and find the link there to download
 Chapter 4.
 It tells you how to setup and use modules.
 
 Hope that helps,
 
   Srikanth Shenoy
   Author
   Struts Survival Guide: Basics to Best Practices
 http://www.objectsource.com/strutsbook.html
   J2EE Project Survival Guide
 http://www.theserverside.com/books/review/J2EESurvivalGuide.tss
 
 
 Damm, Gary [EMAIL PROTECTED] wrote in message

news:[EMAIL PROTECTED]...
 I've successfully used Struts for several applications and have been
 very happy with it.  I am getting ready to use it for a larger project
 and would like to use modules but I'm having some problems.
 
 It appears that when I attempt to switch from the default module to a
 new module (module1) it never actually recognizes the new module.
When
 I attempt to go to a page in the new module that references an action
 that is defined in the new module action mappings I consistently get
the
 following error.  I have looked through the documentation and browsed
 the list archive and still can not figure out what I'm doing wrong.
Any
 help appreciated.
 
 Also, if anyone knows a good book that documents modules well I'd like
 to know (Struts In Action and Jakarta Struts have little information
on
 modules).
 
 The error:
 ...
 [2004/03/11 11:23:07] Cannot retrieve mapping for action /DomainSearch
 javax.servlet.jsp.JspException: Cannot retrieve mapping for action
 /DomainSearch
 at
 org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at

org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
 at _module1._home__jsp._jspService(_home__jsp.java:448)
 ...
 
 Here is my web.xml where I define the module:
 
 ...
 init-param id=InitParam_4
   param-nameconfig/module1/param-name
   param-value/WEB-INF/struts-config-module1.xml/param-value
 /init-param
 ...
 
 Here is my forward to the page in module1:
 ...
 action
   path=/Module1HomeLink
   type=com.qualcomm.bds.struts.SampleAppSuccessAction
   unknown=false
   validate=false 
 
   forward
   name=success
   path=/module1/Home.jsp
   contextRelative=true
   redirect=true /
 
 /action
 ...
 
 Here is my link on the originating jsp (in default module):
 ...
 html-el:link action=Module1HomeLinkbean:message
 key=label.module1//html-el:link
 ...
 
 Here is the form in the new module that references the action: ...
 html-el:form action=DomainSearch ...
 
 Here is the action in the module1 config file:
 ...
 action
   path=/DomainSearch
   name=SearchForm
   type=com.qualcomm.bds.struts.SampleAppSearchAction
   unknown=false
   validate=true
   input=/module1/Home.jsp 
 
   forward
 name=success
 path=/module1/List.jsp
 contextRelative=true /
 
   exception
   key=errors.generic
   type=java.lang.Exception/
 
 /action
 ...
 --

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



[SwitchAction] How

2004-03-12 Thread Mike Zatko
Hello,
   Does anyone have a simple example on how to use a SwitchAction? How 
is it defined properly in the config file?

Thanks

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


RE: [OT] 2 JSF questions

2004-03-12 Thread Robert Taylor
I don't know.

You may want to try the JSTL users mailing list:

[EMAIL PROTECTED]

robert

 -Original Message-
 From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 1:30 PM
 To: [EMAIL PROTECTED]
 Subject: [OT] 2 JSF questions
 
 
 1) Since JSF is written in Java, why does Sun have 3 different download available, 
 Windows, Solaris, Linux?
 
 2) Would any of those work for Mac OS X?
 
 Thanks,
 
 jim
 
 -
 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: sent specific html:hidden field depending which html:link was used

2004-03-12 Thread atta-ur rehman
Hello Jan,

One way I see it could be done is to move the hidden element out of both of
the links and in parameterize your  JavaScript:sendFormNeuanlage() method
for 'bestaetigen' and 'aktualisieren' and let this javascript method set the
value of the hidden field.

function sendFormNeuanlage(what) {
document.forms[0].CMD.value=what;
}

html:hidden property=CMD/

html:link href=JavaScript:sendFormNeuanlage('aktualisieren');
img src=/images/bAngebotAktualisieren.gif width=140 height=14
alt=aktualisieren hspace=14 border=0
/html:link

html:link href=JavaScript:sendFormNeuanlage('bestaetigen' );
styleId=bestaetigen
  img src=/images/bAbsenden.gif width=84 height=14
alt=absenden border=0
/html:link


hope this helps.

ATTA

- Original Message - 
From: Zmitko, Jan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 10:39 AM
Subject: sent specific html:hidden field depending which html:link was used


Hello,

i´ve a problem, that I`ve two links and each link has an html:hidden field.
I´want to sent only the hidden Field which is included in the clicked link.
Is this possible?

My code shows as follows:

html:link href=JavaScript:sendFormNeuanlage();
 html:hidden property=CMD value=aktualisieren/
 img src=/images/bAngebotAktualisieren.gif width=140 height=14
alt=aktualisieren hspace=14 border=0
/html:link

html:link href=JavaScript:sendFormNeuanlage(); styleId=bestaetigen
 html:hidden property=CMD value=bestaetigen name=bestaetigen/
 img src=/images/bAbsenden.gif width=84 height=14 alt=absenden
border=0
/html:link

Thanks for any ideas,

Jan




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



RE: [OT] 2 JSF questions

2004-03-12 Thread Shahak.Nagiel
1) I haven't downloaded it yet, but I'm guessing for the different installation 
scripts/executables.
2) I highly doubt it, unless you're running in emulation.


-Original Message-
From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: [OT] 2 JSF questions


1) Since JSF is written in Java, why does Sun have 3 different download available, 
Windows, Solaris, Linux?

2) Would any of those work for Mac OS X?

Thanks,

jim

-
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: [OT] 2 JSF questions

2004-03-12 Thread Matthias Wessendorf
from the url:
http://java.sun.com/j2ee/javaserverfaces/download.html

This release of JavaServer Faces has been tested with various
configurations with the Java 2 SDK, Standard Edition version 1.3.1_04,
1.4, and 1.4.1 on the following platforms and browsers:

* Solaris 2.8
* Solaris 2.9
* Windows 2000
* Windows XP
* RedHat Linux 7.2
* Netscape 6.x
* Internet Explorer 6


tested ...


cheers!


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 8:11 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] 2 JSF questions


1) I haven't downloaded it yet, but I'm guessing for the different
installation scripts/executables.
2) I highly doubt it, unless you're running in emulation.


-Original Message-
From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: [OT] 2 JSF questions


1) Since JSF is written in Java, why does Sun have 3 different download
available, Windows, Solaris, Linux?

2) Would any of those work for Mac OS X?

Thanks,

jim

-
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: [OT] 2 JSF questions

2004-03-12 Thread Matthias Wessendorf
hi jim,

searched the web :)

http://www.javaworld.com/javaworld/jw-11-2003/jw-1114-jsfredux-p2.html

the last to pics looks like mac

but it is not a sample for the RI
it is form Early Access4
(old) :-)

Cheers!

-Original Message-
From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 7:30 PM
To: [EMAIL PROTECTED]
Subject: [OT] 2 JSF questions


1) Since JSF is written in Java, why does Sun have 3 different download
available, Windows, Solaris, Linux?

2) Would any of those work for Mac OS X?

Thanks,

jim

-
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)populating DynaActionForm

2004-03-12 Thread Danko Desancic
I am newbie to Struts and have a problem with  populating 
DynaActionForm. I have two actions: one to set up userForm and one to 
process it. 1st one is suposed to grab user info and populate the form. 
The second one updates user info after the form is submitted. The 
problem is that the from is not populated. Moreover changing the scope 
to session in action /user/setUp  results in form being populated 
with appropriate data. What am I doing wrong in here?

Thanks
Danko
from struts-config.xml
form-bean name=userForm 
type=org.apache.struts.action.DynaActionFormthat
   form-property name=userName type=java.lang.String/
   form-property name=password type=java.lang.String/
   form-property name=fullName type=java.lang.String/
   form-property name=email type=java.lang.String/
   form-property name=status type=java.lang.Integer 
initial=0/
/form-bean

action
   path=/user/setUp
   type=myPackage.user.SetUpUserAction
   name=userForm
   scope=request
   validate=false
   forward name=Success  
path=/WEB-INF/jsp/user/userForm.jsp/
/action
  
action
   path=/user/update
   type=myPackage.user.UpdateUserAction
   name=userForm
   scope=request
   validate=true
   input=/WEB-INF/jsp/user/userForm.jsp
   forward name=Success  path=/user/edit.do redirect=true/
/action

from SetUpUserAction.execute()
   DynaActionForm userForm = (DynaActionForm)form;
  
   userForm.set(userName,user.getUserName());
   userForm.set(password,user.getPassword());
   userForm.set(fullName,user.getFullName());
   userForm.set(email,user.getEmail());
   userForm.set(status,new Integer(1));
 
   forward = mapping.findForward(Success);
   return forward;

from userForm.jsp
html:form action=/user/update.do
table cellpadding=2 cellspacing=2 border=1 width=800px
   tr
   td class=fieldHeader colspan=4UPDATE USER/td
   /tr
   tr
   td class=fieldNameUsername/td
   tdhtml:text property=userName//td
   /tr
  ..
   tr
   td class=fieldNameStatus/td
   tdhtml:radio property=status value=1/Active nbsp 
html:radio property=status value=0/Inactive /td
   /tr
   tr
   td colspan=4 class=fieldName align=center
   html:submit value=UPDATE/
   /td
   /tr
/table
/html:form

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


  1   2   >