java.lang.OutOfMemoryError

2002-04-05 Thread Neil Gidley


Hi,

My website is using the following versions of software:

Struts 1.0.2 
Apache 1.3.22
Tomcat 4.0.2 
Java Runtime Env 1.4
MySQL 3.23.41
RedHat Linux 7.2 using Linux 2.4 kernel

Over a period of time, while running "top" I see memory being eaten up on my box (box 
has 1GB of RAM). Free memory goes down to about 5-15MB which is way too low.

Occasionally (i.e. once a week or once every two weeks), the site goes down/can't send 
responses. I see the following error in my /var/tomcat4/logs/catalina.out file:


java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at 
org.apache.catalina.connector.warp.WarpConnection.start(WarpConnection.java:159)
at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:601)
at java.lang.Thread.run(Thread.java:536)
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:58)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:556)
at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1144)
at 
sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1158)
at 
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getResponseCode(DashoA6275)
at com.mandalaybay.actions.ResNetStatus.run(ResNetStatus.java:52)

Once I restart Tomcat, memory is freed up and the site goes along until this error 
occurs again a week or two later.
Looks like a memory leak, but not sure the real cause. I saw a similar problem which 
occurred much more frequently  with Tomcat 4.0.2 with JVM 1.3 so I've upgraded to JVM 
1.4 and now receive an out of memory problem only sporadically.

Has anyone else encountered this problem?
If not, does anyone have some really good tools/commands which can help determine the 
cause of the problem?

My JVM settings have default heap size 128MB and max size 256MB by using the following 
command:
JAVACMD="$JAVA_HOME/bin/java -Xms128m -Xmx256m"


Neil Gidley   |   technology|kpe los angeles|[EMAIL PROTECTED]|
www.kpe.com


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




Re: Nested properties

2002-04-05 Thread Chuck Cavaness

Have you defined a getLoanDetailBean() method in the ActionForm? Also, the 
LoanDetailBean must have a getLoanSummaryBean() method as well.

Chuck

At 04:28 PM 4/5/2002 -0500, you wrote:
>Hi,
>
>my form bean contains another form bean which in turn contains a property
>that
>I want to access in my original jsp.
>
>code: property="loanDetailBean.loanSummaryBean.statusId" />
>
>loanSummaryBean has getter method for statusId, but I am getting this error:
>
>"No getter method for property loanDetailBean.loanSummaryBean.statusId of
>bean org.apache.struts.taglib.html.BEAN"
>Any pointers on solving this problem?
>Thnx,
>GB
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




Re: html taglib yields "Cannot find message resources under key org.apache.struts.action.MESSAGE"

2002-04-05 Thread David M. Karr

> "Struts" == Struts Newsgroup <(@Basebeans.com) <[EMAIL PROTECTED]>> writes:

Struts> Subject: Re: html taglib yields "Cannot find message resources under key 
org.apache.struts.action.MESSAGE"
Struts> From: Bill Wohler <[EMAIL PROTECTED]>
Struts>  ===
Struts> Bill Wohler <[EMAIL PROTECTED]> writes:
>> I've got the following complicated page:
>> 
>> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>> http://www.newt.com/images/anybrowser4b.png"; />
>> 
>> However, this complexity comes at a price:
>> 
>> javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
>> 
  
Struts>   Well, I discovered the problem. I found I had to add a
Struts>   message-resources tag to struts-config.xml:

Struts> 
Struts>   
Struts>   ...
Struts> 

Struts>   This seems like a bug to me. Not specifying a message-resources tag
Struts>   should be *better* than specifying one with a bogus resource file.

I have a different, but related problem, using the latest Struts/Commons from
CVS.  I already had a working application with a "message-resources" element
(working with the binary release of Struts 1.1b2).  However, now that I'm
trying to run it with the latest Struts/Commons, I'm getting the same error
message you're getting.  I've spent quite a bit of time tracing through the
application initialization in the debugger, but I can't tell what's wrong.  It
seems like "ApplicationConfig.addMessageResourcesConfig()" does not get called,
but I'm not sure why.  I have a feeling this is supposed to be called from the
Digester code.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




Re: html taglib yields "Cannot find message resources under key org.apache.struts.action.MESSAGE"

2002-04-05 Thread @Basebeans.com

Subject: Re: html taglib yields "Cannot find message resources under key 
org.apache.struts.action.MESSAGE"
From: Bill Wohler <[EMAIL PROTECTED]>
 ===
Bill Wohler <[EMAIL PROTECTED]> writes:
>   I've got the following complicated page:
> 
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> http://www.newt.com/images/anybrowser4b.png"; />
> 
>   However, this complexity comes at a price:
>   
> javax.servlet.ServletException: Cannot find message resources under key 
>org.apache.struts.action.MESSAGE
> 
  
  Well, I discovered the problem. I found I had to add a
  message-resources tag to struts-config.xml:


  
  ...


  This seems like a bug to me. Not specifying a message-resources tag
  should be *better* than specifying one with a bogus resource file.

-- 
Bill Wohler <[EMAIL PROTECTED]>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and mh-e. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

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




RE: validation="true"

2002-04-05 Thread Leonardo Maciel


Here we go. Your first page is /logon.do on your browser, you input the user
and pass them click OK. The OK button submit form 











The action LoadUserAction was not instantiated. Here is your gain, speed.

Also you don't have to call validate anywhere. The controller called it for
you.

I think those are two good reasons.

thx
Leo


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 6:33 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Leonardo,
Thats just the point.. I am looking for null values.. etc etc (a
logon page for example).
EVERYTIME the page gets displayed to the user there is NO data in the
fields, so using validate="true".
CANNOT happen, otherwise I would ALWAYS get an error.  I just cant think
of a good reason to NOT
do the form.validate() from the action...
-Michael

-Original Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:27 PM
To: 'Struts Users Mailing List'
Subject: RE: validation="true"



With validate="true" the controler validates the form (calls
form.validate)
before instanciate the action. 
The value is speed.
Make sure to set input on mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 5:07 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Excellent,
I just subscribed to this group today so I appologize for
missing the previous posts.
I do NOT understand the value of having a validate="true" at all then.
Can someone enlighten me?  I like alternative 2 (form.validate()).  And
I am now using that.
I still cant wrap my mind around having a validate="true" and firing it
on the FIRST load..its kooky.
just my 2 cents.
-Michael

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:28 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Michael coincidentally enough the last few threads have addressed the
same issue. To summarize you could do one of two things:

1. Define 2 identical action-mappings in your struts-config
- Call the first one "firstVisitSomething...Action" and set
validate=false
Now when a user clicks on the link to go to your page for the first time
you go here.

- The second action-mapping will have validate=true, and your form
action in your jsp will post to this action-mapping

2. The other way to do it is to set validate=false in your action
mapping, then call form.validate() in your Action object when the mode
is "submit" or some such.


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:16 PM
To: Struts (E-mail)
Subject: validation="true"


Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: validation="true"

2002-04-05 Thread Michael J. Godfrey

Leonardo,
Thats just the point.. I am looking for null values.. etc etc (a
logon page for example).
EVERYTIME the page gets displayed to the user there is NO data in the
fields, so using validate="true".
CANNOT happen, otherwise I would ALWAYS get an error.  I just cant think
of a good reason to NOT
do the form.validate() from the action...
-Michael

-Original Message-
From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:27 PM
To: 'Struts Users Mailing List'
Subject: RE: validation="true"



With validate="true" the controler validates the form (calls
form.validate)
before instanciate the action. 
The value is speed.
Make sure to set input on mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 5:07 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Excellent,
I just subscribed to this group today so I appologize for
missing the previous posts.
I do NOT understand the value of having a validate="true" at all then.
Can someone enlighten me?  I like alternative 2 (form.validate()).  And
I am now using that.
I still cant wrap my mind around having a validate="true" and firing it
on the FIRST load..its kooky.
just my 2 cents.
-Michael

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:28 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Michael coincidentally enough the last few threads have addressed the
same issue. To summarize you could do one of two things:

1. Define 2 identical action-mappings in your struts-config
- Call the first one "firstVisitSomething...Action" and set
validate=false
Now when a user clicks on the link to go to your page for the first time
you go here.

- The second action-mapping will have validate=true, and your form
action in your jsp will post to this action-mapping

2. The other way to do it is to set validate=false in your action
mapping, then call form.validate() in your Action object when the mode
is "submit" or some such.


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:16 PM
To: Struts (E-mail)
Subject: validation="true"


Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: validation="true"

2002-04-05 Thread Leonardo Maciel


With validate="true" the controler validates the form (calls form.validate)
before instanciate the action. 
The value is speed.
Make sure to set input on mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 5:07 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Excellent,
I just subscribed to this group today so I appologize for
missing the previous posts.
I do NOT understand the value of having a validate="true" at all then.
Can someone enlighten me?  I like alternative 2 (form.validate()).  And
I am now using that.
I still cant wrap my mind around having a validate="true" and firing it
on the FIRST load..its kooky.
just my 2 cents.
-Michael

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:28 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Michael coincidentally enough the last few threads have addressed the
same issue. To summarize you could do one of two things:

1. Define 2 identical action-mappings in your struts-config
- Call the first one "firstVisitSomething...Action" and set
validate=false
Now when a user clicks on the link to go to your page for the first time
you go here.

- The second action-mapping will have validate=true, and your form
action in your jsp will post to this action-mapping

2. The other way to do it is to set validate=false in your action
mapping, then call form.validate() in your Action object when the mode
is "submit" or some such.


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:16 PM
To: Struts (E-mail)
Subject: validation="true"


Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




DynaValidatorForm usage question...

2002-04-05 Thread Phase Web and Multimedia

Has anyone successfully used the DynaValidatorForm?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
 

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




RE: validation="true"

2002-04-05 Thread David . A . Ventimiglia

There's a third option.

Have a form field ("firstVisit", for example) with a corresponding property
in your ActionForm.  In the validate() method, check the value of this
property so that the form can decide whether or not to do validation.

Cheers,
David

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 1:28 PM
To: Struts Users Mailing List
Subject: RE: validation="true"

Michael coincidentally enough the last few threads have addressed the same
issue. To summarize you could do one of two things:

1. Define 2 identical action-mappings in your struts-config
- Call the first one "firstVisitSomething...Action" and set validate=false
Now when a user clicks on the link to go to your page for the first time you
go here.

- The second action-mapping will have validate=true, and your form action in
your jsp will post to this action-mapping

2. The other way to do it is to set validate=false in your action mapping,
then call form.validate() in your Action object when the mode is "submit" or
some such.


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:16 PM
To: Struts (E-mail)
Subject: validation="true"


Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: REAL Pasty's (was RE: Announce Struts E-Book for less than $10)

2002-04-05 Thread Chappell, Simon P

The reason that I don't eat Haggis is that I know what they put in them! The same 
principle keeps me safe from ever eating Black Pudding. :-)

Simon

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 4:17 PM
>To: 'Struts Users Mailing List'
>Subject: RE: REAL Pasty's (was RE: Announce Struts E-Book for less than
>$10)
>
>
>You haven't eaten anything good until you've had a haggis!
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 4:48 PM
>To: Struts Users Mailing List
>Subject: RE: REAL Pasty's (was RE: Announce Struts E-Book for less than
>$10)
>
>
>The only REAL pasty's are the ones you buy and eat with your 
>feet planted on
>Cornish soil! :-) We have a town 8 miles from here called 
>Mineral Point and
>it has a very strong Cornish heritage (twinned with Redruth!), 
>however the
>local pasty's are but pale imitations compared to the REAL ones that I
>consumed back in my youth, my not so youth and on every trip back home.
>
>I prefer not to use parameters on my requests. I either have 
>an add page or
>an update page. This is a personal preference thing and I don't want to
>start a friday afternoon flame war. In the "more objects, but simpler"
>versus "less ojects but more complex", I have a long history 
>of voting for
>simpler.
>
>Simon
>
>>-Original Message-
>>From: Joe Longo [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 3:33 PM
>>To: Struts Users Mailing List
>>Subject: REAL Pasty's (was RE: Announce Struts E-Book for less 
>>than $10)
>>
>>
>>So here is a struts style question,
>>an ActionForm is created upon each request, so
>>we need to either fill the form out with initial data,
>>or use the posted form content to update persistent data.
>>
>>Do you prefer to add a parameter to your requests 
>>to differentiate between a new request (where you pull data initially
>>from a DB source) and a subsequent request to modify (the submit)?
>>Or you keep state in the session to detect this?
>>Or something else?
>>
>>Hey, we have real Pasties here in Grass Valley, CA.
>>Cornish gold miners brought them here, and their
>>descendants still make them. 
>>
>>cheers:
>>Joe
>>
>>> REAL Pasty's etc etc.
>>
>>
>>--
>>To unsubscribe, e-mail:   
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: REAL Pasty's (was RE: Announce Struts E-Book for less than $10)

2002-04-05 Thread Galbreath, Mark

You haven't eaten anything good until you've had a haggis!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:48 PM
To: Struts Users Mailing List
Subject: RE: REAL Pasty's (was RE: Announce Struts E-Book for less than
$10)


The only REAL pasty's are the ones you buy and eat with your feet planted on
Cornish soil! :-) We have a town 8 miles from here called Mineral Point and
it has a very strong Cornish heritage (twinned with Redruth!), however the
local pasty's are but pale imitations compared to the REAL ones that I
consumed back in my youth, my not so youth and on every trip back home.

