RE: I have problem with struts mailing list

2002-05-17 Thread JM

The mailing list for struts is [EMAIL PROTECTED]

If you send a email there, they will reply to confirm.
Just reply to that and that's it!
You will start getting a lot of emails from all the struts users about
struts problems.

About your Taglibs:
You have to make sure that you have the taglib defined at the top of the
page.
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

that may not be the problem, but its a first step.

I hope that helps.
See you on the list!

JM

> -Original Message-
> From: Abbas Valinejad [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 18, 2002 12:52 AM
> To: James Mitchell
> Subject: RE: I have problem with struts mailing list
>
>
> hi dear
> i am so thanks to your answer. you are so kindness toward me but i have
> problem already. i don't know mailing list email. what's that?
>
> and my question is about struts tag libs. i use one of struts samples
> which uses "message" custom tag. but my container (Tomcat 3.2) didn't run
> the tag lib. when i test another custom tags i face the problem. i think
> it's problem is because of my XML Parser. i use JAXP of Sun Microsystems
> but i don't how to install it. i follow the sun instructions but the
> problem is appers yet. it makes so many problems for me. please help me!
>
> with best regards
> abbas valinejad
>
>
>


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




Multipart form uploads on WAS 4.02

2002-05-17 Thread Russell Caswell

I'm running websphere 4.02 and am trying to do
multipart/form-data file uploads.  The problem is that
often, but not always, the request hangs even though
the action executed correctly and returned the
ActionForward.  Only after the request times out does
the page forward to the next page(It is a redirect).  

In in the websphere test environment in WSAD it always
works.

Has anyone else had this problem.  Does anyone have a
workaround for this problem.  


Thanks,
Russ




__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Small Complaint - Struts Impl.

2002-05-17 Thread Jacob Hookom

Is it just me, or on large projects do you find yourself duplicating the
same object states for 3 different Action objects?  An example would be
a creating an Address object that mirrors a row in the DB, then if you
want to do an ActionForm, you have to duplicate the states all over
again.

Ideally, it would be nice to define "realm objects" once in a config and
then just have struts be able to handle the single definition; thereby
pairing the DB implementation and Java closer by a single XML file.

DynaForms are a step in the right direction, but nothing yet application
wide

Maybe it should be my summer project ;-)

Jake Hookom
University of Wisconsin, Eau Claire

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 


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




RE: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logg ing' s ClassNotFoundException

2002-05-17 Thread Ren Bitonio

Rajesh,

Is this a custom web-app that you are having problem with?

Have you tried deploying the struts example webapps to isolate whether your
environment is correct first?

I believe you have installed the latest fixpack and patches for WAS 4.0.
FixPack2 is the latest, but you also  need the latest patches for WAS 4.0 to
allow struts work as well.  Is this correct?

Ren

-Original Message-
From: AGARWAL, RAJESH (SBCSI) [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 3:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logg
ing' s ClassNotFoundException


Hi Ren,
  I'm trying to deploy struts 1.0.2 in WAS 4.0.2 on Windows 2000.
  I can see index.jsp but when i click on any request of type*.do,
  it says page could not be displayed
  Could you please help?
Thanks
Rajesh

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 2:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logg
ing' s ClassNotFoundException


Thanks Kevin for pointing to the right direction.  I took a quick look, and
the info is quite helpful.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 12:41 PM
To: Struts Users Mailing List
Subject: Re: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging' s ClassNotFoundException






Looks like your having issues with the WLS classloader architecture. There
are a few things that you need to do to get third party class files to be
found by the classloader for a web app.

Here's a great article on some of the newer classloader architectures. It
has some specific material on WebLogic 6.1 SP2.  Read the wls material here
and it should help you resolve the issue.

 http://www.theserverside.com/resources/article.jsp?l=ClassLoading

Also - did you put the line in Manfest.mf file identifying the commons jar
file?  Here's another on article on classloaders publshed on the O"Reilly
network by a member of BEA's technical staff. If describes the Class-Path
attribute for manifest files.

 http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html?page=1

This looks a lot like a bea classloader issue - make sue you've got your
war/ear defined correctly and the manafest file with the correct
"Class-Path"  entries.

FWIW -
Kevin





Ren Bitonio <[EMAIL PROTECTED]> on 05/17/2002 02:48:02 PM

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

To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging'
  s ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.creat

Re: Custom tag for Scrolling through multiple pages

2002-05-17 Thread Ryan Norman

Hi,

I am Ryan Norman.

Can you please tell me where it is. I search for it and I can't find it.

Thanks in advance

Ryan Norman

- Original Message -
From: "Jacob Hookom" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 04:12 PM
Subject: RE: Custom tag for Scrolling through multiple pages


> If you are querying a DB, you may want to look at the Rowset lib from
> Sun, it works excellently for this scenario.
>
> -Original Message-
> From: Ryan Norman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 6:09 PM
> To: LA Java User Group; Struts User Mailing List
> Subject: Custom tag for Scrolling through multiple pages
>
> Hi,
>
> I am Ryan Norman.
>
> We run Win 2K Advanced Server, Tomcat 4.0, Struts, Oracle.
>
> We have a requirement where the user should be able to scroll through
> list of pages like the search results in google.
> We can always code that. My question is, are there existing JSP tags and
> Java objects that already has this functionality.
> I think this is a very common scenario which lot of applications will
> require.
>
> Thanks
>
> Ryan Norman
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Validator Tag with Struts 1.1.b1

2002-05-17 Thread David Morris

Evan,

I really appreciate the time you took in answering my question. 
I can now get the validator to work on simple pages like a login
which only has one for the site, but I don't understand how some 
of the names are correlated. For example, what name should 
be put in the html:javascript formName attribute? 

In my case I have something like:


struts-config.xml has:





Where I am struggling is when I have 50 or so applications and 
many share the same basic types of screens. I went the nested 
tags route for a while but couldn't get it to work with validation. 
Next I tried the brute force form approach but validation still doesn't

work. Would dynaforms help?

Thanks,

David Morris


>>> [EMAIL PROTECTED] 05/17/02 07:52AM >>>
David Morris wrote:

>Validators,
>
>Any idea how I can use this with the 1.1 beta or do I need to use
>another version? Also, can someone point me to a working example of
>validation with a 1.1 version of Struts?
>  
>
Validation is poorly documented,  the javadoc is even missing from the

nightlies, but I was able to get it working under 1.1b1 for a demo last

week. I completely ignored the contrib directory because everything is

available in the main distribution and the html taglib.

1. struts-config.xml needs only the following (make sure the files
exist):
  
 
  


   

2. I specified rules in validation.xml consistent with the old
examples. 
 This doesn't seem to have changed.  

3. Be sure your applicationResources.properties file has a set of 
messages beginning with "error."  These can be copied over from
examples 
if they are missing.

4. Set validate to true on your forms.

5. Make your forms extend: 
 org.apache.struts.validator.ValidatorActionForm.  Until you get things

working I suggest you comment out any existing validate method in your

form class.  

6. Add the tag   somewhere 
near the top.  I put it above a random body tag that was in the html I

was using.  

7. Add the event:  onsubmit="return validateRegisterForm(this);" to
your 
html:form tag.

It is important that all of your form names in the event, the
javascript 
tag and struts-config.xml match in order for the javascript validation

to work properly.

Have fun,
Evan.

-- 
Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
2 Meridian Crossings, Richfield, MN 55423
Voice: 612.243.2460 -- Fax: 612.243.2468 -- Mobile: 612.232.5972


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




RE: Custom tag for Scrolling through multiple pages

2002-05-17 Thread Jacob Hookom

If you are querying a DB, you may want to look at the Rowset lib from
Sun, it works excellently for this scenario.

-Original Message-
From: Ryan Norman [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 6:09 PM
To: LA Java User Group; Struts User Mailing List
Subject: Custom tag for Scrolling through multiple pages 

Hi,

I am Ryan Norman.

We run Win 2K Advanced Server, Tomcat 4.0, Struts, Oracle.

We have a requirement where the user should be able to scroll through
list of pages like the search results in google. 
We can always code that. My question is, are there existing JSP tags and
Java objects that already has this functionality. 
I think this is a very common scenario which lot of applications will
require.

Thanks

Ryan Norman


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 


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




Custom tag for Scrolling through multiple pages

2002-05-17 Thread Ryan Norman

Hi,

I am Ryan Norman.

We run Win 2K Advanced Server, Tomcat 4.0, Struts, Oracle.

We have a requirement where the user should be able to scroll through list of pages 
like the search results in google. 
We can always code that. My question is, are there existing JSP tags and Java objects 
that already has this functionality. 
I think this is a very common scenario which lot of applications will require.

Thanks

Ryan Norman




RE: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logg ing' s ClassNotFoundException

2002-05-17 Thread AGARWAL, RAJESH (SBCSI)

Hi Ren,
  I'm trying to deploy struts 1.0.2 in WAS 4.0.2 on Windows 2000.
  I can see index.jsp but when i click on any request of type*.do,
  it says page could not be displayed
  Could you please help?
Thanks
Rajesh

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 2:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logg ing' s ClassNotFoundException


Thanks Kevin for pointing to the right direction.  I took a quick look, and
the info is quite helpful.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 12:41 PM
To: Struts Users Mailing List
Subject: Re: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging' s ClassNotFoundException






Looks like your having issues with the WLS classloader architecture. There
are a few things that you need to do to get third party class files to be
found by the classloader for a web app.

Here's a great article on some of the newer classloader architectures. It
has some specific material on WebLogic 6.1 SP2.  Read the wls material here
and it should help you resolve the issue.

 http://www.theserverside.com/resources/article.jsp?l=ClassLoading

Also - did you put the line in Manfest.mf file identifying the commons jar
file?  Here's another on article on classloaders publshed on the O"Reilly
network by a member of BEA's technical staff. If describes the Class-Path
attribute for manifest files.

 http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html?page=1

This looks a lot like a bea classloader issue - make sue you've got your
war/ear defined correctly and the manafest file with the correct
"Class-Path"  entries.

FWIW -
Kevin





Ren Bitonio <[EMAIL PROTECTED]> on 05/17/2002 02:48:02 PM

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

To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging'
  s ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java

:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja

va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav

a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36

8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java

:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java

:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo

ntext.java:2495)
at
weblogi

RE: Iterator Simple

2002-05-17 Thread Joseph Barefoot

The tag does have an optional attribute called "indexId" whose value is the
name of a page scope bean to hold the index.  I think that this index bean
must be of type Integer (someone correct me if this is wrong), so you would
do a  for the Integer bean with an appropriate name.  Then you
can reference the bean with  or  tags within the
 tag.  Or you can just use a scriplet. <> :)

I'm assuming you could re-use the same index bean for different
 tags as long as they are not nested inside one another..

> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:41 PM
> To: [EMAIL PROTECTED]
> Subject: Iterator Simple
>
>
> Guys,
>   When I iterate thru  how do I know that I am in the
> last element?
> I have tried using some other way like getting the index and comparing but
> it doesnt seem to work..
> The reason why I want to do this
>
> if I am in the last element I need to print something and if I am
> not then I
> dont have to print.
> Thanks in advance.
>
> Regards,
> Taati
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


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




Iterator Simple

2002-05-17 Thread Mannem, Taati

Guys,
When I iterate thru  how do I know that I am in the
last element?
I have tried using some other way like getting the index and comparing but
it doesnt seem to work..
The reason why I want to do this

if I am in the last element I need to print something and if I am not then I
dont have to print.
Thanks in advance.

Regards,
Taati


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




RE: Need some help with generateToken

2002-05-17 Thread Daniel Jaffa

Thank you very much. 


Daniel Jaffa
Java Developer


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 3:58 PM
To: Struts Users Mailing List
Subject: Re: Need some help with generateToken

Not much to it really.

Before forwarding to the form that needs to be part of the transaction,
just call

saveToken(request);

somewhere in the Action.

If the form the Action forwards to uses the Struts html:form tag, it
will write out the token for you as a hidden field, so there's nothing
new to do.

On the Action that catches the form, call

isTokenValid(request);

If the token is not valid, branch to an error page.

Otherwise, call resetToken(). If another copy of the form tries to
submit it again, now isTokenValid() will return false.

The token is a random number that gets stored in the user's session. A
second copy is suppose to be stored in the request. If the session and
request tokens are missing or is different, then the transaction is out
of synch.

saveToken() puts it into the request.

The Struts tags write it out as a hidden field or parameter.

resetToken() clears it from the request.

Loop closed.

The Core J2EE Patterns book covers this and a ton of other handy
strategies and patterns. Highly recommended. See the Struts Resource
page for a link.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Daniel Jaffa wrote:
>
> Ok,
>  I have searched around and have not found much info on the following
> classes
> isTokenValid, saveToken, generateToken
> I Think that i could use these classes to help prevent some on from
hitting
> the back button issues.
>
> My question is has anybody used these and if so, could u provided me
an
> example.
> (I saw an answer from Ted, where he explained it a little but i did
not see
> any example code)
>
> Thank You
>
> daniel Jaffa
>
> --
> 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: Propertie files in a war file

2002-05-17 Thread Craig R. McClanahan



On Fri, 17 May 2002, Graham Lounder wrote:

> Date: Fri, 17 May 2002 13:18:32 -0300
> From: Graham Lounder <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Propertie files in a war file
>
> Just to make sure I'm getting this.  The web.xml will hold all the default
> values for an application in the  and  tags.  These
> default values can be modified by the container during deployment (in tomcat
> this would be the server.xml) so the war file does not have to be touched?.
>

That's it exactly.  The basic assumption is that application assembly and
deployment are two different roles, potentially performed by two different
people, and that the deployer should be able to do whatever is necessary
(i.e. configure the things in the naming context) without having to modify
the WAR itself.

Just one quibble over your restatement (which was undoubtedly due to me
not being clear in my initial explanation):  on resource references, you
don't actually define the default values in web.xml -- just the reference
to the server-provided values.  For example, a connection pool might be
declared (in web.xml) like this:


Employee Database
jdbc/EmployeeDB
javax.sql.DataSource
Container


You would use this in your application like so:

InitialContext context = new InitialContext();
DataSource ds = context.lookup("java:comp/env/jdbc/EmployeeDB");
Connection conn = ds.getConnection();
... use the JDBC connection ...
conn.close(); // Returns it to the pool

without ever having to configure anything in the WAR about JDBC drivers
and all of that kind of thing.  Those details are added by the deployer or
system administrator running your server.

If you're running on any J2EE app server, or a servlet container that
supports the corresponding JNDI resources facilities, it's heartily
recommended to take advantage of them.

By the way, the specs for this stuff is part of the J2EE Platform
Specification, which you can get to via .

Craig


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




RE: Getting Struts to work on WAS

2002-05-17 Thread AGARWAL, RAJESH (SBCSI)

Hi Prabhakar,

  You can download WAS 4.0 FP2 from 
 
http://www14.software.ibm.com/webapp/download/product.jsp?cat=&s=p&id=TDUN-4
9EVRT&pf=&k=&q=&dt=&v=&e=&rs=&c=&S_TACT=&S_CMP=&presb=&type=s&postsb=v&sr=26

Thanks
Rajesh

-Original Message-
From: Prabhakar, V [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 2:27 PM
To: Struts Users Mailing List
Subject: RE: Getting Struts to work on WAS


I have WAS 4.0.0 on WIN 2000 server. I am unable to to get to 4.0.2 as the
FixPack 2 does not work on WAS 4.0.0.

Any suggestions or am I missing something (is there a way to get WAS to
4.0.2). Besides, does struts work on WAS 4.0.0?

Thanks,

-V Prabhakar

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 5:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting Struts to work on WAS


What version of WAS are you using?  

If 3.5.x, then you can consult
http://jakarta.apache.org/struts/doc-1.0.2/installation-was352.html.  There
are more steps needed to make Struts work with this earlier version.

However, if you have 4.0.2 + latest fix packs, then you just need to deploy
the web-apps using the AdminConsole, and you're in business.  You can start
off deploying the webapps that came with the struts distribution.  I don't
use the AA (Application Assembly) tool in the AdminConsole.  I used
Console->Wizard->Install Enterprise Application option, also in the
AdminConsole.

Good luck,
Ren

-Original Message-
From: Prabhakar, V [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 2:13 PM
To: Struts Users Mailing List
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging's ClassNotFoundException


Ren,

How do you deploy the sample on WAS? I am struggling to deploy even struts
1.0.2 apps on WAS. I am new to both WAS and struts and so I can use any
help.

I use AA tool to wrap the sample app and install using WAS admin console. Am
I doing anything wrong?

Any help would be appreciated.

-V Prabhakar

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:10 PM
To: 'Struts Users Mailing List'
Subject: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's
ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.  

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.  

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)

RE: How do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

Suppose the qty values were HTML 's.  How would you recommend I
reset there values on error, e.g. 2,M,3, below is shown in the second form.

Any help is greatly appreciated.

Thanks,

--Michael Marrotte

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 2:55 PM
To: Struts Users Mailing List
Subject: Re: How do you recommend doing this with Struts?


I'd consider adding an error property to the bean that corresponded to
each item.

In the validate() method, you could then set the error property for
whichever item was at fault (if any), using the same key you would use
for ActionError.

On the JSP side, you can use the message tag to translate the text.

ActionError does the same thing in bulk, but you can use the same
technique on your own.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



Michael Marrotte wrote:
>
> The ActionErrors work great for static pages.  But, the rows in my example
> are dynamic.  How do I name them in say an  tag.  Or,
better
> yet is there a straightforward or best-practice way to handle this with
> Struts?
>
> Thanks,
>
> Michael Marrotte
>
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
>
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
>
> mark n.
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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:




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




RE: How do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

Ted,

I got it working your way, i.e. with bean:message...  But, I had to modify
the TLD (struts-bean.tld).  I modified the key attribute and added name and
property attributes.


key
false
true


name
false
true


property
false
true



Is it common practice to modify the TLD's for the Struts tags?

--Micahel Marrotte

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 4:56 PM
To: Struts Users Mailing List
Subject: RE: How do you recommend doing this with Struts?


Isn't the message key mandatory for the bean:message, according to the TLD?
So how can the key be set from a bean property?

These other two approaches work.  But, I don't think this is exaclty what
you meant:

1.) 

