RE: ActionForm

2002-09-27 Thread Desjardins, Nicolas

thanks... why i didnt think of that! Shame on me! :o)

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: 26 septembre, 2002 10:53
To: Struts Users Mailing List
Subject: RE: ActionForm


I just ran into a similar problem where I have a set up action which
populates the form (in request scope) and forwards to the .jsp page. When
validation failed, I had my input attribute set to the .jsp page and was
getting the behavior your described. I changed the input attribute to be the
action mapping of the set up action and the problem went away.

If you think about it, it makes sense. The set up action stores the
list/options data in the request scope. Once the page is render, then its
gone. If you try to access the page directly without going through the set
up action, then the form never gets populated with the data. By setting the
input attribute to the set up action  action mapping, the data is retrieved
and populated and therefore can be rendered to the screen.

robert

 -Original Message-
 From: Desjardins, Nicolas [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 10:42 AM
 To: 'Struts Users Mailing List'
 Subject: ActionForm


 Hi,

 i have a Form (ActionForm) in wich i have a list that is feeded from my
 database.  When i validate with the validate method in the
 ActionForm and an
 error is found, i cannot see the form again because it tells me
 that my bean
 (that contain the list) is not found...

 I use struts 1.1b2, is the validator a solution for my problem?  Is there
 any other way of doing such a thing?

 Thanks,

 Nicolas



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



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



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




ActionForm

2002-09-26 Thread Desjardins, Nicolas

Hi,

i have a Form (ActionForm) in wich i have a list that is feeded from my
database.  When i validate with the validate method in the ActionForm and an
error is found, i cannot see the form again because it tells me that my bean
(that contain the list) is not found...

I use struts 1.1b2, is the validator a solution for my problem?  Is there
any other way of doing such a thing?

Thanks,

Nicolas



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




RE: [VOTE] Should this list discontinue it's long, treasured heritage of relaxed fridays?

2002-08-30 Thread Desjardins, Nicolas

Do you feel this list should discontinue it's long heritage of relaxed 
fridays?

(   )  Yes
( X )  No

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 10:47 AM
To: Struts Users List
Subject: [VOTE] Should this list discontinue it's long, treasured
heritage of relaxed fridays?


Do you feel this list should discontinue it's long heritage of relaxed 
fridays?

(   )  Yes
( X )  No

---

Rather than being a jerk, as some people don't mind to do, I thought it 
would be very much in the spirit of your community to let everyone have 
a say.  Cast your vote!



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



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




RE: [BEER] Is it Friday Yet?

2002-08-29 Thread Desjardins, Nicolas

la liste s'est transformée en liste francophone??? :o)

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:34 PM
To: 'Struts Users Mailing List'
Subject: RE: [BEER] Is it Friday Yet?


Mon dieu! J'espère pas!

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:28 PM

Mais vous reviendrez samedi à la finition ce que vous avez négligé.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 3:18 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BEER] Is it Friday Yet?


 Je pars du bureau tot pour obtenir une biere.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 2:21 PM

 Can we have a [Mark] tag added?
 +1

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




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


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



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




RE: struts-config windows 2 unix?

2002-08-28 Thread Desjardins, Nicolas

To convert a windows file into a unix format you can use the dos2unix
command under unix.
It will get rid of all the ^M caracters that you see under vi.

Nicolas 

-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:27 PM
To: Struts Users Mailing List
Subject: RE: struts-config windows 2 unix?


DOS (aka Windows) and Unix use different line-termination sequences. In
Microsoft land, lines are terminated with a CR/LF pair. In Unix land, lines
are terminated with LF. When you view a Windows created file on Unix, the
extra CR displays as a control character.

--Kevin

P.S. CR == carriage return, LF == line feed

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 12:56 PM
To: Struts Users Mailing List
Subject: struts-config windows 2 unix?