I prefer not to use parameters on my requests. I either have an add page or
an update page. This is a personal preference thing and I don't want to
start a friday afternoon flame war. In the "more objects, but simpler"
versus "less ojects but more complex", I have a long history of voting for
simpler.

Simon

>-Original Message-
>From: Joe Longo [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 3:33 PM
>To: Struts Users Mailing List
>Subject: REAL Pasty's (was RE: Announce Struts E-Book for less 
>than $10)
>
>
>So here is a struts style question,
>an ActionForm is created upon each request, so
>we need to either fill the form out with initial data,
>or use the posted form content to update persistent data.
>
>Do you prefer to add a parameter to your requests 
>to differentiate between a new request (where you pull data initially
>from a DB source) and a subsequent request to modify (the submit)?
>Or you keep state in the session to detect this?
>Or something else?
>
>Hey, we have real Pasties here in Grass Valley, CA.
>Cornish gold miners brought them here, and their
>descendants still make them. 
>
>cheers:
>Joe
>
>> REAL Pasty's etc etc.
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: validation="true"

2002-04-05 Thread Michael J. Godfrey

Excellent,
I just subscribed to this group today so I appologize for
missing the previous posts.
I do NOT understand the value of having a validate="true" at all then.
Can someone enlighten me?  I like alternative 2 (form.validate()).  And
I am now using that.
I still cant wrap my mind around having a validate="true" and firing it
on the FIRST load..its kooky.
just my 2 cents.
-Michael

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:28 PM
To: Struts Users Mailing List
Subject: RE: validation="true"


Michael coincidentally enough the last few threads have addressed the
same issue. To summarize you could do one of two things:

1. Define 2 identical action-mappings in your struts-config
- Call the first one "firstVisitSomething...Action" and set
validate=false
Now when a user clicks on the link to go to your page for the first time
you go here.

- The second action-mapping will have validate=true, and your form
action in your jsp will post to this action-mapping

2. The other way to do it is to set validate=false in your action
mapping, then call form.validate() in your Action object when the mode
is "submit" or some such.


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:16 PM
To: Struts (E-mail)
Subject: validation="true"


Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: REAL Pasty's (was RE: Announce Struts E-Book for less than $10)

2002-04-05 Thread Chappell, Simon P

The only REAL pasty's are the ones you buy and eat with your feet planted on Cornish 
soil! :-) We have a town 8 miles from here called Mineral Point and it has a very 
strong Cornish heritage (twinned with Redruth!), however the local pasty's are but 
pale imitations compared to the REAL ones that I consumed back in my youth, my not so 
youth and on every trip back home.

I prefer not to use parameters on my requests. I either have an add page or an update 
page. This is a personal preference thing and I don't want to start a friday afternoon 
flame war. In the "more objects, but simpler" versus "less ojects but more complex", I 
have a long history of voting for simpler.

Simon

>-Original Message-
>From: Joe Longo [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 3:33 PM
>To: Struts Users Mailing List
>Subject: REAL Pasty's (was RE: Announce Struts E-Book for less 
>than $10)
>
>
>So here is a struts style question,
>an ActionForm is created upon each request, so
>we need to either fill the form out with initial data,
>or use the posted form content to update persistent data.
>
>Do you prefer to add a parameter to your requests 
>to differentiate between a new request (where you pull data initially
>from a DB source) and a subsequent request to modify (the submit)?
>Or you keep state in the session to detect this?
>Or something else?
>
>Hey, we have real Pasties here in Grass Valley, CA.
>Cornish gold miners brought them here, and their
>descendants still make them. 
>
>cheers:
>Joe
>
>> REAL Pasty's etc etc.
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Nested properties

2002-04-05 Thread Dimitar Stavrakov

Try this : 



Regards, 
Dimitar

-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 3:28 PM
To: Struts Group (E-mail)
Subject: Nested properties

Hi,

my form bean contains another form bean which in turn contains a property
that
I want to access in my original jsp.

code: 

loanSummaryBean has getter method for statusId, but I am getting this error:

"No getter method for property loanDetailBean.loanSummaryBean.statusId of
bean org.apache.struts.taglib.html.BEAN"
Any pointers on solving this problem?
Thnx,
GB




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: IOException while loading persisted sessions??

2002-04-05 Thread @Basebeans.com

Subject: Re: IOException while loading persisted sessions??
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Well, I used to get same problem. And I think the problem is the Java Bean
you stored in session doesn't implement Serializable interface.

I did some test on Jakarta-Tomcat-4.0.3, looks like tomcat 4.x can save the
sessions even you shutdown it. Next time when you launch it, these sessions
still available. Actually, it's a pretty cool feature.

Tomcat 4.x implement this by Serializable interface, it assume that all the
object stored in a session implement Serializable interface. So when you
shutdown tomcat, it will write all object in the sessions to somewhere (_
directory under work directory I guess, but not sure.) by Serializable
interface. So if you store any object in session that doesn't implement this
interface, you will get this exception.

To me, even I implement it, sometime I still get this exception. And I found
that because I'm using log4j in my object. But Logger in log4j doesn't
implement Serializaable interface. So I suggest you don't you Logger in your
data storage bean.

Actually, as I see, even you got this exception, it will not effect your
application at all.

Hope this can help.

Jack

"David E" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
Can someone please give me a clue why I keep getting the following
Exceptions in my jakarta-tomcat-4.0.1 log? The product class is not
serializable it is persisted in a database?? Is it something with the Struts
framework? I searched the archives, but couldn't find anything. Thanks in
advance!

2002-03-31 19:35:43 StandardHost[localhost]: Installing web application at
context path /regalos from URL file:C:\jakarta-tomcat-4.0.1\webapps\regalos
2002-03-31 19:35:43 WebappLoader[/regalos]: Deploying class repositories to
work directory C:\jakarta-tomcat-4.0.1\work\localhost\regalos
2002-03-31 19:35:43 WebappLoader[/regalos]: Deploy JAR
/WEB-INF/lib/struts.jar to
C:\jakarta-tomcat-4.0.1\webapps\regalos\WEB-INF\lib\struts.jar
2002-03-31 19:35:43 StandardManager[/regalos]: Seeding random number
generator class java.security.SecureRandom
2002-03-31 19:35:43 StandardManager[/regalos]: Seeding of random number
generator has been completed
2002-03-31 19:35:43 StandardManager[/regalos] IOException while loading
persisted sessions: java.io.WriteAbortedException: Writing aborted by
exception; java.io.NotSerializableException:
com.hp.mw.samples.struts.storefront.databeans.Product
java.io.WriteAbortedException: Writing aborted by exception;
java.io.NotSerializableException:
com.hp.mw.samples.struts.storefront.databeans.Product
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:440)
 at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1137)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
 at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
 at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
 at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
 at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
1268)
 at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j
ava:810)
 at
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
 at
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3334)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


Struts & Websphere 3.5

2002-04-05 Thread Pruthee, Ranjan

Hello,

Does anyone know if single servlet model (Struts) can have security concerns in 
Websphere 3.5? We need to provide role based security using the URIs. What are the 
downsides of it? Has anyone implemented Struts in Websphere 3.5 with security on URIs? 
What are the alternatives?

Any pointers to the solution will be appreciated.

Thanks so much,

-RJ

 



RE: Form Validation Question

2002-04-05 Thread David . A . Ventimiglia

Thanks!

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 12:51 PM
To: Struts Users Mailing List
Subject: RE: Form Validation Question

You can also set validate=false in your mapping, but call the form's
validate method in your Action, that way you get to decide when to turn
validation on. Of course there's the additional hit of going to the action
every time, in this case.

Ady

-Original Message-
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Form Validation Question


How about creating 2 mappings where second mapping will have validation
turned off?

Mark.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Form Validation Question


Hello,



I'm using a single Action Mapping for both "adding" and "editing" an entity.
The mapping looks like this:





  





The idea is, if we come into ../editAuthorityLevel from a link that says
"Add Authority Level", then there'll be no form parameters, the
authorityLevelId consequently will be null, and the EditAuthorityLevelAction
class can do nothing in this case.  If, on the other hand, we come into
../editAuthorityLevel from a form that says "Edit Authority Level", then the
form fields (especially "authorityLevelId") will not be null.  In this case,
if looks up the appropriate bean and populates the form with the
corresponding values.



This works great until I introduce form validation.  If I implement the
form's validate() method so that it returns a non-empty ActionErrors if
required fields are not filled in, then this happens when coming in from the
"Add Authority Level" link.  When this happens, Struts skips the
EditAuthorityLevelAction class and tries to go directly to
../editAuthorityLevel.jsp.  This is bad because EditAuthorityLevelAction
populates several page beans that the JSP needs.



The central problem is this:  I'm using the ActionForm to shuttle data from
the Model side to the View side.  In one case, it's used to swizzle data out
of the model and show it in the JSP's "edit" form.  In the other case, it's
used to collect data from the form and send it (through the Action) back to
the model.  Only in the latter case do I care about form validation.  Yet
Struts imposes validation in both directions.  How do I get around this?



Cheers,

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)






--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Nested properties

2002-04-05 Thread Bhaskar Gopalan

Hi,

my form bean contains another form bean which in turn contains a property
that
I want to access in my original jsp.

code: 

loanSummaryBean has getter method for statusId, but I am getting this error:

"No getter method for property loanDetailBean.loanSummaryBean.statusId of
bean org.apache.struts.taglib.html.BEAN"
Any pointers on solving this problem?
Thnx,
GB




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




REAL Pasty's (was RE: Announce Struts E-Book for less than $10)

2002-04-05 Thread Joe Longo

So here is a struts style question,
an ActionForm is created upon each request, so
we need to either fill the form out with initial data,
or use the posted form content to update persistent data.

Do you prefer to add a parameter to your requests 
to differentiate between a new request (where you pull data initially
from a DB source) and a subsequent request to modify (the submit)?
Or you keep state in the session to detect this?
Or something else?

Hey, we have real Pasties here in Grass Valley, CA.
Cornish gold miners brought them here, and their
descendants still make them. 

cheers:
Joe

> REAL Pasty's etc etc.


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




RE: validation="true"

2002-04-05 Thread Ady Das-O'Toole

Michael coincidentally enough the last few threads have addressed the same issue. To 
summarize you could do one of two things:

1. Define 2 identical action-mappings in your struts-config
- Call the first one "firstVisitSomething...Action" and set validate=false
Now when a user clicks on the link to go to your page for the first time you go here.

- The second action-mapping will have validate=true, and your form action in your jsp 
will post to this action-mapping

2. The other way to do it is to set validate=false in your action mapping, then call 
form.validate() in your Action object when the mode is "submit" or some such.


-Original Message-
From: Michael J. Godfrey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:16 PM
To: Struts (E-mail)
Subject: validation="true"


Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

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


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




RE: Struts html:link tag

2002-04-05 Thread Dimitar Stavrakov


Just use 2 separate actions - one for the submit and one for the page load. 
The submit action will user validate and the load one won't.

Regards, 
Dimitar
-Original Message-
From: regatta DeBlanc [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 2:37 PM
To: Struts Users Mailing List
Subject: RE: Struts html:link tag

Thanks for the input, but that's not what I want. I
want to have form validation, but only when the user
clicks on the Submit button and not when the page is
loaded. And I want to load the page through struts
(). How can I have
Struts to differentiate between an action triggered by
a page being loaded and an action triggered by a
request being submitted after the Submit button was
clicked???



--- Tim Sawyer <[EMAIL PROTECTED]> wrote:
> You can turn off validation on a form bean for a
> particular ActionMapping by
> specifying validate="false" in the action mapping.
> 
> See
>
http://jakarta.apache.org/struts/doc-1.0.2/api/index.html
> for more
> details.
> 
>type="strutstest1.SystemUserAction"
>   name="userForm"
>   scope="request"
>   input="/admin/dsp_User.jsp"
>   validate="false">
>   path="/admin/dsp_User.jsp"/>
>   path="/admin/search/dsp_SearchUser.jsp"/>
> 
> 
> Tim.
> 
> > -Original Message-
> > From: regatta DeBlanc
> [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 04, 2002 4:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: Struts html:link tag
> >
> >
> > How can I use the html:link tag to reference a
> page,
> > without trigerring the validation process.
> >
> > e.g.
> >
> > 
> >
> > This will trigger the validate() operation in the
> > userAddForm and the perform() operation in
> > userAddAction, BEFORE displaying the page
> userAdd.jsp.
> >
> > The problem here is that I have added a check in
> the
> > validate() operation so that it adds an
> ActionError if
> > the user did not fill in the username text box.
> But
> > this check is meant for when the user hits the
> submit
> > button, not when the page is first loaded.
> >
> > When referencing the page with:
> > 
> > how can I differentiate, in the ActionForm and
> Action
> > operations, between the case when the page is
> first
> > loaded and the case when the user hits the submit
> > button??
> >
> > I know I can solve the problem by referencing the
> page
> > as follows:
> > 
> > but I want to try to do it the "Struts" way so
> that I
> > can load the page with templates that are derived
> in
> > the Action.
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




validation="true"

2002-04-05 Thread Michael J. Godfrey

Greetings,
I am just starting to write a test app to learn struts.
I have a validation="true" setting in struts-config.xml.

When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID, and password as fields.
In the validate() I am checking for loginID == null and loginID.length()
<1 etc etc.
This is failing right out of the chute because the validation is firing
when the darn thing loads.
What am I doing wrong?
I have read the jakarta FAQ's etc stating that low budget validation
SHOULD be done in validate().
-Michael

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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Chappell, Simon P

I used to be a strong supporter of CAMRA, but I gave up all drink soon after arriving 
in America. I don't miss the beer, but I DO miss decent tea, REAL Cheddar Cheese and 
pickle sandwiches, REAL Pasty's etc etc.

Simon

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 3:03 PM
>To: Struts Users Mailing List
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>
>
>Wow - another real Englishman!  I bet you drink real beer!!!
>
>(sorry, thought Friday was beer-discussion day!)
>
>Dave
>
>
>
>
>
>"Chappell, Simon P" 
><[EMAIL PROTECTED]> on
>04/05/2002 04:00:34 PM
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 12:11 PM
>>To: Struts Users Mailing List
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>Yes, I work for Lands' End! (Notice the unusual location for
>>the apostrophe!
>>It's a marketing thing :-) No, I can't let you have stuff at a
>>discount! :-P
>>
>>Lands' End is in beautiful South-West Wisconsin. L.L. Bean is
>>the clothing
>>company in Maine (which I have heard is very beautiful but I
>>have not yet
>>visited that part of the states).
>>
>>Of course, the REAL Land's End (correct placement of the
>>apostrophe) is the
>>South-West tip of Cornwall in England, where I am from and the
>>rest of my
>>family still live.
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>>-Original Message-
>>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, April 05, 2002 10:20 AM
>>>To: 'Struts Users Mailing List'
>>>Subject: RE: Announce Struts E-Book for less than $10
>>>
>>>
>>>;-)
>>>
>>>You work for Land's End? In Maine?
>>>
>>>-Original Message-
>>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, April 05, 2002 9:25 AM
>>>To: Struts Users Mailing List
>>>Subject: RE: Announce Struts E-Book for less than $10
>>>
>>>
>>>Ahh yes ... it's Friday! :-)
>>>
>>>Simon
>>>
>>>-
>>>Simon P. Chappell [EMAIL PROTECTED]
>>>Java Programming Specialist  www.landsend.com
>>>Lands' End, Inc.   (608) 935-4526
>>>
>>>
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:28 AM
To: 'Struts Users Mailing List'
Subject: RE: Announce Struts E-Book for less than $10