2.) 



How can I do this with bean:message?  I want to write:



But, I get the error about the mandatory key required.

Thanks,

--Michael Marrotte


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:38 PM
To: Struts Users Mailing List
Subject: Re: How do you recommend doing this with Struts?


The action:errors tag is a convenient interface to the Struts
ApplicationResources. Any component in the application is welcome to use
the ApplicationResources (hence the "application" moniker).

What you might want to do is save the message key in the inputErrors
property and then use bean:message to write it out. This will make it a
drop-in replacement for action:errors.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Marrotte wrote:
>
> One way I thought of to do this is to store any errors in the bean that
>  uses, e.g.:
>
> 
> 
> item 
> 
> 
> qty 
> 
> 
> 
> 
> 
>
> But, here I'm using the "inputErrors" property of the "javaBeanProperty"
of
> "javaBean" and I'm not using the  tag.  Am I cheating or
missing
> something in Struts that provides a consistent (more MVC) way to deal with
> this.
>
> What do you think of the above approach?  Any thoughts are greatly
> appreciated?
>
> Thanks in advance,
>
> --Michael Marrotte
>
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
>
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
>
> mark n.
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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:




--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging' s ClassNotFoundException

2002-05-17 Thread Ren Bitonio

Thanks Kevin for pointing to the right direction.  I took a quick look, and
the info is quite helpful.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 12:41 PM
To: Struts Users Mailing List
Subject: Re: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging' s ClassNotFoundException






Looks like your having issues with the WLS classloader architecture. There
are a few things that you need to do to get third party class files to be
found by the classloader for a web app.

Here's a great article on some of the newer classloader architectures. It
has some specific material on WebLogic 6.1 SP2.  Read the wls material here
and it should help you resolve the issue.

 http://www.theserverside.com/resources/article.jsp?l=ClassLoading

Also - did you put the line in Manfest.mf file identifying the commons jar
file?  Here's another on article on classloaders publshed on the O"Reilly
network by a member of BEA's technical staff. If describes the Class-Path
attribute for manifest files.

 http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html?page=1

This looks a lot like a bea classloader issue - make sue you've got your
war/ear defined correctly and the manafest file with the correct
"Class-Path"  entries.

FWIW -
Kevin





Ren Bitonio <[EMAIL PROTECTED]> on 05/17/2002 02:48:02 PM

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

To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging'
  s ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java

:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja

va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav

a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36

8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java

:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java

:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo

ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java

:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

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


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







-

RE: Getting Struts to work on WAS

2002-05-17 Thread Prabhakar, V

I have WAS 4.0.0 on WIN 2000 server. I am unable to to get to 4.0.2 as the FixPack 2 
does not work on WAS 4.0.0.

Any suggestions or am I missing something (is there a way to get WAS to 4.0.2). 
Besides, does struts work on WAS 4.0.0?

Thanks,

-V Prabhakar

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 5:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting Struts to work on WAS


What version of WAS are you using?  

If 3.5.x, then you can consult
http://jakarta.apache.org/struts/doc-1.0.2/installation-was352.html.  There
are more steps needed to make Struts work with this earlier version.

However, if you have 4.0.2 + latest fix packs, then you just need to deploy
the web-apps using the AdminConsole, and you're in business.  You can start
off deploying the webapps that came with the struts distribution.  I don't
use the AA (Application Assembly) tool in the AdminConsole.  I used
Console->Wizard->Install Enterprise Application option, also in the
AdminConsole.

Good luck,
Ren

-Original Message-
From: Prabhakar, V [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 2:13 PM
To: Struts Users Mailing List
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging's ClassNotFoundException


Ren,

How do you deploy the sample on WAS? I am struggling to deploy even struts
1.0.2 apps on WAS. I am new to both WAS and struts and so I can use any
help.

I use AA tool to wrap the sample app and install using WAS admin console. Am
I doing anything wrong?

Any help would be appreciated.

-V Prabhakar

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:10 PM
To: 'Struts Users Mailing List'
Subject: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's
ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.  

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.  

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

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


--
To unsubscri

RE: Does Indexed property in FormBean work?

2002-05-17 Thread Galbreath, Mark

Hmmm...this sounds like config/mapping issue.  Do you have the  set to the corresponding path in struts-config and associated with the
bean and action class?  Have you declared the bean as scope="session" in
struts-config? Finally, try an empty reset() in the bean so it's properties
are not rest to their defaults.

How are you implementing the accessors and mutators in your bean?

-Original Message-
From: Jason Zhou [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 4:52 PM
To: 'Struts Users Mailing List'
Subject: RE: Does Indexed property in FormBean work?


No. 

I have a FormBean called Department with an indexed property called
Employee.

Department
{
Employee[] employee = ...
}

Employee is a javabean with names, address, etc.

In the html form, I have a table of html input field (html:text in Struts)
and each row representing one employee.

So at first row the name field is associated with Employee[0].name 
second row the name field is associated with Employee[1].name 
third row the name field is associated with Employee[2].name

I can use a for loop and Struts iterator tag. When I submit, the input field
will get back to the corresponding element in the indexed array.

But the value is not loaded to the bean after the submit.

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 4:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Does Indexed property in FormBean work?

Jason,

I'm not sure I understand what you are trying to do.  It sounds like a
simple dropdown select list populated by associated List property on the
bean.  I use the indexId to access particular elements in a List in order
remove selected elements from the List.  Is this something like you need?

Mark

-Original Message-
From: Jason Zhou [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:46 PM
To: 'Struts Users Mailing List'
Subject: Does Indexed property in FormBean work?


I have an indexed property in my form bean and I want to associate the
indexed property with a list of html input field in a form so that values of
my property can be displayed through the input field and changes can be
populated back to the indexed property.

How can I do it in Struts?

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
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: Getting Struts to work on WAS

2002-05-17 Thread Ren Bitonio

What version of WAS are you using?  

If 3.5.x, then you can consult
http://jakarta.apache.org/struts/doc-1.0.2/installation-was352.html.  There
are more steps needed to make Struts work with this earlier version.

However, if you have 4.0.2 + latest fix packs, then you just need to deploy
the web-apps using the AdminConsole, and you're in business.  You can start
off deploying the webapps that came with the struts distribution.  I don't
use the AA (Application Assembly) tool in the AdminConsole.  I used
Console->Wizard->Install Enterprise Application option, also in the
AdminConsole.

Good luck,
Ren

-Original Message-
From: Prabhakar, V [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 2:13 PM
To: Struts Users Mailing List
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging's ClassNotFoundException


Ren,

How do you deploy the sample on WAS? I am struggling to deploy even struts
1.0.2 apps on WAS. I am new to both WAS and struts and so I can use any
help.

I use AA tool to wrap the sample app and install using WAS admin console. Am
I doing anything wrong?

Any help would be appreciated.

-V Prabhakar

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:10 PM
To: 'Struts Users Mailing List'
Subject: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's
ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.  

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.  

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

--
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: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's ClassNotFoundException

2002-05-17 Thread Prabhakar, V

Ren,

How do you deploy the sample on WAS? I am struggling to deploy even struts 1.0.2 apps 
on WAS. I am new to both WAS and struts and so I can use any help.

I use AA tool to wrap the sample app and install using WAS admin console. Am I doing 
anything wrong?

Any help would be appreciated.

-V Prabhakar

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:10 PM
To: 'Struts Users Mailing List'
Subject: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logging's ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.  

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.  

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

--
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 do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

Isn't the message key mandatory for the bean:message, according to the TLD?
So how can the key be set from a bean property?

These other two approaches work.  But, I don't think this is exaclty what
you meant:

1.) 

2.) 



How can I do this with bean:message?  I want to write:



But, I get the error about the mandatory key required.

Thanks,

--Michael Marrotte


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:38 PM
To: Struts Users Mailing List
Subject: Re: How do you recommend doing this with Struts?


The action:errors tag is a convenient interface to the Struts
ApplicationResources. Any component in the application is welcome to use
the ApplicationResources (hence the "application" moniker).

What you might want to do is save the message key in the inputErrors
property and then use bean:message to write it out. This will make it a
drop-in replacement for action:errors.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Marrotte wrote:
>
> One way I thought of to do this is to store any errors in the bean that
>  uses, e.g.:
>
> 
> 
> item 
> 
> 
> qty 
> 
> 
> 
> 
> 
>
> But, here I'm using the "inputErrors" property of the "javaBeanProperty"
of
> "javaBean" and I'm not using the  tag.  Am I cheating or
missing
> something in Struts that provides a consistent (more MVC) way to deal with
> this.
>
> What do you think of the above approach?  Any thoughts are greatly
> appreciated?
>
> Thanks in advance,
>
> --Michael Marrotte
>
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
>
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
>
> mark n.
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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:




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




RE: Does Indexed property in FormBean work?

2002-05-17 Thread Jason Zhou

No. 

I have a FormBean called Department with an indexed property called Employee.

Department
{
Employee[] employee = ...
}

Employee is a javabean with names, address, etc.

In the html form, I have a table of html input field (html:text in Struts) and each 
row representing one employee.

So at first row the name field is associated with Employee[0].name 
second row the name field is associated with Employee[1].name 
third row the name field is associated with Employee[2].name

I can use a for loop and Struts iterator tag. When I submit, the input field will get 
back to the corresponding element in the indexed array.

But the value is not loaded to the bean after the submit.

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 4:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Does Indexed property in FormBean work?

Jason,

I'm not sure I understand what you are trying to do.  It sounds like a
simple dropdown select list populated by associated List property on the
bean.  I use the indexId to access particular elements in a List in order
remove selected elements from the List.  Is this something like you need?

Mark

-Original Message-
From: Jason Zhou [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:46 PM
To: 'Struts Users Mailing List'
Subject: Does Indexed property in FormBean work?


I have an indexed property in my form bean and I want to associate the
indexed property with a list of html input field in a form so that values of
my property can be displayed through the input field and changes can be
populated back to the indexed property.

How can I do it in Struts?

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
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: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logg ing' s ClassNotFoundException

2002-05-17 Thread AGARWAL, RAJESH (SBCSI)

Hi Ren,

  I'm still not able to set up struts 1.0.1 for WAS 4.0.
  You said you've it running.
  Could you tell me what are changes you need to make??

Thanks
Rajesh

-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 1:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting Struts 1.1 beta to work with WLS6.1 SP2:
commons-logg ing' s ClassNotFoundException


I just want to say that I have the exact problem like you ..

> -Original Message-
> From: Ren Bitonio [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 12:10 PM
> To:   'Struts Users Mailing List'
> Subject:  Getting Struts 1.1 beta to work with WLS6.1 SP2:
> commons-logging' s ClassNotFoundException
> 
> Hello All:
> 
> There have been no responses to my initial request below, and I'd
> appreciate
> much if I could get some assistance.  I've read past postings that comes
> close to my issue, but not useful information.  Sorry for re-posting, but
> I
> need to find a way around this problem.
> 
> I have an already working Struts running on Bea's WLS61 and IBM's WAS40,
> and
> I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
> getting "java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
> More info below.  
> 
> I've recompiled and reassembled the web-apps with the the Struts 1.1
> libraries, aand I also have commons-logging.jar in my webapp's classpath,
> but it does not help.  I've deployed the web-apps that came with the
> Struts
> 1.1 beta distribution, and they're fine.  
> 
> Any ideas?
> 
> Thanks,
> Ren
> 
> -Original Message-
> From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 3:27 PM
> To: '[EMAIL PROTECTED]'
> Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2
> 
> 
> Hi All:
> 
> I've read a few postings regarding the problem below, but there were no
> good
> answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris
> 8).
> We're running a nightly build from Nov 2001, and we have no problems with
> our stuts web apps, and we're now ready to upgrade to latest milestone
> build, version 1.1 beta 1.  
> 
> Has anyone know how to resolve or work around this ClassNotFound
> exception?
> Has any of the latest nightly builds after 1.1 beta 1 solved this problem
> as
> well?
> 
> Thanks,
> Ren
> 
>   
> <[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
> Exception
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl
> at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
> at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
> org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
> weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.ja
> va
> :665)
> at
> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.
> ja
> va:643)
> at
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.j
> av
> a:588)
> at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:
> 36
> 8)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> :242)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> :200)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServlet
> Co
> ntext.java:2495)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.ja
> va
> :2204)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> 
> --
> 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: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging' s ClassNotFoundException

2002-05-17 Thread Trieu, Danny

I just want to say that I have the exact problem like you ..

> -Original Message-
> From: Ren Bitonio [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 12:10 PM
> To:   'Struts Users Mailing List'
> Subject:  Getting Struts 1.1 beta to work with WLS6.1 SP2:
> commons-logging' s ClassNotFoundException
> 
> Hello All:
> 
> There have been no responses to my initial request below, and I'd
> appreciate
> much if I could get some assistance.  I've read past postings that comes
> close to my issue, but not useful information.  Sorry for re-posting, but
> I
> need to find a way around this problem.
> 
> I have an already working Struts running on Bea's WLS61 and IBM's WAS40,
> and
> I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
> getting "java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
> More info below.  
> 
> I've recompiled and reassembled the web-apps with the the Struts 1.1
> libraries, aand I also have commons-logging.jar in my webapp's classpath,
> but it does not help.  I've deployed the web-apps that came with the
> Struts
> 1.1 beta distribution, and they're fine.  
> 
> Any ideas?
> 
> Thanks,
> Ren
> 
> -Original Message-
> From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 3:27 PM
> To: '[EMAIL PROTECTED]'
> Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2
> 
> 
> Hi All:
> 
> I've read a few postings regarding the problem below, but there were no
> good
> answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris
> 8).
> We're running a nightly build from Nov 2001, and we have no problems with
> our stuts web apps, and we're now ready to upgrade to latest milestone
> build, version 1.1 beta 1.  
> 
> Has anyone know how to resolve or work around this ClassNotFound
> exception?
> Has any of the latest nightly builds after 1.1 beta 1 solved this problem
> as
> well?
> 
> Thanks,
> Ren
> 
>   
> <[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
> Exception
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl
> at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
> at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
> org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
> weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.ja
> va
> :665)
> at
> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.
> ja
> va:643)
> at
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.j
> av
> a:588)
> at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:
> 36
> 8)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> :242)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> :200)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServlet
> Co
> ntext.java:2495)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.ja
> va
> :2204)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> 
> --
> 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: Does Indexed property in FormBean work?

2002-05-17 Thread Galbreath, Mark

Jason,

I'm not sure I understand what you are trying to do.  It sounds like a
simple dropdown select list populated by associated List property on the
bean.  I use the indexId to access particular elements in a List in order
remove selected elements from the List.  Is this something like you need?

Mark