Is it common to find xml validation errors, when editing struts-config.xml
on window$, then trying to deploy the app on unix?
With vi, I notice the extra control char's in the file.  On unix, the
database source mapping appears to work, but my app can't find its action
classes in the WEB-INF/classes dir.  Returns error 500: no action instance
for myclassname.

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



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




RE: Plug in problem(?)

2002-08-16 Thread Desjardins, Nicolas

i'm getting the same problem, if some one know the good way of doing plugin
in the beta 2 of struts it would be nice to tell us about it.

-Original Message-
From: K.Viswanathan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 2:27 AM
To: Struts Users Mailing List
Subject: Plug in problem(?)



Hi

I am getting the following exception when  I run my application


Root cause..

java.lang.AbstractMethodError
at
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.
java:991)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
..

It was working fine with beta 1 After copying all jar files and related
stuff of beta2 ( of Aug 12th , I am not using nightly build), I get this
error. Any clues?

Thanks in advance
Vishy




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




html select field change on the fly

2002-08-01 Thread Desjardins, Nicolas

Hi,
 
I have a form in witch there is 2 html select box (drop down lists).  The
first one is a list of organisations, and the second is the list of the
divisions.  Is there a struts way of, when there is an organisation selected
in the first select, to change on the fly the second select with the
divisions of that organisation.  It's a common problem that appear when you
select a country and you want only the states of that country to appear in
the state choice and I can't find a practical solution to the problem.
 
Thx all,

---
Nicolas Desjardins
Analyste Programmeur / Analyst Programmer
TI-Télécom, EFRIC_2x4DS
* (514) 937-0102 ext. 6083
*  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 

All you need is ignorance and confidence; then success is sure.
-- Mark Twain

 



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




RE: html select field change on the fly

2002-08-01 Thread Desjardins, Nicolas

I've seen the javascript solution all over the internet and i dont find it
elegant. Your's seems really neat and flexible and i want all my data to
stay in the DB. 

I'll try to do something like this thanks a lot!

Nic

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: RE: html select field change on the fly



I just finished an application that did this very thing.  In my case it 
was companies - groups - areas...

We did it by using javascript and a dispatchaction.  We had a lot of 
data so embedding it all in the page was going to be yucky...  In a 
nutshell here is what I did:

* The user links to the action to get the form

* The action builds a select for the companies and returns a continue 
mapping. 

* The form displays and checks for the presence of each (company, group, 
area) and displays a select box if any are present.  In this case only 
group shows up

* The user selects a Company...  An onclick event sets a hidden field 
called action to companyChange and submits the form automatically

* The action sees that the companyChanged and populates a group select 
based on the new company and continues.  It also removes any area 
selects present.

* The form checks to see if (company, group, area) are present - in this 
case company and group are so they get displayed.

* The user selects a group and the onclick sets the action field to 
groupChanged.  Submits it.

* The action sees that the groupChanged and populates an area select 
based on the new company/group and continues. .

* The form checks to see if (company, group, area) are present - in this 
case all are present and they are all displayed

* If the user goes and changes say the company then it registers as a 
companyChanged and the action will remove the group and area and start 
over.

Its really not that bad...


I've also seen it done for states where its all in the page...  I think 
it was verizon or someone, where you selected the state and then a 
region...  It was all in javascript in the page itself...

Hmmm







-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:42 AM
To: struts-user
Subject: html select field change on the fly


Hi,
 
I have a form in witch there is 2 html select box (drop down lists).  
The
first one is a list of organisations, and the second is the list of the
divisions.  Is there a struts way of, when there is an organisation 
selected
in the first select, to change on the fly the second select with the
divisions of that organisation.  It's a common problem that appear when 
you
select a country and you want only the states of that country to appear 
in
the state choice and I can't find a practical solution to the problem.
 
Thx all,

---
Nicolas Desjardins
Analyste Programmeur / Analyst Programmer
TI-Télécom, EFRIC_2x4DS
* (514) 937-0102 ext. 6083
*  
mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 

All you need is ignorance and confidence; then success is sure.
-- Mark Twain

 



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



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



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