It sucks.

Mark

-Original Message-
From: Jim Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Announce Struts E-Book for less than $10


Hi,

  The people reviewing "Struts Fast Track" on
Amazon.com seem to dislike this book.  I won't quote
examples of such comments as I'm not wanting to agree
with the Amazon reviewers, but could someone please
provide a "good" review?

=
JS

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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


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



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








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


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




RE: Form Validation Question

2002-04-05 Thread Zeltser, Mark

You can turn off validation by specifying validate="false" in your action: 



 
   



 
   

Mark


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:57 PM
To: [EMAIL PROTECTED]
Subject: RE: Form Validation Question


I would, except I don't know how to turn validation off in the Action
Mapping in struts-config.xml.  As long as I use the same ActionForm for both
"show me a blank form so I can add" and "show me a populated form so I can
edit", and that ActionForm implements validate(), then there's validation.
Is there a way to turn this off?

The alternative, which may not be so bad, is for the validate() method to
inspect the form fields and to decide to actually check for empty fields if
we're in "show me a populated form so I can edit" mode.  Actually, that's
not bad at all because it fits with the overall semantics.

In other words, I was originally thinking the validation rule is:

"The Authentication Level's 'Name' field may not be empty."

But upon further reflection, it's clear the validation rule is really:

"The Authentication Level's 'Name' field may not be empty, UNLESS this is
the special case of the 'Insert Row'."

Where 'Insert Row' is defined to be a bean whose primary key (eg.,
authenticationLevelId) is null.

Cheers,
David

-Original Message-
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Form Validation Question

How about creating 2 mappings where second mapping will have validation
turned off?

Mark.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Form Validation Question


Hello,



I'm using a single Action Mapping for both "adding" and "editing" an entity.
The mapping looks like this:





  





The idea is, if we come into ../editAuthorityLevel from a link that says
"Add Authority Level", then there'll be no form parameters, the
authorityLevelId consequently will be null, and the EditAuthorityLevelAction
class can do nothing in this case.  If, on the other hand, we come into
../editAuthorityLevel from a form that says "Edit Authority Level", then the
form fields (especially "authorityLevelId") will not be null.  In this case,
if looks up the appropriate bean and populates the form with the
corresponding values.



This works great until I introduce form validation.  If I implement the
form's validate() method so that it returns a non-empty ActionErrors if
required fields are not filled in, then this happens when coming in from the
"Add Authority Level" link.  When this happens, Struts skips the
EditAuthorityLevelAction class and tries to go directly to
../editAuthorityLevel.jsp.  This is bad because EditAuthorityLevelAction
populates several page beans that the JSP needs.



The central problem is this:  I'm using the ActionForm to shuttle data from
the Model side to the View side.  In one case, it's used to swizzle data out
of the model and show it in the JSP's "edit" form.  In the other case, it's
used to collect data from the form and send it (through the Action) back to
the model.  Only in the latter case do I care about form validation.  Yet
Struts imposes validation in both directions.  How do I get around this?



Cheers,

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)






--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information pur

RE: Announce Struts E-Book for less than $10

2002-04-05 Thread dhay



Wow - another real Englishman!  I bet you drink real beer!!!

(sorry, thought Friday was beer-discussion day!)

Dave





"Chappell, Simon P" <[EMAIL PROTECTED]> on
04/05/2002 04:00:34 PM
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 12:11 PM
>To: Struts Users Mailing List
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>Yes, I work for Lands' End! (Notice the unusual location for
>the apostrophe!
>It's a marketing thing :-) No, I can't let you have stuff at a
>discount! :-P
>
>Lands' End is in beautiful South-West Wisconsin. L.L. Bean is
>the clothing
>company in Maine (which I have heard is very beautiful but I
>have not yet
>visited that part of the states).
>
>Of course, the REAL Land's End (correct placement of the
>apostrophe) is the
>South-West tip of Cornwall in England, where I am from and the
>rest of my
>family still live.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>>-Original Message-
>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 10:20 AM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>;-)
>>
>>You work for Land's End? In Maine?
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 9:25 AM
>>To: Struts Users Mailing List
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>Ahh yes ... it's Friday! :-)
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>
>>>-Original Message-
>>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, April 05, 2002 7:28 AM
>>>To: 'Struts Users Mailing List'
>>>Subject: RE: Announce Struts E-Book for less than $10
>>>
>>>
>>>It sucks.
>>>
>>>Mark
>>>
>>>-Original Message-
>>>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, April 05, 2002 7:18 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: Announce Struts E-Book for less than $10
>>>
>>>
>>>Hi,
>>>
>>>  The people reviewing "Struts Fast Track" on
>>>Amazon.com seem to dislike this book.  I won't quote
>>>examples of such comments as I'm not wanting to agree
>>>with the Amazon reviewers, but could someone please
>>>provide a "good" review?
>>>
>>>=
>>>JS
>>>
>>>__
>>>Do You Yahoo!?
>>>Yahoo! Tax Center - online filing with TurboTax
>>>http://taxes.yahoo.com/
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>[EMAIL PROTECTED]>
>>>For
>>>additional commands,
>>>e-mail: 
>>>
>>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:

For additional commands, e-mail: 


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








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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Chappell, Simon P

Well ... you send it to our lovely Employee Services folks (the address is on our 
website) and tell them my name so that I get the referal bonus! :-) I think that we 
are always looking for Java Web Developers. (Or you can send it to me, and I'll 
personally put it in their hands.)

I love it out here. I actually live right in Dodgeville and I timed my commute the 
other day, exactly four minutes (unless you hit the rushminute! :-) No company is 
perfect, but Lands' End is good enough that I haven't applied anywhere else for years.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 2:37 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>Wisconsin?  I love Wisconsin.  To whom do I send a resume?  I'm sick of
>Washington, D.C.!
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 12:11 PM
>To: Struts Users Mailing List
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>Yes, I work for Lands' End! (Notice the unusual location for 
>the apostrophe!
>It's a marketing thing :-) No, I can't let you have stuff at a 
>discount! :-P
>
>Lands' End is in beautiful South-West Wisconsin. L.L. Bean is 
>the clothing
>company in Maine (which I have heard is very beautiful but I 
>have not yet
>visited that part of the states).
>
>Of course, the REAL Land's End (correct placement of the 
>apostrophe) is the
>South-West tip of Cornwall in England, where I am from and the 
>rest of my
>family still live.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>>-Original Message-
>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 10:20 AM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>;-)
>>
>>You work for Land's End? In Maine?
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 9:25 AM
>>To: Struts Users Mailing List
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>Ahh yes ... it's Friday! :-)
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>
>>>-Original Message-
>>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, April 05, 2002 7:28 AM
>>>To: 'Struts Users Mailing List'
>>>Subject: RE: Announce Struts E-Book for less than $10
>>>
>>>
>>>It sucks.
>>>
>>>Mark
>>>
>>>-Original Message-
>>>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, April 05, 2002 7:18 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: Announce Struts E-Book for less than $10
>>>
>>>
>>>Hi,
>>>
>>>  The people reviewing "Struts Fast Track" on
>>>Amazon.com seem to dislike this book.  I won't quote
>>>examples of such comments as I'm not wanting to agree
>>>with the Amazon reviewers, but could someone please
>>>provide a "good" review?
>>>
>>>=
>>>JS
>>>
>>>__
>>>Do You Yahoo!?
>>>Yahoo! Tax Center - online filing with TurboTax
>>>http://taxes.yahoo.com/
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>[EMAIL PROTECTED]>
>>>For 
>>>additional commands, 
>>>e-mail: 
>>>
>>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:   
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Form Validation Question

2002-04-05 Thread David . A . Ventimiglia

I would, except I don't know how to turn validation off in the Action
Mapping in struts-config.xml.  As long as I use the same ActionForm for both
"show me a blank form so I can add" and "show me a populated form so I can
edit", and that ActionForm implements validate(), then there's validation.
Is there a way to turn this off?

The alternative, which may not be so bad, is for the validate() method to
inspect the form fields and to decide to actually check for empty fields if
we're in "show me a populated form so I can edit" mode.  Actually, that's
not bad at all because it fits with the overall semantics.

In other words, I was originally thinking the validation rule is:

"The Authentication Level's 'Name' field may not be empty."

But upon further reflection, it's clear the validation rule is really:

"The Authentication Level's 'Name' field may not be empty, UNLESS this is
the special case of the 'Insert Row'."

Where 'Insert Row' is defined to be a bean whose primary key (eg.,
authenticationLevelId) is null.

Cheers,
David

-Original Message-
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 12:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Form Validation Question

How about creating 2 mappings where second mapping will have validation
turned off?

Mark.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Form Validation Question


Hello,



I'm using a single Action Mapping for both "adding" and "editing" an entity.
The mapping looks like this:





  





The idea is, if we come into ../editAuthorityLevel from a link that says
"Add Authority Level", then there'll be no form parameters, the
authorityLevelId consequently will be null, and the EditAuthorityLevelAction
class can do nothing in this case.  If, on the other hand, we come into
../editAuthorityLevel from a form that says "Edit Authority Level", then the
form fields (especially "authorityLevelId") will not be null.  In this case,
if looks up the appropriate bean and populates the form with the
corresponding values.



This works great until I introduce form validation.  If I implement the
form's validate() method so that it returns a non-empty ActionErrors if
required fields are not filled in, then this happens when coming in from the
"Add Authority Level" link.  When this happens, Struts skips the
EditAuthorityLevelAction class and tries to go directly to
../editAuthorityLevel.jsp.  This is bad because EditAuthorityLevelAction
populates several page beans that the JSP needs.



The central problem is this:  I'm using the ActionForm to shuttle data from
the Model side to the View side.  In one case, it's used to swizzle data out
of the model and show it in the JSP's "edit" form.  In the other case, it's
used to collect data from the form and send it (through the Action) back to
the model.  Only in the latter case do I care about form validation.  Yet
Struts imposes validation in both directions.  How do I get around this?



Cheers,

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)






--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Form Validation Question

2002-04-05 Thread Ady Das-O'Toole

You can also set validate=false in your mapping, but call the form's validate method 
in your Action, that way you get to decide when to turn validation on. Of course 
there's the additional hit of going to the action every time, in this case.

Ady

-Original Message-
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Form Validation Question


How about creating 2 mappings where second mapping will have validation
turned off?

Mark.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Form Validation Question


Hello,



I'm using a single Action Mapping for both "adding" and "editing" an entity.
The mapping looks like this:





  





The idea is, if we come into ../editAuthorityLevel from a link that says
"Add Authority Level", then there'll be no form parameters, the
authorityLevelId consequently will be null, and the EditAuthorityLevelAction
class can do nothing in this case.  If, on the other hand, we come into
../editAuthorityLevel from a form that says "Edit Authority Level", then the
form fields (especially "authorityLevelId") will not be null.  In this case,
if looks up the appropriate bean and populates the form with the
corresponding values.



This works great until I introduce form validation.  If I implement the
form's validate() method so that it returns a non-empty ActionErrors if
required fields are not filled in, then this happens when coming in from the
"Add Authority Level" link.  When this happens, Struts skips the
EditAuthorityLevelAction class and tries to go directly to
../editAuthorityLevel.jsp.  This is bad because EditAuthorityLevelAction
populates several page beans that the JSP needs.