-Original Message-
From: Jason Zhou [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:46 PM
To: 'Struts Users Mailing List'
Subject: Does Indexed property in FormBean work?


I have an indexed property in my form bean and I want to associate the
indexed property with a list of html input field in a form so that values of
my property can be displayed through the input field and changes can be
populated back to the indexed property.

How can I do it in Struts?

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: REg Select(Repost)

2002-05-17 Thread dhay



Ps  Can you post your struts-config file, and your form beans too




"Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
04:15:01 PM

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

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: REg Select(Repost)



Dave..
I checked the config.xml..Thanks a lot for your help.. Somehow  the way u r
suggesting is not working and i am making it work this way..
it is associated in the config.xml
Anyway I have found tried using collections and  as explained
in the example and then set the type by declaring a bean of scope page and
then setting the value from the form1action.and assigning in this way
 and so  on and it is working..
I have gt a doubt here..If u see from the struts example the collections is
an array list how do I use them if i ant to use

say for example

java.util.ArrayList list = new java.util.ArrayList();
 list.add(new LabelValueBean("2", "3"));
  list.add(new LabelValueBean("1", "2"));
request.setAttribute("Types",list);

this is the code and the I have to iterate thru the list "list" ow do i
iterate
 name as define in 
how do I iterate thru the list
should I necessarily put this in a form and get the list by getter and then
iterate..
Regards,
Taati
> -Original Message-
> From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:   Friday, May 17, 2002 4:03 PM
> To: Struts Users Mailing List
> Subject: RE: REg Select(Repost)
>
>
>
> So you're getting the"error saying form2actionform not defined in the
> scope
> null"?
>
> If so, that's obviously your problem.  Check your struts-config to check
> it is
> associated with the action that forwards to form2.jsp.
>
> Dave
>
>
>
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 03:23:39 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
>
>
>
> Dave,
>  Oops that was actually a typo.. when I said yourform I meant
> form2actionform.
> Tried that but it is not orking...
> I was discussing this with joe also..
>
> Regards,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 3:17 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> > No, you have to replace "yourform" to YOUR form!!! ie form2actionform (I
> > think
> > in your case - whichever is associated with the select box)!
> >
> > Try that and see if it gives you anything.
> >
> > Cheers,
> >
> > David
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/17/2002
> > 03:05:28 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> > Dave,
> >  It brings null.. when it loads...
> > Hope yo have got  the csnario right..
> >
> > form1 = form1.jsp,form1action,form1actionform
> > form2=form2.jsp,form2action,form2actionform
> >
> > onsubmissiong of form1 form1action instantiates and sets the
> > form2actionform.setType="
> >
> > and then form2.jsp gets loaded but the value s still null.
> > The form scope is session in the config.xml and one more thing I get an
> > error saying yourform not defined in the scope null...
> > but if I set it imn the session in form1action it doesnt give any error
> > but
> > it doesnt work either
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Friday, May 17, 2002 3:00 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: REg Select(Repost)
> > >
> > >
> > >
> > > Does your select box work?  ie when you submit it, is the value of the
> > > type var
> > > set correctly?  It should work in exactly the reverse order - if you
> > have
> > > called
> > > setType(x) on the same form in the action before you get to the jsp,
> > there
> > > should be no problem.  Can you try a  > > property="type"/> someone on your page and see what it produces when
> you
> > > bring
> > > up the jsp?
> > >
> > > Cheers,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > "Mannem, Taati" <[EMAIL PROTECTED]> on
> > 05/17/2002
> > > 02:55:26 PM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >   <[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List
> > >   <[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  RE: REg Select(Repost)
> > >
> > >
> > >
> > >
> > > Dave.
> > >  Thanks a lor!. If I set the value of form2 actionclass1 I am not
> > > able to retrieve the value in form2.jsp
> > > and it does not work. Can you send me some code example.
> > >
> > > Cheers,
> > > Taati
> > > > -Original Message-

RE: REg Select(Repost)

2002-05-17 Thread dhay



2 questions:

- what is your jsp -> action sequence ie are you going form1Action -> form1.jsp
-> form2Action -> form2.jsp?  And in which form is your typelist collection?
And in which form is your type value?

- Don't understand your question about iterating.  Is it completely seperate
from the select box issue?

David





"Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
04:15:01 PM

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

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: REg Select(Repost)



Dave..
I checked the config.xml..Thanks a lot for your help.. Somehow  the way u r
suggesting is not working and i am making it work this way..
it is associated in the config.xml
Anyway I have found tried using collections and  as explained
in the example and then set the type by declaring a bean of scope page and
then setting the value from the form1action.and assigning in this way
 and so  on and it is working..
I have gt a doubt here..If u see from the struts example the collections is
an array list how do I use them if i ant to use

say for example

java.util.ArrayList list = new java.util.ArrayList();
 list.add(new LabelValueBean("2", "3"));
  list.add(new LabelValueBean("1", "2"));
request.setAttribute("Types",list);

this is the code and the I have to iterate thru the list "list" ow do i
iterate
 name as define in 
how do I iterate thru the list
should I necessarily put this in a form and get the list by getter and then
iterate..
Regards,
Taati
> -Original Message-
> From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:   Friday, May 17, 2002 4:03 PM
> To: Struts Users Mailing List
> Subject: RE: REg Select(Repost)
>
>
>
> So you're getting the"error saying form2actionform not defined in the
> scope
> null"?
>
> If so, that's obviously your problem.  Check your struts-config to check
> it is
> associated with the action that forwards to form2.jsp.
>
> Dave
>
>
>
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 03:23:39 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
>
>
>
> Dave,
>  Oops that was actually a typo.. when I said yourform I meant
> form2actionform.
> Tried that but it is not orking...
> I was discussing this with joe also..
>
> Regards,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 3:17 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> > No, you have to replace "yourform" to YOUR form!!! ie form2actionform (I
> > think
> > in your case - whichever is associated with the select box)!
> >
> > Try that and see if it gives you anything.
> >
> > Cheers,
> >
> > David
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/17/2002
> > 03:05:28 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> > Dave,
> >  It brings null.. when it loads...
> > Hope yo have got  the csnario right..
> >
> > form1 = form1.jsp,form1action,form1actionform
> > form2=form2.jsp,form2action,form2actionform
> >
> > onsubmissiong of form1 form1action instantiates and sets the
> > form2actionform.setType="
> >
> > and then form2.jsp gets loaded but the value s still null.
> > The form scope is session in the config.xml and one more thing I get an
> > error saying yourform not defined in the scope null...
> > but if I set it imn the session in form1action it doesnt give any error
> > but
> > it doesnt work either
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Friday, May 17, 2002 3:00 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: REg Select(Repost)
> > >
> > >
> > >
> > > Does your select box work?  ie when you submit it, is the value of the
> > > type var
> > > set correctly?  It should work in exactly the reverse order - if you
> > have
> > > called
> > > setType(x) on the same form in the action before you get to the jsp,
> > there
> > > should be no problem.  Can you try a  > > property="type"/> someone on your page and see what it produces when
> you
> > > bring
> > > up the jsp?
> > >
> > > Cheers,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > "Mannem, Taati" <[EMAIL PROTECTED]> on
> > 05/17/2002
> > > 02:55:26 PM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >   <[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List
> > >   <[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  RE: REg Select(Repost)
> > >
> > >
> > >
> > >
> > > D

RE: REg Select(Repost)

2002-05-17 Thread Mannem, Taati

Dave..
I checked the config.xml..Thanks a lot for your help.. Somehow  the way u r
suggesting is not working and i am making it work this way..
it is associated in the config.xml
Anyway I have found tried using collections and  as explained
in the example and then set the type by declaring a bean of scope page and
then setting the value from the form1action.and assigning in this way
 and so  on and it is working..
I have gt a doubt here..If u see from the struts example the collections is
an array list how do I use them if i ant to use

say for example

java.util.ArrayList list = new java.util.ArrayList();
list.add(new LabelValueBean("2", "3"));
 list.add(new LabelValueBean("1", "2"));
request.setAttribute("Types",list);

this is the code and the I have to iterate thru the list "list" ow do i
iterate 
 name as define in 
how do I iterate thru the list
should I necessarily put this in a form and get the list by getter and then
iterate..
Regards,
Taati
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 4:03 PM
> To:   Struts Users Mailing List
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> So you're getting the"error saying form2actionform not defined in the
> scope
> null"?
> 
> If so, that's obviously your problem.  Check your struts-config to check
> it is
> associated with the action that forwards to form2.jsp.
> 
> Dave
> 
> 
> 
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 03:23:39 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> Dave,
>  Oops that was actually a typo.. when I said yourform I meant
> form2actionform.
> Tried that but it is not orking...
> I was discussing this with joe also..
> 
> Regards,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 3:17 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> > No, you have to replace "yourform" to YOUR form!!! ie form2actionform (I
> > think
> > in your case - whichever is associated with the select box)!
> >
> > Try that and see if it gives you anything.
> >
> > Cheers,
> >
> > David
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/17/2002
> > 03:05:28 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> > Dave,
> >  It brings null.. when it loads...
> > Hope yo have got  the csnario right..
> >
> > form1 = form1.jsp,form1action,form1actionform
> > form2=form2.jsp,form2action,form2actionform
> >
> > onsubmissiong of form1 form1action instantiates and sets the
> > form2actionform.setType="
> >
> > and then form2.jsp gets loaded but the value s still null.
> > The form scope is session in the config.xml and one more thing I get an
> > error saying yourform not defined in the scope null...
> > but if I set it imn the session in form1action it doesnt give any error
> > but
> > it doesnt work either
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Friday, May 17, 2002 3:00 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: REg Select(Repost)
> > >
> > >
> > >
> > > Does your select box work?  ie when you submit it, is the value of the
> > > type var
> > > set correctly?  It should work in exactly the reverse order - if you
> > have
> > > called
> > > setType(x) on the same form in the action before you get to the jsp,
> > there
> > > should be no problem.  Can you try a  > > property="type"/> someone on your page and see what it produces when
> you
> > > bring
> > > up the jsp?
> > >
> > > Cheers,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > "Mannem, Taati" <[EMAIL PROTECTED]> on
> > 05/17/2002
> > > 02:55:26 PM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >   <[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List
> > >   <[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  RE: REg Select(Repost)
> > >
> > >
> > >
> > >
> > > Dave.
> > >  Thanks a lor!. If I set the value of form2 actionclass1 I am not
> > > able to retrieve the value in form2.jsp
> > > and it does not work. Can you send me some code example.
> > >
> > > Cheers,
> > > Taati
> > > > -Original Message-
> > > > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > > Sent:   Friday, May 17, 2002 2:42 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: REg Select(Repost)
> > > >
> > > >
> > > >
> > > > Setting the value of the type variable in the underlying form bean
> > > should
> > > > work.
> > >

Why did they make it tough to process an action on your own?

2002-05-17 Thread Steel, Toby

If one jsp requires many action.do ActionForward results be included on a
single page,
one used to use ActionServlet.processActionPerform (among other methods)
to preprocess the request so that each subsection of a main page could
be generated by the result of an Action.

This used to (Struts 1.0) be the workaround for the ineffective


Now it seems (Struts 1.1beta1), I have to do all this work myself, from
within my ActionServlet.
[I think Ted Husted had a sample method called invokeAction( path, request,
response)
in one of his online examples]

***Why were all the 'processXXX' methods removed from ActionServlet?***

Using all the new Config stuff works well enough. I have to create my own
instance of the Action class, and manage form population and validation
myself. 
But it's a bit of a pain when the code used to be there and now it's gone.

Does this go against the framework?
--

On a related note, we are encouraged to use the
ApplicationConfig.findActionConfig() methods rather
than ActionServlet.findMapping() [Deprecated]. Yet Action.execute() still
takes ActionMappings rather
than ActionConfigs. Why? Or is this an oversight?



Toby Steel


 



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




Re: Does Indexed property in FormBean work?

2002-05-17 Thread dhay



search the archive - loads of messages on this.

Dave



Jason Zhou <[EMAIL PROTECTED]> on 05/17/2002 03:45:55 PM

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

To:   "'Struts Users Mailing List'"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Does Indexed property in FormBean work?



I have an indexed property in my form bean and I want to associate the indexed
property with a list of html input field in a form so that values of my property
can be displayed through the input field and changes can be populated back to
the indexed property.

How can I do it in Struts?

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D,
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



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








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




RE: REg Select(Repost)

2002-05-17 Thread dhay



So you're getting the"error saying form2actionform not defined in the scope
null"?

If so, that's obviously your problem.  Check your struts-config to check it is
associated with the action that forwards to form2.jsp.

Dave



"Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
03:23:39 PM

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

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: REg Select(Repost)



Dave,
 Oops that was actually a typo.. when I said yourform I meant
form2actionform.
Tried that but it is not orking...
I was discussing this with joe also..

Regards,
Taati
> -Original Message-
> From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:   Friday, May 17, 2002 3:17 PM
> To: Struts Users Mailing List
> Subject: RE: REg Select(Repost)
>
>
> No, you have to replace "yourform" to YOUR form!!! ie form2actionform (I
> think
> in your case - whichever is associated with the select box)!
>
> Try that and see if it gives you anything.
>
> Cheers,
>
> David
>
>
>
>
>
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 03:05:28 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
>
>
>
> Dave,
>  It brings null.. when it loads...
> Hope yo have got  the csnario right..
>
> form1 = form1.jsp,form1action,form1actionform
> form2=form2.jsp,form2action,form2actionform
>
> onsubmissiong of form1 form1action instantiates and sets the
> form2actionform.setType="
>
> and then form2.jsp gets loaded but the value s still null.
> The form scope is session in the config.xml and one more thing I get an
> error saying yourform not defined in the scope null...
> but if I set it imn the session in form1action it doesnt give any error
> but
> it doesnt work either
>
> Regards,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 3:00 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> >
> > Does your select box work?  ie when you submit it, is the value of the
> > type var
> > set correctly?  It should work in exactly the reverse order - if you
> have
> > called
> > setType(x) on the same form in the action before you get to the jsp,
> there
> > should be no problem.  Can you try a  > property="type"/> someone on your page and see what it produces when you
> > bring
> > up the jsp?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/17/2002
> > 02:55:26 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> >
> > Dave.
> >  Thanks a lor!. If I set the value of form2 actionclass1 I am not
> > able to retrieve the value in form2.jsp
> > and it does not work. Can you send me some code example.
> >
> > Cheers,
> > Taati
> > > -Original Message-
> > > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Friday, May 17, 2002 2:42 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: REg Select(Repost)
> > >
> > >
> > >
> > > Setting the value of the type variable in the underlying form bean
> > should
> > > work.
> > > Does for me.
> > >
> > > cheers,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > "Mannem, Taati" <[EMAIL PROTECTED]> on
> > 05/16/2002
> > > 04:51:42 PM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >   <[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List
> > >   <[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  RE: REg Select(Repost)
> > >
> > >
> > >
> > > Sorry Guys,
> > >  I missed some points.. The actual scenario is like this
> > > There is a form which has to be displayed with the options ..(value
> and
> > > the
> > > label) Now the databases sends me tthe value.How do i display the
> value
> > > chosen.Foexample I render the
> > >  
> > >Year
> > > > >  labelProperty="label"/>
> > >  
> > >
> > > select list box using this tag and as explained by MArk ad jim.. after
> > > this
> > > supposing I have to show the cosen value as 2003 how do I do that. I
> > tried
> > > by setting the type by set type but but is not working
> > > Here typelist is a collection which dislays the year which is again an
> > > arraylist sent to me by the database.It alsos ends me the option
> > value.How
> > > do i set it so that it is shown correctly in the page.
> > > I am lost!
> > >
> > > Regards,
> > > Taati
> > > > -Original Message-
> > > > From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > > > Sent:   Thursday, May 16, 2002 4:09 PM
> > > > To: [EMAIL PRO

Re: Need some help with generateToken

2002-05-17 Thread Ted Husted

Not much to it really. 

Before forwarding to the form that needs to be part of the transaction,
just call 

saveToken(request);

somewhere in the Action. 

If the form the Action forwards to uses the Struts html:form tag, it
will write out the token for you as a hidden field, so there's nothing
new to do. 

On the Action that catches the form, call 

isTokenValid(request);

If the token is not valid, branch to an error page. 

Otherwise, call resetToken(). If another copy of the form tries to
submit it again, now isTokenValid() will return false.

The token is a random number that gets stored in the user's session. A
second copy is suppose to be stored in the request. If the session and
request tokens are missing or is different, then the transaction is out
of synch. 

saveToken() puts it into the request. 

The Struts tags write it out as a hidden field or parameter. 

resetToken() clears it from the request. 

Loop closed. 

The Core J2EE Patterns book covers this and a ton of other handy
strategies and patterns. Highly recommended. See the Struts Resource
page for a link.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Daniel Jaffa wrote:
> 
> Ok,
>  I have searched around and have not found much info on the following
> classes
> isTokenValid, saveToken, generateToken
> I Think that i could use these classes to help prevent some on from hitting
> the back button issues.
> 
> My question is has anybody used these and if so, could u provided me an
> example.
> (I saw an answer from Ted, where he explained it a little but i did not see
> any example code)
> 
> Thank You
> 
> daniel Jaffa
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging' sClassNotFoundException

2002-05-17 Thread Kevin . Bedell





Looks like your having issues with the WLS classloader architecture. There
are a few things that you need to do to get third party class files to be
found by the classloader for a web app.

Here's a great article on some of the newer classloader architectures. It
has some specific material on WebLogic 6.1 SP2.  Read the wls material here
and it should help you resolve the issue.

 http://www.theserverside.com/resources/article.jsp?l=ClassLoading

Also - did you put the line in Manfest.mf file identifying the commons jar
file?  Here's another on article on classloaders publshed on the O"Reilly
network by a member of BEA's technical staff. If describes the Class-Path
attribute for manifest files.

 http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html?page=1

This looks a lot like a bea classloader issue - make sue you've got your war/ear 
defined correctly and the manafest file with the correct "Class-Path"
 entries.

FWIW -
Kevin





Ren Bitonio <[EMAIL PROTECTED]> on 05/17/2002 02:48:02 PM

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

To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging'
  s ClassNotFoundException


Hello All:

There have been no responses to my initial request below, and I'd
appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40,
and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no
good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem
as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java

:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja

va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav

a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36

8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java

:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java

:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo

ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java

:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this commun

RE: How do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

Works like a charm...  Thanks for the input!

--Michael Marrotte

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 3:38 PM
To: Struts Users Mailing List
Subject: Re: How do you recommend doing this with Struts?


The action:errors tag is a convenient interface to the Struts
ApplicationResources. Any component in the application is welcome to use
the ApplicationResources (hence the "application" moniker).

What you might want to do is save the message key in the inputErrors
property and then use bean:message to write it out. This will make it a
drop-in replacement for action:errors.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Marrotte wrote:
>
> One way I thought of to do this is to store any errors in the bean that
>  uses, e.g.:
>
> 
> 
> item 
> 
> 
> qty 
> 
> 
> 
> 
> 
>
> But, here I'm using the "inputErrors" property of the "javaBeanProperty"
of
> "javaBean" and I'm not using the  tag.  Am I cheating or
missing
> something in Struts that provides a consistent (more MVC) way to deal with
> this.
>
> What do you think of the above approach?  Any thoughts are greatly
> appreciated?
>
> Thanks in advance,
>
> --Michael Marrotte
>
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
>
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
>
> mark n.
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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:




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




Does Indexed property in FormBean work?

2002-05-17 Thread Jason Zhou

I have an indexed property in my form bean and I want to associate the indexed 
property with a list of html input field in a form so that values of my property can 
be displayed through the input field and changes can be populated back to the indexed 
property.

How can I do it in Struts?

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



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




Re: How do you recommend doing this with Struts?

2002-05-17 Thread Ted Husted

Validation errors actually *belong* to the model, so yes. 

The error messages are coming out of the ApplicationResources. This is a
standard Properties file and part of the standard approach to i18n in
any Java application. Ideally, these should be shared with any other
application that is doing the same sort of thing. Say something in Swing
or JavaServer Faces. 

All content, including messages, really belong to the model.
Conceptually, there's no difference between a paragraph of text and a
memo field in the database. It's all model; it's all message.

The view's job to format the content so that it can be displayed in the
chosen medium. But the view does not own the content -- it owns the
markup that surrounds the content. As a practical matter, we end up
mixing static text into HTML and JSP files these days. But not because
we ~want~ to. 

IMHO, the ActionForm is a controller component and not part of the view.
It lives on the layer between the view and model, and so can be bound
with either and both. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Marrotte wrote:
> 
> Thanks for your response...  It's exactly what I was thinking and just
> posted a questiion about.
> 
> Do you think this diverges from the MVC, though?  Should validation errors
> ideally be stored in the Model?
> 
> --Michael Marrotte
> 
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 2:55 PM
> To: Struts Users Mailing List
> Subject: Re: How do you recommend doing this with Struts?
> 
> I'd consider adding an error property to the bean that corresponded to
> each item.
> 
> In the validate() method, you could then set the error property for
> whichever item was at fault (if any), using the same key you would use
> for ActionError.
> 
> On the JSP side, you can use the message tag to translate the text.
> 
> ActionError does the same thing in bulk, but you can use the same
> technique on your own.
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Developing Java Web Applications with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> Michael Marrotte wrote:
> >
> > The ActionErrors work great for static pages.  But, the rows in my example
> > are dynamic.  How do I name them in say an  tag.  Or,
> better
> > yet is there a straightforward or best-practice way to handle this with
> > Struts?
> >
> > Thanks,
> >
> > Michael Marrotte
> >
> > -Original Message-
> > From: DHS Struts [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 17, 2002 7:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How do you recommend doing this with Struts?
> >
> > Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> > think you'll find that you can position error messages next to the user
> > value that is incorrect.
> >
> > mark n.
> >
> > >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Subject: How do you recommend doing this with Struts?
> > >Date: Thu, 16 May 2002 17:29:22 -0400
> > >
> > >Say the following form (FORM A) -- maybe representative of a shopping
> > >cart -- is generated dynamically:
> > >
> > >FORM A:
> > >-
> > >| item a | qty __  |
> > >-
> > >| item b | qty __  |
> > >-
> > >| ...   |
> > >-
> > >| item n | qty __  |
> > >-
> > >
> > >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> > >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> > >A,
> > >again with error messages) gets generated:
> > >
> > >FORM A:
> > >ERROR:  Please fix errors marked, below.
> > >-
> > >| item a | qty  2  |
> > >-
> > >| item b | qty M  | ERROR: Invalid qty.
> > >-
> > >| ...   |
> > >-
> > >| item n | qty  3  |
> > >-
> > >
> > >How do you recommend doing this with Struts?  What class(es) should be
> > >used?
> > >How can errors be stored and retrieved dynamically?
> > >
> > >Thanks in advance,
> > >
> > >--Michael Marrotte
> >
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.msn.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:
> 
> 
> --
> To unsubscribe, e-mail:   

Re: Another Error

2002-05-17 Thread Kevin . Bedell




Tough to say from this limited info -

Here's what I'd recommend. Go compare your struts-config.xml and your
Action classes to those supplied with the example application. Think things
through and spend a bit of time reading the javadoc.  And read through the
messages in your server.log until you understand what the exceptions are.

Have you gotten the example application to run?






Chris Cairns <[EMAIL PROTECTED]> on 05/17/2002 03:11:22 PM

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

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Another Error


Now this:

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection

What do I have to do to change it from not found to found!!!


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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's ClassNotFoundException

2002-05-17 Thread Ren Bitonio

Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.  

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.  

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: How do you recommend doing this with Struts?

2002-05-17 Thread Ted Husted

The action:errors tag is a convenient interface to the Struts
ApplicationResources. Any component in the application is welcome to use
the ApplicationResources (hence the "application" moniker).

What you might want to do is save the message key in the inputErrors
property and then use bean:message to write it out. This will make it a
drop-in replacement for action:errors. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Marrotte wrote:
> 
> One way I thought of to do this is to store any errors in the bean that
>  uses, e.g.:
> 
> 
> 
> item 
> 
> 
> qty 
> 
> 
> 
> 
> 
> 
> But, here I'm using the "inputErrors" property of the "javaBeanProperty" of
> "javaBean" and I'm not using the  tag.  Am I cheating or missing
> something in Struts that provides a consistent (more MVC) way to deal with
> this.
> 
> What do you think of the above approach?  Any thoughts are greatly
> appreciated?
> 
> Thanks in advance,
> 
> --Michael Marrotte
> 
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
> 
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
> 
> mark n.
> 
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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: 




Getting Struts 1.1 beta to work with WLS6.1 SP2: commons-logging's ClassNotFoundException

2002-05-17 Thread Ren Bitonio

Hello All:

There have been no responses to my initial request below, and I'd appreciate
much if I could get some assistance.  I've read past postings that comes
close to my issue, but not useful information.  Sorry for re-posting, but I
need to find a way around this problem.

I have an already working Struts running on Bea's WLS61 and IBM's WAS40, and
I'd like to use at least the milestone build Struts 1.1 beta 1, but I'm
getting "java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl" upon startup of my webapp.
More info below.  

I've recompiled and reassembled the web-apps with the the Struts 1.1
libraries, aand I also have commons-logging.jar in my webapp's classpath,
but it does not help.  I've deployed the web-apps that came with the Struts
1.1 beta distribution, and they're fine.  

Any ideas?

Thanks,
Ren

-Original Message-
From: Ren Bitonio [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2


Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Need some help with generateToken

2002-05-17 Thread Daniel Jaffa

Sorry they are methods not classes. isTokenValid, saveToken, generateToken


- Original Message -
From: "Daniel Jaffa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 1:55 PM
Subject: Need some help with generateToken


> Ok,
>  I have searched around and have not found much info on the following
> classes
> isTokenValid, saveToken, generateToken
> I Think that i could use these classes to help prevent some on from
hitting
> the back button issues.
>
> My question is has anybody used these and if so, could u provided me an
> example.
> (I saw an answer from Ted, where he explained it a little but i did not
see
> any example code)
>
>
> Thank You
>
> daniel Jaffa
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




RE: REg Select(Repost)

2002-05-17 Thread Mannem, Taati

Dave,
Oops that was actually a typo.. when I said yourform I meant
form2actionform.
Tried that but it is not orking...
I was discussing this with joe also..

Regards,
Taati
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:17 PM
> To:   Struts Users Mailing List
> Subject:  RE: REg Select(Repost)
> 
> 
> No, you have to replace "yourform" to YOUR form!!! ie form2actionform (I
> think
> in your case - whichever is associated with the select box)!
> 
> Try that and see if it gives you anything.
> 
> Cheers,
> 
> David
> 
> 
> 
> 
> 
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 03:05:28 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> Dave,
>  It brings null.. when it loads...
> Hope yo have got  the csnario right..
> 
> form1 = form1.jsp,form1action,form1actionform
> form2=form2.jsp,form2action,form2actionform
> 
> onsubmissiong of form1 form1action instantiates and sets the
> form2actionform.setType="
> 
> and then form2.jsp gets loaded but the value s still null.
> The form scope is session in the config.xml and one more thing I get an
> error saying yourform not defined in the scope null...
> but if I set it imn the session in form1action it doesnt give any error
> but
> it doesnt work either
> 
> Regards,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 3:00 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> >
> > Does your select box work?  ie when you submit it, is the value of the
> > type var
> > set correctly?  It should work in exactly the reverse order - if you
> have
> > called
> > setType(x) on the same form in the action before you get to the jsp,
> there
> > should be no problem.  Can you try a  > property="type"/> someone on your page and see what it produces when you
> > bring
> > up the jsp?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/17/2002
> > 02:55:26 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> >
> > Dave.
> >  Thanks a lor!. If I set the value of form2 actionclass1 I am not
> > able to retrieve the value in form2.jsp
> > and it does not work. Can you send me some code example.
> >
> > Cheers,
> > Taati
> > > -Original Message-
> > > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Friday, May 17, 2002 2:42 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: REg Select(Repost)
> > >
> > >
> > >
> > > Setting the value of the type variable in the underlying form bean
> > should
> > > work.
> > > Does for me.
> > >
> > > cheers,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > "Mannem, Taati" <[EMAIL PROTECTED]> on
> > 05/16/2002
> > > 04:51:42 PM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >   <[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List
> > >   <[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  RE: REg Select(Repost)
> > >
> > >
> > >
> > > Sorry Guys,
> > >  I missed some points.. The actual scenario is like this
> > > There is a form which has to be displayed with the options ..(value
> and
> > > the
> > > label) Now the databases sends me tthe value.How do i display the
> value
> > > chosen.Foexample I render the
> > >  
> > >Year
> > > > >  labelProperty="label"/>
> > >  
> > >
> > > select list box using this tag and as explained by MArk ad jim.. after
> > > this
> > > supposing I have to show the cosen value as 2003 how do I do that. I
> > tried
> > > by setting the type by set type but but is not working
> > > Here typelist is a collection which dislays the year which is again an
> > > arraylist sent to me by the database.It alsos ends me the option
> > value.How
> > > do i set it so that it is shown correctly in the page.
> > > I am lost!
> > >
> > > Regards,
> > > Taati
> > > > -Original Message-
> > > > From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > > > Sent:   Thursday, May 16, 2002 4:09 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: REg Select
> > > >
> > > > Guys,
> > > >I know this has bee asked but I amnot able to figure it out
> > > > This is the scenario I have
> > > > A form submit and it opens a form which has a list box with soime
> data
> > > > and when I choose the data and submit the form the previous form is
> > > opened
> > > > .. when this form is submiited again I need to se the chosen option
> > but
> > > I
> > > > amnot able to se..
> > > > I sued colle

RE: REg Select(Repost)

2002-05-17 Thread dhay



No, you have to replace "yourform" to YOUR form!!! ie form2actionform (I think
in your case - whichever is associated with the select box)!

Try that and see if it gives you anything.

Cheers,

David





"Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
03:05:28 PM

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

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: REg Select(Repost)



Dave,
 It brings null.. when it loads...
Hope yo have got  the csnario right..

form1 = form1.jsp,form1action,form1actionform
form2=form2.jsp,form2action,form2actionform

onsubmissiong of form1 form1action instantiates and sets the
form2actionform.setType="

and then form2.jsp gets loaded but the value s still null.
The form scope is session in the config.xml and one more thing I get an
error saying yourform not defined in the scope null...
but if I set it imn the session in form1action it doesnt give any error but
it doesnt work either

Regards,
Taati
> -Original Message-
> From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:   Friday, May 17, 2002 3:00 PM
> To: Struts Users Mailing List
> Subject: RE: REg Select(Repost)
>
>
>
> Does your select box work?  ie when you submit it, is the value of the
> type var
> set correctly?  It should work in exactly the reverse order - if you have
> called
> setType(x) on the same form in the action before you get to the jsp, there
> should be no problem.  Can you try a  property="type"/> someone on your page and see what it produces when you
> bring
> up the jsp?
>
> Cheers,
>
> Dave
>
>
>
>
>
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 02:55:26 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
>
>
>
>
> Dave.
>  Thanks a lor!. If I set the value of form2 actionclass1 I am not
> able to retrieve the value in form2.jsp
> and it does not work. Can you send me some code example.
>
> Cheers,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 2:42 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> >
> > Setting the value of the type variable in the underlying form bean
> should
> > work.
> > Does for me.
> >
> > cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/16/2002
> > 04:51:42 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> > Sorry Guys,
> >  I missed some points.. The actual scenario is like this
> > There is a form which has to be displayed with the options ..(value and
> > the
> > label) Now the databases sends me tthe value.How do i display the value
> > chosen.Foexample I render the
> >  
> >Year
> > >  labelProperty="label"/>
> >  
> >
> > select list box using this tag and as explained by MArk ad jim.. after
> > this
> > supposing I have to show the cosen value as 2003 how do I do that. I
> tried
> > by setting the type by set type but but is not working
> > Here typelist is a collection which dislays the year which is again an
> > arraylist sent to me by the database.It alsos ends me the option
> value.How
> > do i set it so that it is shown correctly in the page.
> > I am lost!
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Thursday, May 16, 2002 4:09 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: REg Select
> > >
> > > Guys,
> > >I know this has bee asked but I amnot able to figure it out
> > > This is the scenario I have
> > > A form submit and it opens a form which has a list box with soime data
> > > and when I choose the data and submit the form the previous form is
> > opened
> > > .. when this form is submiited again I need to se the chosen option
> but
> > I
> > > amnot able to se..
> > > I sued collect and used the tag in this way
> > >
> > >
> > > 
> > >   Year
> > >> > labelProperty="label"/>
> > > 
> > >
> > > How do i make sure that the data chosen in the form comes to this
> form..
> > > and
> > > the correctopton is chosen..
> > > Regards,
> > > Taati
> > >
> > >
> > > --
> > > 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:
> > 

Another Error

2002-05-17 Thread Chris Cairns

Now this:

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server 
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Cannot find ActionMappings or 
ActionFormBeans collection

What do I have to do to change it from not found to found!!!


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




RE: REg Select(Repost)

2002-05-17 Thread Mannem, Taati

Dave,
It brings null.. when it loads... 
Hope yo have got  the csnario right..

form1 = form1.jsp,form1action,form1actionform
form2=form2.jsp,form2action,form2actionform

onsubmissiong of form1 form1action instantiates and sets the
form2actionform.setType="

and then form2.jsp gets loaded but the value s still null.
The form scope is session in the config.xml and one more thing I get an
error saying yourform not defined in the scope null...
but if I set it imn the session in form1action it doesnt give any error but
it doesnt work either

Regards,
Taati
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:00 PM
> To:   Struts Users Mailing List
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> Does your select box work?  ie when you submit it, is the value of the
> type var
> set correctly?  It should work in exactly the reverse order - if you have
> called
> setType(x) on the same form in the action before you get to the jsp, there
> should be no problem.  Can you try a  property="type"/> someone on your page and see what it produces when you
> bring
> up the jsp?
> 
> Cheers,
> 
> Dave
> 
> 
> 
> 
> 
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
> 02:55:26 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> 
> Dave.
>  Thanks a lor!. If I set the value of form2 actionclass1 I am not
> able to retrieve the value in form2.jsp
> and it does not work. Can you send me some code example.
> 
> Cheers,
> Taati
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, May 17, 2002 2:42 PM
> > To: Struts Users Mailing List
> > Subject: RE: REg Select(Repost)
> >
> >
> >
> > Setting the value of the type variable in the underlying form bean
> should
> > work.
> > Does for me.
> >
> > cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > "Mannem, Taati" <[EMAIL PROTECTED]> on
> 05/16/2002
> > 04:51:42 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: REg Select(Repost)
> >
> >
> >
> > Sorry Guys,
> >  I missed some points.. The actual scenario is like this
> > There is a form which has to be displayed with the options ..(value and
> > the
> > label) Now the databases sends me tthe value.How do i display the value
> > chosen.Foexample I render the
> >  
> >Year
> > >  labelProperty="label"/>
> >  
> >
> > select list box using this tag and as explained by MArk ad jim.. after
> > this
> > supposing I have to show the cosen value as 2003 how do I do that. I
> tried
> > by setting the type by set type but but is not working
> > Here typelist is a collection which dislays the year which is again an
> > arraylist sent to me by the database.It alsos ends me the option
> value.How
> > do i set it so that it is shown correctly in the page.
> > I am lost!
> >
> > Regards,
> > Taati
> > > -Original Message-
> > > From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > > Sent:   Thursday, May 16, 2002 4:09 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: REg Select
> > >
> > > Guys,
> > >I know this has bee asked but I amnot able to figure it out
> > > This is the scenario I have
> > > A form submit and it opens a form which has a list box with soime data
> > > and when I choose the data and submit the form the previous form is
> > opened
> > > .. when this form is submiited again I need to se the chosen option
> but
> > I
> > > amnot able to se..
> > > I sued collect and used the tag in this way
> > >
> > >
> > > 
> > >   Year
> > >> > labelProperty="label"/>
> > > 
> > >
> > > How do i make sure that the data chosen in the form comes to this
> form..
> > > and
> > > the correctopton is chosen..
> > > Regards,
> > > Taati
> > >
> > >
> > > --
> > > 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 approaches

2002-05-17 Thread Emerson Cargnin - MSA

i think that this approache would be better handled as a business
validation, not a presentation validation...
- Original Message -
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 11:40 AM
Subject: Re: validation approaches


> Subject: Re: validation approaches
> From: Vic C <[EMAIL PROTECTED]>
>  ===
> For complex validation you override the validate mehtod on the form bean.
>
> Ex: Check to see if the clients new purchase order excedes therir unpaid
> invoices and minus their credt line.
> So in your validate method you call the DAO that issues a few selects,
> computes and returs an accionerror.add().
> This then shows up in the pg error tag.
>
> Vic
>
> James Mitchell wrote:
> > I guess that depends on where you draw the line on customization.
> >
> > If you can build a tool that handles your needs in a 'generic' fashion.
> > Then by all means, help us out and donate it.
> >
> > However, if you app requires special validation handling, then customize
the
> > app to do so.
> >
> >
> > JM
> >
> >
> >>-Original Message-
> >>From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
> >>Sent: Friday, May 17, 2002 10:15 AM
> >>To: Struts Users Mailing List
> >>Subject: validation approaches
> >>
> >>
> >>What are u people using to validate form data in client and server
without
> >>rewriting code?  I know validator does that, although this
> >>approach doesn't
> >>allows complex validation (as calculated validation digits). It
> >>looks like a
> >>few people are using validator... (please correct me if I'm wrong)
> >>
> >>Regards
> >>Emerson
> >>
> >>
> >>- Original Message -
> >>From: "Evan Schnell" <[EMAIL PROTECTED]>
> >>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>Sent: Friday, May 17, 2002 10:52 AM
> >>Subject: Re: Validator Tag with with Struts 1.1.b1
> >>
> >>
> >>
> >>>David Morris wrote:
> >>>
> >>>
> Validators,
> 
> Any idea how I can use this with the 1.1 beta or do I need to use
> another version? Also, can someone point me to a working example of
> validation with a 1.1 version of Struts?
> 
> 
> >>>
> >>>Validation is poorly documented,  the javadoc is even missing from the
> >>>nightlies, but I was able to get it working under 1.1b1 for a demo last
> >>>week. I completely ignored the contrib directory because everything is
> >>>available in the main distribution and the html taglib.
> >>>
> >>>1. struts-config.xml needs only the following (make sure the files
> >>>exist):
> >>>   >>>parameter="ApplicationResources"/>
> >>>
> >>>  
> >>> >>>value="/WEB-INF/validation-rules.xml"/>
> >>>
> >>>  
> >>>
> >>>2. I specified rules in validation.xml consistent with the old
examples.
> >>>
> >>> This doesn't seem to have changed.
> >>>
> >>>3. Be sure your applicationResources.properties file has a set of
> >>>messages beginning with "error."  These can be copied over from
examples
> >>>
> >>>if they are missing.
> >>>
> >>>4. Set validate to true on your forms.
> >>>
> >>>5. Make your forms extend:
> >>> org.apache.struts.validator.ValidatorActionForm.  Until you get things
> >>>working I suggest you comment out any existing validate method in your
> >>>form class.
> >>>
> >>>6. Add the tag   somewhere
> >>>near the top.  I put it above a random body tag that was in the html I
> >>>was using.
> >>>
> >>>7. Add the event:  onsubmit="return validateRegisterForm(this);" to
your
> >>>
> >>>html:form tag.
> >>>
> >>>It is important that all of your form names in the event, the
javascript
> >>>
> >>>tag and struts-config.xml match in order for the javascript validation
> >>>to work properly.
> >>>
> >>>Have fun,
> >>>Evan.
> >>>
> >>>--
> >>>Evan Schnell, Technical Lead
> >>>nVISIA, Twin Cities  "Digital Architecture and Construction"
> >>>2 Meridian Crossings, Richfield, MN 55423
> >>>Voice: 612.243.2460 -- Fax: 612.243.2468 -- Mobile: 612.232.5972
> >>>
> >>>
> >>
> >>
> >>--
> >>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: How do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

Thanks for your response...  It's exactly what I was thinking and just
posted a questiion about.

Do you think this diverges from the MVC, though?  Should validation errors
ideally be stored in the Model?

--Michael Marrotte

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 2:55 PM
To: Struts Users Mailing List
Subject: Re: How do you recommend doing this with Struts?


I'd consider adding an error property to the bean that corresponded to
each item.

In the validate() method, you could then set the error property for
whichever item was at fault (if any), using the same key you would use
for ActionError.

On the JSP side, you can use the message tag to translate the text.

ActionError does the same thing in bulk, but you can use the same
technique on your own.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



Michael Marrotte wrote:
>
> The ActionErrors work great for static pages.  But, the rows in my example
> are dynamic.  How do I name them in say an  tag.  Or,
better
> yet is there a straightforward or best-practice way to handle this with
> Struts?
>
> Thanks,
>
> Michael Marrotte
>
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
>
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
>
> mark n.
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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:




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




RE: REg Select(Repost)

2002-05-17 Thread dhay



Does your select box work?  ie when you submit it, is the value of the type var
set correctly?  It should work in exactly the reverse order - if you have called
setType(x) on the same form in the action before you get to the jsp, there
should be no problem.  Can you try a  someone on your page and see what it produces when you bring
up the jsp?

Cheers,

Dave





"Mannem, Taati" <[EMAIL PROTECTED]> on 05/17/2002
02:55:26 PM

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

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: REg Select(Repost)




Dave.
 Thanks a lor!. If I set the value of form2 actionclass1 I am not
able to retrieve the value in form2.jsp
and it does not work. Can you send me some code example.

Cheers,
Taati
> -Original Message-
> From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:   Friday, May 17, 2002 2:42 PM
> To: Struts Users Mailing List
> Subject: RE: REg Select(Repost)
>
>
>
> Setting the value of the type variable in the underlying form bean should
> work.
> Does for me.
>
> cheers,
>
> Dave
>
>
>
>
>
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/16/2002
> 04:51:42 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
>
>
>
> Sorry Guys,
>  I missed some points.. The actual scenario is like this
> There is a form which has to be displayed with the options ..(value and
> the
> label) Now the databases sends me tthe value.How do i display the value
> chosen.Foexample I render the
>  
>Year
>  labelProperty="label"/>
>  
>
> select list box using this tag and as explained by MArk ad jim.. after
> this
> supposing I have to show the cosen value as 2003 how do I do that. I tried
> by setting the type by set type but but is not working
> Here typelist is a collection which dislays the year which is again an
> arraylist sent to me by the database.It alsos ends me the option value.How
> do i set it so that it is shown correctly in the page.
> I am lost!
>
> Regards,
> Taati
> > -Original Message-
> > From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 16, 2002 4:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: REg Select
> >
> > Guys,
> >I know this has bee asked but I amnot able to figure it out
> > This is the scenario I have
> > A form submit and it opens a form which has a list box with soime data
> > and when I choose the data and submit the form the previous form is
> opened
> > .. when this form is submiited again I need to se the chosen option but
> I
> > amnot able to se..
> > I sued collect and used the tag in this way
> >
> >
> > 
> >   Year
> >> labelProperty="label"/>
> > 
> >
> > How do i make sure that the data chosen in the form comes to this form..
> > and
> > the correctopton is chosen..
> > Regards,
> > Taati
> >
> >
> > --
> > 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: How do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

One way I thought of to do this is to store any errors in the bean that
 uses, e.g.:



item 


qty 






But, here I'm using the "inputErrors" property of the "javaBeanProperty" of
"javaBean" and I'm not using the  tag.  Am I cheating or missing
something in Struts that provides a consistent (more MVC) way to deal with
this.

What do you think of the above approach?  Any thoughts are greatly
appreciated?

Thanks in advance,

--Michael Marrotte

-Original Message-
From: DHS Struts [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: How do you recommend doing this with Struts?


Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
think you'll find that you can position error messages next to the user
value that is incorrect.

mark n.


>From: "Michael Marrotte" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: How do you recommend doing this with Struts?
>Date: Thu, 16 May 2002 17:29:22 -0400
>
>Say the following form (FORM A) -- maybe representative of a shopping
>cart -- is generated dynamically:
>
>FORM A:
>-
>| item a | qty __  |
>-
>| item b | qty __  |
>-
>| ...   |
>-
>| item n | qty __  |
>-
>
>And, say the user submits the values "2,M, and 3" for items "a,b and n",
>respectively.  Assuming "M" is an invalid "qty", the following form (FORM
>A,
>again with error messages) gets generated:
>
>FORM A:
>ERROR:  Please fix errors marked, below.
>-
>| item a | qty  2  |
>-
>| item b | qty M  | ERROR: Invalid qty.
>-
>| ...   |
>-
>| item n | qty  3  |
>-
>
>How do you recommend doing this with Struts?  What class(es) should be
>used?
>How can errors be stored and retrieved dynamically?
>
>Thanks in advance,
>
>--Michael Marrotte


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: complex validation with Validator

2002-05-17 Thread Michael Marrotte

For credit card, I put this in my validator-rules.xml:


   

And this in my validation.xml



  

  



There's other examples (e.g. required) in the nightly struts-example
validat***.xml files.  Depending on the digits your validating, you might
want to look into defining it as a  regular expression in your
validation.xml file.

--Michael Marrotte

-Original Message-
From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 8:41 AM
To: Struts Users Mailing List
Subject: complex validation with Validator


I know that with struts Validator I can do validation in client and server
with just one specification. May I use complex validation like credit number
calculation? or validation digit account?

Thanks

Emerson


- Original Message -
From: "Chris Seekamp" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 11:39 AM
Subject: Freeze config after plugins init runs?


> The configuration is frozen as soon as the struts-config.xml is
> processed.  Since I think plugins are intended to allow you to extend
> Struts, I was wondering if it wouldn't make sense to wait to freeze the
> configuration until after the plugins initialization step had run.  This
> would allow the plugins, during initialization, to add to the
> configuration.  This way, without having to modify the Struts DTD, you
> could have a plugin use some separate configuration information in a
> separate configuration file and update the Struts configuration.
>
> It seems reasonable to me, but I may well be missing something, so I
> thought I would ask.  Right now I am having to keep a separate pool of
> my own ActionMappings and look them up myself to handle this.
>
> Thanks.
>
> Chris Seekamp
>
>
>
> --
> 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: REg Select(Repost)

2002-05-17 Thread Mannem, Taati


Dave.
Thanks a lor!. If I set the value of form2 actionclass1 I am not
able to retrieve the value in form2.jsp
and it does not work. Can you send me some code example.

Cheers,
Taati
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 2:42 PM
> To:   Struts Users Mailing List
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> Setting the value of the type variable in the underlying form bean should
> work.
> Does for me.
> 
> cheers,
> 
> Dave
> 
> 
> 
> 
> 
> "Mannem, Taati" <[EMAIL PROTECTED]> on 05/16/2002
> 04:51:42 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   Struts Users Mailing List
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: REg Select(Repost)
> 
> 
> 
> Sorry Guys,
>  I missed some points.. The actual scenario is like this
> There is a form which has to be displayed with the options ..(value and
> the
> label) Now the databases sends me tthe value.How do i display the value
> chosen.Foexample I render the
>  
>Year
>  labelProperty="label"/>
>  
> 
> select list box using this tag and as explained by MArk ad jim.. after
> this
> supposing I have to show the cosen value as 2003 how do I do that. I tried
> by setting the type by set type but but is not working
> Here typelist is a collection which dislays the year which is again an
> arraylist sent to me by the database.It alsos ends me the option value.How
> do i set it so that it is shown correctly in the page.
> I am lost!
> 
> Regards,
> Taati
> > -Original Message-
> > From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, May 16, 2002 4:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: REg Select
> >
> > Guys,
> >I know this has bee asked but I amnot able to figure it out
> > This is the scenario I have
> > A form submit and it opens a form which has a list box with soime data
> > and when I choose the data and submit the form the previous form is
> opened
> > .. when this form is submiited again I need to se the chosen option but
> I
> > amnot able to se..
> > I sued collect and used the tag in this way
> >
> >
> > 
> >   Year
> >> labelProperty="label"/>
> > 
> >
> > How do i make sure that the data chosen in the form comes to this form..
> > and
> > the correctopton is chosen..
> > Regards,
> > Taati
> >
> >
> > --
> > 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: How do you recommend doing this with Struts?

2002-05-17 Thread Ted Husted

I'd consider adding an error property to the bean that corresponded to
each item. 

In the validate() method, you could then set the error property for
whichever item was at fault (if any), using the same key you would use
for ActionError.

On the JSP side, you can use the message tag to translate the text. 

ActionError does the same thing in bulk, but you can use the same
technique on your own. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



Michael Marrotte wrote:
> 
> The ActionErrors work great for static pages.  But, the rows in my example
> are dynamic.  How do I name them in say an  tag.  Or, better
> yet is there a straightforward or best-practice way to handle this with
> Struts?
> 
> Thanks,
> 
> Michael Marrotte
> 
> -Original Message-
> From: DHS Struts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How do you recommend doing this with Struts?
> 
> Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
> think you'll find that you can position error messages next to the user
> value that is incorrect.
> 
> mark n.
> 
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: How do you recommend doing this with Struts?
> >Date: Thu, 16 May 2002 17:29:22 -0400
> >
> >Say the following form (FORM A) -- maybe representative of a shopping
> >cart -- is generated dynamically:
> >
> >FORM A:
> >-
> >| item a | qty __  |
> >-
> >| item b | qty __  |
> >-
> >| ...   |
> >-
> >| item n | qty __  |
> >-
> >
> >And, say the user submits the values "2,M, and 3" for items "a,b and n",
> >respectively.  Assuming "M" is an invalid "qty", the following form (FORM
> >A,
> >again with error messages) gets generated:
> >
> >FORM A:
> >ERROR:  Please fix errors marked, below.
> >-
> >| item a | qty  2  |
> >-
> >| item b | qty M  | ERROR: Invalid qty.
> >-
> >| ...   |
> >-
> >| item n | qty  3  |
> >-
> >
> >How do you recommend doing this with Struts?  What class(es) should be
> >used?
> >How can errors be stored and retrieved dynamically?
> >
> >Thanks in advance,
> >
> >--Michael Marrotte
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.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: This Error

2002-05-17 Thread Chris Cairns

Nice!  It worked- thanks.


At 02:23 PM 5/17/2002 -0400, you wrote:



>Am I correct in assuming this is a compiler error from your IDE? Or is it
>from Ant?
>
>Whichever - it looks as if the "classes" directory is not on the CLASSPATH
>for the compiler generatng the error. I'd check this first - sometimes when
>you're dealing with multiple applications with different classpaths it gets
>weird (e.g., your IDE,  Ant  and your servlet container).
>
>
>
>
>
>
>Chris Cairns <[EMAIL PROTECTED]> on 05/17/2002 02:30:46 PM
>
>Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
>To:   [EMAIL PROTECTED]
>cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
>Subject:  This Error
>
>
>Could someone kindly explain this error:
>
>logonform.java:5: package com.jspinsider.struts does not exist
>import com.jspinsider.struts.*;
>
>Thing that I don't understand is, I do have this package set under classes
>as com.jspinsider.struts with a bean class inside the struts folder.
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>---
>This e-mail message (including attachments, if any) is intended for the use
>of the individual or entity to which it is addressed and may contain
>information that is privileged, proprietary , confidential and exempt from
>disclosure.  If you are not the intended recipient, you are notified that
>any dissemination, distribution or copying of this communication is
>strictly prohibited.  If you have received this communication in error,
>please notify the sender and erase this e-mail message immediately.
>---
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




RE: REg Select(Repost)

2002-05-17 Thread dhay



Setting the value of the type variable in the underlying form bean should work.
Does for me.

cheers,

Dave





"Mannem, Taati" <[EMAIL PROTECTED]> on 05/16/2002
04:51:42 PM

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

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: REg Select(Repost)



Sorry Guys,
 I missed some points.. The actual scenario is like this
There is a form which has to be displayed with the options ..(value and the
label) Now the databases sends me tthe value.How do i display the value
chosen.Foexample I render the
 
   Year
   
 

select list box using this tag and as explained by MArk ad jim.. after this
supposing I have to show the cosen value as 2003 how do I do that. I tried
by setting the type by set type but but is not working
Here typelist is a collection which dislays the year which is again an
arraylist sent to me by the database.It alsos ends me the option value.How
do i set it so that it is shown correctly in the page.
I am lost!

Regards,
Taati
> -Original Message-
> From:   Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> Sent:   Thursday, May 16, 2002 4:09 PM
> To: [EMAIL PROTECTED]
> Subject: REg Select
>
> Guys,
>I know this has bee asked but I amnot able to figure it out
> This is the scenario I have
> A form submit and it opens a form which has a list box with soime data
> and when I choose the data and submit the form the previous form is opened
> .. when this form is submiited again I need to se the chosen option but I
> amnot able to se..
> I sued collect and used the tag in this way
>
>
> 
>   Year
>labelProperty="label"/>
> 
>
> How do i make sure that the data chosen in the form comes to this form..
> and
> the correctopton is chosen..
> Regards,
> Taati
>
>
> --
> 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: This Error

2002-05-17 Thread Kevin . Bedell




Am I correct in assuming this is a compiler error from your IDE? Or is it
from Ant?

Whichever - it looks as if the "classes" directory is not on the CLASSPATH
for the compiler generatng the error. I'd check this first - sometimes when
you're dealing with multiple applications with different classpaths it gets
weird (e.g., your IDE,  Ant  and your servlet container).






Chris Cairns <[EMAIL PROTECTED]> on 05/17/2002 02:30:46 PM

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

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  This Error


Could someone kindly explain this error:

logonform.java:5: package com.jspinsider.struts does not exist
import com.jspinsider.struts.*;

Thing that I don't understand is, I do have this package set under classes
as com.jspinsider.struts with a bean class inside the struts folder.


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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




RE: How do you recommend doing this with Struts?

2002-05-17 Thread Michael Marrotte

The ActionErrors work great for static pages.  But, the rows in my example
are dynamic.  How do I name them in say an  tag.  Or, better
yet is there a straightforward or best-practice way to handle this with
Struts?

Thanks,

Michael Marrotte

-Original Message-
From: DHS Struts [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: How do you recommend doing this with Struts?


Read the JavaDocs on ActionError, ActionErrors, and the html:error tag. I
think you'll find that you can position error messages next to the user
value that is incorrect.

mark n.


>From: "Michael Marrotte" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: How do you recommend doing this with Struts?
>Date: Thu, 16 May 2002 17:29:22 -0400
>
>Say the following form (FORM A) -- maybe representative of a shopping
>cart -- is generated dynamically:
>
>FORM A:
>-
>| item a | qty __  |
>-
>| item b | qty __  |
>-
>| ...   |
>-
>| item n | qty __  |
>-
>
>And, say the user submits the values "2,M, and 3" for items "a,b and n",
>respectively.  Assuming "M" is an invalid "qty", the following form (FORM
>A,
>again with error messages) gets generated:
>
>FORM A:
>ERROR:  Please fix errors marked, below.
>-
>| item a | qty  2  |
>-
>| item b | qty M  | ERROR: Invalid qty.
>-
>| ...   |
>-
>| item n | qty  3  |
>-
>
>How do you recommend doing this with Struts?  What class(es) should be
>used?
>How can errors be stored and retrieved dynamically?
>
>Thanks in advance,
>
>--Michael Marrotte


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Flash-Struts Developer Test

2002-05-17 Thread Andrew Hill

Ahhh
Fridays
I remember those. Back when I was a boy (about 1.5 yrs ago) we could look
forward to heading off to the pub at 4:30 :-)
Nowdays I simply cant get week.jar to build.
Ive got days named Friday, but they dont seem to implement the
getWeekendTomorrow() and buggerOffEarly() methods as required by the IFriday
interface.
:-(
Last time I had a weekend was two weeks ago, and Ive done 173 hours[1] since
then.
Funnily enough that was about the same time I started implementing something
using struts.
Hmm. If my brain wasn't so bogged down garbage collecting right now, I might
pass it that info for further investigation, however its as 2am on a
Saturday morning I simply dont have the processing power.
I should be parsing beer right now - not struts-config.xml :-( 

[1]:Work of which a surprisingly large proportion was 'work' work rather
than 'make jokes on the struts list' work!


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 00:15
To: 'Struts Users Mailing List'
Subject: RE: Flash-Struts Developer Test


Aaron,

I think it's pretty obvious when I am having fun with the list; don't take
me (or youself) so seriously.  After all, it's Friday!



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




This Error

2002-05-17 Thread Chris Cairns

Could someone kindly explain this error:

logonform.java:5: package com.jspinsider.struts does not exist
import com.jspinsider.struts.*;

Thing that I don't understand is, I do have this package set under classes 
as com.jspinsider.struts with a bean class inside the struts folder.


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




Re: Questions regarding Nested Tutorial..

2002-05-17 Thread Jeff_Mychasiw



Thanks Arron:
 I will begin to play with this stuff and I'm sure you will  give us a shout
here when there is more information available.


Jeff




Arron Bates <[EMAIL PROTECTED]> on 05/17/2002 11:59:24 AM

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

To:   Struts Users Mailing List <[EMAIL PROTECTED]>
cc:

Subject:  Re: Questions regarding Nested Tutorial..


Jeff,

Just a little clarifying... any value object in a list, is a nested object.

1) Not yet, but I only made it today :)
2) Personally, I'd like it to be there. It's the one thing stopping
nested objects from being created on the fly rather than held in session
(and that benefits more than nested tag users, eg: yourself). But I'm
one voice in 10 that can say no to its inclusion in the new version...
and that's after it's included in the commons project. Just have to let
the process do it's thing...


Arron.


[EMAIL PROTECTED] wrote:

>
>Thanks so much Arron.
>
> Great reply.
> The page I need this for on is just (what I thought was..) a simple List
of
>value objects. At this time there are no nested objects. But it may change to
>nested object in the future. Regardless of the structure, it still needs to be
>created at request time with the size unknown.  It appears you have set out to
>fix just that.
> I am working a small prototype for a project that is in the early design
>stages( with 1.1beta, hoping that it will go final in the next few month's).
The
>page will also need javascript control for each row, and validation, but one
>thing at a time.  :o).
>
> Few questions:
>  1 - Is there some sample code on your site that demonstrates this new
>feature?
>
>  2 - On the submission to common's, will this be released as part of
>struts 1.1 .   In other word I am hoping for clean way to include this feature
>into the project.
>
>Thanks again.
>
>Jeff.
>


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








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




Re: Javascript submit

2002-05-17 Thread Ted Husted

If you write this tag, don't hesitate to submit it. Seems to me like a
suffix attribute would be useful to many people. 

Since the name property is overloaded as the ActionForm attribute name,
this is not something you can easily do with a scriptlet. An extended
tag seems like the only sane way to go. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Matt Read wrote:
> 
> I did consider your first suggestion but there's no guarantee that there
> won't be other forms on the same page which would put the numbering out.
> 
> Re your 2nd suggestion, what I'm really looking for is a way to do that
> within a struts  tag without rebuilding the struts source to
> add an "indexed" attribute. I think a custom taglib as suggested by Toby
> Steel is probably the easiest way to do it.
> 
> Thanks all,
> Matt.
> 
> -Original Message-
> From: Adam Grohs [mailto:[EMAIL PROTECTED]]
> Sent: 17 May 2002 12:23
> To: Struts Users Mailing List
> Subject: Re: Javascript submit
> 
> Matt, in JavaScript, the forms sit within a collection below the document
> root within the DOM.  You should be able to directly reference your forms
> via index through JavaScript, using document.forms[0].submit(),
> document.forms[1].submit(), etc.  HOWEVER, I would highly suggest switching
> your forms to have different names, as noted in your second version with the
> index included or something else uniquely identifying them, as maintaining
> references to items within the DOM of the browser through index will be a
> real hassle moving forward for page maintenance.  It is a much better
> architectural approach to switch the names of your forms, but the above
> should work.
> 
> Hope this helps,
> Adam S. Grohs
> Senior Front End Technologist
> Scient, Inc.
> [EMAIL PROTECTED]
> 
> - Original Message -
> From: "Matt Read" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 16, 2002 1:54 PM
> Subject: Javascript submit
> 
> > Hi, I've got a problem with submitting forms via javascript. I've got a
> page
> > with multiple forms created using  I want submit these
> forms
> > using a link as opposed to a submit button. However the forms all have the
> > same name so  doesn't
> > work. It would appear that what I need is an "indexed" attribute on the
> > html:form tag.
> >
> > This would mean that instead of rendering:
> >
> > ...
> > ...
> > ...
> >
> > I would get something like:
> >
> > ...
> > ...
> > ...
> >
> > I could then construct the javascript to submit each form from the index,
> > e.g.
> >
> > ...  > document.myForm" + myIndex + ".submit()" %>"/>
> >
> > Can anyone comment on whether this would be the best way to do it? Is
> there
> > another way to easily refer to the correct form in javascript?
> >
> > I would appreciate any help.
> > Thanks,
> > Matt
> >
> >
> > --
> > 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: 




Need some help with generateToken

2002-05-17 Thread Daniel Jaffa

Ok,
 I have searched around and have not found much info on the following
classes
isTokenValid, saveToken, generateToken
I Think that i could use these classes to help prevent some on from hitting
the back button issues.

My question is has anybody used these and if so, could u provided me an
example.
(I saw an answer from Ted, where he explained it a little but i did not see
any example code)


Thank You

daniel Jaffa



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




RE: struts validator

2002-05-17 Thread JM

We would be glad on the struts "users" list.

What's your environment?
What does your log files show?
What other error messages do you see?

JM 



> -Original Message-
> From: John Cheng [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:31 PM
> To: [EMAIL PROTECTED]
> Subject: struts validator
> 
> 
> Dear Sir:
> 
> Did you use the struts-validator.war from v1.1 b1? I put this file under
> C:\jakarta-tomcat-4.0-b6\webapps, then run doNormal.bat. I got error
> messages like
> 
> [ERROR] ActionServlet - Parsing error processing resource path
> /WEB-INF/struts-config.xml.
> 
> Can you help? Thanks.
> 
> Karen
> [EMAIL PROTECTED]
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




i18n and jsp weirdness

2002-05-17 Thread ajTreece

I've got internationalization working on my site via Struts v1.1.nightlybuild, 
but it is doing something that I don't understand.

I'm using tiles so the webapp has some common portals that show up with every 
rendering of the page. A page in my webapp may be rendered via a call directly 
form a jsp like  or it could be rendered from the 
return (mapping.findForward("success")) call from a something.do action servlet.

Here is what is weird... If the language I'm using is Latin based (French, 
Spanish, etc.) everything works fine. The  in the jsp grabs the 
text and displays it as expected. Now, if the language is Japanese (the only 
Asian language I'm using at this time) here is what happens.

Scenario 1... page rendered via 
The text displayed in a common portal via the  is just   
(one ? for each UTF-8 character)

Scenario 2... page rendered via return (mapping.findForward("success"))
The text displayed in the same portal is the actual kanji characters


Am I doing something wrong?

Thanks, ajTreece


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




Friday Trivia

2002-05-17 Thread SUPRIYA MISRA

In
Action.do
use
out.flAsh();


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: Javascript submit

2002-05-17 Thread Matt Read

I did consider your first suggestion but there's no guarantee that there
won't be other forms on the same page which would put the numbering out.

Re your 2nd suggestion, what I'm really looking for is a way to do that
within a struts  tag without rebuilding the struts source to
add an "indexed" attribute. I think a custom taglib as suggested by Toby
Steel is probably the easiest way to do it.

Thanks all,
Matt.

-Original Message-
From: Adam Grohs [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2002 12:23
To: Struts Users Mailing List
Subject: Re: Javascript submit


Matt, in JavaScript, the forms sit within a collection below the document
root within the DOM.  You should be able to directly reference your forms
via index through JavaScript, using document.forms[0].submit(),
document.forms[1].submit(), etc.  HOWEVER, I would highly suggest switching
your forms to have different names, as noted in your second version with the
index included or something else uniquely identifying them, as maintaining
references to items within the DOM of the browser through index will be a
real hassle moving forward for page maintenance.  It is a much better
architectural approach to switch the names of your forms, but the above
should work.

Hope this helps,
Adam S. Grohs
Senior Front End Technologist
Scient, Inc.
[EMAIL PROTECTED]

- Original Message -
From: "Matt Read" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 1:54 PM
Subject: Javascript submit


> Hi, I've got a problem with submitting forms via javascript. I've got a
page
> with multiple forms created using  I want submit these
forms
> using a link as opposed to a submit button. However the forms all have the
> same name so  work. It would appear that what I need is an "indexed" attribute on the
> html:form tag.
>
> This would mean that instead of rendering:
>
> ...
> ...
> ...
>
> I would get something like:
>
> ...
> ...
> ...
>
> I could then construct the javascript to submit each form from the index,
> e.g.
>
> ...  document.myForm" + myIndex + ".submit()" %>"/>
>
> Can anyone comment on whether this would be the best way to do it? Is
there
> another way to easily refer to the correct form in javascript?
>
> I would appreciate any help.
> Thanks,
> Matt
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-17 Thread Ted Husted

Just to be clear, there are actually two distinct objects. 

The ActionFormBean is created by the form-bean element in the Struts
configuration. This is a descriptor that the Struts ActionServlet (or
sometimes html:form tag) uses to create an ActionForm object. 

Just to keep you on your toes, developers sometimes refer to the
ActionForm as a formbean. 

In some cases, this can actually be correct. The same ActionForm class
can be used for in several different ActionFormBean instances. So, by
referring to the formbean, they are referring to the particular
ActionForm object created by a ActionFormBean instance. 

Personally, I recommend minimizing the number of ActionForm classes in
an application. Often one ActionForm that declares whatever properties
you need is sufficient. It can then be given different identities using
multiple form-bean declarations, as people often do with ActionMappings
and Action classes. 

The Struts Validator goes by the form-bean (or attribute) name and will
apply the appropriate validation for each form-bean. If you are not
using the Validator, I recommend using a base ActionForm class that
includes all the properties an application needs and then subclassing
that with different validate() methods. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Delamere wrote:
> 
> Thanks,
> 
> I´m starting to get it now :-).
> 
> I think it´s a good approach although the fact that it´s called a formBean
> is a bit confusing.
> 
> regards Michael
> 
> - Original Message -
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 14, 2002 12:20 AM
> Subject: RE: Getting a list from a session bean and displaying the data in a
> jsp
> 
> > Exactly.
> >
> > -Original Message-
> > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 6:20 PM
> > To: Struts Users Mailing List
> > Subject: Re: Getting a list from a session bean and displaying the data
> > in a jsp
> >
> >
> > Sorry to go on about this but I´m fairly new to struts and therefore I
> don´t
> > understand all of the connections immediately.
> >
> > Basically what you suggested means that I would map a listEntries.jsp to a
> > listEntriesForm.java which would contain a function called getEntries(); ?
> >
> > My formBean would get filled by my *action.java using a setter method,
> i.e.
> > formBean.setEntries();.  Prior to this the *action.java would have got the
> > data out of the session bean.
> >
> > Is this what you are suggesting or am I thinking entirely wrong?
> >
> > regards Michael
> >
> >
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, May 14, 2002 12:05 AM
> > Subject: RE: Getting a list from a session bean and displaying the data in
> a
> > jsp
> >
> >
> > > Not for every EJB, but I have a separate form bean for each JSP in which
> > > data is collected or displayed.  I believe that is the practice
> > recommended
> > > by Craig.
> > >
> > > -Original Message-
> > > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 5:52 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Getting a list from a session bean and displaying the data
> > > in a jsp
> > >
> > >
> > > Just one question to add to the previous one:
> > >
> > > Does this mean that I have to create a form bean for every ejb in order
> to
> > > make it accessible to the jsp?
> > >
> > > regards Michael
> > >
> > >
> > > - Original Message -
> > > From: "Michael Delamere" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Monday, May 13, 2002 11:46 PM
> > > Subject: Re: Getting a list from a session bean and displaying the data
> in
> > a
> > > jsp
> > >
> > >
> > > > Thanks,
> > > >
> > > > I will try it.
> > > >
> > > > regards Michael
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > > Sent: Monday, May 13, 2002 11:02 PM
> > > > Subject: RE: Getting a list from a session bean and displaying the
> data
> > in
> > > a
> > > > jsp
> > > >
> > > >
> > > > > Declare a form bean with session scope associated with your action
> > class
> > > > and
> > > > > forwarded to the JSP in struts-config.  Use your action class to set
> > the
> > > > > bean's properties and then access the lists with  and
> > > individual
> > > > > properties with .
> > > > >
> > > > > Mark
> > > > >
> > > > > -Original Message-
> > > > > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, May 13, 2002 4:01 PM
> > > > > To: 'Struts Users Mailing List' (E-mail)
> > > > > Subject: Getting a list from a session bean and displayin

Re: Questions regarding Nested Tutorial..

2002-05-17 Thread Arron Bates

Jeff,

Just a little clarifying... any value object in a list, is a nested object.

1) Not yet, but I only made it today :)
2) Personally, I'd like it to be there. It's the one thing stopping 
nested objects from being created on the fly rather than held in session 
(and that benefits more than nested tag users, eg: yourself). But I'm 
one voice in 10 that can say no to its inclusion in the new version... 
and that's after it's included in the commons project. Just have to let 
the process do it's thing...


Arron.


[EMAIL PROTECTED] wrote:

>
>Thanks so much Arron.
>
> Great reply.
> The page I need this for on is just (what I thought was..) a simple List of
>value objects. At this time there are no nested objects. But it may change to
>nested object in the future. Regardless of the structure, it still needs to be
>created at request time with the size unknown.  It appears you have set out to
>fix just that.
> I am working a small prototype for a project that is in the early design
>stages( with 1.1beta, hoping that it will go final in the next few month's). The
>page will also need javascript control for each row, and validation, but one
>thing at a time.  :o).
>
> Few questions:
>  1 - Is there some sample code on your site that demonstrates this new
>feature?
>
>  2 - On the submission to common's, will this be released as part of
>struts 1.1 .   In other word I am hoping for clean way to include this feature
>into the project.
>
>Thanks again.
>
>Jeff.
>


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




RE: How to tell if a parameter has been defined in a tiles definition

2002-05-17 Thread Denham, Martin

Thanks Cedric,

It worked a treat.  

Martin

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2002 09:52
To: Struts Users Mailing List
Subject: Re: How to tell if a parameter has been defined in a tiles
definition



  Hello,

  Import Tiles attribute in page scope and then use struts logic taglib ;-)
:

  
  
>Something
  

  Cedric

"Denham, Martin" wrote:

> Hi,
>
> I am using Tiles and Struts.  Is it possible to check to see if a tiles
> parameter has been defined within a jsp.
>
> I want to do something like:
>   
> >Something
>   
> but obviously tiles:existsParameter is not valid.
>
> What is the normal approach to something like this?
>
> Thanks in advance.
>
> Regards
>
> Martin Denham
>
> work:   020 7420 5096
> e-mail: [EMAIL PROTECTED]
> web:   http://www.virgin-energy.co.uk
>
> Virgin Energy IT
> LE Group
> 62-70 Shorts Gardens
> London
> WC2H 9AH
>
> 
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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




Re: Logic:Iterate:sort, what do you think?

2002-05-17 Thread Ted Husted

As a practical matter, I think the best test is always going to be: 

What happens when the suits want this done outside of a Web application?

If sorting is done on the model tier, then it is reusable in a Swing
application, a PDF, a XLST document, a Velocity template, and even an
email. 

In end, whereever you do it is going to require a comparable amount of
work. The question is whether the work is going to be resuable or not. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Marrotte wrote:
> 
> Andrej;
> 
> I've seen this lightly debated, before - that is, whether or not sorting
> should be in the Model or the View.  I haven't been completely persuaded one
> way or the other.  I suppose there's good reason for both arguments.  Does
> sorting create a different "view" of the same data or does sorting "change"
> the data?  There's probably times when looking at it one-way over the other
> is more practical.
> 
> [EMAIL PROTECTED] sent me a link (http://edhill.its.uiowa.edu/display/) to a
>  tag library that implements sorting which seems very practical,
> e.g. it allows users to sort rows by clicking on column headers.
> 
> Does anyone have a strong argument for either "view"?
> 
> --Michael Marrotte
> 
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 2:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Logic:Iterate:sort, what do you think?
> 
> Subject: Re: Logic:Iterate:sort, what do you think?
> From: "Andrej" <[EMAIL PROTECTED]>
>  ===
> Michael,
> 
> this may be a useless note, but if you want to sort a Collection, you can
> use the Comparable interface then the Collection.sort() method. IMHO,
> sorting is a "process" and should theoretically not be handled by the JSP
> (ie the "view").
> 
> In other words, the Collection that you send to the view should already be
> sorted.
> 
> But I know it doesn't answer your question.. :)
> 
> Andrej
> 
> "Michael Marrotte" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > I'm looking for sorting support for the Struts Logic Iterate tag. Struts
> > Layout by Improve claims to support something like this for their
> Collection
> > library.  However, I found their latest release (docs and examples) in
> > disarray.  Also, in the archives I see a message (RE: sorting in
> > logic:iterate) from Tim Sawyer where he claims to have implemented sorting
> > classes to solve this problem -- but, I don't see any code.
> >
> > Ideally, I would like to see something like what Sawyer claims or markup
> > something like the following:
> >
> >  sortby="value1,value2,value3"
> > sortorder="ascending">
> > Next element is 
> > Next element is 
> > Next element is 
> > 
> >
> > Here, "myhashtable" would be sorted in ascending order based on comparable
> > "value1", "value2", "value3" of each "element".
> >
> > If there's nothing within Struts that solves this problem then I would
> like
> > to work on extending the "iterate" tag to handle this.  Please let me know
> > what you think.
> >
> > Thanks,
> >
> > --Michael T. Marrotte
> >
> >
> > --
> > 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: Flash-Struts Developer Test

2002-05-17 Thread Galbreath, Mark

It had nothing to do with anyone's request for help; it was the ensuing
pissing contest, and that was 2 weeks ago.  And this list has a fine
tradition of wry humor.  If you don't like it, filter out my name with your
email app.

According to the meter, I'm "very happy."

"Alan" Bates?  You don't own a motel, do you?

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 12:23 PM

Mark,

That last one was fairly directed. It's not cool when you're doing such 
things on someone's request for help. Everyone likes to feel king, or 
cool, or in control of some group of people, but this isn't the place. 
That's it, Mark just want's to feel loved (you take the gay-o-meter 
yourself?)!  :)

...and there are much funnier lists than struts-user.


Arron.

PS: And you spelt my name wrong (dad spelt it wrong first, but he got to 
set the standard).

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




Re: Questions regarding Nested Tutorial..

2002-05-17 Thread Jeff_Mychasiw



Thanks so much Arron.

 Great reply.
 The page I need this for on is just (what I thought was..) a simple List of
value objects. At this time there are no nested objects. But it may change to
nested object in the future. Regardless of the structure, it still needs to be
created at request time with the size unknown.  It appears you have set out to
fix just that.
 I am working a small prototype for a project that is in the early design
stages( with 1.1beta, hoping that it will go final in the next few month's). The
page will also need javascript control for each row, and validation, but one
thing at a time.  :o).

 Few questions:
  1 - Is there some sample code on your site that demonstrates this new
feature?

  2 - On the submission to common's, will this be released as part of
struts 1.1 .   In other word I am hoping for clean way to include this feature
into the project.

Thanks again.

Jeff.






Arron Bates <[EMAIL PROTECTED]> on 05/17/2002 04:15:09 AM

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

To:   Struts Users Mailing List <[EMAIL PROTECTED]>
cc:

Subject:  Re: Questions regarding Nested Tutorial..


Jeff,

Sorry that I didn't get back to you earlier, but the fact is that I just
didn't have an elegant answer, besides building blank collections based
on what you served. Not all that nice, especially when the first bean is
done so nicely.

The problem is that when the bean is created when the request comes in,
it only knows to make the first bean. When it tries to get at the nested
beans & collections, there's none there, and it certainly doesn't know
how to create them. If you know the structure, you can build the object
tree in the beans constructor, and it works fine. If you don't know the
structure, size of lists etc, this then becomes a real hassle. It's fair
to assume too, that you're not going to know the extent of the data
coming in, or simply it'd be nice to stay flexible, and just have it all
happen when the request comes in.

It's not really a Struts/BeanUtils problem, as they're only populating
what they can get to.

You could make sure that there's an object for every index in your list,
or key to the map, if you had the "getProperty(int)" style indexed
property. But the iterate tag can't use it to do it's business of
showing the collection. To help out, I've made a couple of proxy objects
that take your original collection, and make sure that the collection is
expanded properly, and place-holders are used to store potential
positions. You also provide it the class details of the objects to be
made in the collections. So when an object is requested at an index, a
new one will be made to your specs, and then returned to the BeanUtils
for population.

Works a treat. I've tried it out on my more-than-complex-enough monkey
examples, moving the scope to request, and it all works great. The only
thing you have to do, is where you have your collection in your bean,
wrap it in these collections (there's one for lists, and one for maps),
and pass it the class definition of your clid beans. Also, because the
potential is there to have place-holders in the collection (not map,
list problem only) when it comes in for use by business logic, you have
to call "clean()" on the list collection, to strip out any place-holders
that are not required any longer.

I've just posted to the commons project for submission, so it still has
to go through that process, but I'm putting together some docco whatever
the outcome to go on my site etc etc. If you want a go at them without
the extra docco (they have a fair bit of javadoc to them), get them from
here...

http://www.keyboardmonkey.com/next/ReserveMap.java
http://www.keyboardmonkey.com/next/ReserveList.java

...you'll have to compile them etc.
They're java.util.Map and java.util.List implementations themselves, so
you can maintain everything by still coding to the interfaces.

They should do what you're after. If not, get back to us...


Arron.



[EMAIL PROTECTED] wrote:

>
>Greetings:
> I have completed the  nested tutorials part one and two (on the
>keyboardmonkey site), and actually have no questions about these specifically
>because they went as expected and I enjoyed them.
>I am new to Struts and would like some clarification on some concepts.  I have
>done no work with the Struts indexed tags at this time because it appears that
>the NEXT tags will do all of that and more.
>
>I hope I am just missing a simple point.
>
>1 - I think I am clear on how to represent lists of objects and nested objects
>on the page with the tags (it is very easy) but I am not clear on how to
>re-build the same object structure when the same page is submitted.
>
>2 - When I completed the tutorial, I began to alter it in a way to better
>represent a format that we will be using on an upcoming project:
>- I added created a LoadAction and a Save Action.
>- I set the form bean from session to request.
>- I remove

Re: Flash-Struts Developer Test

2002-05-17 Thread Arron Bates

Mark,

That last one was fairly directed. It's not cool when you're doing such 
things on someone's request for help. Everyone likes to feel king, or 
cool, or in control of some group of people, but this isn't the place. 
That's it, Mark just want's to feel loved (you take the gay-o-meter 
yourself?)!  :)

...and there are much funnier lists than struts-user.


Arron.

PS: And you spelt my name wrong (dad spelt it wrong first, but he got to 
set the standard).

Galbreath, Mark wrote:

>Aaron,
>
>I think it's pretty obvious when I am having fun with the list; don't take
>me (or youself) so seriously.  After all, it's Friday!
>
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 17, 2002 11:53 AM
>
>Mark,
>
>I'm all for going against the flow...
>
>"you can't fight city hall, but you can crap on the steps and run 
>like buggery"
>
>...know it, live by it. But I think you should pull your head in 
>a little.
>
>As much as you don't agree with Flash, it does have the potential to 
>turn the market on its head (if you don't think so, go take a good look 
>at the abilities in Flash fx).
>
>That aside, a technology choice of any developer shouldn't bring 
>deriding comments from the peanut gallery. It's more fantastic to think 
>that Struts is a powerful enough platform to make the experience all the 
>better for developer or user, Flash or otherwise.
>
>
>Arron.
>
>
>
>Galbreath, Mark wrote:
>
>>http://www.channel4.com/life/microsites/G/gayometer/index.html
>>
>>--
>>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: Propertie files in a war file

2002-05-17 Thread Graham Lounder

Just to make sure I'm getting this.  The web.xml will hold all the default
values for an application in the  and  tags.  These
default values can be modified by the container during deployment (in tomcat
this would be the server.xml) so the war file does not have to be touched?.

Sorry If I'm just repeating what others have said, I just went through
deploying my first war file under a time limit and found that after the file
was uncompressed, I had to go in manually and start making changes in all my
config files.  If what was said is correct, I'll be changing all my
properties to JNDI resources.

Graham

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 1:00 PM
Subject: Re: Propertie files in a war file


>
>
> On Fri, 17 May 2002, Nicolas De Loof wrote:
>
> > Date: Fri, 17 May 2002 16:12:47 +0200
> > From: Nicolas De Loof <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Propertie files in a war file
> >
> > Hello,
> >
> > I will have to deploy a webapp (on WAS4) using a war file, but I'm not
sure
> > on how to let my client set some configuration datas that are placed in
> > propertie files (in WEB-INF/classes), or update the
> > ApplicationResource.propertie to change application texts.
> >
> > I would like it to be simple for the client (not have to unjar the war,
> > change datas and re-war the files).
> >
> > Do you have any idea ?
> >
>
> Besides the approaches that Kevin suggests, you could try the standard
> J2EE approach -- environment entries and resource references in the JNDI
> namespace provided by the container.
>
> In the particular case of configuration information, a typical approach is
> to put an  in your web.xml file with a default value:
>
> 
> 
> Is debugging mode enabled?
> 
> 
> debugMode
> 
> 
> false
> 
> 
>
> which you can read from within your application like this:
>
> InitialContext context = new InitialContext();
> Boolean debugEntry = (Boolean)
>   context.lookup("java:comp/env/debugMode");
> boolean debugMode = debugEntry.booleanValue();
>
> The important issue, and the reason for doing all of this, is that your
> container will (or at least should) provide mechanisms to customize the
> values of environment entries at deployment time, without having to modify
> the WAR file yourself.  For example, in Tomcat 4 you can do this in
> server.xml files.
>
> The same basic principles apply to resource references like connection
> pools -- this makes it very easy, for example, to use the same application
> WAR file in environments where you have a test server and a production
> server that are (naturally enough) connected to databases with different
> URLs, and you don't want to record the connection details inside the WAR.
>
> For Tomcat-specific directions, but a good way to get the general idea of
> what should be possible, check out:
>
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
>
>
> > Nico
> >
>
> Craig McClanahan
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Flash-Struts Developer Test

2002-05-17 Thread Galbreath, Mark

Aaron,

I think it's pretty obvious when I am having fun with the list; don't take
me (or youself) so seriously.  After all, it's Friday!

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 11:53 AM

Mark,

I'm all for going against the flow...

"you can't fight city hall, but you can crap on the steps and run 
like buggery"

...know it, live by it. But I think you should pull your head in 
a little.

As much as you don't agree with Flash, it does have the potential to 
turn the market on its head (if you don't think so, go take a good look 
at the abilities in Flash fx).

That aside, a technology choice of any developer shouldn't bring 
deriding comments from the peanut gallery. It's more fantastic to think 
that Struts is a powerful enough platform to make the experience all the 
better for developer or user, Flash or otherwise.


Arron.



Galbreath, Mark wrote:

>http://www.channel4.com/life/microsites/G/gayometer/index.html
>
>--
>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: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Arron Bates

>
>
>The most common culprit for things like this is sticking a copy of
>servlet.jar in $JAVA_HOME/jre/lib/ext and then forgetting about it.  Any
>such copy found there (or an old copy on your classpath) should be
>removed.
>

Or a rampant copy in {app}/WEB-INF/lib trying to override tomcat's.


Arron.


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




Re: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Craig R. McClanahan



On Sat, 18 May 2002, Arron Bates wrote:

> Date: Sat, 18 May 2002 02:00:11 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: JRUN 4 PROBLEMS WITH STRUTS 1.0
>
> You've migrated on, and trying to run a legacy copy of servlet.jar
> somewhere. I get it at work when a rogue version of the jar gets in there.
>
> Update it (or even try removing it temporarily, as JRun should have it's
> own), and you should be golden.
>

The most common culprit for things like this is sticking a copy of
servlet.jar in $JAVA_HOME/jre/lib/ext and then forgetting about it.  Any
such copy found there (or an old copy on your classpath) should be
removed.

>
> Arron.

Craig


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




Re: validation approaches

2002-05-17 Thread Evan Schnell

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: validation approaches
>From: Vic C <[EMAIL PROTECTED]>
> ===
>For complex validation you override the validate mehtod on the form bean.
>
>  
>
Actually in 1.1b1 you should rarely need to override the validate 
method.  Overriding the validate method buries/scatters business logic 
in source code and discourages reuse of validation rules.  Instead 
consider one of the following:

1) Combine existing rules
2) Write a regular expression
3) Write a custom rule.  (See: 
http://home.earthlink.net/~dwinterfeldt/overview.html#creatingValidators).

>Ex: Check to see if the clients new purchase order excedes therir unpaid 
>invoices and minus their credt line.
>
>  
>
In your circumstance I would do one of the following:

a) Validate it on the business services layer.  This rule seems core to 
the business as opposed to the application.  Perhaps it should be a 
check defined in a session bean (or manager class) that throws an 
business exception.  That way all applications interacting with your 
business services layer will be required to acknowledge this requirement.

b) write a custom rule with the following signature:

validation-rules.xml:


validation.xml:

  

   
The code for the rule should be able to access the "user" and therefore 
can determine the values for "unpaid invoices" and "credit line"

Regards, Evan.

-- 
Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
2 Meridian Crossings, Richfield, MN 55423
Voice: 612.243.2460 -- Fax: 612.243.2468 -- Mobile: 612.232.5972





smime.p7s
Description: S/MIME Cryptographic Signature


Re: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Arron Bates

You've migrated on, and trying to run a legacy copy of servlet.jar 
somewhere. I get it at work when a rogue version of the jar gets in there.

Update it (or even try removing it temporarily, as JRun should have it's 
own), and you should be golden.


Arron.


Charlesworth, Chico wrote:

> 
>
>I've downloaded the new version of JRUN version 4 and I get the following
>error(s) when rendering a simple JSP with some struts tags in it:
>
> 
>
>72. } while(_tag1.doAfterBody() ==
>javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
>
><->
>
>*** Error: No method named "doAfterBody" was found in type
>"org/apache/struts/taglib/bean/WriteTag".
>
> 
>
> 
>
>72. } while(_tag1.doAfterBody() ==
>javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
>
><-->
>
>*** Error: No field named "EVAL_BODY_AGAIN" was found in type
>javax/servlet/jsp/tagext/BodyTag".
>
> 
>
>I don't get this problem with Jrun 3.1, so does anyone got any ideas, or has
>anyone had similar/other problems migrating to Jrun 4 with struts???
>
> 
>
>Cheers,
>
>Chico.
>
>



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




Re: Propertie files in a war file

2002-05-17 Thread Craig R. McClanahan



On Fri, 17 May 2002, Nicolas De Loof wrote:

> Date: Fri, 17 May 2002 16:12:47 +0200
> From: Nicolas De Loof <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Propertie files in a war file
>
> Hello,
>
> I will have to deploy a webapp (on WAS4) using a war file, but I'm not sure
> on how to let my client set some configuration datas that are placed in
> propertie files (in WEB-INF/classes), or update the
> ApplicationResource.propertie to change application texts.
>
> I would like it to be simple for the client (not have to unjar the war,
> change datas and re-war the files).
>
> Do you have any idea ?
>

Besides the approaches that Kevin suggests, you could try the standard
J2EE approach -- environment entries and resource references in the JNDI
namespace provided by the container.

In the particular case of configuration information, a typical approach is
to put an  in your web.xml file with a default value:



Is debugging mode enabled?


debugMode


false



which you can read from within your application like this:

InitialContext context = new InitialContext();
Boolean debugEntry = (Boolean)
  context.lookup("java:comp/env/debugMode");
boolean debugMode = debugEntry.booleanValue();

The important issue, and the reason for doing all of this, is that your
container will (or at least should) provide mechanisms to customize the
values of environment entries at deployment time, without having to modify
the WAR file yourself.  For example, in Tomcat 4 you can do this in
server.xml files.

The same basic principles apply to resource references like connection
pools -- this makes it very easy, for example, to use the same application
WAR file in environments where you have a test server and a production
server that are (naturally enough) connected to databases with different
URLs, and you don't want to record the connection details inside the WAR.

For Tomcat-specific directions, but a good way to get the general idea of
what should be possible, check out:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html


> Nico
>

Craig McClanahan


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




Re: Flash-Struts Developer Test

2002-05-17 Thread Arron Bates

Mark,

I'm all for going against the flow...

"you can't fight city hall, but you can crap on the steps and run 
like buggery"

...know it, live by it. But I think you should pull your head in 
a little.

As much as you don't agree with Flash, it does have the potential to 
turn the market on its head (if you don't think so, go take a good look 
at the abilities in Flash fx).

That aside, a technology choice of any developer shouldn't bring 
deriding comments from the peanut gallery. It's more fantastic to think 
that Struts is a powerful enough platform to make the experience all the 
better for developer or user, Flash or otherwise.


Arron.



Galbreath, Mark wrote:

>http://www.channel4.com/life/microsites/G/gayometer/index.html
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



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




RE: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Charlesworth, Chico


No stray "}" in my jsp, and I don't think that would be the likely cause of
this error??

chico

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: 17 May 2002 16:33
To: Struts Users Mailing List
Subject: RE: JRUN 4 PROBLEMS WITH STRUTS 1.0

Check for stray "}" in your jsp.

JM 

> -Original Message-
> From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 11:22 AM
> To: 'Struts Users Mailing List'
> Subject: JRUN 4 PROBLEMS WITH STRUTS 1.0
> 
> 
>  
> 
> I've downloaded the new version of JRUN version 4 and I get the following
> error(s) when rendering a simple JSP with some struts tags in it:
> 
>  
> 
> 72. } while(_tag1.doAfterBody() ==
> javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
> 
> <->
> 
> *** Error: No method named "doAfterBody" was found in type
> "org/apache/struts/taglib/bean/WriteTag".
> 
>  
> 
>  
> 
> 72. } while(_tag1.doAfterBody() ==
> javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
> 
> <-->
> 
> *** Error: No field named "EVAL_BODY_AGAIN" was found in type
> javax/servlet/jsp/tagext/BodyTag".
> 
>  
> 
> I don't get this problem with Jrun 3.1, so does anyone got any 
> ideas, or has
> anyone had similar/other problems migrating to Jrun 4 with struts???
> 
>  
> 
> Cheers,
> 
> Chico.
> 
> 
> -- 
> The content of this e-mail is confidential, may contain 
> privileged material
> and is intended solely for the recipient(s) named above. If you 
> receive this
> in error, please notify Software AG immediately and delete this e-mail.
> 
> Software AG (UK) Limited
> Registered in England & Wales 1310740
> Registered Office: Hudson House, Hudson Way,
> Pride Park, Derby DE24 8HS
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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




RE: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread James Mitchell

Check for stray "}" in your jsp.

JM 

> -Original Message-
> From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 11:22 AM
> To: 'Struts Users Mailing List'
> Subject: JRUN 4 PROBLEMS WITH STRUTS 1.0
> 
> 
>  
> 
> I've downloaded the new version of JRUN version 4 and I get the following
> error(s) when rendering a simple JSP with some struts tags in it:
> 
>  
> 
> 72. } while(_tag1.doAfterBody() ==
> javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
> 
> <->
> 
> *** Error: No method named "doAfterBody" was found in type
> "org/apache/struts/taglib/bean/WriteTag".
> 
>  
> 
>  
> 
> 72. } while(_tag1.doAfterBody() ==
> javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
> 
> <-->
> 
> *** Error: No field named "EVAL_BODY_AGAIN" was found in type
> javax/servlet/jsp/tagext/BodyTag".
> 
>  
> 
> I don't get this problem with Jrun 3.1, so does anyone got any 
> ideas, or has
> anyone had similar/other problems migrating to Jrun 4 with struts???
> 
>  
> 
> Cheers,
> 
> Chico.
> 
> 
> -- 
> The content of this e-mail is confidential, may contain 
> privileged material
> and is intended solely for the recipient(s) named above. If you 
> receive this
> in error, please notify Software AG immediately and delete this e-mail.
> 
> Software AG (UK) Limited
> Registered in England & Wales 1310740
> Registered Office: Hudson House, Hudson Way,
> Pride Park, Derby DE24 8HS
> 

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




JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Charlesworth, Chico

 

I've downloaded the new version of JRUN version 4 and I get the following
error(s) when rendering a simple JSP with some struts tags in it:

 

72. } while(_tag1.doAfterBody() ==
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);

<->

*** Error: No method named "doAfterBody" was found in type
"org/apache/struts/taglib/bean/WriteTag".

 

 

72. } while(_tag1.doAfterBody() ==
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);

<-->

*** Error: No field named "EVAL_BODY_AGAIN" was found in type
javax/servlet/jsp/tagext/BodyTag".

 

I don't get this problem with Jrun 3.1, so does anyone got any ideas, or has
anyone had similar/other problems migrating to Jrun 4 with struts???

 

Cheers,

Chico.


-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS



Re: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Nicolas De Loof


>Thanks Nicolas for the quick response. I will try with the fixpack 2.

>Did u get any special struts.jar or used the onle from binary
>distribution?

I used the web-application war files (in struts 1.0.2 bin distrib) and so
the included struts.jar.

Nico



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




Struts Tag Design Question

2002-05-17 Thread Galbreath, Mark

And I simply overlooking a parameter of a particular tag, or is there no way
to test a boolean "isXxxx" method with a Struts tag?  Is the 
the best we have (due to the reliance upon beans)?
 
Mark



Re: Propertie files in a war file

2002-05-17 Thread Kevin . Bedell




Anything in Struts or in the (web application for that matter) would need
to be in the war file.

One alternative may be:

Alternaitive 1: Build-time solution

 1. Create a war file for the application. Also, create a bare-bones
directory structure containing ONLY those files you want them to be able to
change. Call these the Changeable Files.

2. Create an Ant "script" that updates the war file by overwriting the
Changeable FIles in the war file. This Ant task might look like:

 

 

This task essentially changes to the directory at the top of the web app and then 
updates the war file by re-adding all the Changeable FIles. They'll
all be overwritten in the war file.

To do this, the customer needs to have and run Ant. It may be worth putting
together a .zip or .tar file that contains everything they need including
the Ant executable and a "update.cmd" script that runs the Ant script to do
the refreshing.

If you wanted to be really cool, you could gather together all the
parameters they may want to modify into a build.properties file. Then
modify your Ant script to read this file and go through the Changeable
Files executing Ant  tasks to set all the properties they modified
prior to freshening the war file. The customer would then only have to
change a single .properties file.


Alternative 2:  Run Time solution

A more run-time oriented solution may be to create a little struts
"configuration" application that could provide a web-based interface to all
the application properties you want to expose for them to change. they
could go into this application and change whaatever fields they want.

Once the customer made the changes they wanted, the app should then
"freshen" the war file using a similar command to the one the Ant task
above executes. It would be something like:

- change to the directory at the top of the exploded webapp (or exploded
Changeable Files)
- execute " jar uf path/to/myWebApp.war * "


These solutions are really just outlines - you'll have to work a few details out, but 
the approaches seem valid.


More info on updating a jar/war file:  
http://java.sun.com/docs/books/tutorial/jar/basics/update.html

FWIW -
Kevin





"Nicolas De Loof" <[EMAIL PROTECTED]> on 05/17/2002 10:12:47 AM

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

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Propertie files in a war file


Hello,

I will have to deploy a webapp (on WAS4) using a war file, but I'm not sure
on how to let my client set some configuration datas that are placed in
propertie files (in WEB-INF/classes), or update the
ApplicationResource.propertie to change application texts.

I would like it to be simple for the client (not have to unjar the war,
change datas and re-war the files).

Do you have any idea ?

Nico


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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




RE: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Prabhakar, V

Could you please tell me the steps you took to installit on WSAD?

- I took the struts-example.war file and assembled it into another .war file using 
Application Assembly tool.
- Using the admin console I installed it like any other web app.

As I mentioned earlier I did not configure any JDBC resource. Xerces parser is already 
installed outside of WS. Am I suppossed to do anything else?

Thanks,

-V Prabhakar



-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 10:47 AM
To: Struts Users Mailing List
Subject: RE: Getting Struts Example work with WebSphere 4.0


Guys,
I did not need to do anything but I could run struts example 1.0.2
version in the WSAD4.0 on NT. As Ruta was sayin WSAD comes with its own
websphere server intsance.
Regards,
Taati
> -Original Message-
> From: Ruta Thakkar [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 10:45 AM
> To:   Struts Users Mailing List
> Subject:  RE: Getting Struts Example work with WebSphere 4.0
> 
> 
> Hi,
> 
> I have got Struts working on Websphere Application Studio Developer 4.02
> without any modifications to the struts code.This comes with a wepshere
> server instance.
> 
> The only thing i had to do was to put xerces.jar compliant with jaxp1.1
> in
> web-inf/lib folder of the web project.
> 
> Cheers
> 
> Ruta
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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: 




Flash-Struts Developer Test

2002-05-17 Thread Galbreath, Mark

http://www.channel4.com/life/microsites/G/gayometer/index.html

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




RE: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread DHS Struts

http://www.mail-archive.com/struts-user@jakarta.apache.org/


>From: "Prabhakar, V" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Getting Struts Example work with WebSphere 4.0
>Date: Fri, 17 May 2002 10:10:34 -0400
>
>How do I search the mailing list archive?
>
>Thanks,
>
>-V Prabhakar
>
>-Original Message-
>From: DHS Struts [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 17, 2002 7:31 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Getting Struts Example work with WebSphere 4.0
>
>
>Once upon a time there was a separate distribution of Struts to address 
>some
>problem with WebSphere, search the archive for WebSphere topics and you'll
>find the thread that talks about this...
>
>HTH
>mark n
>
>
> >From: "Prabhakar, V" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: Getting Struts Example work with WebSphere 4.0
> >Date: Thu, 16 May 2002 19:09:22 -0400
> >
> >I am trying to get the struts example (struts-example.war) work with
> >Websphere. I am getting to the main page (index.jsp). From there I am 
>able
> >to go to the tour page. But I am unable to get to login page. When I try
> >login page, the web server encounters internal error.
> >
> >My config is:
> >
> >Win 2000 server
> >IIS 5.0
> >Websphere 4.0
> >Xceres 1.4.4 (installed separately)
> >
> >
> >I have *not* configured the websphere with any jdbc resources. I assume 
>the
> >sample (example) does not require any database and keeps the thing in an
> >xml file. Am I wrong?
> >
> >Any help would be appreciated. I have attached the stack trace which I 
>got
> >from the websphere log file:
> >
> >[02.05.16 18:56:48:820 EDT] 516e1a24 WebGroup  X Servlet Error (Root 
>+
> >1)
> >[02.05.16 18:56:48:852 EDT] 516e1a24 WebGroup  X SRVE0030E: Root 
>Cause
> >java.lang.IllegalArgumentException: cant remove Attributes from request
> >scope
> > at
> >org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.java:269)
> > at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
> > at logon_jsp_0._jspService(logon_jsp_0.java:389)
> > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
> > at
> >org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
> > at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:532)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> 
>>com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:718)
> > at
> 
>>com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
> > at
> 
>>com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
> > at
> 
>>com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
> > at
> >com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:428)
> > at
> 
>>com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:870)
> > at
> 
>>com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:788)
> > at
> 
>>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:439)
> > at
> 
>>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:239)
> > at
> 
>>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:104)
> > at
> >com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:61)
> > at
> 
>>com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:132)
> > at
> 
>>com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
> > at
> 
>>com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
> > at
> 
>>com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
> > at
> 
>>com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:271)
> > at
> >com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:49)
> > at
> >com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)
> > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
> > at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
> >
> >Thanks,
> >
> >_V Prabhakar
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
>
>
>___