RE: html select field change on the fly

2002-08-01 Thread Desjardins, Nicolas

thx again, this is really helping me!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:30 AM
To: [EMAIL PROTECTED]
Subject: RE: html select field change on the fly



Here is the JSP code for one of the pages that uses this...


DEFANGED_script language=JavaScript
function selectChange(txt) {
document.FormDrillDownReport.elements[0].value = 'changed' + txt;
document.FormDrillDownReport.submit();
}
/script

html:form action=/drillDownReport.do 
name=FormDrillDownReport 
type=com.ebind.twizard.reports.struts.FormDrillDownReport
scope=request

html:hidden property=action value=/

logic:present name=companyList
  Select Company 
  html:select property=companySelection 
DEFANGED_DEFANGED_Onchange=selectChange('Company'); 
html:option value=Select a company/html:option
html:options collection=companyList
property=orglevel2id 
labelProperty=orglevel2name/
  /html:selectP
/logic:present
  
logic:present name=groupList  
!-- Hello --
  Select Group 
  html:select property=groupSelection 
DEFANGED_DEFANGED_Onchange=selectChange('Group');
html:option value=Select a group/html:option
html:options collection=groupList property=orglevel3id 
labelProperty=orglevel3name/
  /html:selectP
/logic:present

logic:present name=areaList   
  Select Area 
  html:select property=areaSelection
html:option value=Select an area or Run the 
Report/html:option
html:options collection=areaList property=orglevel4id 
labelProperty=orglevel4name/
  /html:selectP
/logic:present

P/

Days to limit report to:
html:select property=dateRangeSelection
html:option value=30Next 30 days/html:option
html:option value=60Next 60 days/html:option
html:option value=90Next 90 days /html:option
html:option value=365Next 365 days/html:option
html:option value=0Past Due training only/html:option
/html:select
P/
STRONGNote: The day ranges shown above represents the number of days 
from today./STRONG  
P/

html:submit property=submitButton value=Run Report 
DEFANGED_DEFANGED_Onclick=DEFANGED_JavaScript:document.FormDrillDownReport.elements[
0].value='sear
ch'; DEFANGED_style=font-weight:bold; color:#FFF; background-color:#036; 
border-style:outset; border-color:#69F;/
/html:form

-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:16 AM
To: struts-user
Subject: RE: html select field change on the fly


I've seen the javascript solution all over the internet and i dont find 
it
elegant. Your's seems really neat and flexible and i want all my data to
stay in the DB. 

I'll try to do something like this thanks a lot!

Nic

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: RE: html select field change on the fly



I just finished an application that did this very thing.  In my case it 
was companies - groups - areas...

We did it by using javascript and a dispatchaction.  We had a lot of 
data so embedding it all in the page was going to be yucky...  In a 
nutshell here is what I did:

* The user links to the action to get the form

* The action builds a select for the companies and returns a continue 
mapping. 

* The form displays and checks for the presence of each (company, group, 

area) and displays a select box if any are present.  In this case only 
group shows up

* The user selects a Company...  An onclick event sets a hidden field 
called action to companyChange and submits the form automatically

* The action sees that the companyChanged and populates a group select 
based on the new company and continues.  It also removes any area 
selects present.

* The form checks to see if (company, group, area) are present - in this 

case company and group are so they get displayed.

* The user selects a group and the onclick sets the action field to 
groupChanged.  Submits it.

* The action sees that the groupChanged and populates an area select 
based on the new company/group and continues. .

* The form checks to see if (company, group, area) are present - in this 

case all are present and they are all displayed

* If the user goes and changes say the company then it registers as a 
companyChanged and the action will remove the group and area and start 
over.

Its really not that bad...


I've also seen it done for states where its all in the page...  I think 
it was verizon or someone, where you selected the state and then a 
region...  It was all in javascript in the page itself...

Hmmm







-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:42 AM
To: struts-user
Subject: html select field change on the fly


Hi,
 
I have a form in witch there is 2 html select box (drop