The central problem is this:  I'm using the ActionForm to shuttle data from
the Model side to the View side.  In one case, it's used to swizzle data out
of the model and show it in the JSP's "edit" form.  In the other case, it's
used to collect data from the form and send it (through the Action) back to
the model.  Only in the latter case do I care about form validation.  Yet
Struts imposes validation in both directions.  How do I get around this?



Cheers,

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)





--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



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


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




RE: Form Validation Question

2002-04-05 Thread Zeltser, Mark

How about creating 2 mappings where second mapping will have validation
turned off?

Mark.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Form Validation Question


Hello,



I'm using a single Action Mapping for both "adding" and "editing" an entity.
The mapping looks like this:





  





The idea is, if we come into ../editAuthorityLevel from a link that says
"Add Authority Level", then there'll be no form parameters, the
authorityLevelId consequently will be null, and the EditAuthorityLevelAction
class can do nothing in this case.  If, on the other hand, we come into
../editAuthorityLevel from a form that says "Edit Authority Level", then the
form fields (especially "authorityLevelId") will not be null.  In this case,
if looks up the appropriate bean and populates the form with the
corresponding values.



This works great until I introduce form validation.  If I implement the
form's validate() method so that it returns a non-empty ActionErrors if
required fields are not filled in, then this happens when coming in from the
"Add Authority Level" link.  When this happens, Struts skips the
EditAuthorityLevelAction class and tries to go directly to
../editAuthorityLevel.jsp.  This is bad because EditAuthorityLevelAction
populates several page beans that the JSP needs.



The central problem is this:  I'm using the ActionForm to shuttle data from
the Model side to the View side.  In one case, it's used to swizzle data out
of the model and show it in the JSP's "edit" form.  In the other case, it's
used to collect data from the form and send it (through the Action) back to
the model.  Only in the latter case do I care about form validation.  Yet
Struts imposes validation in both directions.  How do I get around this?



Cheers,

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)





--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Galbreath, Mark

Wisconsin?  I love Wisconsin.  To whom do I send a resume?  I'm sick of
Washington, D.C.!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:11 PM
To: Struts Users Mailing List
Subject: RE: Announce Struts E-Book for less than $10


Yes, I work for Lands' End! (Notice the unusual location for the apostrophe!
It's a marketing thing :-) No, I can't let you have stuff at a discount! :-P

Lands' End is in beautiful South-West Wisconsin. L.L. Bean is the clothing
company in Maine (which I have heard is very beautiful but I have not yet
visited that part of the states).

Of course, the REAL Land's End (correct placement of the apostrophe) is the
South-West tip of Cornwall in England, where I am from and the rest of my
family still live.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 10:20 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>;-)
>
>You work for Land's End? In Maine?
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 9:25 AM
>To: Struts Users Mailing List
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>Ahh yes ... it's Friday! :-)
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 7:28 AM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>It sucks.
>>
>>Mark
>>
>>-Original Message-
>>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 7:18 AM
>>To: [EMAIL PROTECTED]
>>Subject: Re: Announce Struts E-Book for less than $10
>>
>>
>>Hi,
>>
>>  The people reviewing "Struts Fast Track" on
>>Amazon.com seem to dislike this book.  I won't quote
>>examples of such comments as I'm not wanting to agree
>>with the Amazon reviewers, but could someone please
>>provide a "good" review?
>>
>>=
>>JS
>>
>>__
>>Do You Yahoo!?
>>Yahoo! Tax Center - online filing with TurboTax
>>http://taxes.yahoo.com/
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>[EMAIL PROTECTED]>
>>For 
>>additional commands, 
>>e-mail: 
>>
>>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Struts html:link tag

2002-04-05 Thread regatta DeBlanc

Thanks for the input, but that's not what I want. I
want to have form validation, but only when the user
clicks on the Submit button and not when the page is
loaded. And I want to load the page through struts
(). How can I have
Struts to differentiate between an action triggered by
a page being loaded and an action triggered by a
request being submitted after the Submit button was
clicked???



--- Tim Sawyer <[EMAIL PROTECTED]> wrote:
> You can turn off validation on a form bean for a
> particular ActionMapping by
> specifying validate="false" in the action mapping.
> 
> See
>
http://jakarta.apache.org/struts/doc-1.0.2/api/index.html
> for more
> details.
> 
>type="strutstest1.SystemUserAction"
>   name="userForm"
>   scope="request"
>   input="/admin/dsp_User.jsp"
>   validate="false">
>   path="/admin/dsp_User.jsp"/>
>   path="/admin/search/dsp_SearchUser.jsp"/>
> 
> 
> Tim.
> 
> > -Original Message-
> > From: regatta DeBlanc
> [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 04, 2002 4:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: Struts html:link tag
> >
> >
> > How can I use the html:link tag to reference a
> page,
> > without trigerring the validation process.
> >
> > e.g.
> >
> > 
> >
> > This will trigger the validate() operation in the
> > userAddForm and the perform() operation in
> > userAddAction, BEFORE displaying the page
> userAdd.jsp.
> >
> > The problem here is that I have added a check in
> the
> > validate() operation so that it adds an
> ActionError if
> > the user did not fill in the username text box.
> But
> > this check is meant for when the user hits the
> submit
> > button, not when the page is first loaded.
> >
> > When referencing the page with:
> > 
> > how can I differentiate, in the ActionForm and
> Action
> > operations, between the case when the page is
> first
> > loaded and the case when the user hits the submit
> > button??
> >
> > I know I can solve the problem by referencing the
> page
> > as follows:
> > 
> > but I want to try to do it the "Struts" way so
> that I
> > can load the page with templates that are derived
> in
> > the Action.
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Form Validation Question

2002-04-05 Thread David . A . Ventimiglia

Hello,

 

I'm using a single Action Mapping for both "adding" and "editing" an entity.
The mapping looks like this:

 



  



 

The idea is, if we come into ../editAuthorityLevel from a link that says
"Add Authority Level", then there'll be no form parameters, the
authorityLevelId consequently will be null, and the EditAuthorityLevelAction
class can do nothing in this case.  If, on the other hand, we come into
../editAuthorityLevel from a form that says "Edit Authority Level", then the
form fields (especially "authorityLevelId") will not be null.  In this case,
if looks up the appropriate bean and populates the form with the
corresponding values.  

 

This works great until I introduce form validation.  If I implement the
form's validate() method so that it returns a non-empty ActionErrors if
required fields are not filled in, then this happens when coming in from the
"Add Authority Level" link.  When this happens, Struts skips the
EditAuthorityLevelAction class and tries to go directly to
../editAuthorityLevel.jsp.  This is bad because EditAuthorityLevelAction
populates several page beans that the JSP needs.

 

The central problem is this:  I'm using the ActionForm to shuttle data from
the Model side to the View side.  In one case, it's used to swizzle data out
of the model and show it in the JSP's "edit" form.  In the other case, it's
used to collect data from the form and send it (through the Action) back to
the model.  Only in the latter case do I care about form validation.  Yet
Struts imposes validation in both directions.  How do I get around this?

 

Cheers,

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)

 




XML DTD/Schema <--> Struts Forms?

2002-04-05 Thread Bryan Field-Elliot

Hi,

I have a need to take an XML Schema or DTD, and present a HTML form with
elements matching the Schema. Then, upon submission of the form,
validate the elements for the proper type compliance, and finally,
create an XML document (DOM) out of it.

I use Struts simply because I have for the last xxx projects I've built.

Has anyone done this before, is there reference or base code anywhere I
could use, etc? Would appreciate any input...

Thanks,

Bryan






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




Re: html:option

2002-04-05 Thread Ethan Schroeder

I am having the same trouble.  I don't want to necessarily use html:options
instead of html:option because I'm displaying purely static information, but
I'm approaching the point where I may have to move to html:options because
performance is so horrible.

Ethan

- Original Message -
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 6:25 AM
Subject: html:option


> Subject: html:option
> From: "David Bolsover" <[EMAIL PROTECTED]>
>  ===
> Hi all
>
> I have a page that uses multiple ~30  tags within an
>  tag.
>
> The problem is that the page loads very slowly from the servlet
> container (TC4.01).
>
> Has anyone else seen this problem / have any suggestions for a soluton?
>
> Regards
>
> David Bolsover
> [EMAIL PROTECTED]
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Connection pool behaviour

2002-04-05 Thread Johannes Wolfgang Woger

Hi,
it turned out that my problem is not related to
connnection pooling, it even appears with
Class.forName("interbase.interclient.Driver"); con = Drivermanager(url,user,passwd).
An other strange behavior ocurrs. If I manually remove
all data from the database, they all get written back with
the input part of my application (which should only instert
one row into the database table)
I use an ArrayList that takes ActionForm derived object
which are instanciated and filled with the row of a ResultSet
in a loop (while(myResultSet.next(())) .
The ArrayList is put into a Request: request.setAttribut("findName", arrayListInstance)
Are the old table entries somehow cached in the request ?

Wolfgang




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




dynamic constraints w/ Struts validator

2002-04-05 Thread Marc-André Thibodeau


Hi!
I'm using Struts 1.0.2 with the validator framework in a quite simple form
application.  It's particularity is that constraints on some fields (for
example, the integer range for some input) may be determined at runtime.
But the validator framework does not seem to allow to set these constraints
dynamically...  (Am I wrong?)  The solution I thought of is to extend the
ValidatorForm class, adding a call to some utility method at the end of the
validate() method which would perform the "dynamic validations". But this
way I lose the useful features of the framework for these validations. Isn't
there a better way to do this without having to modify the validation
framework itself??

Thanks

Marc-André Thibodeau


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




BUG: Multiple Servlet mappings problem (Struts 1.0.1)

2002-04-05 Thread Ken . Horn


Not sure if this is considered a bug, it may be. Certainly the code 
needs a catch-all to fix it.

I was having trouble getting a  tag to work, the action in 
the generated html, was always ="". Having resorted to using 
 which worked (them were days, struts, pre version 
numbers...), I finally put some debug code in html.FormTag.

The problem was, that servlet mapping, that the form tag looks up in 
the application context was not the one that should have been used. I 
have many mappings to the ActionServlet, one is *.do, while the rest 
grab certain specific URL's (legacy JSP's, which get forwardeed to 
actual JSP's having been through the controller for session checks and 
logging). The form tag was finding a specific mapping, which fails ALL 
the tests in getActionMappingURL() (I also have no context path) - 
resulting in action="".

Quick solution: add a catch all (and maybe a warning?) to just use the 
url provided.

(this diff is from the 1.0.1 source, though the latest in cvs has the 
same problem)

*** FormTag.java.orig   Fri Apr  5 19:03:05 2002
--- FormTag.javaFri Apr  5 19:03:51 2002
***
*** 721,726 
--- 721,728 
  value.append(servletMapping.substring
   (0, servletMapping.length() - 2));
  value.append(actionMapping);
+ } else {
+ value.append(action);
  }
  if (queryString != null)
  value.append(queryString);

Real solution: erm don't know. I managed to fix this by placing the 
*.do mapping last in web.xml, though this does seem very hacky and not 
particularly stable.

Ken.


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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




nested:image

2002-04-05 Thread Jefferson Rodrigues de Oliveira e Silva

Hi guys, I have a new problem.

I'm using a nested:iterate, and one bean attribute is a key to an image in my
properties file.

public class TeamBean {

private String team = "team.brazil"
...

}

in the properties file I have the following entries

team.brazil=Brazil
team.brazil.flag=brazil.gif


Now I need to insert the team name and its flag gif inside the nested:iterate

Does anybody know how do I do that ?

Thanks in advance
Jefferson


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




bean:write

2002-04-05 Thread yanming lu

How to display a list of links by using  or  or 
something else?

THanks, Yan

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Preselecting an within a

2002-04-05 Thread Jim Crossley

"Mattos, John" <[EMAIL PROTECTED]> writes:

> 
>labelProperty="label"/>
> 
> 
> I need to preselect one of the OPTIONS in the SELECT list.

Ok.

> The thing is, I can't set the values in the corresponding ActionForm
> object, since this form submits to itself and the Select Boxes have
> to be repopulated from the database

You lost me.  A form does not submit to a form -- it submits to an
action -- therefore it can't submit to itself.  Why can't you call
setDataType("blah") in the action prior to displaying the form?

> Is there any way to add "Selected" to the html:options tag?

There shouldn't be a need to do this.

-- 
Jim Crossley
http://www.lads.com/~jim

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




RE: file upload

2002-04-05 Thread FISHKIN-LEVAS,JENNIFER (HP-NewJersey,ex2)

Kevin,

HaHa. I wish I knew the reason!
I have not tested it on an OS other than Windows 2000 and NT.
I've spoken with some colleagues about it, and pretty much all I have is
some speculation.
The speculation is that Windows sockets have some issues with this,
or that the hard drive is reading and writing the file at the same time...

I have uploaded files from a different hard drive other than the one that
the server is saving the file to, so I don't think it's the hard drive.


--Jenn


-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:56 AM
To: Struts Users Mailing List
Subject: RE: file upload



Yes, Jenniffer, It does speed up when accessing from a different box!

But who knows the reason?

Thank for your reply.

Kevin