RE: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Mannem, Taati

Guys,
I did not need to do anything but I could run struts example 1.0.2
version in the WSAD4.0 on NT. As Ruta was sayin WSAD comes with its own
websphere server intsance.
Regards,
Taati
> -Original Message-
> From: Ruta Thakkar [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 10:45 AM
> To:   Struts Users Mailing List
> Subject:  RE: Getting Struts Example work with WebSphere 4.0
> 
> 
> Hi,
> 
> I have got Struts working on Websphere Application Studio Developer 4.02
> without any modifications to the struts code.This comes with a wepshere
> server instance.
> 
> The only thing i had to do was to put xerces.jar compliant with jaxp1.1
> in
> web-inf/lib folder of the web project.
> 
> Cheers
> 
> Ruta
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: How do I unsubscribe.... tried Web site unsubscribe

2002-05-17 Thread Mike Dewhirst

If you look at the bottom of _every_ email, it tells you how to do it there.

> -Original Message-
> From: Wright, Doris [mailto:[EMAIL PROTECTED]]
> Sent: 17 May 2002 15:31
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: How do I unsubscribe tried Web site unsubscribe
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


=**

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: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Ruta Thakkar


Hi,

I have got Struts working on Websphere Application Studio Developer 4.02
without any modifications to the struts code.This comes with a wepshere
server instance.

The only thing i had to do was to put xerces.jar compliant with jaxp1.1  in
web-inf/lib folder of the web project.

Cheers

Ruta












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




RE: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Prabhakar, V

Thanks Nicolas for the quick response. I will try with the fixpack 2.

Did u get any special struts.jar or used the onle from binary distribution?

BTW, has anyone tried/used struts (with the distributed sample) on Win 2000. I guess 
Win2000 and Websphere may be odd combination.

-V Prabhakar

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 10:17 AM
To: Struts Users Mailing List
Subject: Re: Getting Struts Example work with WebSphere 4.0


I've tested struts-example successfully with websphere 4 fixpack 2 (with
no-changed struts 1.0.2 binary distrib) on IBM AIX