-Original Message-
From: FISHKIN-LEVAS,JENNIFER (HP-NewJersey,ex2)
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:52 AM
To: 'Struts Users Mailing List'
Subject: RE: file upload


Kevin,

I ran into the same issue, not just with Struts File Upload, but also with
the O'Reilly servlet as well.  Are you uploading from the same box as your
server?
What I found is that if your client is on a different box than the server,
the file upload is speedy.

--Jenn

-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: file upload



Hi,

Now I am testing the 'upload' sample shipped with Struts.  I found it
becomes very slow when the file size is big - say above 3M.

Why? Have you guys run across the same problem?

Thanks
Kevin



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Chappell, Simon P

Yes, I work for Lands' End! (Notice the unusual location for the apostrophe! It's a 
marketing thing :-) No, I can't let you have stuff at a discount! :-P

Lands' End is in beautiful South-West Wisconsin. L.L. Bean is the clothing company in 
Maine (which I have heard is very beautiful but I have not yet visited that part of 
the states).

Of course, the REAL Land's End (correct placement of the apostrophe) is the South-West 
tip of Cornwall in England, where I am from and the rest of my family still live.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 10:20 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>;-)
>
>You work for Land's End? In Maine?
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 9:25 AM
>To: Struts Users Mailing List
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>Ahh yes ... it's Friday! :-)
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 7:28 AM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Announce Struts E-Book for less than $10
>>
>>
>>It sucks.
>>
>>Mark
>>
>>-Original Message-
>>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 7:18 AM
>>To: [EMAIL PROTECTED]
>>Subject: Re: Announce Struts E-Book for less than $10
>>
>>
>>Hi,
>>
>>  The people reviewing "Struts Fast Track" on
>>Amazon.com seem to dislike this book.  I won't quote
>>examples of such comments as I'm not wanting to agree
>>with the Amazon reviewers, but could someone please
>>provide a "good" review?
>>
>>=
>>JS
>>
>>__
>>Do You Yahoo!?
>>Yahoo! Tax Center - online filing with TurboTax
>>http://taxes.yahoo.com/
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>[EMAIL PROTECTED]>
>>For 
>>additional commands, 
>>e-mail: 
>>
>>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Mattos, John

But really, it does suck.

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014



-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Announce Struts E-Book for less than $10


;-)

You work for Land's End? In Maine?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 9:25 AM
To: Struts Users Mailing List
Subject: RE: Announce Struts E-Book for less than $10


Ahh yes ... it's Friday! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 7:28 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>It sucks.
>
>Mark
>
>-Original Message-
>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 7:18 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Announce Struts E-Book for less than $10
>
>
>Hi,
>
>  The people reviewing "Struts Fast Track" on
>Amazon.com seem to dislike this book.  I won't quote
>examples of such comments as I'm not wanting to agree
>with the Amazon reviewers, but could someone please
>provide a "good" review?
>
>=
>JS
>
>__
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: file upload

2002-04-05 Thread Kevin Wang


Yes, Jenniffer, It does speed up when accessing from a different box!

But who knows the reason?

Thank for your reply.

Kevin


-Original Message-
From: FISHKIN-LEVAS,JENNIFER (HP-NewJersey,ex2)
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:52 AM
To: 'Struts Users Mailing List'
Subject: RE: file upload


Kevin,

I ran into the same issue, not just with Struts File Upload, but also with
the O'Reilly servlet as well.  Are you uploading from the same box as your
server?
What I found is that if your client is on a different box than the server,
the file upload is speedy.

--Jenn

-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: file upload



Hi,

Now I am testing the 'upload' sample shipped with Struts.  I found it
becomes very slow when the file size is big - say above 3M.

Why? Have you guys run across the same problem?

Thanks
Kevin



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Preselecting an within a

2002-04-05 Thread Mattos, John

Hi All,

I have the following code in my JSP






I need to preselect one of the OPTIONS in the SELECT list.

The thing is, I can't set the values in the corresponding ActionForm object,
since this form submits to itself and the Select Boxes have to be
repopulated from the database

Is there any way to add "Selected" to the html:options tag?

Thanks

John

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014


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




RE: file upload

2002-04-05 Thread FISHKIN-LEVAS,JENNIFER (HP-NewJersey,ex2)

Kevin,

I ran into the same issue, not just with Struts File Upload, but also with
the O'Reilly servlet as well.  Are you uploading from the same box as your
server?
What I found is that if your client is on a different box than the server,
the file upload is speedy.

--Jenn

-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:26 AM
To: 'Struts Users Mailing List'
Subject: file upload



Hi,

Now I am testing the 'upload' sample shipped with Struts.  I found it
becomes very slow when the file size is big - say above 3M.

Why? Have you guys run across the same problem?

Thanks
Kevin



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




file upload

2002-04-05 Thread Kevin Wang


Hi,

Now I am testing the 'upload' sample shipped with Struts.  I found it
becomes very slow when the file size is big - say above 3M.

Why? Have you guys run across the same problem?

Thanks
Kevin



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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Galbreath, Mark

;-)

You work for Land's End? In Maine?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 9:25 AM
To: Struts Users Mailing List
Subject: RE: Announce Struts E-Book for less than $10


Ahh yes ... it's Friday! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 7:28 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>It sucks.
>
>Mark
>
>-Original Message-
>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 7:18 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Announce Struts E-Book for less than $10
>
>
>Hi,
>
>  The people reviewing "Struts Fast Track" on
>Amazon.com seem to dislike this book.  I won't quote
>examples of such comments as I'm not wanting to agree
>with the Amazon reviewers, but could someone please
>provide a "good" review?
>
>=
>JS
>
>__
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Struts 1.1 Menu demo live

2002-04-05 Thread @Basebeans.com

Subject: Struts 1.1 Menu demo live
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
This is my 3rd sample app:

A demo of Struts menu running live on a web site: StrutsPlus.com.
(And you can download the entire site source code, if you want to use a 
Menu+Tile web site, in downloads).

The menu looks nice, but not the site yet. (old site is still at 
StrutsPlus.com/old)


Vic

The other sample of course is Struts 1.1 DB sample, also on downloads.


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




RE: conditional iterate (2)

2002-04-05 Thread Wilson, Les J SI-FSIA

Hi,

Looks like you need to close your bean:define tag.

Les.