Perhaps you would have to upgrade to fixpack 2 (websphere 4.0.2) ?

Nico



Do I need to make change to the struts source and rebuild it to deploy on
WebSphere 4.0? I would do like to touch the struts code as a last
alternative. In the meantime are there any WebSphere config or app source
code modification alternative?

Apache site addresses potential problems for WebSpehere 3.5 but could not
see anything for 4.0. Has anyone tried struts on WebSphere 4.0 without any
modification to struts source code?

Thanks,

-V Prabhakar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 7:27 PM
To: Struts Users Mailing List
Subject: Re: Getting Struts Example work with WebSphere 4.0




  Using the source distrib, open org.apache.struts.taglib.html
   package.FormTag and make the following changes

  Replace the following lines in the doEndTag() method in the FormTag
   class:

   pageContext.removeAttribute(Constants.BEAN_KEY,
  PageContext.REQUEST_SCOPE);
   pageContext.removeAttribute(Constants.FORM_KEY,
  PageContext.REQUEST_SCOPE);

  with the following:

   pageContext.getRequest().removeAttribute(Constants.BEAN_KEY)
   pageContext.getRequest().removeAttribute(Constants.FORM_KEY)





"Prabhakar, V" <[EMAIL PROTECTED]> on 05/16/2002 04:09:22 PM

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

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Getting Struts Example work with WebSphere 4.0