-Original Message-
From: Peter Cnops [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: conditional iterate (2)


Hi,

This is a better representation of the problem that I have posted yesterday.
This code does not work; I get the error:
"org.apache.jasper.compiler.ParseException: End of content reached while
more parsing required: tag nesting error?" What is wrong?


<% String condition = ""; %>



  
  
 
 
  






Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: conditional iterate (2)

2002-04-05 Thread Dimitar Stavrakov

Hi Peter, 

You forgot to close the bean tag : 



Regards, 

Dimitar
-Original Message-
From: Peter Cnops [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: conditional iterate (2)

Hi,

This is a better representation of the problem that I have posted yesterday.
This code does not work; I get the error:
"org.apache.jasper.compiler.ParseException: End of content reached while
more parsing required: tag nesting error?" What is wrong?


<% String condition = ""; %>



  
  
 
 
  






Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




conditional iterate (2)

2002-04-05 Thread Peter Cnops

Hi,

This is a better representation of the problem that I have posted yesterday.
This code does not work; I get the error:
"org.apache.jasper.compiler.ParseException: End of content reached while
more parsing required: tag nesting error?" What is wrong?


<% String condition = ""; %>



  
  
 
 
  






Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



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




RE: parameter in a request

2002-04-05 Thread Dimitar Stavrakov

Hi Mike, 

Try getting the value from the action, and then putting it in the
session, before you get redirected to the jsp. 

Regards, 

Dimitar

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 7:42 AM
To: 'Struts Users Mailing List'
Subject: parameter in a request
Importance: High

I have an action:


  


the someInputPage has a hidden input called "type"

the someOutputPage does not have it (via request.getParameter())

Any ideas why it does not get passed through? I thought the request would
follow all the way through.

Any advice will be greatly appreciated.. We've got a code freeze in 3 hours
:)

Mike


=**

If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination or copying of this communication and its attachments
is strictly prohibited.

If you have received this communication and its attachments in error, please
return the original message and attachments to the sender using the reply
facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does
not accept legal responsibility for the contents of this message.  Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination or copying of this communication and its attachments
is strictly prohibited.

If you have received this communication and its attachments in error, please
return the original message and attachments to the sender using the reply
facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does
not accept legal responsibility for the contents of this message.  Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

***


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




RE: Good process for develop/build/deploy/test cycle

2002-04-05 Thread Wellie W. Chao

Yep, I use Ant, and it's great. It would really suck if I didn't. Right now
the part that is time-consuming is waiting for the app server to deploy the
generated EAR. I am just wondering if people use Mock Objects, Cactus, or
something completely different that allows one to just recompile the classes
and JSPs that have changed and immediately run what you want to test.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 8:04 AM
To: 'Struts Users Mailing List'
Subject: RE: Good process for develop/build/deploy/test cycle


Use Ant.

Mark

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:51 AM
To: Struts Users Mailing List
Subject: Good process for develop/build/deploy/test cycle


I started using JBoss with Tomcat a few weeks ago doing development with
Struts and Tiles and find that I spend a lot of time in the deploy portion
of the application development process waiting for an EAR to deploy, which
dramatically slows down development since the build/deploy/test parts of the
cycle happen fairly frequently. Do people have recommendations on tools and
processes to speed up the cycle? It's a somewhat general question, but I
thought that developers using Struts might have some good advice on how to
develop efficiently.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: How to Generate .xls file from struts app.

2002-04-05 Thread Brad Rhoads

If you're running an NT server, you can use COM. See http://www.infozoom.de.


-Original Message-
From: Heath Chiavettone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 8:17 PM
To: 'Struts Users Mailing List'
Subject: RE: How to Generate .xls file from struts app.


We did this in our application and we found out just how limited Excel's
HTML conversion capability is.  It doesn't understand stylesheet styles, it
sometimes blows up if images are referenced in the html, etc...

We are looking into POI as a solution.

-Original Message-
From: Gruner, Manfred [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:50 AM
To: 'Struts Users Mailing List'
Subject: RE: How to Generate .xls file from struts app.

Hi,
you don't have to generate csv-files take the html-Code itself,
and change the mime type to "application/vnd.ms-excel".
This should work too.
Manfred

> -Original Message-
> From: Jim Crossley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 4:34 PM
> To: Struts Users Mailing List
> Subject: Re: How to Generate .xls file from struts app.
>
>
> "gvn" <[EMAIL PROTECTED]> writes:
> >
> > I would like to generate a .xls (excel) file data from a result set.
> > =20
> > What I have to do ?=20
>
> One simple approach is to generate a CSV (Comma-Separated-Values) file
> instead, and then set the response's content type to
> "application/vnd.ms-excel".  That way, you exploit the fact that Excel
> transparently handles CSV files and rely on the browser to invoke
> Excel.
>
> Your action amounts to something not quite as trivial as this:
>
>   PrintWriter out = response.getWriter();
>   while (youHaveRows)
> while (youHaveColumns)
>   out.print(yourCell+",");
>   out.close();
>   response.setContentType("application/vnd.ms-excel");
>
> --
> Jim Crossley
> http://www.lads.com/~jim
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




JSP and Tag Libraries for Web Development - not a book review

2002-04-05 Thread Chappell, Simon P

I saw this book recommended on the Struts resource webpage and having an Amazon.com 
gift voucher kicking around, purchased it and dove straight in.

This is not a book review ... I've skimmed it once and am now going back to read it 
again more thoroughly. But I did want to say that on first look, it seems excellent. 
Some of it is a little over my head, I have still very little real JSP experience, but 
that'll have to wait for the next book.

The clincher for me was the excellent section on the Struts Framework, three chapters 
that covered an introduction to Struts, the struts tag libraries and the anatomy of a 
struts application. These seem to me to be very well written and certainly helped 
expand my understanding of struts in a very pragmatic way.

Has anyone else purchased/read/used this book?

Simon

P.S. I am still planning to buy the forthcoming O'Reilly Struts book! :-)

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

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




Session Management

2002-04-05 Thread Vikram Goyal01

Hi All,

Do Struts html tags handle session management when cookies are turned off? Do they 
resort to URL rewriting?

Do I need to do anything extra to make sure that session management works in case of 
cookies being turned off?

Rgs
Vikram

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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Chappell, Simon P

Ahh yes ... it's Friday! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 7:28 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Announce Struts E-Book for less than $10
>
>
>It sucks.
>
>Mark
>
>-Original Message-
>From: Jim Smith [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 05, 2002 7:18 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Announce Struts E-Book for less than $10
>
>
>Hi,
>
>  The people reviewing "Struts Fast Track" on
>Amazon.com seem to dislike this book.  I won't quote
>examples of such comments as I'm not wanting to agree
>with the Amazon reviewers, but could someone please
>provide a "good" review?
>
>=
>JS
>
>__
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




Re: Form

2002-04-05 Thread Jefferson Rodrigues de Oliveira e Silva

Sorry guys,
I've just solved the problem.
Jefferson


Jefferson Rodrigues de Oliveira e Silva wrote:

> Hi guys,
>
> I have a problem in creating a form.
>
> I have two pages, the first for user logon, and the
> second for user info.
>
> When the user logs in the first page, in the LogonAction perform
> method I verify if it exists, and if so, I load from a Database
> the user info. Then, I create a  UserForm (which is a form bean)
> and then a forward occurs, to the user.jsp.
>
> I need in the user.jsp that the UserForm that I created is used, not the
> one struts creates.
>
> How can I do that ?
>
> Thanks in advance
> Jefferson
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Form

2002-04-05 Thread Jefferson Rodrigues de Oliveira e Silva

Hi guys,

I have a problem in creating a form.

I have two pages, the first for user logon, and the
second for user info.

When the user logs in the first page, in the LogonAction perform
method I verify if it exists, and if so, I load from a Database
the user info. Then, I create a  UserForm (which is a form bean)
and then a forward occurs, to the user.jsp.

I need in the user.jsp that the UserForm that I created is used, not the
one struts creates.

How can I do that ?

Thanks in advance
Jefferson


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




RE: parameter in a request

2002-04-05 Thread Gruner, Manfred

type could be a reserved word, so please use another one.
Manfred

> -Original Message-
> From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 3:42 PM
> To: 'Struts Users Mailing List'
> Subject: parameter in a request
> Importance: High
> 
> 
> I have an action:
> 
>path="/somepath/someAction"
>   type="com.someco.someAction"
>   name="updateQualTypeForm"
>   scope="request"
>   validate="true"
>   input="somepath/someInputPage.jsp">
>name="success"
> path="somepath/someOutputPage.jsp" />
> 
> 
> the someInputPage has a hidden input called "type"
> 
> the someOutputPage does not have it (via request.getParameter())
> 
> Any ideas why it does not get passed through? I thought the 
> request would
> follow all the way through.
> 
> Any advice will be greatly appreciated.. We've got a code 
> freeze in 3 hours
> :)
> 
> Mike
> 
> 
> =**
> 
> If you are not the intended recipient, employee or agent 
> responsible for delivering the message to the intended 
> recipient, you are hereby notified that any dissemination or 
> copying of this communication and its attachments is strictly 
> prohibited.
> 
> If you have received this communication and its attachments 
> in error, please return the original message and attachments 
> to the sender using the reply facility on e-mail.
> 
> Internet communications are not secure and therefore the 
> UCLES Group does not accept legal responsibility for the 
> contents of this message.  Any views or opinions presented 
> are solely those of the author and do not necessarily 
> represent those of the UCLES Group unless otherwise 
> specifically stated.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses although 
> this does not guarantee that this email is virus free.
> 
> **=
> 
> 
> 
> ***
> 
> If you are not the intended recipient, employee or agent 
> responsible for delivering the message to the intended 
> recipient, you are hereby notified that any dissemination or 
> copying of this communication and its attachments is strictly 
> prohibited.
> 
> If you have received this communication and its attachments 
> in error, please return the original message and attachments 
> to the sender using the reply facility on e-mail.
> Internet communications are not secure and therefore the 
> UCLES Group does not accept legal responsibility for the 
> contents of this message.  Any views or opinions presented 
> are solely those of the author and do not necessarily 
> represent those of the UCLES Group unless otherwise 
> specifically stated.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses although 
> this does not guarantee that this email is virus free.
> 
> ***
> 
> 

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




parameter in a request

2002-04-05 Thread Mike Dewhirst

I have an action:


  


the someInputPage has a hidden input called "type"

the someOutputPage does not have it (via request.getParameter())

Any ideas why it does not get passed through? I thought the request would
follow all the way through.

Any advice will be greatly appreciated.. We've got a code freeze in 3 hours
:)

Mike


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

***




Re: Struts1.1-b1 - generated buttons tags has wierd default titles and alt attributes

2002-04-05 Thread Chuck Cavaness

I'm pretty sure that it's related to this bug I submitted last week. It's 
in the BaseHandlerTag, so many tags are probably affected by this. Here's 
the bug report link:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7411


chuck

At 10:06 AM 4/5/2002 -0300, you wrote:
>I had the same problem.
>All you have to do is call the setReturnNull(true)
>method on the PropertyMessageResources object that
>struts uses to holds the messages.
>I don't know if there is a better solution, but I
>think they forgot to set that property to true to
>avoid getting those ???en_US.null??? stuff when it
>doesn't find entries on the MessageResources object...
>So on the load-startup I have a servlet that sets the
>property to true.
>You can do it like this:
>
>((org.apache.struts.util.PropertyMessageResources)getServletContext().getAttribute("org.apache.struts.action.MESSAGE")).setReturnNull(true);
>
>If someone knows of a configuration parameter to avoid
>doing this, please let us know.
>
>
>  --- Struts Newsgroup <[EMAIL PROTECTED]> escreveu:
> > Subject: Struts1.1-b1 - generated buttons tags has
> > wierd default titles and alt attributes
> > From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
> >  ===
> > Hi,
> > Never noticed this before with 1.0, but view source
> > on a Struts page and my
> > buttons looked like :-
> >
> >  > title="???en_US.null???"
> > alt="???en_US.null???">
> >
> > Is this a configuration problem ?
> >
> > Thanks for any help
> > LS
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>=
>
>Frederico Ferro Schuh
>[EMAIL PROTECTED]
>ICQ: 20486081
>
>___
>Yahoo! Empregos
>O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no 
>Yahoo! Empregos e tenha acesso a milhares de vagas abertas!
>http://br.empregos.yahoo.com/
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




RE: Announce Struts E-Book for less than $10

2002-04-05 Thread Galbreath, Mark

It sucks.

Mark

-Original Message-
From: Jim Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Announce Struts E-Book for less than $10


Hi,

  The people reviewing "Struts Fast Track" on
Amazon.com seem to dislike this book.  I won't quote
examples of such comments as I'm not wanting to agree
with the Amazon reviewers, but could someone please
provide a "good" review?

=
JS

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: is there any visual designer tool to design a struts jsp page

2002-04-05 Thread Struts Developer

This question has been asked repeated and the answer seems to be the same 
each time... Dreamweaver has some support. If you want more than that I 
suggest you build a better mousetrap and write your own! WSAD is built on 
top of eclipse, which allows you to plug in new editors, etc.


If your "developers" can't stand to work with the source code but only want 
to play with graphical widgets maybe you should be looking for different 
developers and not software solutions.


Mark


>From: "Yu, Yanhui" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: is there any visual designer tool to design a struts jsp page
>Date: Mon, 1 Apr 2002 11:06:39 -0600
>
>Hi
>
>We are using WSAD to design our jsp pages with struts.  Our problem is that
>all developers have to use the text version editor.  We hope there is a
>designing tool that can offer us visualized editing capability, like the
>page designer in WSAD for a regular html page, where the developer can see
>the page as he/she designs it visually.  Any suggestions will be greatly
>appreciated.
>
>Thank you very much again,
>Yanhui
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Struts1.1-b1 - generated buttons tags has wierd default titles and altattributes

2002-04-05 Thread Adolfo Miguelez

Reply to my own previous post:

As Craig did, there is a init param for the ActionServlet that set to true 
does the same that your fix.


null
true


Hope I did not missuderstand the problem.

Adolfo

>From: Frederico Schuh <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Struts1.1-b1 - generated buttons tags has wierd default titles 
>and alt attributes
>Date: Fri, 5 Apr 2002 10:06:17 -0300 (ART)
>
>I had the same problem.
>All you have to do is call the setReturnNull(true)
>method on the PropertyMessageResources object that
>struts uses to holds the messages.
>I don't know if there is a better solution, but I
>think they forgot to set that property to true to
>avoid getting those ???en_US.null??? stuff when it
>doesn't find entries on the MessageResources object...
>So on the load-startup I have a servlet that sets the
>property to true.
>You can do it like this:
>
>((org.apache.struts.util.PropertyMessageResources)getServletContext().getAttribute("org.apache.struts.action.MESSAGE")).setReturnNull(true);
>
>If someone knows of a configuration parameter to avoid
>doing this, please let us know.
>
>
>  --- Struts Newsgroup <[EMAIL PROTECTED]> escreveu:
> > Subject: Struts1.1-b1 - generated buttons tags has
> > wierd default titles and alt attributes
> > From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
> >  ===
> > Hi,
> > Never noticed this before with 1.0, but view source
> > on a Struts page and my
> > buttons looked like :-
> >
> >  > title="???en_US.null???"
> > alt="???en_US.null???">
> >
> > Is this a configuration problem ?
> >
> > Thanks for any help
> > LS
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>=
>
>Frederico Ferro Schuh
>[EMAIL PROTECTED]
>ICQ: 20486081
>
>___
>Yahoo! Empregos
>O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no 
>Yahoo! Empregos e tenha acesso a milhares de vagas abertas!
>http://br.empregos.yahoo.com/
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: Struts1.1-b1 - generated buttons tags has wierd default titles and altattributes

2002-04-05 Thread Adolfo Miguelez


As Craig did, there is a int param for the ActionServlet that set to true 
does the same that your fix.


null
false


Hope I did not missuderstand the problem.

Adolfo

>From: Frederico Schuh <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Struts1.1-b1 - generated buttons tags has wierd default titles 
>and alt attributes
>Date: Fri, 5 Apr 2002 10:06:17 -0300 (ART)
>
>I had the same problem.
>All you have to do is call the setReturnNull(true)
>method on the PropertyMessageResources object that
>struts uses to holds the messages.
>I don't know if there is a better solution, but I
>think they forgot to set that property to true to
>avoid getting those ???en_US.null??? stuff when it
>doesn't find entries on the MessageResources object...
>So on the load-startup I have a servlet that sets the
>property to true.
>You can do it like this:
>
>((org.apache.struts.util.PropertyMessageResources)getServletContext().getAttribute("org.apache.struts.action.MESSAGE")).setReturnNull(true);
>
>If someone knows of a configuration parameter to avoid
>doing this, please let us know.
>
>
>  --- Struts Newsgroup <[EMAIL PROTECTED]> escreveu:
> > Subject: Struts1.1-b1 - generated buttons tags has
> > wierd default titles and alt attributes
> > From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
> >  ===
> > Hi,
> > Never noticed this before with 1.0, but view source
> > on a Struts page and my
> > buttons looked like :-
> >
> >  > title="???en_US.null???"
> > alt="???en_US.null???">
> >
> > Is this a configuration problem ?
> >
> > Thanks for any help
> > LS
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>=
>
>Frederico Ferro Schuh
>[EMAIL PROTECTED]
>ICQ: 20486081
>
>___
>Yahoo! Empregos
>O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no 
>Yahoo! Empregos e tenha acesso a milhares de vagas abertas!
>http://br.empregos.yahoo.com/
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Struts1.1-b1 - generated buttons tags has wierd default titles and altattributes

2002-04-05 Thread Adolfo Miguelez


As Craig did, there is a int param for the ActionServlet that set to true 
does the same that your fix.


null
false


Hope I did not missuderstand the problem.

Adolfo

>From: Frederico Schuh <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Struts1.1-b1 - generated buttons tags has wierd default titles 
>and alt attributes
>Date: Fri, 5 Apr 2002 10:06:17 -0300 (ART)
>
>I had the same problem.
>All you have to do is call the setReturnNull(true)
>method on the PropertyMessageResources object that
>struts uses to holds the messages.
>I don't know if there is a better solution, but I
>think they forgot to set that property to true to
>avoid getting those ???en_US.null??? stuff when it
>doesn't find entries on the MessageResources object...
>So on the load-startup I have a servlet that sets the
>property to true.
>You can do it like this:
>
>((org.apache.struts.util.PropertyMessageResources)getServletContext().getAttribute("org.apache.struts.action.MESSAGE")).setReturnNull(true);
>
>If someone knows of a configuration parameter to avoid
>doing this, please let us know.
>
>
>  --- Struts Newsgroup <[EMAIL PROTECTED]> escreveu:
> > Subject: Struts1.1-b1 - generated buttons tags has
> > wierd default titles and alt attributes
> > From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
> >  ===
> > Hi,
> > Never noticed this before with 1.0, but view source
> > on a Struts page and my
> > buttons looked like :-
> >
> >  > title="???en_US.null???"
> > alt="???en_US.null???">
> >
> > Is this a configuration problem ?
> >
> > Thanks for any help
> > LS
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>=
>
>Frederico Ferro Schuh
>[EMAIL PROTECTED]
>ICQ: 20486081
>
>___
>Yahoo! Empregos
>O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no 
>Yahoo! Empregos e tenha acesso a milhares de vagas abertas!
>http://br.empregos.yahoo.com/
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: Struts1.1-b1 - generated buttons tags has wierd default titles and alt attributes

2002-04-05 Thread Frederico Schuh

I had the same problem.
All you have to do is call the setReturnNull(true)
method on the PropertyMessageResources object that
struts uses to holds the messages.
I don't know if there is a better solution, but I
think they forgot to set that property to true to
avoid getting those ???en_US.null??? stuff when it
doesn't find entries on the MessageResources object...
So on the load-startup I have a servlet that sets the
property to true.
You can do it like this:

((org.apache.struts.util.PropertyMessageResources)getServletContext().getAttribute("org.apache.struts.action.MESSAGE")).setReturnNull(true);

If someone knows of a configuration parameter to avoid
doing this, please let us know.


 --- Struts Newsgroup <[EMAIL PROTECTED]> escreveu:
> Subject: Struts1.1-b1 - generated buttons tags has
> wierd default titles and alt attributes
> From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
>  ===
> Hi,
> Never noticed this before with 1.0, but view source
> on a Struts page and my
> buttons looked like :-
> 
>  title="???en_US.null???"
> alt="???en_US.null???">
> 
> Is this a configuration problem ?
> 
> Thanks for any help
> LS
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

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




RE: Good process for develop/build/deploy/test cycle

2002-04-05 Thread Galbreath, Mark

Use Ant.

Mark

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:51 AM
To: Struts Users Mailing List
Subject: Good process for develop/build/deploy/test cycle


I started using JBoss with Tomcat a few weeks ago doing development with
Struts and Tiles and find that I spend a lot of time in the deploy portion
of the application development process waiting for an EAR to deploy, which
dramatically slows down development since the build/deploy/test parts of the
cycle happen fairly frequently. Do people have recommendations on tools and
processes to speed up the cycle? It's a somewhat general question, but I
thought that developers using Struts might have some good advice on how to
develop efficiently.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Where have all the postings gone

2002-04-05 Thread @Basebeans.com

Subject: Where have all the postings gone
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Help

I'm very greatful to basebeans for their generosity in providing this
newsgroup - but please can we have the postings kept on the server a while
longer than at present. - I just checked Nov, Dec 2001 post are still
available but Jan - mid March 2002 have gone :-(.

David

[EMAIL PROTECTED]



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




DataSource con.close() question

2002-04-05 Thread @Basebeans.com

Subject: DataSource con.close() question
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Hi

I have a datasource defined in the struts-config.xml file.

The datasource connects to the source database fine.

Enrty in struts-config.xml:












The problem is this - even though minCount" value="0", the webapp is
maintaining a connection to the database despite very carful use of suitable
calls to con.close().  - This is causing the db admin some probems.

What is going on - shouldn't struts drop the connection?

Any ideas?

David

[EMAIL PROTECTED]




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




Good process for develop/build/deploy/test cycle

2002-04-05 Thread Wellie W. Chao

I started using JBoss with Tomcat a few weeks ago doing development with
Struts and Tiles and find that I spend a lot of time in the deploy portion
of the application development process waiting for an EAR to deploy, which
dramatically slows down development since the build/deploy/test parts of the
cycle happen fairly frequently. Do people have recommendations on tools and
processes to speed up the cycle? It's a somewhat general question, but I
thought that developers using Struts might have some good advice on how to
develop efficiently.


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




Re: problem with arraylist and iterate

2002-04-05 Thread Jefferson Rodrigues de Oliveira e Silva

Hi Dimitar,

thanks a lot. It works now!

Best Regards,

Jefferson.


Dimitar Stavrakov wrote:

> Hi Jefferson,
>
> Sounds like you should use nested tags,
> Check this url :
>
> http://www.keyboardmonkey.com/struts/index.html
>
> Regards,
>
> Dimitar
>
> -Original Message-
> From: Jefferson Rodrigues de Oliveira e Silva
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 6:29 AM
> To: Struts Users Mailing List
> Subject: problem with arraylist and iterate
>
> Hi all,
>
> I have the following problem:
>
> I have a bean User which has a hashtable attribute bets. The
> getBets method returns a Bet[]  array.
>
> The Bet class has 6 attributes.
>
> In the bets.jsp page, I show in a table all the values from the Bet objects
> (using iterate), one row for each object, and two of these values from each
> object
> the user is able to edit.
>
> The bets.jsp page is ok, all the values are being displayed, and
> the user can edit the two fields for each row.
>
> My problem is when the user submit this bets.jsp.
>
> How can I get all the fields (two for each table row) in a
> Form bean ?
>
> I want that the FormBean to handle the submit is the BetsForm ?
> I implemented the BetsForm with a single attribute, an ArrayList
> called bets.
>
> How should I implement this BetsForm bean ? How can it
> receive all the fields from the bets.jsp page in the
> arraylist attribute ?
>
> Thanks in advance
> Jefferson
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Announce Struts E-Book for less than $10

2002-04-05 Thread Jim Smith

Hi,

  The people reviewing "Struts Fast Track" on
Amazon.com seem to dislike this book.  I won't quote
examples of such comments as I'm not wanting to agree
with the Amazon reviewers, but could someone please
provide a "good" review?

=
JS

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




how can i compare filed of beans

2002-04-05 Thread Slava_L

supposed to compare any properties (values of thes fields ) of diff. beans, visible in 
some scope.
what kind of logic tag should i use ? 



RE: Struts tutorial in Spanish - Tutorial de struts en español

2002-04-05 Thread Galbreath, Mark

¡fresco!

Aclamaciones,
Marco

(Es Viernes, después todo... ;-) )

-Original Message-
From: Pello Xabier Altadill Izura Pello Xabier Altadill Izura
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:11 AM
To: Struts Users Mailing List
Subject: Struts tutorial in Spanish - Tutorial de struts en español


Hi!
This is an announcement of a new tutorial of Struts written
in Spanish, with sample code.

Saludos!
Por si a alguien le interesa hay un nuevo tutorial sobre struts que se
puede descargar de javahispano.org o de ciberia.ya.com/pxai.
Contiene ejemplos de codigo que pueden ser utiles para iniciarse.

Hasta otra!

Pello Xabier Altadill Izura
Ingeniero





---
Descubre el poder de la personalización en línea. Todos tus servicios
favoritos en un solo lugar: http://www.terra.com/tumonitor/

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Struts html:link tag

2002-04-05 Thread Slava_L

Where r u from ?

- Original Message -
From: "Dimitar Stavrakov" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 5:03 AM
Subject: RE: Struts html:link tag


> In struts-config.xml
>
> For action userAdd.do enter a parameter validate="false" .
>
> Something like this :
>
>type="..."
>   name="..."
>   validate="false">
>
> 
>
> Regards,
>
> Dimitar
>
> -Original Message-
> From: regatta DeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 9:03 AM
> To: [EMAIL PROTECTED]
> Subject: Struts html:link tag
>
> How can I use the html:link tag to reference a page,
> without trigerring the validation process.
>
> e.g.
>
> 
>
> This will trigger the validate() operation in the
> userAddForm and the perform() operation in
> userAddAction, BEFORE displaying the page userAdd.jsp.
>
> The problem here is that I have added a check in the
> validate() operation so that it adds an ActionError if
> the user did not fill in the username text box. But
> this check is meant for when the user hits the submit
> button, not when the page is first loaded.
>
> When referencing the page with:
> 
> how can I differentiate, in the ActionForm and Action
> operations, between the case when the page is first
> loaded and the case when the user hits the submit
> button??
>
> I know I can solve the problem by referencing the page
> as follows:
> 
> but I want to try to do it the "Struts" way so that I
> can load the page with templates that are derived in
> the Action.
>
>
>
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Ultradev Plug-in Problem with background color formatting and STRUTS

2002-04-05 Thread Nicolas De Loof

> When in live data mode, it seems that in ultradev the background color of
my
> tables always get set to a ligth yellow. This is even though my tables use
a
> CSS and are suppose to have a blue bg color. Interestingly enough,
whenever
> I make a change to the HTML code in ultradev, and hit the refresh button
> that appears in the code view dialog, my tables revert back to their right
> bg color, but only for about three seconds; they then go back to the light
> yellow bg.

Ultradev uses this "yellow background" to mark JSP Tag output (HTML
generated by tags).

As tou can see in CTLX tutorial, a table populated by an Iterate tag has all
its rows but the first one "yellow colored" because generated by the tag
execution
Ultradev is able to recognize the first one to map to the html body of the
iterate tag (so it can be manipulated in Dreamweaver WYSIWYG mode).

What you see for some seconds is Tomcat result, as Ultradev is parsing it to
retrieve the position of HTML and JSP tags, so it can map graphical elements
to source JSP.

When you completed structure and logic code of your JSP, you can test and
set such style properties using Tomcat directly with your browser
(http://localhost:8080/yourapp/foo.jsp)


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




RE: Struts 1.1b1, JDK1.4 and commons-logging

2002-04-05 Thread Lawlor, Frank

> I've encountered problems with Struts1.1b1 and the logging 
> module - getting
> a NPE in ActionServlet.init() in Jdk14Logger.
> I've more investigation to do, but nothing in the mail 
> archives or bugzilla.

Actually there are a number of posts on this
and I've got at least one bug in bugzilla 
that may be related (7579).  I posted a 
bug report in Tomcat (7540), but they
said it was a struts problem.

I've posted here a couple of times about this, 
at least once in commons-dev, and seen
some others, but no one from tomcat or commons
has responded.  My problem only occures with
-security. Are you using -security?

I have the problem in 1.3.1 and 1.4 and 
tomcat 4.0.2 & 4.0.3.

See: "Problem with commons-logging and -security 
in struts" in this list.

  -- Frank

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




html taglib yields "Cannot find message resources under key org.apache.struts.action.MESSAGE"

2002-04-05 Thread Bill Wohler

The following message is a courtesy copy of an article
that has been posted to Struts as well.


  I've got the following complicated page:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
http://www.newt.com/images/anybrowser4b.png"; />

  However, this complexity comes at a price:
  
javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

  I found a message from Ted Husted about this and he suggested making a
  post 1.3.1 Xerces parser available. I have a 1.4.3 Xerces parser in
  /WEB-INF/lib. Why would an XML parser be necessary in the statement
  above?

  If I drop the "html:" in the above page, the image displays fine.

  I did just get Struts up today, so there could be some installation
  item I overlooked. I was able to get the template, logic, and tiles
  taglibs to work fine though.

  Suggestions much appreciated.

--
Bill Wohler <[EMAIL PROTECTED]>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and mh-e. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

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




html taglib yields "Cannot find message resources under key org.apache.struts.action.MESSAGE"

2002-04-05 Thread Bill Wohler

  I've got the following complicated page:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
http://www.newt.com/images/anybrowser4b.png"; />

  However, this complexity comes at a price:
  
javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

  I found a message from Ted Husted about this and he suggested making a
  post 1.3.1 Xerces parser available. I have a 1.4.3 Xerces parser in
  /WEB-INF/lib. Why would an XML parser be necessary in the statement
  above?

  If I drop the "html:" in the above page, the image displays fine.

  I did just get Struts up today, so there could be some installation
  item I overlooked. I was able to get the template, logic, and tiles
  taglibs to work fine though.

  Suggestions much appreciated.

--
Bill Wohler <[EMAIL PROTECTED]>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and mh-e. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

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




Form tag to ActionForm field types relationships.

2002-04-05 Thread Bob Lee

Is there a complete list of what ActionForm field types corresponds to which
HTML elements? I'm having trouble finding one.

For example, if I have multiple hidden fields with the same name, can my
ActionForm field be an array or a Collection? Or, if I have a checkbox, can
my ActionForm field be a boolean or String?

Thanks,
Bob


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




Re: RE: At wits end, questions JRun, Oracle9ias

2002-04-05 Thread res0s9j4

I am not sure, but this looks similar to errors I am getting on Tomcat with security 
turned on. That was caused by DataSource configuration problems. Are you getting any 
database errors?

Steve
> 
> From: Dimitar Stavrakov <[EMAIL PROTECTED]>
> Date: 2002/04/04 Thu AM 09:27:02 CST
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: At wits end, questions JRun, Oracle9ias
> 
> 
> Look in your JRun/lib/ext directory and check if you have jaxp.jar and
> parser.jar. Try removing them if you do. Also make sure that the struts jar
> and tlds are accessible to JRun.
>   
>   Regards, 
> 
>   Dimitar
> 
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, April 03, 2002 7:51 PM
> To: Struts Users Mailing List
> Subject: At wits end, questions JRun, Oracle9ias
> 
> Strutsters,
> 
> I've been playing around with struts on my local machine here at work
> under Tomcat and everything is fine. In another local environment I've
> been using JRun for some applications and I'd like to get the sample
> app I was working under Tomcat to work under JRun. I'm not having any
> luck. I've been searching these archives and whatever I could find but
> I'm still stuck.
> 
> Here's the deal. I have a really really watered down basic app in a
> directory called 'utilities' in the tomcat webapps folder. I now took
> this whole directory and copied it into the default path for where I
> have other JRun apps. ( I configured JRun to point to this new
> application and even configured the servlet mapping). If I try to go
> right to the page 'payrollChangeForm.jsp' I get an error that others
> have gotten (not necessarily with JRun):
> 
> Exception thrown processing JSP page.
> javax.servlet.jsp.JspException: Cannot find ActionMappings or
> ActionFormBeans collection
> at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:781)
> at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481
> {cut}...
> 
> Now, I'm not sure what cause this error since the same files are
> working fine under Tomcat. Another thing messed up which might help
> some of you debug is I also have an index page with a simple link on
> it that calls the action :
>  forward="/formsStruts/test.jsp">
> 
> 
> When this link is hit, I get a nice 500 Internal Error page with:
> 
> null
> java.lang.NoSuchMethodError
> at org.apache.commons.digester.Digester.parse(Digester.java:859)
> at
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)
> 
> 
> What else do I need to get this running successfully under JRun? The
> installation instructions with Struts mention the taglib issues but I
> don't think this is really related to that. Couple comments: JRun is
> pointing to the directory for this application on another network
> directory. This means my local classpath that points to some XML xerces
> stuff I have on my local classpath won't be valid so I put the
> following files in my applications lib directory xmlParserAPIs.jar and
> xercesImpl.jar. Somehow I think this is a parser issue or something because
> if I
> remove this file and then click on the link I'll get:
> 
> org/xml/sax/helpers/DefaultHandler
> java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
> at java.lang.ClassLoader.defineClass0(Native Method)
> 
> 
> I'm just guessing here but if the parsing isn't taking place correctly
> that might explain the first problem of when I try to go straight to
> the form.jsp page and get the "Cannot find ActionMappings or
> ActionFormBean collections' error, since maybe it can't parse the
> struts-config.xml?
> 
> Any ideas what is wrong? I'm also concerned because I want to push for
> using struts here at work but I know they'll have issues if it's going
> to be hard to configure it to get it to work under Oracle9ias as well.
> Are struts apps easy to configure under Oracle9ias as well? I didn't
> think I'd have this problem with JRun so once I tackle that hurdle I
> hope tackling the next one won't be as bad.
> 
> Thanks for any help.
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> "One thing kids like is to be tricked. For instance, I was going to
> take my little nephew to Disneyland, but instead I drove him to an old
> burned-out warehouse. 'Oh, no,' I said. 'Disneyland burned down.' He
> cried and cried, but I think that deep down, he thought it was a
> pretty good joke. I started to drive over to the real Disneyland, but
> it was getting pretty late." 
>   -Jack Handey
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   