I am trying to get the struts example (struts-example.war) work with
Websphere. I am getting to the main page (index.jsp). From there I am able
to go to the tour page. But I am unable to get to login page. When I try
login page, the web server encounters internal error.

My config is:

Win 2000 server
IIS 5.0
Websphere 4.0
Xceres 1.4.4 (installed separately)


I have *not* configured the websphere with any jdbc resources. I assume the
sample (example) does not require any database and keeps the thing in an
xml file. Am I wrong?

Any help would be appreciated. I have attached the stack trace which I got
from the websphere log file:

[02.05.16 18:56:48:820 EDT] 516e1a24 WebGroup  X Servlet Error (Root +
1)
[02.05.16 18:56:48:852 EDT] 516e1a24 WebGroup  X SRVE0030E: Root Cause
java.lang.IllegalArgumentException: cant remove Attributes from request
scope
 at
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl..j
ava:269)

 at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
 at logon_jsp_0._jspService(logon_jsp_0.java:389)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet..j
ava:286)

 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:532)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:718)

 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.
_service(StrictLifecycleServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:42
8)

 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:870)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:788)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:439)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:239)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:104)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:61)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:132)

 at
com.ibm.servlet.engin

Re: validation approaches

2002-05-17 Thread @Basebeans.com

Subject: Re: validation approaches
From: Vic C <[EMAIL PROTECTED]>
 ===