Ultradev Plug-in Problem with background color formatting and STRUTS

2002-04-05 Thread Juan Alvarado

I was going over the ultradev extension tutorial for struts and I ran into
an interesting problem.

When in live data mode, it seems that in ultradev the background color of my
tables always get set to a ligth yellow. This is even though my tables use a
CSS and are suppose to have a blue bg color. Interestingly enough, whenever
I make a change to the HTML code in ultradev, and hit the refresh button
that appears in the code view dialog, my tables revert back to their right
bg color, but only for about three seconds; they then go back to the light
yellow bg.

I was wondering if anyone else had reported this behavior. I looked in the
struts archive and didn't find any help.

Any help with this would be greatly appreciated. This is a great tool and I
would love to be able to use it on a regular basis.

Thanks


**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




JSTL and Struts

2002-04-05 Thread Scott Ganyo

Hi all,

I'm using Struts and JSTL (JSP Standard Tag Library) on my project.  (We
officially "prefer" the JSTL tags over the corresponding Struts versions
whenever possible.)  Obviously, though, we end up using the Struts html
tags.  So, I have a question about JSTL/Struts integration though:

I've found the EL to be extremely helpful in designing easy-to-read,
scriptlet-free pages.  In fact, the only reason I have scriptlets at this
point is to support the Struts html tags.  So, this begs the question for
me: 

Will Struts html tags begin to support the JSTL Expression Language?  Or
will there possibly be a version of the tags that do?  (Hopefully a version
that can be more consistent with the JSTL style?)

Thanks,
Scott



RE: hi

2002-04-05 Thread Maris Orbidans


Hi

If I understood you correctly the the solution is:

If Next button in first page is clicked then forward to the Action class of second 
form NOT the JSP.

Then in second form retrieve user id ( for example from you'r session bean ) and 
update according fields of the form.

For example:

define forward to action class.

 

In action class of first page do this:

if (NextIsClicked)   return mapping.findForward("Page2Action");


hope it helps

Maris Orbidans


> -Original Message-
> From: arul [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 6:34 AM
> To: [EMAIL PROTECTED]
> Subject: hi
> 
> 
> Hi
> 
> I am involved in developing a small application to get 
> details abt struts.
> 
> I have four screens thru which i get info from the user and 
> thru the value
> object i transfer it to the EJB components.
> 
> I hold all the details of the four screens in four different 
> session beans.
> 
> I accept a criteria [eg. user id] from the user and retrieve the
> corresponding user info from database. I get an value object.
> 
> I have to set the details retrieved into the corresponding 
> pages from the
> first page itself. How could i do this, since when the next 
> button in my
> page is clicked i transfer the control to an .jsp i am not 
> able to populate
> the form bean.
> 
> Any solutions?suggestions??
> 
> Arul
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Putting a JS files as a list (using tiles)

2002-04-05 Thread @Basebeans.com

Subject: Putting a JS files as a list (using tiles)
From: "PitBull" <[EMAIL PROTECTED]>
 ===
Hi all,

I'ld like to insert a lot of javaScript files as a list inside my templates
jsp pages(using tiles). I tried to do some thing like this:
 
  
  
  

but it don't run

can anyone help me giving to me some idea to implement it?

Thanx a lot

PitB



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




Re: RequestUtils.populate ( BeanUtils.populate) [SOLVED]

2002-04-05 Thread Peter Pilgrim



My problem is that I had a convenience function in the action form

public void setCashflowLimit( UserCashflowLimit limit )
{
  System.out.println( "AACF.setCashflowLimit("+ccyCode+", "+limit+")");
  mapLimits.put( limit.getCcyCode(), limit );
}

My `UserCashflowLimit' bean also has a "ccyCode" attribute. So I added
the convenience method in the "Action" controller. Once I remove
this convenience method above and recode the long form. Everything
started wrong and the form suddenly populates the nested cashflow limits
beans.

I think the Java Beans Introspector blew up trying to figure out the correct "write" 
method.

DAMN!

This is is confusing. There must be an easier way to debug this, apart attacking the 
problem
from lots of "" tags.

For future reference mapped properties have the form

 public{XYZ} get{AttributeName}( String key ) {   }

 publicvoidset{ AttributeName}( String key,   {XYZ} value ) {  
 }

--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails


 Message History 



From:  Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 05/04/2002 10:16 CET

Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:Re: RequestUtils.populate ( BeanUtils.populate)




Hi

This is the real deal this time. This is the real code extract
instead of something made up.

==

public class AccountAdminControllerForm extends ActionForm ...
{
/** Map of currency codes to user cashflow limit objects */
private Map mapLimits = new TreeMap();

public UserCashflowLimit getCashflowLimit( String ccyCode )
{
  System.out.println( "AACF.getCashflowLimit("+ccyCode+")");
  return (UserCashflowLimit) mapLimits.get( ccyCode );
}

public void setCashflowLimit( String ccyCode, UserCashflowLimit limit )
{
  System.out.println( "AACF.setCashflowLimit("+ccyCode+", "+limit+")");
  mapLimits.put( ccyCode, limit );
}

...
}


public class UserCashflowLimit {

private BigDecimal  cashflowAmount=null;
private String  amountText = null;

public BigDecimal getCashflowAmount()
{return cashflowAmount;  }

public void setCashflowAmount( BigDecimal cashflowAmount )
{this.cashflowAmount = cashflowAmount;  }

public String getAmount()
{return amountText  }

public void setAmount( String amountText )
{
System.out.println( "UCL.setAmount("+amountText+")" );
this.amountText = StringUtil.notNull(amountText);
}

...
}


Here is the real JSP code





...


   


...



==

I am still have problems with the actual signature. This is what the Javadoc for
`PropertyUtils' has to say

 * Mapped (name(key)) - The JavaBean
 * is assumed to have an property getter and setter methods with an
 * additional attribute of type java.lang.String.

Does this mean the `PropertyUtils' only supports property values that are
`java.lang.String' types?

public String getSomeAttribute( String key )
pubic void setSomeAttribute( String key, String values )

I know the property key have to be `java.lang.String' ?

--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




RE: logic:iterate problem

2002-04-05 Thread Jerome Josephraj

David,

Thanks a lot for your input. I verified the attribute in
the form objects and it had values.

I fixed the problem but have no idea why on the first
place it has occurred. All I did was created another object (java bean)
same as Employee object and added this object into a Vector object
called Employees. And it worked.

Any idea why?

Thanks,

Jerome.



-Original Message-
From: David M. Karr [mailto:[EMAIL PROTECTED]]
Sent: 04 April 2002 18:01
To: [EMAIL PROTECTED]
Subject: Re: logic:iterate problem


> "Jerome" == Jerome Josephraj <[EMAIL PROTECTED]> writes:

Jerome> Hi,
Jerome> My logic:iterate looks like this

Jerome>  property="lstEmployees" > 
Jerome> 
Jerome>  
Jerome>name="searchEmpRes" property="firstName"/> 
Jerome>   
Jerome>name="searchEmpRes" property="lastName"/> 
Jerome>   
Jerome> 

Jerome> lstEmployees is a vector defined in the form and has
Employee
Jerome> objects

Jerome> The problem is the iterate is not going to line 1. There
are
Jerome> values in lstEmployees. Any help on this is much
appreciated.

Just in case, when you say "not going to line 1", you mean that line,
including
any of the lines inside the "logic:iterate" element, are not being
emitted into
the output?

In your Action that forwarded to this page, are you verifying the
attribute
name in the form object, and verifying it really has elements?

If you still can't fix it, this would be a good opportunity to set up
your
debugger to step into the Struts code, the IterateTag in particular.
This
likely won't find any problems in the IterateTag, but it might give you
a clue
why it isn't finding your elements.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:

  _  

This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




Re: RequestUtils.populate ( BeanUtils.populate)

2002-04-05 Thread Peter Pilgrim



Hi

This is the real deal this time. This is the real code extract
instead of something made up.

==

public class AccountAdminControllerForm extends ActionForm ...
{
/** Map of currency codes to user cashflow limit objects */
private Map mapLimits = new TreeMap();

public UserCashflowLimit getCashflowLimit( String ccyCode )
{
  System.out.println( "AACF.getCashflowLimit("+ccyCode+")");
  return (UserCashflowLimit) mapLimits.get( ccyCode );
}

public void setCashflowLimit( String ccyCode, UserCashflowLimit limit )
{
  System.out.println( "AACF.setCashflowLimit("+ccyCode+", "+limit+")");
  mapLimits.put( ccyCode, limit );
}

...
}


public class UserCashflowLimit {

private BigDecimal  cashflowAmount=null;
private String  amountText = null;

public BigDecimal getCashflowAmount()
{return cashflowAmount;  }

public void setCashflowAmount( BigDecimal cashflowAmount )
{this.cashflowAmount = cashflowAmount;  }

public String getAmount()
{return amountText  }

public void setAmount( String amountText )
{
System.out.println( "UCL.setAmount("+amountText+")" );
this.amountText = StringUtil.notNull(amountText);
}

...
}


Here is the real JSP code





...


   


...



==

I am still have problems with the actual signature. This is what the Javadoc for
`PropertyUtils' has to say

 * Mapped (name(key)) - The JavaBean
 * is assumed to have an property getter and setter methods with an
 * additional attribute of type java.lang.String.

Does this mean the `PropertyUtils' only supports property values that are
`java.lang.String' types?

public String getSomeAttribute( String key )
pubic void setSomeAttribute( String key, String values )

I know the property key have to be `java.lang.String' ?

--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails


 Message History 



From:  [EMAIL PROTECTED] (David M. Karr) on 04/04/2002 13:34 PST

Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:
Subject:Re: RequestUtils.populate ( BeanUtils.populate)


> "Peter" == Peter Pilgrim <[EMAIL PROTECTED]> writes:

Peter> In Struts 1.1

Peter> RequestUtils.populate ( BeanUtils.populate) does not seem to be populate
Peter> my action forms which explicityly have a mapped attributes.

Peter> I defined a bean like this

Peter>public CcyItem getCurrenyItem( String ccy ) {
Peter>   return (CcyItem)mapItem.ge( ccy );

Peter> In my JSP I wrote a HTML Input Text field like so

Peter> 

Peter> but it does not work because I think that Struts 1.1 does not populate 
mapped properties!

Peter> Is it me or is it Struts?
Peter> Can someone else verify that it is working?

Just in case, did you paste in this code from your actual code, or did you type
it in directly?  If this is pasted from your code, then you might want to
change "getCurrenyItem" to "getCurrencyItem".

--
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




Re: RequestUtils.populate ( BeanUtils.populate)

2002-04-05 Thread Peter Pilgrim


I actually type in the code very badly. The accessor method should have
been this

public CcyItem getCurrencyItem( String ccy ) {
   return (CcyItem)mapItem.get( ccy );
}


--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails


 Message History 



From:  [EMAIL PROTECTED] (David M. Karr) on 04/04/2002 13:34 PST

Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:
Subject:Re: RequestUtils.populate ( BeanUtils.populate)


> "Peter" == Peter Pilgrim <[EMAIL PROTECTED]> writes:

Peter> In Struts 1.1

Peter> RequestUtils.populate ( BeanUtils.populate) does not seem to be populate
Peter> my action forms which explicityly have a mapped attributes.

Peter> I defined a bean like this

Peter>public CcyItem getCurrenyItem( String ccy ) {
Peter>   return (CcyItem)mapItem.ge( ccy );

Peter> In my JSP I wrote a HTML Input Text field like so

Peter> 

Peter> but it does not work because I think that Struts 1.1 does not populate 
mapped properties!

Peter> Is it me or is it Struts?
Peter> Can someone else verify that it is working?

Just in case, did you paste in this code from your actual code, or did you type
it in directly?  If this is pasted from your code, then you might want to
change "getCurrenyItem" to "getCurrencyItem".

--
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




Struts1.1-b1 - generated buttons tags has wierd default titles and alt attributes

2002-04-05 Thread @Basebeans.com

Subject: Struts1.1-b1 - generated buttons tags has wierd default titles and alt 
attributes
From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
 ===
Hi,
Never noticed this before with 1.0, but view source on a Struts page and my
buttons looked like :-



Is this a configuration problem ?

Thanks for any help
LS



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