For complex validation you override the validate mehtod on the form bean.

Ex: Check to see if the clients new purchase order excedes therir unpaid 
invoices and minus their credt line.
So in your validate method you call the DAO that issues a few selects, 
computes and returs an accionerror.add().
This then shows up in the pg error tag.

Vic

James Mitchell wrote:
> I guess that depends on where you draw the line on customization.
> 
> If you can build a tool that handles your needs in a 'generic' fashion.
> Then by all means, help us out and donate it.
> 
> However, if you app requires special validation handling, then customize the
> app to do so.
> 
> 
> JM
> 
> 
>>-Original Message-
>>From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, May 17, 2002 10:15 AM
>>To: Struts Users Mailing List
>>Subject: validation approaches
>>
>>
>>What are u people using to validate form data in client and server without
>>rewriting code?  I know validator does that, although this
>>approach doesn't
>>allows complex validation (as calculated validation digits). It
>>looks like a
>>few people are using validator... (please correct me if I'm wrong)
>>
>>Regards
>>Emerson
>>
>>
>>- Original Message -
>>From: "Evan Schnell" <[EMAIL PROTECTED]>
>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>Sent: Friday, May 17, 2002 10:52 AM
>>Subject: Re: Validator Tag with with Struts 1.1.b1
>>
>>
>>
>>>David Morris wrote:
>>>
>>>
Validators,

Any idea how I can use this with the 1.1 beta or do I need to use
another version? Also, can someone point me to a working example of
validation with a 1.1 version of Struts?


>>>
>>>Validation is poorly documented,  the javadoc is even missing from the
>>>nightlies, but I was able to get it working under 1.1b1 for a demo last
>>>week. I completely ignored the contrib directory because everything is
>>>available in the main distribution and the html taglib.
>>>
>>>1. struts-config.xml needs only the following (make sure the files
>>>exist):
>>>  >>parameter="ApplicationResources"/>
>>>
>>>  
>>>>>value="/WEB-INF/validation-rules.xml"/>
>>>
>>>  
>>>
>>>2. I specified rules in validation.xml consistent with the old examples.
>>>
>>> This doesn't seem to have changed.
>>>
>>>3. Be sure your applicationResources.properties file has a set of
>>>messages beginning with "error."  These can be copied over from examples
>>>
>>>if they are missing.
>>>
>>>4. Set validate to true on your forms.
>>>
>>>5. Make your forms extend:
>>> org.apache.struts.validator.ValidatorActionForm.  Until you get things
>>>working I suggest you comment out any existing validate method in your
>>>form class.
>>>
>>>6. Add the tag   somewhere
>>>near the top.  I put it above a random body tag that was in the html I
>>>was using.
>>>
>>>7. Add the event:  onsubmit="return validateRegisterForm(this);" to your
>>>
>>>html:form tag.
>>>
>>>It is important that all of your form names in the event, the javascript
>>>
>>>tag and struts-config.xml match in order for the javascript validation
>>>to work properly.
>>>
>>>Have fun,
>>>Evan.
>>>
>>>--
>>>Evan Schnell, Technical Lead
>>>nVISIA, Twin Cities  "Digital Architecture and Construction"
>>>2 Meridian Crossings, Richfield, MN 55423
>>>Voice: 612.243.2460 -- Fax: 612.243.2468 -- Mobile: 612.232.5972
>>>
>>>
>>
>>
>>--
>>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 do I unsubscribe.... tried Web site unsubscribe

2002-05-17 Thread Stephen . Thompson

Have a look at the bottom of this message.



-Original Message-
From: Wright, Doris [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2002 15:31
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: How do I unsubscribe tried Web site unsubscribe



  

--
To unsubscribe, e-mail:

For additional commands, e-mail:



---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

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




RE: How do I unsubscribe.... tried Web site unsubscribe

2002-05-17 Thread James Mitchell

Read the bottom of this email

JM 

> -Original Message-
> From: Wright, Doris [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 10:31 AM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: How do I unsubscribe tried Web site unsubscribe
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




How do I unsubscribe.... tried Web site unsubscribe

2002-05-17 Thread Wright, Doris


  

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




RE: radio buttons

2002-05-17 Thread Mike Dewhirst

Hello and thanks for reading!

I have a form that contains a Collection of objects. The 
Objects have these String properties:
 
ownAccess, roleAccess and allAccess.

How can I write this out using the html:radio tags? Can use 
them at all for
this? Each property will need a radio button group, something like:





If I just iterate round the Collection and write these out, 
how can do it in
such a way that will make Struts populate the collection in 
the Form? Or is
this not possible?

Many thanks in advance for any help/advice on this.

(Sorry for the re-post)

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

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: validation approaches

2002-05-17 Thread James Mitchell

I guess that depends on where you draw the line on customization.

If you can build a tool that handles your needs in a 'generic' fashion.
Then by all means, help us out and donate it.

However, if you app requires special validation handling, then customize the
app to do so.


JM

> -Original Message-
> From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 10:15 AM
> To: Struts Users Mailing List
> Subject: validation approaches
>
>
> What are u people using to validate form data in client and server without
> rewriting code?  I know validator does that, although this
> approach doesn't
> allows complex validation (as calculated validation digits). It
> looks like a
> few people are using validator... (please correct me if I'm wrong)
>
> Regards
> Emerson
>
>
> - Original Message -
> From: "Evan Schnell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, May 17, 2002 10:52 AM
> Subject: Re: Validator Tag with with Struts 1.1.b1
>
>
> > David Morris wrote:
> >
> > >Validators,
> > >
> > >Any idea how I can use this with the 1.1 beta or do I need to use
> > >another version? Also, can someone point me to a working example of
> > >validation with a 1.1 version of Struts?
> > >
> > >
> > Validation is poorly documented,  the javadoc is even missing from the
> > nightlies, but I was able to get it working under 1.1b1 for a demo last
> > week. I completely ignored the contrib directory because everything is
> > available in the main distribution and the html taglib.
> >
> > 1. struts-config.xml needs only the following (make sure the files
> > exist):
> >> parameter="ApplicationResources"/>
> >
> >   
> >  > value="/WEB-INF/validation-rules.xml"/>
> > 
> >   
> >
> > 2. I specified rules in validation.xml consistent with the old examples.
> >
> >  This doesn't seem to have changed.
> >
> > 3. Be sure your applicationResources.properties file has a set of
> > messages beginning with "error."  These can be copied over from examples
> >
> > if they are missing.
> >
> > 4. Set validate to true on your forms.
> >
> > 5. Make your forms extend:
> >  org.apache.struts.validator.ValidatorActionForm.  Until you get things
> > working I suggest you comment out any existing validate method in your
> > form class.
> >
> > 6. Add the tag   somewhere
> > near the top.  I put it above a random body tag that was in the html I
> > was using.
> >
> > 7. Add the event:  onsubmit="return validateRegisterForm(this);" to your
> >
> > html:form tag.
> >
> > It is important that all of your form names in the event, the javascript
> >
> > tag and struts-config.xml match in order for the javascript validation
> > to work properly.
> >
> > Have fun,
> > Evan.
> >
> > --
> > Evan Schnell, Technical Lead
> > nVISIA, Twin Cities  "Digital Architecture and Construction"
> > 2 Meridian Crossings, Richfield, MN 55423
> > Voice: 612.243.2460 -- Fax: 612.243.2468 -- Mobile: 612.232.5972
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




  1   2   >