Re: How to access CVS log information

2002-12-12 Thread Steve_Akins

Thanks for that.

Do you use anonymous CVS to connect to the Struts source code repository
and if so how?

We haven't been able to figure it out yet.

We can do this for Jakarta commons but we seem to be having difficulty with
the Struts repository.

Regards,
Steve Akins
Team Leader, Frameworks, J2EE Engineering
Development Centre
Financial Services Australia Technology


( +61 3 8641 2846 2 +61 3 8641 4152 : [EMAIL PROTECTED]


National Australia Bank Limited
4th Floor/ 500 Bourke St
Melbourne, Victoria 3000


|-+>
| |   "David Graham"   |
| ||
| ||
| |   13/12/2002 13:44 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED] 
  |
  |   cc:  
  |
  |   Subject:  Re: How to access CVS log information  
  |
  
>--|




I use eclipse to open up a particular .java file in the resource history
view.  This shows all the changes that were made, by whom, and when.  I'm
not sure how to do it without that tool though.

David






>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How to access CVS log information
>Date: Fri, 13 Dec 2002 13:00:27 +1100
>
>I'm trying to get information from the Struts CVS repository which will
>tell me what changes have been made since the Struts 1.1b2 release.
>
>Does anyone know a way of getting this information ?
>
>I want to go through this to make sure that any of the problems fixed by
>these changes will not affect us in our project implementation.
>
>
>
>Steve Akins
>Team Leader, Frameworks, J2EE Engineering
>Development Centre
>Financial Services Australia Technology
>
>
>( +61 3 8641 2846 2 +61 3 8641 4152 : [EMAIL PROTECTED]
>
>
>National Australia Bank Limited
>4th Floor/ 500 Bourke St
>Melbourne, Victoria 3000
>__
>The information contained in this email communication may be confidential.
>You
>should only read, disclose, re-transmit, copy, distribute, act in reliance
>on or
>commercialise the information if you are authorised to do so. If you are
>not the
>intended recipient of this email communication, please notify us
>immediately by
>email to [EMAIL PROTECTED] or reply by email direct to the sender
>and then destroy any electronic or paper copy of this message.  Any views
>expressed in this email communication are those of the individual sender,
>except
>where the sender specifically states them to be the views of a member of
>the
>National Australia Bank Group of companies.  The National Australia Bank
>Group
>of companies does not represent, warrant or guarantee that the integrity
of
>this
>communication has been maintained nor that the communication is free of
>errors,
>virus or interference.
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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





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




replacement values

2002-12-12 Thread Mohan Radhakrishnan
Hi,
bean:message accepts only five replacement values.

Is there an alternative ? JSTL ?

Mohan

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




RE: Help validator requiredif

2002-12-12 Thread James Turner
> -Original Message-
> From: Frost, Gary [IT] [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, December 13, 2002 1:08 AM
> To: '[EMAIL PROTECTED]'
> Subject: Help validator requiredif
> 
> 
> Ok,
> 
> the requiredif check.   BTW I'd also like to perform a check on
> absoluteSettle to ensure that (if it is required) it is a 
> date, would putting depends="requiredif, date" (with 
> appropriate date related vars in
> place) work?

Yep.

The thing that strikes me about the code below is that you have
field-indexed set to true.  Are both absoluteSettle and settleType
properties of an indexed field called dependents?  Also, is the value
returned for settleType equal to the string "Actual"?  If so, this
should be working.

James

> 
>   
>key="text.tradeentry.date.settleType.label" />
>   
> 
>depends="requiredif" indexedListProperty="dependents">
>key="text.tradeentry.date.absoluteSettle.label"/>
>   
>   field[0]
>   settleType
>   
>   
>   
> field-indexed[0]
>   true
>   
>   
>   field-test[0]
>   EQUAL
>   
>   
>   field-value[0]
>   Actual
>   
>
> 
> 
> Thanks for any help
> 
> Gary
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 



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




Re: Processing multiple records all at once

2002-12-12 Thread Max Cooper
Brad,

Is the RowsForm a session-scoped ActionForm? If it is request-scope, you can
be sure that they are being set on the submit, rather than hanging around in
the session.

The setRows() method was intended to be used in the Action that gets the
Vector of data from the DB (or elsewhere) to copy the data into the arrays,
which would then be copied into RowForm objects when the  tag
calls getRows() and iterates over the Collection of RowForm objects to
display. Or you could skip the bean-array-bean copying, and just hold a
reference (a member variable on RowsForm) so that you can set the row data,
and then if the member variable is already holding a Collection, just return
that from getRows(), instead of copying the data from the arrays to a
collection of new beans. Be sure to null the collection reference when
reset() is called. Something like this:

public class RowsForm extends ActionForm {
   private Collection rows = null;
   public void reset(ActionMapping mapping, HttpServletRequest request) {
rows = null; }
   public void setRows(Collection rows) { this.rows = rows; }
   public Collection getRows() {
  if (rows == null) {
 rows = new ArrayList();
 // copy array data into new RowForm objects, adding each one to the
Collection
  }
  return rows;
   }
}

On submit, Struts will call setRowId() with a String array of values
submitted in the HTTP request. HTTP only supports named fields(like "rowId"
and "rowProperty1") that can have multiple values. For each field name,
Struts creates a String array of the values that were submitted for that
field name, and sets the property on your RowsForm accordingly. HTTP doesn't
support more complicated structures like row objects that each have an Id
and Property1 property, so you won't get a call to setRows(). Ted Husted has
a decription of how this works that is worth a read to understand what is
happening: http://www.husted.com/struts/tips/006.html

The amount of copying has always bothered me, but it seemed to do what I
wanted, so I decided to just live with the excessive copying until I learned
a better way. However, V. Cekvenich's post about indexed properties sounds
like it gets around this problem more elegantly and efficiently, so I'm
going to try to convert one of my pages to this scheme and see how it works.
I'll post a similar example as soon as I work it out. Does anyone know the
URL of the indexed properties FAQ? The link on this page is broken:
http://jakarta.apache.org/struts/userGuide/building_view.html#indexed

Here is something along those lines:
http://www.jguru.com/faq/view.jsp?EID=993534

-Max

- Original Message -
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 10:30 AM
Subject: RE: Processing multiple records all at once


> OK,
>
> This makes perfect sense to me and pretty much has worked, but I don't
> get the changes I make to the form data.
>
> I have the following in my Action class.
>
> RowsForm rForm = (RowsForm)form;
> Vector data = rForm.getRows();
> for(int i=0; i {
> RowBean bean = (RowBean)data.get(i);
> log.debug("ID: " + bean.getId() +
> "  -  PROPERTY: " + bean.getProperty1());
> }
>
> When I make a change to the property1 property on the jsp and click
> Submit, I STILL get the original values for all of the RowBean beans
> that I originally placed in the form.
>
> I tried implementing a setRows function, but it was never called.  I
> guess I don't understand how the updated values are set into the
> variables on submit.
>
>
(SNIP)



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




Validator - Extends

2002-12-12 Thread Frost, Gary [IT]
Is it possible to say that a validator form extends another, i.e. have a
userForm that has 
firstName,  required
lastName,   required
dob,required, date

Then have a employeeForm that extends userForm
employeeID  required, integer
startDate   required, date

etc.

I figured it might be possible to do it for a single extends by using the
page attribute, but I'd like to have essentially an inheritance tree, so
this would be a tad tricky with the page attribute.

Gary


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




Help validator requiredif

2002-12-12 Thread Frost, Gary [IT]
Ok,

I've been struggling with this for a couple of hours now, tried lots of the
resources online and am struggling to understand those too, hoping someone
can give quickly put me on track.

I've got a form, in that form there is a selector called settleType, the
settleType has several valid values, Standard, Relative and Actual.  The
settleType is required, but the absoluteSettle (another field on that form,
a text box) is only required if settleType = 'Actual'.  I put something like
this in my validator.xml and it generates all the other test fine, but not
the requiredif check.   BTW I'd also like to perform a check on
absoluteSettle to ensure that (if it is required) it is a date, would
putting depends="requiredif, date" (with appropriate date related vars in
place) work?








field[0]
settleType



field-indexed[0]
true


field-test[0]
EQUAL


field-value[0]
Actual

 


Thanks for any help

Gary

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




[ANNOUNCE] Shameless Plug: Struts Kick Start now available for shipping at Amazon

2002-12-12 Thread James Turner
Well, I may not have gotten my copies yet from the publisher, but you
can order "Struts Kick Start" now from Amazon for immediate delivery:

http://www.amazon.com/exec/obidos/tg/detail/-/0672324725

Buy one, buy two.  They make great stocking stuffers.  Use them as door
stops.  Learn to use the enclosed CD as a lethal thrown weapon. Fun for
the whole family.

_
James 
ICQ#: 8239923
More ways to contact me: http://wwp.icq.com/8239923
See more about me: http://web.icq.com/whitepages/about_me?Uin=8239923
_



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




Struts 1.0.2 and WebLogic 6.1 SP3/4

2002-12-12 Thread Vinny & Kristin Carpenter
Hi everyone.  I have a bizarre problem with a Struts application and I was
wondering if someone has faced something like this.  I have an application
that is deployed as a ear file - The ear file contains several stateful and
stateless EJB's (2.0) and several war files.  The application is driven
using the main web application that is written using Struts 1.0.2.  When the
user logs in, we create a new stateful EJB for him/her and then store the
handle (javax.ejb.Handle) in the session (HttpSession).
 
So the user hits the login page, creates the EJB and the handle to the EJB
is saved in the session.  On the second hit, WebLogic recognizes the user
based on the session cookie.  So we try to get the remote interface to the
EJB from the handle and the handle is not in the session.  The only thing in
the session is the Loginform.  We have other applications that follow the
same paradigm of HttpSession and EJBHandle and they work fine, except for
this one written in Struts.  In development mode, the application is
deployed on a single standalone server and everything works just fine.  In
production, I have a cluster of 3 WebLogic managed servers with one admin
server.  In production, the servers are clustered and sit behind a set of
web servers that run the WebLogic Apache plug-in.  The war file has a
weblogic.xml file that defines the WebLogic specific items and I am using
in-memory replication with the PersistantStoreType of replicated to
replicate the session across other members of the cluster for failover
purposes.
 
Has anyone seen behavior like this?  I've tried SP3 and SP4 on the WebLogic
side to no avail.  Any thoughts would be greatly appreciated.  Thanks
 
--Vinny
 



Submitting to the same JSP

2002-12-12 Thread Harshal D

In my app when I create a bean in action class and display it in the next JSP 
(forwarded) it works.

But if I try to display in the same JSP (at the bottom of original form) - it does not 
work,

I am using  tags to make sure bean is created (submit has happened) 
before displaying its properties. But that part never gets displayed.

 

Any thoughts ?

 

- Harshal.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Using HTML frames in Struts

2002-12-12 Thread Craig R. McClanahan


On Thu, 12 Dec 2002, David Rothschadl wrote:

> Date: Thu, 12 Dec 2002 09:18:44 -0800 (PST)
> From: David Rothschadl <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Using HTML frames in Struts
>
>
> Hello,
>
> Is there anybody who has used frames within the Struts framework? Our
> frame set-up, which worked fine in our non-Struts HTML pages, is not
> working with Struts. Any working examples would be greatly appreciated!
>
> David Rothschadl
>
>
>

The admin app in Tomcat 4.1.x (based on Struts 1.0.2) uses frames.
Sources are in the jakarta-tomcat-4.0 source distribution, under
"webapps/admin".

Craig



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




Re: DynaActionForm in session scope

2002-12-12 Thread Charles
Hi Tibor,

Thanks for your help. But I'm still a little confused. How do you extend a
DynaActionForm? I thought it was created on the fly.
Also you mentioned about using the set-property tags. Please forgive my
ignorance, but could you provide me with a working example of how this
set-property tags can be used to present the reset() being called?

Thanks again
Charles

- Original Message -
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 1:31 AM
Subject: Re: DynaActionForm in session scope


2002. december 12. 02:29 dátummal Charles ezt írtad:
> Hi all,
>
> Can a DynaValidatorForm be in session scope? Whenever I submit a page that
> uses a DynaValidatorForm, which is in session scope, it resets itself and
> all the previously stored data are lost. I did not call the form reset
> function at all. I thought by adding the scope="session" attribute in the
> tag, the form would save previously entered data in the session. However
it
> seems to behave as though its in request scope.  Is this normal with using
> dynamic form beans?
>
> Tried searching the message list at nagoya but the search function doesn't
> seem to be working.

It is sad, because this was answered multiple times. You might want to
extend
DynActionForm and override the reset(). Maybe depending on an extra property
of the form-property wheter or not do you want to reset it. The extra
property can be set in the struts-config.xml via  tags.

Hth,

Tib

--
To unsubscribe, e-mail:

For additional commands, e-mail:







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




Re: How to access CVS log information

2002-12-12 Thread David Graham
I use eclipse to open up a particular .java file in the resource history 
view.  This shows all the changes that were made, by whom, and when.  I'm 
not sure how to do it without that tool though.

David






From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to access CVS log information
Date: Fri, 13 Dec 2002 13:00:27 +1100

I'm trying to get information from the Struts CVS repository which will
tell me what changes have been made since the Struts 1.1b2 release.

Does anyone know a way of getting this information ?

I want to go through this to make sure that any of the problems fixed by
these changes will not affect us in our project implementation.



Steve Akins
Team Leader, Frameworks, J2EE Engineering
Development Centre
Financial Services Australia Technology


( +61 3 8641 2846 2 +61 3 8641 4152 : [EMAIL PROTECTED]


National Australia Bank Limited
4th Floor/ 500 Bourke St
Melbourne, Victoria 3000
__
The information contained in this email communication may be confidential.
You
should only read, disclose, re-transmit, copy, distribute, act in reliance
on or
commercialise the information if you are authorised to do so. If you are
not the
intended recipient of this email communication, please notify us
immediately by
email to [EMAIL PROTECTED] or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender,
except
where the sender specifically states them to be the views of a member of
the
National Australia Bank Group of companies.  The National Australia Bank
Group
of companies does not represent, warrant or guarantee that the integrity of
this
communication has been maintained nor that the communication is free of
errors,
virus or interference.


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Context Based Action Rollback

2002-12-12 Thread Hookom, Jacob John
I'm looking for best practices for context based rollbacks.  An example would be:
 
department.do?dptId=4559
-->submit on addEmployeeForm.do
-->error occurred, rollback to department.do?dptId=4559
 
Of course the departmentId would be passed in the employee form, so it could be passed 
back in the forward, but, is there a better way to rollback to the page that submitted 
it other than doing mapping.getInputPage() and then appending the param and actual 
departmentId on the forward?
 
This issue seems to come up a lot and I'm wondering if there are any 'best'-solutions?
 
Regards,
Jacob Hookom
 
 



How to access CVS log information

2002-12-12 Thread Steve_Akins
I'm trying to get information from the Struts CVS repository which will
tell me what changes have been made since the Struts 1.1b2 release.

Does anyone know a way of getting this information ?

I want to go through this to make sure that any of the problems fixed by
these changes will not affect us in our project implementation.



Steve Akins
Team Leader, Frameworks, J2EE Engineering
Development Centre
Financial Services Australia Technology


( +61 3 8641 2846 2 +61 3 8641 4152 : [EMAIL PROTECTED]


National Australia Bank Limited
4th Floor/ 500 Bourke St
Melbourne, Victoria 3000
__
The information contained in this email communication may be confidential.
You
should only read, disclose, re-transmit, copy, distribute, act in reliance
on or
commercialise the information if you are authorised to do so. If you are
not the
intended recipient of this email communication, please notify us
immediately by
email to [EMAIL PROTECTED] or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender,
except
where the sender specifically states them to be the views of a member of
the
National Australia Bank Group of companies.  The National Australia Bank
Group
of companies does not represent, warrant or guarantee that the integrity of
this
communication has been maintained nor that the communication is free of
errors,
virus or interference.


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




RE: I18N Issues and Best Practices

2002-12-12 Thread Karr, David
The most important documentation is the JSTL specification.  Struts-EL
is very simple.  It just uses the JSTL EL engine for evaluating
attribute values.  You can get information about the JSTL specification
at .

> -Original Message-
> From: Paul Hodgetts, Agile Logic [mailto:[EMAIL PROTECTED]]
> 
> Thank you Eddie and David!  struts-el looks like just the
> type of thing I was looking for.  I wasn't aware there was
> something available that had the expression evaluation.
> Now if I can only find some documentation on it...  ;-)

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




RE: Struggling with indexed/repeating input fields in forms

2002-12-12 Thread Stephen Ting
Michael,

May be you can try using Nested iterate tag + Nested text tag to
populate the indexed fields. I Have successfully done this. 

If you need further clarification, please email me.

Regards,

Stephen


> -Original Message-
> From: Michael Olszynski [mailto:[EMAIL PROTECTED]] 
> Sent: 13 December 2002 04:21
> To: Struts Users Mailing List
> Subject: Re: Struggling with indexed/repeating input fields in forms
> 
> 
> That didn´t help.But thanks eitherway.
> Does anyone have a clue what could be wrong?
> Any ideas are welcome!
> --
> Fehlerfreie Software wirkt weniger komplex und diskreditiert 
> damit den Entwickler!
> - Original Message -
> From: "V. Cekvenich" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 12, 2002 6:56 PM
> Subject: Re: Struggling with indexed/repeating input fields
> 
> 
> > One (good) way is to have your beans implement collection. Search 
> > messages for "cekvenich", I posted like 3 of my last 10 messages 
> > related to this.
> >
> > .V
> >
> > Michael Olszynski wrote:
> > > I saw a post in the thread 
> > > 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg49234.
> > > html
> > >
> > > I have the same problem and I can´t get it working. 
> Perhaps someone 
> > > can
> help me? It´d be very nice.
> > >
> > > I have the problems that the data in my formbean isn´t updated. I 
> > > mean,
> I get the data form my formbean in the jsp page. But when I 
> edit it and press submit, it is not updated. I get the same 
> data as I got before.
> > >
> > > Do you see perhaps an error? (I reviewed it now 7 hours with the 
> > > sample
> source attached in the upper thread, and I can´t find any 
> error. Thank you)
> > >
> > > It´s kind of urgent, because my thesis should be finished 
> at the end 
> > > of
> december. Thanks
> > >
> > > Take care Michael
> > >
> > >
> **
> **
> **
> > > This is my projekterfassung.jsp:
> > >
> > >  type="de.proway.zerf.web.bean.TimeProofFormBean">
> > > 
> > >  property="vector">
> > > 
> > > 
> > > maxlength="2" indexed="true"/> :  property="fromMinute" size="2" maxlength="2" indexed="true"/> 
> > > maxlength="2" indexed="true"/>   :  property="toMinute" size="2" maxlength="2" indexed="true"/>   
> > > 
> > > 
> > > 
> > >
> **
> **
> **
> > >
> > > My struts-config.xml:
> > >
> > > 
> > >
> > >  > >   "-//Apache Software Foundation//DTD Struts Configuration
> 1.0//EN"
> > >   
> > > "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> > >
> > > 
> > >
> > >
> > >   
> > >
> > >   
> > >   
> > >
> > >  > >name="timeProofForm"
> > >type="de.proway.zerf.web.bean.TimeProofFormBean"/>
> > >
> > > 
> > >
> > >
> > >   
> > >   
> > >
> > >   path="/projekterfassung.jsp"/>
> > >
> > >   
> > >
> > >
> > >   
> > >   
> > >
> > >   > >
> type="de.proway.zerf.web.controller.ShowTimeProofAction"
> > >  name="timeProofForm"
> > >  scope="request"
> > >  input="/projekterfassung.jsp">  
> > >
> > >> >
> type="de.proway.zerf.web.controller.SaveTimeProofAction"
> > >  name="timeProofForm"
> > >  scope="request"
> > >  input="/projekterfassung.jsp">  
> > >
> > >
> > >  > >
> type="org.apache.struts.actions.AddFormBeanAction"/>
> > >  > >type="org.apache.struts.actions.AddForwardAction"/>
> > >  > >type="org.apache.struts.actions.AddMappingAction"/>
> > >  > >type="org.apache.struts.actions.ReloadAction"/>
> > >  > >
> type="org.apache.struts.actions.RemoveFormBeanAction"/>
> > >  > >
> type="org.apache.struts.actions.RemoveForwardAction"/>
> > >  > >
> type="org.apache.struts.actions.RemoveMappingAction"/>
> > >
> > >
> > >   
> > >
> > > 
> > >
> **
> **
> **
> > > SaveTimeProofAction.java
> > >
> > > package de.proway.zerf.web.controller;
> > >
> > > import javax.servlet.http.*;
> > > import org.apache.struts.action.*;
> > > import de.proway.zerf.web.bean.*;
> > > import de.proway.zerf.app.controller.*;
> > > import de.proway.zerf.web.util.*;
> > > import de.proway.zerf.app.bean.*;
> > > import java.util.*;
> > > import java.text.*;
> > >
> > > public final class SaveTimeProofAction extends LoginCheckAction {
> > > public ActionForward perform( ActionMapping mapping,
> > > ActionForm form, HttpServletRequest request,
> > > HttpServletResponse res ) {
> > >
> > > TimeProofFormBean tpf = (TimeProofFormBean) form;
> > >
> > > System.out.println(tpf.toStri

Re: I18N Issues and Best Practices

2002-12-12 Thread Paul Hodgetts, Agile Logic
Thank you Eddie and David!  struts-el looks like just the
type of thing I was looking for.  I wasn't aware there was
something available that had the expression evaluation.
Now if I can only find some documentation on it...  ;-)

Thanks again,
Paul


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




RE: Multiple query params for global forwards

2002-12-12 Thread Viva Chu
Here's the reason why for anyone else with a similar problem:

Since it is an xml file, you need to make sure to use entity references
where appropriate (i.e., changing & to &).

  



  

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:26 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards


Actually this was a typo only in my email when constructing my example.
Uniqueness of the forward name is not my problem.  Here's the example again
written correctly:

  



  


-Original Message-
From: Scott Dickson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards


Forward names whether they are global or local have to be unique.

Just for clarification...

When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.

Hope this helps.

Scott

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
Subject: Multiple query params for global forwards


I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  



--
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: I18N Issues and Best Practices

2002-12-12 Thread Eddie Bush
Karr, David wrote:


Note that rtexprvalues have to be the ENTIRE attribute value,


Man ... I always forget that until I fudge up and have to go back ...


not just a
portion, so your examples like "header-<%=countryCode%>" can't work like
that.  If you still wanted to use rtexprvalues, you'd have to use
something like '<% "header-" + countryCode %>'.


... he means <%= "header=" + countryCode %> :-)


A cleaner solution is probably to use the JSTL and Struts-EL.
Referencing bean values in the EL is much easier than referencing
rtexprvalues.  For some simple examples in your case:

  

  

  

Struts-EL is normally in the Struts nightly build, but the last few days
we've had an unknown problem that is preventing it from going into the
distribution.


I had to change some things in the struts-el build file to get it to 
build, but, even after I got that going, it still didn't place a copy of 
struts-el.jar into ${struts.home}/target/library.  Was that the intent?

--
Eddie Bush





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



RE: I18N Issues and Best Practices

2002-12-12 Thread Karr, David
Note that rtexprvalues have to be the ENTIRE attribute value, not just a
portion, so your examples like "header-<%=countryCode%>" can't work like
that.  If you still wanted to use rtexprvalues, you'd have to use
something like '<% "header-" + countryCode %>'.

A cleaner solution is probably to use the JSTL and Struts-EL.
Referencing bean values in the EL is much easier than referencing
rtexprvalues.  For some simple examples in your case:

   

   

   

Struts-EL is normally in the Struts nightly build, but the last few days
we've had an unknown problem that is preventing it from going into the
distribution.

> -Original Message-
> From: Paul Hodgetts, Agile Logic [mailto:[EMAIL PROTECTED]]
> 
> I've been working on a site that is intended to be fully
> I18N.  It's the first site I've tried where I'm really
> going for a full and clean separation of the layout from
> the content, so please forgive any rookie questions.
> 
> I've looked into getting strings into resource files and
> also the ways that struts and tiles can choose layouts
> based on the country/language as well.  I think I can
> figure these out with a little reading and experimenting.
> 
> One issue that's got me stumped is how to deal with some
> of the finer-grained things on the page.  For example,
> when the path and/or name of a graphic file needs to be
> dynamically constructed, or the page name for a link, or
> the value for a select option.
> 
> I find in these areas that the only solution I can get
> to work is to embed a piece of scriptlet into the struts
> or html tag.  It doesn't seem to be able to parse an
> embedded tag that is stuck in the middle of attribute
> definition of another tag.
> 
> Here's a couple of examples:
> 
> * A div where the class name is built with some dynamic
> data:
>
> 
> * A struts html:form tag where the action URL is built
> using dynamic data:
>
> 
> * A select option where the value comes from a bean:
>">
>
> 
> * An image where the source needs a path dynamically
>generated:
>  mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:


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




Why is token checking only available when control has passed to the Actionclass?

2002-12-12 Thread Steve_Akins
Hi all,

I have a fairly involved problem surrounding token checking for request
reload management.

There are various methods available in the Action class such as saveToken,
resetToken and isTokenValid which are all very useful in helping manage
reload requests.

All these methods operate off a token stored in the session, which these
methods access directly from the request object.  There is no dependence on
the form object for these methods.

A problem arises when, during the normal processing of a request, the form
object is modified in such a way that array elements in the form are
removed.
For example, an array of transactions in the initial request has 10
elements in it, during action processing this array is resized due to some
business rule down to 5 transactions.  The array has only 5 elements in it
now.
The next screen is displayed.
If a reload request is sent now, the number of transactions in the request
is still 10 but the form object only has a transaction array with 5
elements in it.  When the request processor attempts to populate the form
object with the request data an ArrayIndexOutOfBoundsException occurs which
is understandable but very undesirable.

Should the token functions be moved into the org.apache.struts.util
.RequestUtil class so that they are available to the RequestProcessor?

We can then check for reloads prior to the form object being populated in
the processPreprocess method in the RequestProcessor.


Very interested in anyone's thoughts on this.

It looks like we will have to set something up ourselves to do this but if
Struts itself could change to accommodate this it would be very useful.

Regards,

Steve Akins
Team Leader, Frameworks, J2EE Engineering
Development Centre
Financial Services Australia Technology


( +61 3 8641 2846 2 +61 3 8641 4152 : [EMAIL PROTECTED]


National Australia Bank Limited
4th Floor/ 500 Bourke St
Melbourne, Victoria 3000
__
The information contained in this email communication may be confidential.
You
should only read, disclose, re-transmit, copy, distribute, act in reliance
on or
commercialise the information if you are authorised to do so. If you are
not the
intended recipient of this email communication, please notify us
immediately by
email to [EMAIL PROTECTED] or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender,
except
where the sender specifically states them to be the views of a member of
the
National Australia Bank Group of companies.  The National Australia Bank
Group
of companies does not represent, warrant or guarantee that the integrity of
this
communication has been maintained nor that the communication is free of
errors,
virus or interference.


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




Re: I18N Issues and Best Practices

2002-12-12 Thread Eddie Bush
You're using run-time expressions.  They aren't quite as evil as 
scriplets, but I don't blame you for wanting to stay away from them. 
Have you learned of the JSTL yet?  That's certainly one way to go. 
Also, you may want to look into the struts-el contributed taglib.  The 
struts-el taglib gives you struts-specific tags (for places you need 
them) which have the power of the JSTL Expression Language (typically 
called "the EL", which is where struts-el gets it's name).

http://jakarta.apache.org/taglibs -- look for the JSTL or the "standard" 
taglib.

--
Eddie Bush





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



RE: Multiple query params for global forwards

2002-12-12 Thread Viva Chu
Actually this was a typo only in my email when constructing my example.
Uniqueness of the forward name is not my problem.  Here's the example again
written correctly:

  



  


-Original Message-
From: Scott Dickson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards


Forward names whether they are global or local have to be unique.

Just for clarification...

When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.

Hope this helps.

Scott

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
Subject: Multiple query params for global forwards


I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Multiple query params for global forwards

2002-12-12 Thread Scott Dickson
Forward names whether they are global or local have to be unique.

Just for clarification...

When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.

Hope this helps.

Scott

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
Subject: Multiple query params for global forwards


I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  



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





I18N Issues and Best Practices

2002-12-12 Thread Paul Hodgetts, Agile Logic
I've been working on a site that is intended to be fully
I18N.  It's the first site I've tried where I'm really
going for a full and clean separation of the layout from
the content, so please forgive any rookie questions.

I've looked into getting strings into resource files and
also the ways that struts and tiles can choose layouts
based on the country/language as well.  I think I can
figure these out with a little reading and experimenting.

One issue that's got me stumped is how to deal with some
of the finer-grained things on the page.  For example,
when the path and/or name of a graphic file needs to be
dynamically constructed, or the page name for a link, or
the value for a select option.

I find in these areas that the only solution I can get
to work is to embed a piece of scriptlet into the struts
or html tag.  It doesn't seem to be able to parse an
embedded tag that is stuck in the middle of attribute
definition of another tag.

Here's a couple of examples:

* A div where the class name is built with some dynamic
data:
  

* A struts html:form tag where the action URL is built
using dynamic data:
  

* A select option where the value comes from a bean:
  ">
  

* An image where the source needs a path dynamically
  generated:
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




RE: Struggling with indexed/repeating input fields

2002-12-12 Thread Brian DeLuca
 Michael,

Please Let me know if something doesn't make sense. I have included my notes in a text 
file in case the formatting gets nasty.

Enjoy
b-

I too have been struggling with the same type of scenario.  I have 
figured out a solution and reasoned the problem so here goes. Please bear with me. I 
hope others will benefit or invalidate my solution.

Setting up a logic iterate tag for this requires attributes 
1 name --> In our case the name of the form
2 property --> the item that is an ArrayList, [], or map etc...
3 id --> This is going to be the key for the item that is set in a 
 request attribute.

Recommend using type attribute as well.

Our html input tag lets say in this a text tag requires
name --> the bean whose member we want to populate
property --> the member to store the data.
indexed --> Set to TRUE since we are iterating.  This value is going 
   to be the index value of the converted MAP, ArrayList Etc.

Now lets create an example

Item is a class that only contains a string with appropriate get/set
String item;

FooBean has a member 
Item [] fooBar;

Our form FooForm has a member of type FooBean.
FooBean myInputRange;

When one wants to create a JSP that uses FooForm and we need to ask 
the users for values for myInputRange.  To make it work will look like
this in the JSP.


/* This seems ok right?  Why do we need Class Item ? Why not a straight String [] you 
ask.  Good question it is answered in how you need to set up the subsequent Html:text 
tag */

Text tag:
" />

This seems to be extreme.  I agree but it works.  Let's go through why all this 
madness.  

Most doc says that while iterating make name=(Iterate id).  That is fine in bean write 
but not here.  Html:text and other use BaseTagField which will start writing you  
Well that is just not good in the request process the method populatebean has no 
concept of anItem, It is not defined in the form so it won't populate it, in fact you 
will never know it is not a hard error, the processor just keeps going and forgets it. 
 

The next interesting piece here is the fact that you need some wrapper class for 
String []. Why?  Simple when you hear it, There is *NO* getter/Setter for a String.  
Make Sense?  And you need the property attribute in HTML:TEXT tag (TLD Rule -- 
REQUIRED) I tried 
tricking it by using property="" That doesn't help. because the resulting html will 
look like this.
 
NOTICE:  the "." after the index -- Throws off the populate bean process also with no 
hard errors.

Finally Why do we have to use scriptlet for the value?  
This is a pain in the butt, but here goes. 
The HTML:Text tag will figure out what the value is if it is not present, but in our 
case it doesn't work.  Since our name"fooBean.fooBar" is not in the PageContext and if 
value is null it makes a call to RequestUtils.lookup( param's ) which ultimately makes 
a call to findAttribute(name) which returns null and throws a JSP exception.  However 
if you use the id from the logic:iterate it will find the context and work, but alas 
it will not populate your form.  So to work around this we add a value attribute.  
This prevents the lookup unfortnately we cannot see what the true value is 
without using scriplet   Why do we have yo use sciptlet -- Beacause the tag will not 
try an evaluate the value of the value tag so it must be done before hand with 
scriptlet.

Please let me know if there is some flaw in my process because I don't like the 
solution seems messy since I have to create wrapper classes of all String items that I 
normally would put in an array.


regards
Brian DeLuca
[EMAIL PROTECTED]





 --- On Thu 12/12, Michael Olszynski  wrote:From: Michael Olszynski [mailto: 
[EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Thu, 12 Dec 2002 
17:57:42 +0100Subject: Struggling with indexed/repeating input fieldsI saw a post in 
the thread http://www.mail-archive.com/struts-user@jakarta.apache.org/msg49234.htmlI 
have the same problem and I can´t get it working. Perhaps someone can help me? It´d be 
very nice.I have the problems that the data in my formbean isn´t updated. I mean, I 
get the data form my formbean in the jsp page. But when I edit it and press submit, it 
is not updated. I get the same data as I got before.Do you see perhaps an error? (I 
reviewed it now 7 hours with the sample source attached in the upper thread, and I 
can´t find any error. Thank you)It´s kind of urgent, because my thesis should be 
finished at the end of december. ThanksTake care 
Michael**This
 is my projekterfassung.jsp:::
**My
 struts-config.xml:  "-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN"  "http://jakart

Multiple query params for global forwards

2002-12-12 Thread Viva Chu
I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  




Re: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Cedric Dumoulin

 Well, let start on good basis: to use Tiles, you should declare the 
tiles plugin and specify a tiles config file. You don't need to specify 
the TilesRequestProcessor yourself.
 The debug s properties of  TilesRequestProcessor  don't work anymore: 
they are replaced by a common logging mechanism.
 You should see some messages from the TilesPlugin, indicating what 
happens.

 Cedric

Jerome Jacobsen wrote:

OK.  I added the following to my struts-config:


debug="9"/>






And the following to my log4j.properties (in case Tiles uses Commons
Logging):

log4j.category.org.apache.struts.tiles=DEBUG


The logging output shows no Tiles logs.  It is:

Target URL --
http://localhost:8080/Sandbox-FPRSAcceptanceClient-context-root/index.jsp
2002-12-12 16:38:08,073 [HttpRequestHandler-532] DEBUG
com.metalsa.orator.fprs.ui.web.struts.actions.FprsBaseAction  - BEGIN
execute(ActionMapping,...) 2002-12-12 16:38:08,103 [HttpRequestHandler-532]
DEBUG com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  -
BEGIN initialize(ActionMapping, ...) 2002-12-12 16:38:08,103
[HttpRequestHandler-532] INFO
com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  - Unable
to find localeForm in the session. 2002-12-12 16:38:08,203
[HttpRequestHandler-532] WARN
com.metalsa.orator.fprs.ui.web.struts.ModelFacade  - Get Locales from
database. 2002-12-12 16:38:08,223 [HttpRequestHandler-532] INFO
com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  - Added
localeForm to the session. 2002-12-12 16:38:08,223 [HttpRequestHandler-532]
DEBUG com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  -
END initialize(ActionMapping, ...) 2002-12-12 16:38:08,433
[HttpRequestHandler-532] DEBUG
com.metalsa.orator.fprs.ui.web.struts.actions.FprsBaseAction  - END
execute(ActionMapping,...) processActionForward(/getErrorSeverityLocs.do,
false)

I get the exception in the web browser, not in the logs.  It is:

500 Internal Server Error
javax.servlet.jsp.JspException: Exception forwarding for name
displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
	int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
		ForwardTag.java:180
	void _index._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	[/index.jsp]
		index.jsp:8
	void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
		HttpJsp.java:139
	void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequ
est, javax.servlet.http.HttpServletResponse, java.lang.String)
		JspPageTable.java:317
	void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServl
etRequest, javax.servlet.http.HttpServletResponse)
		JspServlet.java:465
	void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletReques
t, javax.servlet.http.HttpServletResponse)
		JspServlet.java:379
	void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
		HttpServlet.java:853
	void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletReque
st, javax.servlet.ServletResponse)
		ServletRequestDispatcher.java:721
	void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.Ser
vletRequest, javax.servlet.http.HttpServletResponse)
		ServletRequestDispatcher.java:306
	boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread,
com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse,
java.io.InputStream, java.io.OutputStream, boolean)
		HttpRequestHandler.java:767
	void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
		HttpRequestHandler.java:259
	void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run()
		HttpRequestHandler.java:106
	void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
		PooledExecutor.java:797
	void java.lang.Thread.run()
		Thread.java:484

Any idea what's up?


 

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 4:23 PM
To: Struts Users Mailing List
Subject: Re: Move to TilesRequestProcessor results in forwarding
exception.



 Hi,

 Normally, you also specify the tiles-config files with the tiles
plugin. I suppose that the tiles factory has failed to initialize, and
so something goes wrong  with the RequestProcessor. Can you check the
tomcat log file for tiles messages (maybe you need to enable the tiles
logging)  ?

 Cedric

Jerome Jacobsen wrote:

   

Interesting.  With the  tag removed I added the foll

Re: TroubleShooting Digester - request help

2002-12-12 Thread Eddie Bush
which XML file contains a  tag?  The only one I know of is 
web.xml :-) GL

--
Eddie Bush





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



RE: [Way-OT] Struts and Swing

2002-12-12 Thread Jerome Jacobsen
If you aren't required to use Struts as the web framework you might consider
one of the open-source frameworks that are Swing-like.

There's Echo:
http://www.nextapp.com/products/echo/

And Millstone:
http://millstone.org/


> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 5:58 PM
> To: Struts Users Mailing List
> Subject: Re: [Way-OT] Struts and Swing
>
>
> http://javaboutique.internet.com/tutorials/Swing/
>
> ... and now there's another one:
>
> http://javaboutique.internet.com/tutorials/Swing2/
>
> hammett wrote:
>
> >Hi   (I could not search the archives, the message "text not
> available for
> >search" appeared)
> >
> >We're developing a system that have a swing and a web interface.
> The swing
> >interface should be used for offline use of the system. We would love to
> >write once and only once a lot of thing, including the front ends. Of
> >course, we know the big differences of one and other, but struts have a
> >declarative way to conduct navigation that we like aggregate to
> our offline
> >system. First, have anyone tried it before? Do you think that it
> is the best
> >bet?
> >
> >Regards
> >
> >hammett
> >
>
> --
> Eddie Bush
>
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





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




Re: [Way-OT] Struts and Swing

2002-12-12 Thread V. Cekvenich
Another Approach is SOAP:
Write a Standard Struts MVC Web application and deploy release 1, web only.
Then add Axis to the mix.
On a SOAP request create the already tested bean (getters and setters).
Best your actions have helpers. Create proxies in SOAP for beans and 
helpers. (model is easier to reuse. Also for this and many other reasons 
 best avoid Dynabeans. Other reasons is Model 1:JSP use Bean; unit 
testing, multi developer CVS hot sport and    much harder to unit test)
Now you can call same via SWING (Or Visual Basic (VB is somtimes easier 
to deploy than SWING) or Excel  etc.).
Call the stubs as needed for the heavy client.

Altenratlively, you can just JAR up your model/bean layer, and use the 
JAR in you Swing app, if you do not have a fire wall to DB.

.V




Eddie Bush wrote:
java botique has an article about this.  Someone posted it in a message 
to this list just days ago.  I just about bet if you do a google search 
for "Struts SWING" you'll find it.

hammett wrote:

Hi   (I could not search the archives, the message "text not available 
for
search" appeared)

We're developing a system that have a swing and a web interface. The 
swing
interface should be used for offline use of the system. We would love to
write once and only once a lot of thing, including the front ends. Of
course, we know the big differences of one and other, but struts have a
declarative way to conduct navigation that we like aggregate to our 
offline
system. First, have anyone tried it before? Do you think that it is 
the best
bet?

Regards

hammett







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




TroubleShooting Digester - request help

2002-12-12 Thread aps olute

  I have several Struts samples downloaded from all over and its getting
frustrating to troubleshoot when getting an error and I can not easily pinpoint
which file it faults on. I have to search each and everyone, and this is not
often easy if deployed on JBOSS-TOMCAT where it does not expand the war file. I
often see a Digester Error in the log files and is there a way for the logger
to Identify which file the Digester is working on? Perhaps a little clue will
eliminate bunch of unjarring war files.
an example of a problem in the log:

593 2002-12-12 13:44:35,234 INFO  [org.jboss.web.localhost.Engine]
WebappLoa
der[/HelloClient]: Deploy class files /WEB-INF/classes to
/u01/jboss3/jboss-3.0.
4_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/HelloClient/WEB-INF/class
es
594 2002-12-12 13:44:35,235 INFO  [org.jboss.web.localhost.Engine]
WebappLoa
der[/HelloClient]: Deploy JAR /WEB-INF/lib/struts.jar to
/u01/jboss3/jboss-3.0.4
_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/HelloClient/WEB-INF/lib/st
ruts.jar
595 2002-12-12 13:44:35,669 ERROR [org.apache.commons.digester.Digester]
Par
se Error at line 13 column -1: Element "taglib" requires additional elements.
596 org.xml.sax.SAXParseException: Element "taglib" requires additional
elem
ents.
597 at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
598 at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.done
(ValidatingParser.java:361)
599 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1519)



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: [Way-OT] Struts and Swing

2002-12-12 Thread Eddie Bush
http://javaboutique.internet.com/tutorials/Swing/

... and now there's another one:

http://javaboutique.internet.com/tutorials/Swing2/

hammett wrote:


Hi   (I could not search the archives, the message "text not available for
search" appeared)

We're developing a system that have a swing and a web interface. The swing
interface should be used for offline use of the system. We would love to
write once and only once a lot of thing, including the front ends. Of
course, we know the big differences of one and other, but struts have a
declarative way to conduct navigation that we like aggregate to our offline
system. First, have anyone tried it before? Do you think that it is the best
bet?

Regards

hammett



--
Eddie Bush





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




Re: [Way-OT] Struts and Swing

2002-12-12 Thread Eddie Bush
java botique has an article about this.  Someone posted it in a message 
to this list just days ago.  I just about bet if you do a google search 
for "Struts SWING" you'll find it.

hammett wrote:

Hi   (I could not search the archives, the message "text not available for
search" appeared)

We're developing a system that have a swing and a web interface. The swing
interface should be used for offline use of the system. We would love to
write once and only once a lot of thing, including the front ends. Of
course, we know the big differences of one and other, but struts have a
declarative way to conduct navigation that we like aggregate to our offline
system. First, have anyone tried it before? Do you think that it is the best
bet?

Regards

hammett



--
Eddie Bush





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




RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
OK.  I added the following to my struts-config:



 
 



And the following to my log4j.properties (in case Tiles uses Commons
Logging):

log4j.category.org.apache.struts.tiles=DEBUG


The logging output shows no Tiles logs.  It is:

Target URL --
http://localhost:8080/Sandbox-FPRSAcceptanceClient-context-root/index.jsp
2002-12-12 16:38:08,073 [HttpRequestHandler-532] DEBUG
com.metalsa.orator.fprs.ui.web.struts.actions.FprsBaseAction  - BEGIN
execute(ActionMapping,...) 2002-12-12 16:38:08,103 [HttpRequestHandler-532]
DEBUG com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  -
BEGIN initialize(ActionMapping, ...) 2002-12-12 16:38:08,103
[HttpRequestHandler-532] INFO
com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  - Unable
to find localeForm in the session. 2002-12-12 16:38:08,203
[HttpRequestHandler-532] WARN
com.metalsa.orator.fprs.ui.web.struts.ModelFacade  - Get Locales from
database. 2002-12-12 16:38:08,223 [HttpRequestHandler-532] INFO
com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  - Added
localeForm to the session. 2002-12-12 16:38:08,223 [HttpRequestHandler-532]
DEBUG com.metalsa.orator.fprs.ui.web.struts.actions.InitializingAction  -
END initialize(ActionMapping, ...) 2002-12-12 16:38:08,433
[HttpRequestHandler-532] DEBUG
com.metalsa.orator.fprs.ui.web.struts.actions.FprsBaseAction  - END
execute(ActionMapping,...) processActionForward(/getErrorSeverityLocs.do,
false)

I get the exception in the web browser, not in the logs.  It is:

500 Internal Server Error
javax.servlet.jsp.JspException: Exception forwarding for name
displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
ForwardTag.java:180
void _index._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
[/index.jsp]
index.jsp:8
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
HttpJsp.java:139
void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequ
est, javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:317
void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServl
etRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:465
void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletReques
t, javax.servlet.http.HttpServletResponse)
JspServlet.java:379
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
HttpServlet.java:853
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletReque
st, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:721
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.Ser
vletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:306
boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread,
com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse,
java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:767
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:259
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run()
HttpRequestHandler.java:106
void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
PooledExecutor.java:797
void java.lang.Thread.run()
Thread.java:484

Any idea what's up?


> -Original Message-
> From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 4:23 PM
> To: Struts Users Mailing List
> Subject: Re: Move to TilesRequestProcessor results in forwarding
> exception.
>
>
>
>   Hi,
>
>   Normally, you also specify the tiles-config files with the tiles
> plugin. I suppose that the tiles factory has failed to initialize, and
> so something goes wrong  with the RequestProcessor. Can you check the
> tomcat log file for tiles messages (maybe you need to enable the tiles
> logging)  ?
>
>   Cedric
>
> Jerome Jacobsen wrote:
>
> >Interesting.  With the  tag removed I added the following:
> > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
> >
> >Now it

[Way-OT] Struts and Swing

2002-12-12 Thread hammett
Hi   (I could not search the archives, the message "text not available for
search" appeared)

We're developing a system that have a swing and a web interface. The swing
interface should be used for offline use of the system. We would love to
write once and only once a lot of thing, including the front ends. Of
course, we know the big differences of one and other, but struts have a
declarative way to conduct navigation that we like aggregate to our offline
system. First, have anyone tried it before? Do you think that it is the best
bet?

Regards

hammett


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




Re: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Cedric Dumoulin

 Hi,

 Normally, you also specify the tiles-config files with the tiles 
plugin. I suppose that the tiles factory has failed to initialize, and 
so something goes wrong  with the RequestProcessor. Can you check the 
tomcat log file for tiles messages (maybe you need to enable the tiles 
logging)  ?

 Cedric

Jerome Jacobsen wrote:

Interesting.  With the  tag removed I added the following:


Now it works!  So what was wrong with the  usage?  Was I supposed
to add some required  tags?

 

-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 2:53 PM
To: Struts User
Subject: Move to TilesRequestProcessor results in forwarding exception.


I just added the following to my *non-tiles* Struts 1.1b2 app
configuration
file:

 

As I understand it this should replace the RequestProcessor with the
TilesRequestProcessor.  Well something changed because now I get an
exception when my Action forwards to another Action via a global forward.

javax.servlet.jsp.JspException: Exception forwarding for name
displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
	int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
		ForwardTag.java:180

If I remove the Tiles plug-in from struts-config it works again.
I want to
refactor to Tiles but step one has failed.


--
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: org.apache.jasper.JasperException: No getter method for property appauth.aAuthLevel of bean element

2002-12-12 Thread Robert J. Lebowitz
You might want to employ the reflection API to determine how the attribute
is named (upper vs. lowercase, etc.).  I believe I saw a note about this
somewhere in the Struts documentation.

Rob



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




Best method for reloading under Struts 1.1

2002-12-12 Thread Robert J. Lebowitz
I've just started working with Struts, and in order to remain current, I
decided to just start with version 1.1, since it has a number of features
that I was interested in anyhow.

I've found a series of notes in the archive dealing with issue of how one
should reload a webapp after making changes to the xml configuration files.

I'm running Tomcat 4.1, and unless I'm mistaken, the reloadable="true"
attribute of Context doesn't necessarily imply that the xml configuration
files associated with a webapp will be reloaded, just the jsp files, etc.

The approach that I'm currently using is to rebuilt and redeploy my webapp's
war file so that the Tomcat container will detect its presence, unpack it
and reload the webapp.

This seems like overkill, but it's preferable to stopping and restarting the
tomcat process.  Any other better recommendations on how to do this in
Struts 1.1??



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




RE: org.apache.jasper.JasperException: No getter method for property appauth.aAuthLevel of bean element

2002-12-12 Thread Karr, David
This is the "two starting caps" rule.  I don't know exactly how this translates, as I 
try to avoid this situation.  Change your property name (in both places) so that the 
second character is NOT a capital.  I believe this will solve this problem, at least 
that part.

> -Original Message-
> From: Jyothi Panduranga
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: org.apache.jasper.JasperException: No getter method for
> property appauth.aAuthLevel of bean element
> 
> 
> Hi,
> 
>   I have been getting this error when I try to access a 
> property.  I have
> both getter and setter properties defined in the bean. Both 
> deals with the
> variable of same type.  Eg., I have this defined in my bean.
> 
> /**
>  * Sets the value of field 'aAuthLevel'.
>  *
>  * @param aAuthLevel the value of field 'aAuthLevel'.
> **/
> public void setAAuthLevel(java.lang.String aAuthLevel)
> {
> this._aAuthLevel = aAuthLevel;
> }
> 
>/**
>  * gets the value of field 'aAuthLevel'.
>  *
>  *
> **/
> public String getAAuthLevel()
> {
> return this._aAuthLevel;
> }
> 
> Here is the part of my JSP sniplet which calls the property
> 
> 
>   property="appauth.aAuthLevel" />
> 
> 
> I get this following error.
> 
> org.apache.jasper.JasperException: No getter method for property
> appauth.aAuthLevel of bean element
> 
> However, If I change the name of the getter and setter properties to
> getAuthLevel/setAuthLevel and JSP according do that(appauth.authLevel
> instead of appauth.aAuthLevel), then everything works fine.
> 
> I want to know if this is a bug in JSP or struts.  I use 
> Tomcat 4.1.12.
> Any insight would be helpful.
> 
> Thanks in advance,
> Jyothi
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 

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




org.apache.jasper.JasperException: No getter method for property appauth.aAuthLevel of bean element

2002-12-12 Thread Jyothi Panduranga
Hi,

  I have been getting this error when I try to access a property.  I have
both getter and setter properties defined in the bean. Both deals with the
variable of same type.  Eg., I have this defined in my bean.

/**
 * Sets the value of field 'aAuthLevel'.
 *
 * @param aAuthLevel the value of field 'aAuthLevel'.
**/
public void setAAuthLevel(java.lang.String aAuthLevel)
{
this._aAuthLevel = aAuthLevel;
}

   /**
 * gets the value of field 'aAuthLevel'.
 *
 *
**/
public String getAAuthLevel()
{
return this._aAuthLevel;
}

Here is the part of my JSP sniplet which calls the property


 


I get this following error.

org.apache.jasper.JasperException: No getter method for property
appauth.aAuthLevel of bean element

However, If I change the name of the getter and setter properties to
getAuthLevel/setAuthLevel and JSP according do that(appauth.authLevel
instead of appauth.aAuthLevel), then everything works fine.

I want to know if this is a bug in JSP or struts.  I use Tomcat 4.1.12.
Any insight would be helpful.

Thanks in advance,
Jyothi


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




RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Bhamani, Nizar A TL56E
To use Tiles, you need to have both 1) plug-in entry and 2) Controller entry
in your 'struts-config.xml' as has been mentioned in the available
documentation.


Nizar Bhamani

-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 12, 2002 3:07 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Move to TilesRequestProcessor results in forwarding exception.

Interesting.  With the  tag removed I added the following:


Now it works!  So what was wrong with the  usage?  Was I supposed
to add some required  tags?

> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 2:53 PM
> To: Struts User
> Subject: Move to TilesRequestProcessor results in forwarding exception.
>
>
> I just added the following to my *non-tiles* Struts 1.1b2 app
> configuration
> file:
>
>   
>
> As I understand it this should replace the RequestProcessor with the
> TilesRequestProcessor.  Well something changed because now I get an
> exception when my Action forwards to another Action via a global forward.
>
> javax.servlet.jsp.JspException: Exception forwarding for name
> displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
>   int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
>   ForwardTag.java:180
>
> If I remove the Tiles plug-in from struts-config it works again.
> I want to
> refactor to Tiles but step one has failed.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 




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




RE: HTML anchor with Struts and JSP?

2002-12-12 Thread Michael Marrotte
Nevermind...  It works...  I was setting the wrong action in struts-config.

Thanks,

--Mike

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 10:07 AM
To: Struts Users Mailing List
Subject: Re: HTML anchor with Struts and JSP?


2002. december 12. 15:58 dátummal Gemes Tibor ezt írtad:
> 2002. december 12. 16:13 dátummal Michael Marrotte ezt írtad:
> > Are there any straightforward ways to leverage Struts to do this?
>
> Is the anchor's name static, or dynamically generated?
> Imho if dynamic you can declare a forward to your action with a # in its
> name, and add redirect="true" to its attributes.


Sorry. I meant
if static you can declare it in struts-config/action-mappings/action/forward

If dynamic you have to create an ActionForward in your actions's execute,
set
it redirect, and return.

Hth,

Tib

Ps: sorry but my head is malfunctioning a bit 24 minutes more and I can go
home. Today is not the day for working.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Struggling with indexed/repeating input fields in forms

2002-12-12 Thread Michael Olszynski
That didn´t help.But thanks eitherway.
Does anyone have a clue what could be wrong?
Any ideas are welcome!
--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "V. Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 6:56 PM
Subject: Re: Struggling with indexed/repeating input fields


> One (good) way is to have your beans implement collection.
> Search messages for "cekvenich", I posted like 3 of my last 10 messages
> related to this.
>
> .V
>
> Michael Olszynski wrote:
> > I saw a post in the thread
> > http://www.mail-archive.com/struts-user@jakarta.apache.org/msg49234.html
> >
> > I have the same problem and I can´t get it working. Perhaps someone can
help me? It´d be very nice.
> >
> > I have the problems that the data in my formbean isn´t updated. I mean,
I get the data form my formbean in the jsp page. But when I edit it and
press submit, it is not updated. I get the same data as I got before.
> >
> > Do you see perhaps an error? (I reviewed it now 7 hours with the sample
source attached in the upper thread, and I can´t find any error. Thank you)
> >
> > It´s kind of urgent, because my thesis should be finished at the end of
december. Thanks
> >
> > Take care Michael
> >
> >

**
> > This is my projekterfassung.jsp:
> >
> > 
> > 
> > 
> > 
> > 
> > :  
> >   :
> > 
> > 
> > 
> >

**
> >
> > My struts-config.xml:
> >
> > 
> >
> >  >   "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN"
> >   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> >
> > 
> >
> >
> >   
> >
> >   
> >   
> >
> >  >name="timeProofForm"
> >type="de.proway.zerf.web.bean.TimeProofFormBean"/>
> >
> > 
> >
> >
> >   
> >   
> >
> >  
> >
> >   
> >
> >
> >   
> >   
> >
> >   >
type="de.proway.zerf.web.controller.ShowTimeProofAction"
> >  name="timeProofForm"
> >  scope="request"
> >  input="/projekterfassung.jsp">
> >  
> >
> >>
type="de.proway.zerf.web.controller.SaveTimeProofAction"
> >  name="timeProofForm"
> >  scope="request"
> >  input="/projekterfassung.jsp">
> >  
> >
> >
> >  >type="org.apache.struts.actions.AddFormBeanAction"/>
> >  >type="org.apache.struts.actions.AddForwardAction"/>
> >  >type="org.apache.struts.actions.AddMappingAction"/>
> >  >type="org.apache.struts.actions.ReloadAction"/>
> >  >type="org.apache.struts.actions.RemoveFormBeanAction"/>
> >  >type="org.apache.struts.actions.RemoveForwardAction"/>
> >  >type="org.apache.struts.actions.RemoveMappingAction"/>
> >
> >
> >   
> >
> > 
> >

**
> > SaveTimeProofAction.java
> >
> > package de.proway.zerf.web.controller;
> >
> > import javax.servlet.http.*;
> > import org.apache.struts.action.*;
> > import de.proway.zerf.web.bean.*;
> > import de.proway.zerf.app.controller.*;
> > import de.proway.zerf.web.util.*;
> > import de.proway.zerf.app.bean.*;
> > import java.util.*;
> > import java.text.*;
> >
> > public final class SaveTimeProofAction extends LoginCheckAction {
> > public ActionForward perform( ActionMapping mapping,
> > ActionForm form, HttpServletRequest request,
> > HttpServletResponse res ) {
> >
> > TimeProofFormBean tpf = (TimeProofFormBean) form;
> >
> > System.out.println(tpf.toString());
> > System.out.println(tpf.getVector().toString());
> > for( int i=0; i < tpf.getVector().size(); ++i ) {
> >   System.out.println( ((TimeProofTableBean)
tpf.getVector().get(i)).getDate()  );
> >   System.out.println( ((TimeProofTableBean)
tpf.getVector().get(i)).getFromHour()  );
> >   System.out.println( ((TimeProofTableBean)
tpf.getVector().get(i)).getFromMinute()  );
> > }
> >
> > return mapping.findForward( "done" );
> > }
> > }
> >
> >

**
> > Show TimeProofAction.java
> >
> > package de.proway.zerf.web.controller;
> >
> > import javax.servlet.http.*;
> > import org.apache.struts.action.*;
> > import de.proway.zerf.web.bean.*;
> > import de.proway.zerf.app.controller.*;
> > import de.proway.zerf.web.util.*;
> > import de.proway.zerf.app.bean.*;
> > import java.util.*;
> > import java.text.*;
> >
> > public final class ShowTimeProofAction extends LoginCheckAction {
> >  public ActionForward perf

RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
The tiles documentation states:

"You don't need to specify a TilesRequestProcessor, this is automatically
done by the plug-in. If, however, you want to specify your own
RequestProcessor, this later should extends the TilesRequestProcessor. The
plug-in checks check this constraint."

So I didn't think I needed to add the controller as you say.  However I
tried it anyway and I still get the exception.  If I remove the 
but keep the  it works, however I want to use the  to
define tiles definitions.



> -Original Message-
> From: Bhamani, Nizar A TL56E [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 3:01 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Move to TilesRequestProcessor results in forwarding
> exception.
>
>
> You need to also do the following in your struts-config :
>
>  processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> debug="0"
> bufferSize="4096"
> contentType="text/html"
> locale="false"
> maxFileSize="250M"
> multipartClass="org.apache.struts.upload.CommonsMultipartRequestHandler"
> nocache="false"
> inputForward="false" />
>
> Nizar Bhamani
>
> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 2:53 PM
> To: Struts User
> Subject: Move to TilesRequestProcessor results in forwarding exception.
>
> I just added the following to my *non-tiles* Struts 1.1b2 app
> configuration
> file:
>
>   
>
> As I understand it this should replace the RequestProcessor with the
> TilesRequestProcessor.  Well something changed because now I get an
> exception when my Action forwards to another Action via a global forward.
>
> javax.servlet.jsp.JspException: Exception forwarding for name
> displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
>   int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
>   ForwardTag.java:180
>
> If I remove the Tiles plug-in from struts-config it works again.
> I want to
> refactor to Tiles but step one has failed.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> CONFIDENTIALITY
> This e-mail and any attachments are confidential and also may be
> privileged.
> If you are not the named recipient, or have otherwise received this
> communication in error, please delete it from your inbox, notify
> the sender
> immediately, and do not disclose its contents to any other person,
> use them for any purpose, or store or copy them in any medium.
> Thank you for your cooperation.
> 
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: HTML anchor with Struts and JSP?

2002-12-12 Thread Michael Marrotte
Are you sure that work?  The anchor seems to be ignored when I set
redirect="true" in struts-config and append the anchor to the path with a #,
e.g. "/page.jsp#anchor".

Any thoughts?

Thanks,

--Michael Marrotte

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 10:07 AM
To: Struts Users Mailing List
Subject: Re: HTML anchor with Struts and JSP?


2002. december 12. 15:58 dátummal Gemes Tibor ezt írtad:
> 2002. december 12. 16:13 dátummal Michael Marrotte ezt írtad:
> > Are there any straightforward ways to leverage Struts to do this?
>
> Is the anchor's name static, or dynamically generated?
> Imho if dynamic you can declare a forward to your action with a # in its
> name, and add redirect="true" to its attributes.


Sorry. I meant
if static you can declare it in struts-config/action-mappings/action/forward

If dynamic you have to create an ActionForward in your actions's execute,
set
it redirect, and return.

Hth,

Tib

Ps: sorry but my head is malfunctioning a bit 24 minutes more and I can go
home. Today is not the day for working.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
Interesting.  With the  tag removed I added the following:


Now it works!  So what was wrong with the  usage?  Was I supposed
to add some required  tags?

> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 2:53 PM
> To: Struts User
> Subject: Move to TilesRequestProcessor results in forwarding exception.
>
>
> I just added the following to my *non-tiles* Struts 1.1b2 app
> configuration
> file:
>
>   
>
> As I understand it this should replace the RequestProcessor with the
> TilesRequestProcessor.  Well something changed because now I get an
> exception when my Action forwards to another Action via a global forward.
>
> javax.servlet.jsp.JspException: Exception forwarding for name
> displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
>   int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
>   ForwardTag.java:180
>
> If I remove the Tiles plug-in from struts-config it works again.
> I want to
> refactor to Tiles but step one has failed.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>


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




RE: Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Bhamani, Nizar A TL56E
You need to also do the following in your struts-config :



Nizar Bhamani

-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 12, 2002 2:53 PM
To: Struts User
Subject: Move to TilesRequestProcessor results in forwarding exception.

I just added the following to my *non-tiles* Struts 1.1b2 app configuration
file:

  

As I understand it this should replace the RequestProcessor with the
TilesRequestProcessor.  Well something changed because now I get an
exception when my Action forwards to another Action via a global forward.

javax.servlet.jsp.JspException: Exception forwarding for name
displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
ForwardTag.java:180

If I remove the Tiles plug-in from struts-config it works again.  I want to
refactor to Tiles but step one has failed.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 




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




Struts in iPlanet 4.1

2002-12-12 Thread Kannan Ramanathan
All,

Does Struts really work with iPlanet 4.1? We are
facing lot of problems since iPlanet 4.1 does not
support WAR file deployment. I am trying to put sample
logon.war from the "Struts In Action" book
(http://www.manning.com/getpage.html?project=husted&filename=source.html)
but could not make it work. I am seeing only the
Welcome.jsp. When I click the Sign on, I am getting
this error now:



[12/Dec/2002:13:18:18] warning (  193):
RequestDispatcher: forward call failed 
[12/Dec/2002:13:18:18] failure (  193): Internal
error: exception thrown from the servlet service
function (uri=/Logon.do):
javax.servlet.ServletException: RequestDispatcher:
forward call failed, stack:
javax.servlet.ServletException: RequestDispatcher:
forward call failed 
at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:80)

at
org.apache.struts.actions.ForwardAction.perform(ForwardAction.java:168)

at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)

at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:701)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:826)

at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:513)

, root cause:  

*

Following is my struts-config.xml:

**



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


  
  

  
  
  



  
  
  



  


  

  


***


Can someone help me in this, since I am stuck in this
for the past two days? Following is my directory
structure:

root-directory
logon
--Welcome.jsp
--index.jsp
--Logon.jsp
--app
---all logon class files

and the following line I added in rules.properties:
@.*[.]do$=action

Thanks in advance, Kannan.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Tomcat Tries to look For the specified file in the Bin Direct ory

2002-12-12 Thread Chen, Gin
I've been able to do it like this:

URL url = getServletContext().getResource("/blah.xml");
  URLConnection conn = (URLConnection) url.openConnection();
  InputStream in = conn.getInputStream();
  DocumentBuilderFactory dfactory =
DocumentBuilderFactory.newInstance();
  doc = dfactory.newDocumentBuilder().parse(in);
  in.close();

-Tim


-Original Message-
From: Susmita Pati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 2:34 PM
To: 'Struts Users Mailing List'
Subject: Tomcat Tries to look For the specified file in the Bin
Directory


Hi Folks

Am not able to Retrieve the XML file that i have in my conf directory.
If i just give the location as {String location = "logonconfig.xml"; } It
points to the 
Apache Tomcat 4.0 /bin directory.If i give the location as {String location
= "..\\webapps\\Dynapro4.3\\web-inf\\conf\\logonconfig.xml";}  Then it
points to the Apache Tomcat 4.0
/bin/webapps/Dynapro4.3/web-inf/conf/logonconfig.xml"


Here is the code where in i am trying to pick up the xml file.


  Element root = null;
try {
Document doc = null;
String location = "logonconfig.xml";
//String location =
"..\\webapps\\Dynapro4.3\\web-inf\\conf\\logonconfig.xml";
DocumentBuilderFactory docBuilderFactory =
DocumentBuilderFactory.newInstance();
DocumentBuilder parser =
docBuilderFactory.newDocumentBuilder();

doc = parser.parse(new File(location));
root = doc.getDocumentElement();
 
}


Thanks in Advance
Susmita

--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Move to TilesRequestProcessor results in forwarding exception.

2002-12-12 Thread Jerome Jacobsen
I just added the following to my *non-tiles* Struts 1.1b2 app configuration
file:

  

As I understand it this should replace the RequestProcessor with the
TilesRequestProcessor.  Well something changed because now I get an
exception when my Action forwards to another Action via a global forward.

javax.servlet.jsp.JspException: Exception forwarding for name
displayErrorMaintSearch: javax.servlet.ServletException: Error in servlet
int org.apache.struts.taglib.logic.ForwardTag.doEndTag()
ForwardTag.java:180

If I remove the Tiles plug-in from struts-config it works again.  I want to
refactor to Tiles but step one has failed.


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




Tomcat Tries to look For the specified file in the Bin Directory

2002-12-12 Thread Susmita Pati
Hi Folks

Am not able to Retrieve the XML file that i have in my conf directory.
If i just give the location as {String location = "logonconfig.xml"; } It
points to the 
Apache Tomcat 4.0 /bin directory.If i give the location as {String location
= "..\\webapps\\Dynapro4.3\\web-inf\\conf\\logonconfig.xml";}  Then it
points to the Apache Tomcat 4.0
/bin/webapps/Dynapro4.3/web-inf/conf/logonconfig.xml"


Here is the code where in i am trying to pick up the xml file.


  Element root = null;
try {
Document doc = null;
String location = "logonconfig.xml";
//String location =
"..\\webapps\\Dynapro4.3\\web-inf\\conf\\logonconfig.xml";
DocumentBuilderFactory docBuilderFactory =
DocumentBuilderFactory.newInstance();
DocumentBuilder parser =
docBuilderFactory.newDocumentBuilder();

doc = parser.parse(new File(location));
root = doc.getDocumentElement();
 
}


Thanks in Advance
Susmita

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




Re: Using HTML frames in Struts

2002-12-12 Thread Joe Germuska
At 10:02 AM -0800 2002/12/12, David Rothschadl wrote:

Here is the code in one of my frames that is not showing up when I 
check it in a browser. I can't even make the word Menu appear...Any 
ideas as to why it is not working?

Can you load the page itself correctly, outside of a frameset?  I 
can't think of any reason it would behave differently in a frameset. 
You do sometimes have synchronization issues to consider when writing 
an app which uses frames, which is a very good argument against 
designing with frames.

Also, note that JSP taglib element names are case-sensitive.  At the 
bottom you have  and , which are not valid 
closing tags for  and .  I wouldn't be 
surprised if that's a big part of your problem.

Tiles is probably a better way to avoid duplicating navigation code 
between pages, unless you have a strict requirement that the 
navigation stay on screen when a user scrolls down.  Better to design 
the application to have a minimum of scrolling, though.  Frames are 
an eternal source of headaches in my experience.

Joe





<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>









Menu











Menu



































































 David Rothschadl <[EMAIL PROTECTED]> wrote:
Hello,

Is there anybody who has used frames within the Struts framework? 
Our frame set-up, which worked fine in our non-Struts HTML pages, is 
not working with Struts. Any working examples would be greatly 
appreciated!

David Rothschadl


--
--
* Joe Germuska{ [EMAIL PROTECTED] }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
	--Sam Goody, 1956

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



Re: Using HTML frames in Struts

2002-12-12 Thread Joe Germuska
At 6:25 PM +0100 2002/12/12, Mark wrote:

David

I'm developing a webapplication using struts and it has frames..

Other than

" />


There's an  tag that does that rewriting for you.



To pass the session through for paranoid people who thing cookies can take
over your mind. But no other problems..


Using struts to rewrite your URLs also allows you to avoid hardcoding 
the application context path into your pages, which helps 
portability.  It also does some URL filtering to save you the trouble.

Joe
--
--
* Joe Germuska{ [EMAIL PROTECTED] }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
	--Sam Goody, 1956

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



[OT] Torque inheritant schema file example

2002-12-12 Thread Dan Tran
Hi , I do understand that this is not the right group to ask question about
torque, but so far I can't get any help from turbine group which seems very
inactive.

I have been looking at the torque's inheritant guide for a few days, but
still have  NO clue to create a schema of my own.

I hope some of Struts users ,who use torque to implement the model part of
the MVC, can send me an example of schema file.

Your helps are greatly appreciated.

-Dan

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




Re: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Eddie Bush
The JSTL offers formatting tags ... and it is a standard.  Requires 
Servlet Spec 2.3.

Rick Reumann wrote:

On Thursday, December 12, 2002, 1:43:49 PM, Andy wrote:

AK> I put data storage beans that need to be displayed into the
AK> request or session and use bean:write and logic:iterate on the
AK> JSP. I don't see the sense in creating extra objects targeted to
AK> display; just keeping the get/set methods generic (return a Date,
AK> not a formatted Date String) should be enough.

   That's normally exactly what I do as well. I just heard all this
   about not having your business objects end up in the presentation
   layer so I was concerned about the danger. I guess if this
   business object was an EJB that persisted on another server there
   could be problems but I'm not in that scenario, although I do want
   to do things "to standard" (whatever that is:)
   
AK> For date formatting, I use the datetime custom tags for dates
AK> (http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html) - a caveat
AK> the format tag uses long values so if your obj has a method Date getDate()
AK> the property in the tag should be "date.time" (which will call the Date
AK> obj's getTime() method that returns a long).

   Cool. I'll have to check that out.  Thanks.

 


--
Eddie Bush





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




Re[2]: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Rick Reumann
On Thursday, December 12, 2002, 1:43:49 PM, Andy wrote:

AK> I put data storage beans that need to be displayed into the
AK> request or session and use bean:write and logic:iterate on the
AK> JSP. I don't see the sense in creating extra objects targeted to
AK> display; just keeping the get/set methods generic (return a Date,
AK> not a formatted Date String) should be enough.

That's normally exactly what I do as well. I just heard all this
about not having your business objects end up in the presentation
layer so I was concerned about the danger. I guess if this
business object was an EJB that persisted on another server there
could be problems but I'm not in that scenario, although I do want
to do things "to standard" (whatever that is:)

AK> For date formatting, I use the datetime custom tags for dates
AK> (http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html) - a caveat
AK> the format tag uses long values so if your obj has a method Date getDate()
AK> the property in the tag should be "date.time" (which will call the Date
AK> obj's getTime() method that returns a long).

Cool. I'll have to check that out.  Thanks.

-- 
Rick


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




Cannot find ActionMappings or ActionFormBeans collection

2002-12-12 Thread Oliver Meyn
Hi all,

Could someone please tell me what throws this exception, and why?  It seems
completely arbitrary - adding an action to action-mappings sometimes works
and sometimes causes this to be thrown.  If it's being thrown and I undo any
changes to struts-config since it worked, it still gets thrown.  You can
guess how frustrating that is...  The archives haven't been much help :(

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

struts 1.1b2, tomcat 4.0.4, j2sdk1.4.1_01, win2k, iis

Thanks very much,
Oliver


Oliver Meyn
[EMAIL PROTECTED]
(416) 524-2240
"Things should be made as simple as possible, but no simpler." - Albert
Einstein


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




RE: Nasty Error when use LookupDispatchAction

2002-12-12 Thread Wendy Smoak
> Everything works beautifully until you try and mess the query string
> for e.g  /edit.do?submit=initchanged&key=10
> there is no mapping for initx, hence there is no method name and null is
> passed into the
> return dispatchMethod(mapping, form, request, response, methodName)
> which finally calls getMethod(String name, Class[] parameterTypes)
> The end result is that application shuts down with VM error

I had the same problem with LookupDispatchAction, but it just causes an
error with Tomcat, it doesn't dump the JVM.  That might be a problem with
Resin.  (Not that the patch is a bad idea, just that  Resin shouldn't die
that spectacularly just because of this problem!)

For my own project, I had to override execute() and provide a default
behavior:

   public ActionForward execute( ... )
   {
   if ( request.getParameter( mapping.getParameter() ) == null ) {
//required parameter is missing!
return ( mapping.findForward( "failure" ) );
 }
  } else {
 //parameter is present, let LookupDispatchAction do its thing:
 return super.execute( mapping, form, request, response );
  }
   }

I think there should be a "default" attribute for the  tag, used in
conjunction with "parameter".  If the "parameter" isn't there,
LookupDispatchAction would use the default forward.

Finals are almost over and I was actually thinking about doing this and
submitting it, if I can figure out how. :)  Does anyone have any comments or
would like it to work differently?  Or know that it'll never get accepted so
don't bother?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



Help with reset() method in an subclass of DynaValidatorForm

2002-12-12 Thread Srinivas Bhagavathula


I am using  with a property of "deleted" which is defined as 
an array String in Struts-config.xml file as



   


where com.f.M.G.w.ProductDynaValidatorForm is a subclass of 
org.apache.sturts.validator.DynaValidatorForm I need to override the reset() 
Method in ProductDynaValidatorForm for the html:multibox to work when the 
checkbox is "unchecked". How can I access the "deleted" string array 
property of the bean and set the length of that string array to zero.


TIA, srinivas




_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re[2]: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Rick Reumann


On Thursday, December 12, 2002, 1:31:08 PM, Wendy wrote:

WS> I have a 'dto' package which has the beans that are really intended to
WS> transport data in both directions.  Then I have 'dto.custom' in which all
WS> the classes are named with "View" in the name.  These are only for display.

I was thinking of doing the same thing ..creating an extra bean for
display, but then I figured why not just add a few extra methods in my
standard DTO bean which might bring back:

birthDateDisplay
telphoneNumberDisplay (ie: (727) 444- vs 727444 )

I guess I could make another bean just to hold this display data.

-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: Getting MessageResources from a ActionForm

2002-12-12 Thread Yee, Richard K,,DMDCWEST
Jim,
What version of Struts are you using? If it is 1.1b, then have you looked at
the org.apache.struts.validator.Resources class? I think that will give you
access to the MessageResource that you want.

-Richard



> -Original Message-
> From: Jim Collins [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 1:50 PM
> To:   Struts Users Mailing List
> Subject:  Getting MessageResources from a ActionForm
> 
> Hi,
> 
> I would like to get a MessageResoure from an ActionForm. I thought of
> calling servlet.getResources() but according to the documentation this
> method is deprected. I want to use the ActionForm to populate a select
> with
> values from my ApplicationResources. I have seen the select example and
> know
> that I can do it from the JSP but I would like to set the values from an
> ActionForm. I am currently setting the values from the ActionForm but the
> values are hard coded in the ActionForm and I would like to be able to get
> them from the ApplicationResources.
> 
> If anyone knows how I can do this without calling a deprecated method it
> would be appreciated.
> 
> Thanks
> 
> Jim.
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Andy Kriger
I put data storage beans that need to be displayed into the request or
session and use bean:write and logic:iterate on the JSP. I don't see the
sense in creating extra objects targeted to display; just keeping the
get/set methods generic (return a Date, not a formatted Date String) should
be enough.

For date formatting, I use the datetime custom tags for dates
(http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html) - a caveat
the format tag uses long values so if your obj has a method Date getDate()
the property in the tag should be "date.time" (which will call the Date
obj's getTime() method that returns a long).

For number formatting, I use my own custom tag (that wraps
java.text.DecimalFormat).

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 13:17
To: Struts List
Cc: model struts
Subject: Best way to handle this in Struts/MVC ?


For all of my forms I have an appropriate DynaValidatorForm bean
defined in my struts-config file. This form eventually populates a
bean (Data Transfer Object) that corresponds to the form bean but with
the correct data types (ie java.util.Date birthDate vs String
birthDate ).

The question I have is when generating a List to display the beans is
it really that bad to use the actual Data Transfer objects beans in
the display (vs a List of the DynaFormBeans)? The reason I ask is it
seems like a lot of overhead to convert a Collection of data transfer
objects into a whole new collection of DynaFormBeans, especially if
the List is quite large. The problem though is if you use the DTOs you
have to code in those beans proper formats for displaying such things
as Dates.

How do others handle this situation?

Thanks,

--

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Wendy Smoak
> The question I have is when generating a List to display the beans is
> it really that bad to use the actual Data Transfer objects beans in
> the display (vs a List of the DynaFormBeans)? The reason I ask is it
> seems like a lot of overhead to convert a Collection of data transfer
> objects into a whole new collection of DynaFormBeans, especially if
> the List is quite large. The problem though is if you use the DTOs you
> have to code in those beans proper formats for displaying such things
> as Dates.
> How do others handle this situation?

I'm not clear on your issue... when would you need a list of *Form* beans?
I'm generally working with a single Form in scope.  (But I don't use
Dyna-anythings yet.)

I don't know if it's an official pattern, but I've heard it called "Custom
Data Transfer Objects".  IOW, if all you're doing is presenting a read-only
page of items, from which the user will pick one and go off and edit it,
then just get the data out and into some format from which it's easy to
display.

I have a 'dto' package which has the beans that are really intended to
transport data in both directions.  Then I have 'dto.custom' in which all
the classes are named with "View" in the name.  These are only for display.
In the custom package, all the dates are just Strings, since I never have to
worry about validating them.  I also put "description" fields in, rather
than just the codes that are stored in the database, because I need to
display things like "NM - No Mail". 

HTH, not sure I'm on the same page though. :)

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



RE: Processing multiple records all at once

2002-12-12 Thread Brad Balmer
OK,

This makes perfect sense to me and pretty much has worked, but I don't
get the changes I make to the form data.

I have the following in my Action class.

RowsForm rForm = (RowsForm)form;
Vector data = rForm.getRows();
for(int i=0; imailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 12, 2002 3:02 AM
To: Struts Users Mailing List
Subject: Re: Processing multiple records all at once

Brad,

I have written some pages/actions that do what you describe here. I
believe
that one way to go would be to use nested properties, but I haven't
tried
that yet, so I am not sure how to do it. The solution I used was to
create
an ActionForm for the page that has arrays for each field from the rows.
Something like this (generic example -- replace rowId and rowProperty1
with
your real row properties):

public class RowsForm extends ActionForm {
   private String[] rowId;
   private String[] rowProperty1;
   public String[] getRowId() {
  return rowId;
   }
   public void setRowId(String[] rowId) {
  this.rowId = rowId;
   }
   public String[] getRowProperty1() {
  return rowProperty1;
   }
   public void setRowProperty1(String[] rowProperty1) {
  this.rowProperty1 = rowProperty1;
   }
}

The properties are arrays to receive values from each row in the data
set
when you submit the form. For iterating through the data, we added a
method
that would return a Collection of objects, where each represents a
single
row. Something like this:

public class RowForm extends ActionForm { // this could also be a
plain-old
JavaBean, too
   private String id;
   private String property1;
   // getters and setters for the id and property1
}

// add this method to RowsForm
   public Collection getRows() {
  Collection rows = new ArrayList();
  final int size = rowId.length;
  for (int i = 0; i < size; i++) {
 RowForm row = new RowForm();
 row.setId(rowId[i]);
 row.setProperty1(rowProperty1[i]);
 rows.add(row);
  }
  return rows;
   }

So, that setup will allow you to get the data out of the form after the
user
submits their changes (by calling RowsForm.getRows()). You will get data
for
each row, so you still need to decide which rows were changed, and which
ones the user simply left alone.

As for getting the data into the form and displaying it on the page, you
could add another method like populateForm(Vector rowData) to copy the
data
to the arrays like this:

// another method in RowsForm
   public void populateForm(Vector rowData) {
  // get the Vector size
  final int size = rowData.size();
  // initialize the arrays
  rowId = new String[size];
  rowProperty1 = new String[size];
  // copy the data from the objects in the Vector into the arrays
  Vector rowData = new Vector();
  final int size = rowData.size();
  Enumeration enum = rowData.elements();
  for (int i = 0; i < size; i++) {
 Data element = (Data) enum.nextElement();
 rowId[i] = String.valueOf(element.getId());
 rowProperty1[i] = element.getProperty1();
  }
   }

However, it might be a bit wasteful to copy all the data into the arrays
if
you are going to call getRows() to turn them back into a Collection of
objects so that you can use the  tag to display them in
the
JSP. If you can get the data into a Collection instead of a Vector (or
is a
Vector a Collection these days?), you can just have a single Collection
property on RowsForm that you set in the action, and the JSP will call
the
getter to get the Collection to iterate over. The JSP to iterate over
the
Collection and write out the rows might look something like this:



  id
  property1



  
<%-- write the id as text for display, and also as a hidden field
for
submittal --%>


  
  

  




Your Action will get the populated RowsForm on the submit, and you can
call
RowsForm.getRows() to get a Collection of RowForm objects to work with.

-Max

- Original Message -
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 5:44 PM
Subject: Processing multiple records all at once


> I've searched the internet and different news groups for an answer to
this
> question, but have yet to find something that matches what I'm trying
to
do.
>
> I have an application that reads records from a table and creates an
> instance of a bean for each row.  Therefore, when I return from my DB
call,
> I have a Vector of beans representing the data.
>
> I need to display all of this on one jsp form, letting the user have
the
> ability to update any of the fields in any of the records and click a
Update
> button, which will send ALL of the data back to the Action class to be
> processed.  I have done this before (not using Struts), but we have
switched
> our Architecture and need to re-implement.
>
> Any help would be GREATLY appreciated.
>
>
>
>
>
> _
> MSN 8 with e-mail virus p

Best way to handle this in Struts/MVC ?

2002-12-12 Thread Rick Reumann
For all of my forms I have an appropriate DynaValidatorForm bean
defined in my struts-config file. This form eventually populates a
bean (Data Transfer Object) that corresponds to the form bean but with
the correct data types (ie java.util.Date birthDate vs String
birthDate ).

The question I have is when generating a List to display the beans is
it really that bad to use the actual Data Transfer objects beans in
the display (vs a List of the DynaFormBeans)? The reason I ask is it
seems like a lot of overhead to convert a Collection of data transfer
objects into a whole new collection of DynaFormBeans, especially if
the List is quite large. The problem though is if you use the DTOs you
have to code in those beans proper formats for displaying such things
as Dates.

How do others handle this situation?

Thanks,

-- 

Rick
mailto:[EMAIL PROTECTED]


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




Precompile my app

2002-12-12 Thread Jordan Thomas
Hi All,

How can I precompile my Struts app? Is there some kind of utility to do
this?

thanks

Jordan


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




Re: DispatchAction CRUD validation problem

2002-12-12 Thread V. Cekvenich
One way is to have validate="flase"
and in your CRUD events manually call validate().

.V

adam kramer wrote:

 I'd like to use a DispatchAction to handle the Create,Read,Update and
Delete actions for an object. But I can't work Read into the mix because
of the action-mapping configuration and the validation setting.
I want form validation to be TRUE for C, U and D but FALSE for Read, else
it never gets to the form because its trying to display the form in the
first place. For instance:


		


You can't have validate both ways.
Has anyone figured out how to integrate READ into the CRUD DispatchAction?
Or do I need to make a different action mapping for READ (for showing a
blank ADD page, and a filled Modify/EDIT page).

thanks in advance,
adam k.





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




Re: Struggling with indexed/repeating input fields

2002-12-12 Thread Michael Olszynski
Yes it is really confusing. So you can´t find any other error? Okay. could
you explain to me what u mean with "that you don't have an indexed setter on
"TimeProofFormBean" for the "element" property."
I don´t really understand what you are talking about. Perhaps you could
write one or two lines of code. Thanks a lot!

Take care Michael

--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "Karr, David" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 6:30 PM
Subject: RE: Struggling with indexed/repeating input fields


I know this is confusing.  I think the problem might be that you don't have
an indexed setter on "TimeProofFormBean" for the "element" property.

> -Original Message-
> From: Michael Olszynski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 8:58 AM
> To: [EMAIL PROTECTED]
> Subject: Struggling with indexed/repeating input fields
>
>
> I saw a post in the thread
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg
> 49234.html
>
> I have the same problem and I can´t get it working. Perhaps
> someone can help me? It´d be very nice.
>
> I have the problems that the data in my formbean isn´t
> updated. I mean, I get the data form my formbean in the jsp
> page. But when I edit it and press submit, it is not updated.
> I get the same data as I got before.
>
> Do you see perhaps an error? (I reviewed it now 7 hours with
> the sample source attached in the upper thread, and I can´t
> find any error. Thank you)
>
> It´s kind of urgent, because my thesis should be finished at
> the end of december. Thanks
>
> Take care Michael
>
> **
> 
> This is my projekterfassung.jsp:
>
>  type="de.proway.zerf.web.bean.TimeProofFormBean">
> 
>  name="timeProofForm" property="vector">
> 
> 
> maxlength="2" indexed="true"/> :  property="fromMinute" size="2" maxlength="2" indexed="true"/> 
> maxlength="2" indexed="true"/>   :  property="toMinute" size="2" maxlength="2" indexed="true"/>   
> 
> 
> 
> **
> 
>
> My struts-config.xml:
>
> 
>
>"-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN"
>
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
>
> 
>
>
>   
>
>   
>   
>
> name="timeProofForm"
>type="de.proway.zerf.web.bean.TimeProofFormBean"/>
>
> 
>
>
>   
>   
>
>   path="/projekterfassung.jsp"/>
>
>   
>
>
>   
>   
>
>  
> type="de.proway.zerf.web.controller.ShowTimeProofAction"
>  name="timeProofForm"
>  scope="request"
>  input="/projekterfassung.jsp">
>  
>
>   
> type="de.proway.zerf.web.controller.SaveTimeProofAction"
>  name="timeProofForm"
>  scope="request"
>  input="/projekterfassung.jsp">
>  
>
>
> type="org.apache.struts.actions.AddFormBeanAction"/>
> type="org.apache.struts.actions.AddForwardAction"/>
> type="org.apache.struts.actions.AddMappingAction"/>
> type="org.apache.struts.actions.ReloadAction"/>
> type="org.apache.struts.actions.RemoveFormBeanAction"/>
> type="org.apache.struts.actions.RemoveForwardAction"/>
> type="org.apache.struts.actions.RemoveMappingAction"/>
>
>
>   
>
> 
> **
> 
> SaveTimeProofAction.java
>
> package de.proway.zerf.web.controller;
>
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
> import de.proway.zerf.web.bean.*;
> import de.proway.zerf.app.controller.*;
> import de.proway.zerf.web.util.*;
> import de.proway.zerf.app.bean.*;
> import java.util.*;
> import java.text.*;
>
> public final class SaveTimeProofAction extends LoginCheckAction {
> public ActionForward perform( ActionMapping mapping,
> ActionForm form, HttpServletRequest request,
> HttpServletResponse res ) {
>
> TimeProofFormBean tpf = (TimeProofFormBean) form;
>
> System.out.println(tpf.toString());
> System.out.println(tpf.getVector().toString());
> for( int i=0; i < tpf.getVector().size(); ++i ) {
>   System.out.println( ((TimeProofTableBean)
> tpf.getVector().get(i)).getDate()  );
>   System.out.println( ((TimeProofTableBean)
> tpf.getVector().get(i)).getFromHour()  );
>   System.out.println( ((TimeProofTableBean)
> tpf.getVector().get(i)).getFromMinute()  );
> }
>
> return mapping.findForward( "done" );
> }
> }
>
> **
> ***

Re: Using HTML frames in Struts

2002-12-12 Thread David Rothschadl

Here is the code in one of my frames that is not showing up when I check it in a 
browser. I can't even make the word Menu appear...Any ideas as to why it is not 
working?

 

<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>









Menu







 



Menu



































































 David Rothschadl <[EMAIL PROTECTED]> wrote:
Hello,

Is there anybody who has used frames within the Struts framework? Our frame set-up, 
which worked fine in our non-Struts HTML pages, is not working with Struts. Any 
working examples would be greatly appreciated!

David Rothschadl





Re: Struggling with indexed/repeating input fields

2002-12-12 Thread V. Cekvenich
One (good) way is to have your beans implement collection.
Search messages for "cekvenich", I posted like 3 of my last 10 messages 
related to this.

.V

Michael Olszynski wrote:
I saw a post in the thread 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg49234.html

I have the same problem and I can´t get it working. Perhaps someone can help me? It´d be very nice.

I have the problems that the data in my formbean isn´t updated. I mean, I get the data form my formbean in the jsp page. But when I edit it and press submit, it is not updated. I get the same data as I got before.

Do you see perhaps an error? (I reviewed it now 7 hours with the sample source attached in the upper thread, and I can´t find any error. Thank you)

It´s kind of urgent, because my thesis should be finished at the end of december. Thanks

Take care Michael

**
This is my projekterfassung.jsp:






:  
  :



**

My struts-config.xml:




  "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
  "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>




  

  
  


   name="timeProofForm"
   type="de.proway.zerf.web.bean.TimeProofFormBean"/>




  
  

 

  


  
  

 
 type="de.proway.zerf.web.controller.ShowTimeProofAction"
 name="timeProofForm"
 scope="request"
 input="/projekterfassung.jsp">
 

  
 type="de.proway.zerf.web.controller.SaveTimeProofAction"
 name="timeProofForm"
 scope="request"
 input="/projekterfassung.jsp">
 



   type="org.apache.struts.actions.AddFormBeanAction"/>

   type="org.apache.struts.actions.AddForwardAction"/>

   type="org.apache.struts.actions.AddMappingAction"/>

   type="org.apache.struts.actions.ReloadAction"/>

   type="org.apache.struts.actions.RemoveFormBeanAction"/>

   type="org.apache.struts.actions.RemoveForwardAction"/>

   type="org.apache.struts.actions.RemoveMappingAction"/>


  


**
SaveTimeProofAction.java

package de.proway.zerf.web.controller;

import javax.servlet.http.*;
import org.apache.struts.action.*;
import de.proway.zerf.web.bean.*;
import de.proway.zerf.app.controller.*;
import de.proway.zerf.web.util.*;
import de.proway.zerf.app.bean.*;
import java.util.*;
import java.text.*;

public final class SaveTimeProofAction extends LoginCheckAction {
public ActionForward perform( ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse res ) {

TimeProofFormBean tpf = (TimeProofFormBean) form;

System.out.println(tpf.toString());
System.out.println(tpf.getVector().toString());
for( int i=0; i < tpf.getVector().size(); ++i ) {
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getDate()  );
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getFromHour()  );
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getFromMinute()  );
}

return mapping.findForward( "done" );
}
}

**
Show TimeProofAction.java

package de.proway.zerf.web.controller;

import javax.servlet.http.*;
import org.apache.struts.action.*;
import de.proway.zerf.web.bean.*;
import de.proway.zerf.app.controller.*;
import de.proway.zerf.web.util.*;
import de.proway.zerf.app.bean.*;
import java.util.*;
import java.text.*;

public final class ShowTimeProofAction extends LoginCheckAction {
 public ActionForward perform( ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse res ) {

Vector newCollection = new Vector();
TimeProofFormBean tpfb = ( TimeProofFormBean )form;
TimeProofTableBean tptb1 = new TimeProofTableBean();
TimeProofTableBean tptb2 = new TimeProofTableBean();
tptb1.setFromMinute(3);
tptb2.setFromMinute(4);
newCollection.add(tptb1);
newCollection.add(tptb2);
tpfb.setVector(newCollection);
return mapping.findForward( "done" );
}
}

**
TimeProofFormBean.java

package de.proway.zerf.web.bean;

import java.util.*;

import org.apache.struts.action.*;

public class TimeProofFormBean extends ActionForm {

public TimeProofFormBean() {
}


DispatchAction CRUD validation problem

2002-12-12 Thread adam kramer

 I'd like to use a DispatchAction to handle the Create,Read,Update and
Delete actions for an object. But I can't work Read into the mix because
of the action-mapping configuration and the validation setting.
I want form validation to be TRUE for C, U and D but FALSE for Read, else
it never gets to the form because its trying to display the form in the
first place. For instance:





You can't have validate both ways.
Has anyone figured out how to integrate READ into the CRUD DispatchAction?
Or do I need to make a different action mapping for READ (for showing a
blank ADD page, and a filled Modify/EDIT page).

thanks in advance,
adam k.


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




RE: Help! StrutsL-EL error (HTML tag)

2002-12-12 Thread Hohlen, John
Hi David.

  We're using WebLogic 6.1 SP 2.  I'm 99% sure I'm not pulling in any other
jars.  I looked things over for about two days, tried differently nightly
builds, etc.   In my JSP, I wasn't even using the "html-el:image" tag.  I
was just pulling in the "html-el" tag library to use some other tags from
that library.  Here's the actual JSP (it's actually a "Tile" composing a
larger JSP, but you get the idea):

<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/fleetsystems.tld"   prefix="fsys" %>
<%@ taglib uri="/WEB-INF/c.tld"  prefix="c"%>


  

  
  


  
  
  

  

  


  
  

  

  

  
  

 

 
  

  
 
  

  


 
  
  


  

  
  

  


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 11:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Help! StrutsL-EL error (HTML tag)


> "Brian" == Brian Moseley <> writes:

Brian> Karr, David wrote:
>> I think I found the problem in the latest code base.  Adding
"styleId" to "html-el:image" required one more change that I didn't think
of.  I had to uncomment the use of the "styleId" attribute in the BeanInfo
class.  I've submitted a fix which will hopefully be in tonight's build (if
the problem with building of struts-el has been resolved).

Brian> fwiw, i also did that, and i still go the "no setter method" jsp
error
Brian> mentioned earlier in the thread. hopefully you will nail the
issue tho. thanks
Brian> david!

Tonight I did a "cvs update" and "ant dist" in my jakarta-struts
distribution.
I changed one of the pages in the "strutsel-exercise-taglib" application
that
uses the "html-el:image" tag.  I added 'styleId="abc"'.  I rebuilt the
application and redeployed it.  I ran it.  I viewed the HTML source.  It
showed
'id="abc"'.  I don't know what else I can do.

What web container are either of you using?  Are you certain you're not
getting
any jar files from some place you don't expect?

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



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: FW: struts with ojb, multiple repositories

2002-12-12 Thread Jack
Found /test/org/apache/ojb/odmg/MultiDBUsageTest.java in the ojb test
source. That and with the docs showing the inclusion of
repositoryFarAway.xml in repository.xml gives ideas on how your example in
your book could be modified to cater to multiple dbs.

What I'm doing is shown below.

public class MainService implements IMainService
{
Implementation odmg = null;
Implementation odmgB = null;
Database db = null;
Database dbB = null;

public MainService() throws DatabaseException{
super();
init();
}
...


// opens the databases and prepares them for connections
private void init() throws DatabaseException {
odmg = OJB.getInstance();
odmgB = OJB.getInstance();
db = odmg.newDatabase();
dbB = odmgB.newDatabase();
try{
db.open("repository.xml", Database.OPEN_READ_WRITE);
dbB.open("repositoryB.xml", Database.OPEN_READ_WRITE);
} catch (ODMGException ex){
ex.printStackTrace();
throw new DatabaseException( ex );
}
}


private OQLQuery createQuery( String queryStr ) {
OQLQuery query = odmg.newOQLQuery();
try{
query.create( queryStr );
}catch( Exception ex ){
ex.printStackTrace();
}
return query;
}
private OQLQuery createQueryB( String queryStr ) {
OQLQuery query = odmgB.newOQLQuery();
try{
query.create( queryStr );
}catch( Exception ex ){
ex.printStackTrace();
}
return query;
}

}

---
Transactions are then associated appropriately with:

tx = odmg.newTransaction();

OR

txB = odmgB.newTransaction();

---

Hope I'm doing this correctly...

  -- jack


> -Original Message-
> From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 29, 2002 11:22 AM
> To: Struts Users Mailing List
> Subject: Re: FW: struts with ojb, multiple repositories
>
>
> Jack,
>
>   I don't see why it can't be, although I should admit that I
> haven't tried it myself. I would indeed use a factory to return
> back an instance of whichever repository you needed to use. If
> you plan to use any type of caching and you need multiple caches
> to be synchronized, I think the latest release of OJB provides
> some type of mechanism for this. Sorry for the fuzzy details, I
> just remember reading something about it on the OJB site.
>
> Good luck,
> Chuck
>
> >
> > From: "Jack" <[EMAIL PROTECTED]>
> > Date: 2002/11/29 Fri AM 10:05:59 EST
> > To: <[EMAIL PROTECTED]>
> > Subject: FW: struts with ojb, multiple repositories
> >
> >
> >  I'm using an application scoped 'service' which uses ojb's odmg
> >  implementation as done in Chuck Cavaness' Struts Model Components
> >  chapter. Works well with one repository. I now need to use two
> >  repositories. I've worked out the configuration for multiple
> >  repositories (one postgresql db, and one mysql) in ojb, which
> >  'works' but am concerned about threading issues given that
> >  OJB.java holds open one database at a time. I've also reviewed
> >  Chuck's Beer4All app and it seems to take a slightly different
> >  approach, getting an instance of the 'service' from a service
> >  factory from within a base action. Is this latter approach better
> >  for using multiple ojb repositories in a Struts framework ? Can
> >  the O'Reilly book example be modified to handle multiple
> >  databases in odmg...
> >
> >- jack
> >
> > --
> > 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: Struggling with indexed/repeating input fields

2002-12-12 Thread Karr, David
I know this is confusing.  I think the problem might be that you don't have an indexed 
setter on "TimeProofFormBean" for the "element" property.

> -Original Message-
> From: Michael Olszynski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 8:58 AM
> To: [EMAIL PROTECTED]
> Subject: Struggling with indexed/repeating input fields
> 
> 
> I saw a post in the thread 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg
> 49234.html
> 
> I have the same problem and I can´t get it working. Perhaps 
> someone can help me? It´d be very nice.
> 
> I have the problems that the data in my formbean isn´t 
> updated. I mean, I get the data form my formbean in the jsp 
> page. But when I edit it and press submit, it is not updated. 
> I get the same data as I got before.
> 
> Do you see perhaps an error? (I reviewed it now 7 hours with 
> the sample source attached in the upper thread, and I can´t 
> find any error. Thank you)
> 
> It´s kind of urgent, because my thesis should be finished at 
> the end of december. Thanks
> 
> Take care Michael
> 
> **
> 
> This is my projekterfassung.jsp:
> 
>  type="de.proway.zerf.web.bean.TimeProofFormBean">
> 
>  name="timeProofForm" property="vector">
> 
> 
> maxlength="2" indexed="true"/> :  property="fromMinute" size="2" maxlength="2" indexed="true"/> 
> maxlength="2" indexed="true"/>   :  property="toMinute" size="2" maxlength="2" indexed="true"/>   
> 
> 
> 
> **
> 
> 
> My struts-config.xml:
> 
> 
> 
>"-//Apache Software Foundation//DTD Struts 
> Configuration 1.0//EN"
>   
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
> 
> 
> 
>   
> 
>   
>   
> 
> name="timeProofForm"
>type="de.proway.zerf.web.bean.TimeProofFormBean"/>
> 
> 
> 
> 
>   
>   
> 
>   path="/projekterfassung.jsp"/>
> 
>   
> 
> 
>   
>   
> 
>
> type="de.proway.zerf.web.controller.ShowTimeProofAction"
>  name="timeProofForm"
>  scope="request"
>  input="/projekterfassung.jsp">
>  
> 
> 
> type="de.proway.zerf.web.controller.SaveTimeProofAction"
>  name="timeProofForm"
>  scope="request"
>  input="/projekterfassung.jsp">
>  
> 
> 
> type="org.apache.struts.actions.AddFormBeanAction"/>
> type="org.apache.struts.actions.AddForwardAction"/>
> type="org.apache.struts.actions.AddMappingAction"/>
> type="org.apache.struts.actions.ReloadAction"/>
> type="org.apache.struts.actions.RemoveFormBeanAction"/>
> type="org.apache.struts.actions.RemoveForwardAction"/>
> type="org.apache.struts.actions.RemoveMappingAction"/>
> 
> 
>   
> 
> 
> **
> 
> SaveTimeProofAction.java
> 
> package de.proway.zerf.web.controller;
> 
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
> import de.proway.zerf.web.bean.*;
> import de.proway.zerf.app.controller.*;
> import de.proway.zerf.web.util.*;
> import de.proway.zerf.app.bean.*;
> import java.util.*;
> import java.text.*;
> 
> public final class SaveTimeProofAction extends LoginCheckAction {
> public ActionForward perform( ActionMapping mapping,
> ActionForm form, HttpServletRequest request,
> HttpServletResponse res ) {
> 
> TimeProofFormBean tpf = (TimeProofFormBean) form;
> 
> System.out.println(tpf.toString());
> System.out.println(tpf.getVector().toString());
> for( int i=0; i < tpf.getVector().size(); ++i ) {
>   System.out.println( ((TimeProofTableBean) 
> tpf.getVector().get(i)).getDate()  );
>   System.out.println( ((TimeProofTableBean) 
> tpf.getVector().get(i)).getFromHour()  );
>   System.out.println( ((TimeProofTableBean) 
> tpf.getVector().get(i)).getFromMinute()  );
> }
> 
> return mapping.findForward( "done" );
> }
> }
> 
> **
> 
> Show TimeProofAction.java
> 
> package de.proway.zerf.web.controller;
> 
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
> import de.proway.zerf.web.bean.*;
> import de.proway.zerf.app.controller.*;
> import de.proway.zerf.web.util.*;
> import de.proway.zerf.app.bean.*;
> import java.util.*;
> import java.text.*;
> 
> public final class ShowTimeProofAction extends LoginCheckAction {
>  public ActionForward perform( ActionMapping mapping,
> ActionForm form, HttpServletRequest requ

html:image tag with multiple application modules

2002-12-12 Thread Ronald Hulen
I really like the idea that 1.1 supports  splitting an application into 
multiple application modules but I have the following problem. 

The html:image taglib does not support using the application context 
root to generate the image URL, it uses the page context root. I would 
like all my images to be in the application context root directory.  
However, when I use the 'page=' attribute of the html:image tag, it 
appends the application module path, not the context root to the images 
relative URL.  The only other option I have is to hard code the URL with 
the 'src=' attribute.

Would like to do:

context root =  /
images =  /images/*.gif
application module =  /modulename/*.jsp


Currently have to do:

context root =  /
application module =  /modulename/*.jsp
images  =  /modulename/images/*.gif

Note: this forces me to replicate the images in each application module 
directory.

Does anyone have any ideas?

- Ron Hulen



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



Re: Using HTML frames in Struts

2002-12-12 Thread Mark
David

I'm developing a webapplication using struts and it has frames..

Other than 

" />

To pass the session through for paranoid people who thing cookies can take
over your mind. But no other problems..

Cheers

mark




On 12-12-2002 18:18, "David Rothschadl" <[EMAIL PROTECTED]> wrote:

> 
> Hello,
> 
> Is there anybody who has used frames within the Struts framework? Our frame
> set-up, which worked fine in our non-Struts HTML pages, is not working with
> Struts. Any working examples would be greatly appreciated!
> 
> David Rothschadl
> 
> 
> 


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




RE: Using HTML frames in Struts

2002-12-12 Thread Ahmed ALAMI
Check the template tag.
It's works like frame-set.

or include tag

-Message d'origine-
De : David Rothschadl [mailto:[EMAIL PROTECTED]]
Envoyé : Thursday, December 12, 2002 6:19 PM
À : Struts Users Mailing List
Objet : Using HTML frames in Struts



Hello,

Is there anybody who has used frames within the Struts framework? Our frame set-up, 
which worked fine in our non-Struts HTML pages, is not working with Struts. Any 
working examples would be greatly appreciated!

David Rothschadl



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




Using HTML frames in Struts

2002-12-12 Thread David Rothschadl

Hello,

Is there anybody who has used frames within the Struts framework? Our frame set-up, 
which worked fine in our non-Struts HTML pages, is not working with Struts. Any 
working examples would be greatly appreciated!

David Rothschadl





Re: dropdowns being reset

2002-12-12 Thread Justin Ashworth
Hi David,

When starting out, it helps to keep in mind that for the most part whenever
you see any custom tag attribute called "property", the tag is actually
calling a method on some object to retrieve a private member variable from
that object (via JavaBeans introspection).  For instance, the 
tag in my original example is calling getHomeDepartmentRoles() on the form
bean (the default bean in this case) to get the value of
homeDepartmentRoles.

First of all, homeDepartmentRoles in my example is a String array, not a
String.  This can probably be a String if your select box doesn't allow for
select multiple (i.e. it's a drop-down versus a list box), although I
haven't worked with that case yet.  It has to be an array in my example
because it contains multiple elements - each array element represents one
value that will be selected when the select box is displayed.
homeDepartmentRoles is a member variable of the ActionForm, so there is a
getHomeDepartmentRoles() method on my ActionForm that returns a String[]
array (you should also have a setHomeDepartmentRoles(String[]) method for
when the form is submitted).  Before the form is displayed, the way you can
get data into the homeDepartmentRoles member variable is by populating it in
the form bean from your Action class.  So in your Action class you would
have whatever code you need to create the list of selected roles, then store
that on the form via form.setHomeDepartmentRoles(roles), and then when the
form is displayed the  tag will call getHomeDepartmentRoles()
to get the String[] of selected values.

The  tag takes a java Collection object in the "collection"
attribute.  It doesn't have to separate the values in any special way - it
just iterates through the Collection of LabelValueBean objects, with each
item in the Collection representing a different item in the list.  The
"property" and "labelProperty" attributes tell the  tag which
methods to call on the LabelValueBean object to create the value and text of
each HTML  tag.  In my original example, the  tag
would call the methods getLabel() and getValue() methods on each
LabelValueBean object in the Collection to display the value and text.  This
will create all the options in your select box.

Here's an example...

Let's say that getHomeDepartmentRoles() returns me a String[] with the
following 3 items: 5, 6, 8

Let's also say that the roles Collection looks like this:
[new LabelValueBean("5", "Role 5")],
[new LabelValueBean("6", "Role 6")],
[new LabelValueBean("7", "Role 7")],
[new LabelValueBean("8", "Role 8")],
[new LabelValueBean("9", "Role 9")]

The HTML that will be generated, based on my original example, is this:


Role 5
Role 6
Role 7
Role 8
Role 9


You can see that when an item in the homeDepartmentRoles array matches up
with an item in the roles Collection, it is displayed as selected.

Hopefully this clears things up.  If not, reply to the list and cc to me and
hopefully myself or somebody else can try to clear up any specific
questions.

Justin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 10:42 AM
Subject: Re: dropdowns being reset


>
> Hi Justin,
>
> Thanks for your reply, I'm very new to struts. Where do you declare the
> homeDepartmentRoles string? and how does the  separate out the values? are they delimited in any way?
>
> Thanks,
> David
>
>
>
>
>   "Justin Ashworth"

>   <[EMAIL PROTECTED] To:  "Struts Users
Mailing List" <[EMAIL PROTECTED]>
>   rg>   cc:
> Subject: Re: dropdowns
being reset
>   12/12/2002 15:21
>   Please respond to "Struts
>   Users Mailing List"
>
>
>
>
>
> Hi David,
>
> Here is an example.  In this example, homeDepartmentRoles is a String[],
> representing all of the roles that a particular user has.  The "roles"
> collection in the  tag is a Collection of LabelValueBean
> objects (see
>
http://jakarta.apache.org/struts/api/org/apache/struts/util/LabelValueBean.h
>
> tml).  The LabelValueBean objects in the collection represent ALL items in
> the select list.  To put it another way, the collection specified in the
>  tag should have ALL items you want to display in your
select
> box, whereas the  "property" attribute is the array that
> stores
> all items which will show up selected when the select box is displayed.
>
> 
>  labelProperty="value"/>
> 
>
> This can be done a number of different ways, but this is the best way that
> I
> have found works for my needs.
>
> HTH,
>
> Justin
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, December 12, 2002 8:07 AM
> Subject: RE: dropdowns being reset
>
>
> >
> > Is there any way you could mail me sample code for this Options tag?
> >
> > Thanks,
> > David
> >
> >
> >
> >

Re: Struts/Tiles question[2]

2002-12-12 Thread Cedric Dumoulin


Gemes Tibor wrote:


2002. december 12. 16:27 dátummal Cedric Dumoulin ezt írtad:
 

 I don't remind the exact day when I have added the multi-modules
behavior. To be sure, take the latest nightly build.
   


By the what is the multi-modules like? 

 This is the module capability provided by struts.


Where can I read some docs about it? 
 

 No real doc for now, only the initialization config.


Do I have to create different layouts for each module?


 Do as you want.
 If you want to have a consistent site, create common layouts used by 
all modules. Each module can also declare additional layouts.


Can I use some definition defined in other module?


 Yes and no ;-).
 You can only access definitions loaded by the factory. If the factory 
is dedicated to the module, you can't access definitions loaded by 
others factories.
 However, you can instruct the factories to load the same config file, 
so you will have the same definitions name in each factory.


What if there is a big-big common layout for the whole site, and some layouts 
per modules?

 There is no problem for that.

 The actual limitation from the "multi-module" in tiles factory is that 
tiles config files don't automatically add the module prefix: you need 
to use urls relative to the application, not to the module.

 Cedric


Tia,

Tib

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


 



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




RE: how to submit a form using html:link

2002-12-12 Thread Sukhenko, Mikhail (Contr)
try not using struts  tag, instead just use regular html tag for
your form declaration.
.

See if that works



-Original Message-
From: Amit Badheka [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 3:52 AM
To: Struts Users Mailing List
Subject: how to submit a form using html:link


Is it possioble to submit a form using html:link tag.
I want to call a servlet that resided on another war file. I am able to call
it by click on html link.
But, my requirement is to submit the form.



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




Struggling with indexed/repeating input fields

2002-12-12 Thread Michael Olszynski
I saw a post in the thread 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg49234.html

I have the same problem and I can´t get it working. Perhaps someone can help me? It´d 
be very nice.

I have the problems that the data in my formbean isn´t updated. I mean, I get the data 
form my formbean in the jsp page. But when I edit it and press submit, it is not 
updated. I get the same data as I got before.

Do you see perhaps an error? (I reviewed it now 7 hours with the sample source 
attached in the upper thread, and I can´t find any error. Thank you)

It´s kind of urgent, because my thesis should be finished at the end of december. 
Thanks

Take care Michael

**
This is my projekterfassung.jsp:






:  
  :



**

My struts-config.xml:



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>




  

  
  






  
  

 

  


  
  

 
 

  
 











  


**
SaveTimeProofAction.java

package de.proway.zerf.web.controller;

import javax.servlet.http.*;
import org.apache.struts.action.*;
import de.proway.zerf.web.bean.*;
import de.proway.zerf.app.controller.*;
import de.proway.zerf.web.util.*;
import de.proway.zerf.app.bean.*;
import java.util.*;
import java.text.*;

public final class SaveTimeProofAction extends LoginCheckAction {
public ActionForward perform( ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse res ) {

TimeProofFormBean tpf = (TimeProofFormBean) form;

System.out.println(tpf.toString());
System.out.println(tpf.getVector().toString());
for( int i=0; i < tpf.getVector().size(); ++i ) {
  System.out.println( ((TimeProofTableBean) tpf.getVector().get(i)).getDate()  
);
  System.out.println( ((TimeProofTableBean) 
tpf.getVector().get(i)).getFromHour()  );
  System.out.println( ((TimeProofTableBean) 
tpf.getVector().get(i)).getFromMinute()  );
}

return mapping.findForward( "done" );
}
}

**
Show TimeProofAction.java

package de.proway.zerf.web.controller;

import javax.servlet.http.*;
import org.apache.struts.action.*;
import de.proway.zerf.web.bean.*;
import de.proway.zerf.app.controller.*;
import de.proway.zerf.web.util.*;
import de.proway.zerf.app.bean.*;
import java.util.*;
import java.text.*;

public final class ShowTimeProofAction extends LoginCheckAction {
 public ActionForward perform( ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse res ) {

Vector newCollection = new Vector();
TimeProofFormBean tpfb = ( TimeProofFormBean )form;
TimeProofTableBean tptb1 = new TimeProofTableBean();
TimeProofTableBean tptb2 = new TimeProofTableBean();
tptb1.setFromMinute(3);
tptb2.setFromMinute(4);
newCollection.add(tptb1);
newCollection.add(tptb2);
tpfb.setVector(newCollection);
return mapping.findForward( "done" );
}
}

**
TimeProofFormBean.java

package de.proway.zerf.web.bean;

import java.util.*;

import org.apache.struts.action.*;

public class TimeProofFormBean extends ActionForm {

public TimeProofFormBean() {
}

public Vector getVector() {
return this.vector;
}

public void setVector( Vector v ) {
this.vector = v;
}

public int getEmployeeID() { return employeeID; }

public void setEmployeeID( int employeeID ) { this.employeeID = employeeID; }

public int getProjectID() { return projectID; }

public void setProjectID( int projectID ) { this.projectID = projectID; }

private int employeeID;
private int projectID;
private Vector vector = new Vector();
}
**
TimeProofTableBean.java

package de.proway.zerf.web.bean;


import java.util.*;
import java.io.Serializable;

public class TimeProofTableBean implements Serializable  {
public TimeProofTableBean(){}

public String getFromHour(){
return FromHour;
}

public void setFromHour(String FromHour){
this.FromHour = FromHour;
}

public String getToHour(){
return ToHour;
}

public void setToHour(String ToHour){
this.ToHour = ToHour;
}

public String getFromMinute(){
return FromMinute;
}

public void setFromMinute(String FromMinute){
this.FromMinute = Fro

Re: Struts/Tiles question[2]

2002-12-12 Thread Gemes Tibor
2002. december 12. 16:27 dátummal Cedric Dumoulin ezt írtad:
>   I don't remind the exact day when I have added the multi-modules
> behavior. To be sure, take the latest nightly build.

By the what is the multi-modules like? Where can I read some docs about it? 

Do I have to create different layouts for each module?

Can I use some definition defined in other module?

What if there is a big-big common layout for the whole site, and some layouts 
per modules?

Tia,

Tib

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




Re: Netscape problem?

2002-12-12 Thread David Graham
Your main problem is that Netscape is a terrible browser.  Other than that, 
you could use a link instead of a form.

David






From: "Jurgen ERRIJGERS" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:  Netscape problem?
Date: Thu, 12 Dec 2002 16:34:37 +0100

Hi,

I am using struts1.1-b2 with BEA WLS6.1 on Windows2000.
I've created a login page with a simple login form (DynaValidatorForm)
:
html:form action="login" method="post"
...
html:form

My Action class verifies the credentials and throws an Exception when
the credentials are invalid. This Exception is declared in
struts-config.xml as part of the action element :
action path="/login"
  type="LoginAction"
  name="LoginForm"
  scope="request"
  input="/welcome.jsp">
   exception key="exception.invalidLogin.prefix"
  path=".exception"

type="com.dhl.gcc.taxibooking.exceptions.InvalidLoginException"
   forward name="success" path="/overview.html" redirect="true"
action

My problem :
I am using Netscape 4.75.
When I enter the wrong credentials I get to the exception page. It
displays the right message etc. So far, so good.
This page also contains a little form that sends the user back to the
appropriate page. When I submit this form I get a pop-up box showing :

The document contained no data.
Try again later, or contact the server's administrator.

When I take a look at the page's source code, it shows :
Missing Post reply data
Data Missing
This document resulted from a POST operation and has expired from the
cache.  If you wish you can repost the form data to recreate the
document by pressing the reload button.

Pressing the reload button doesn't solve it.
I don't have this problem when using IE5+,Opera6 or Netscape 7.

Any suggestions, comments,... are welcome.

Thanks.




--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Netscape problem?

2002-12-12 Thread Jurgen ERRIJGERS
Hi,

I am using struts1.1-b2 with BEA WLS6.1 on Windows2000.
I've created a login page with a simple login form (DynaValidatorForm)
:
html:form action="login" method="post"
...
html:form

My Action class verifies the credentials and throws an Exception when
the credentials are invalid. This Exception is declared in
struts-config.xml as part of the action element :
action path="/login"
  type="LoginAction"
  name="LoginForm"
  scope="request"
  input="/welcome.jsp">
   exception key="exception.invalidLogin.prefix"
  path=".exception"

type="com.dhl.gcc.taxibooking.exceptions.InvalidLoginException"
   forward name="success" path="/overview.html" redirect="true"
action

My problem :
I am using Netscape 4.75.
When I enter the wrong credentials I get to the exception page. It
displays the right message etc. So far, so good.
This page also contains a little form that sends the user back to the
appropriate page. When I submit this form I get a pop-up box showing :

The document contained no data.
Try again later, or contact the server's administrator.

When I take a look at the page's source code, it shows :
Missing Post reply data
Data Missing
This document resulted from a POST operation and has expired from the
cache.  If you wish you can repost the form data to recreate the
document by pressing the reload button.

Pressing the reload button doesn't solve it.
I don't have this problem when using IE5+,Opera6 or Netscape 7.

Any suggestions, comments,... are welcome.

Thanks.




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




Re: Grouping error messages by the field in error

2002-12-12 Thread Gemes Tibor
2002. december 12. 15:15 dátummal Krishnakumar N ezt írtad:

> Using html:messages or logic tags, is it possible to group the error
> messages by each property which has errors attached to it and output a
> header, without explicitly coding a html:messages block for each property?

Yes. Read the Docs for the html:errors. Check the "property" attribute.

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.errors

Hth,

Tib

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




Re: Struts/Tiles question[2]

2002-12-12 Thread Cedric Dumoulin

 I don't remind the exact day when I have added the multi-modules 
behavior. To be sure, take the latest nightly build.

   Cedric

Susan Bradeen wrote:

On 12/12/2002 04:11:08 AM Cedric Dumoulin wrote:


 

If you use latest nightly build of Struts1.1 (recommended), you need ...
   



Is the 20021107 build close enough? Or go with last night's build?  I am 
just starting to implement Tiles today (got Struts in Action opened to 
chapter 11 :)). 

 

Cedric

   


Thanks, 
Susan Bradeen

 

--
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: Forward action.

2002-12-12 Thread struts user

Hi All,

I found my problem. The problem was in my JS file. I
accidentally called the document.myform.submit() twice
and the Tomcat generates the following IO exceptions.
Thank you for all of your feedbacks!

- Lee

--- Adolfo Miguelez <[EMAIL PROTECTED]> wrote:
> I would be interested also in feedback on this
> issue, since I get this 
> exception too often. Nothing happends and pages are
> rendered properly but it 
> is really anoying.
> 
> It looks like that server lose connection with the
> client (despite HTTP is a 
> connectionless protocol). Does any of you could
> provide an explanation?
> 
> I am using VisualAge 3.5.e with WTE as IDE.
> 
> TIA,
> 
> Adolfo.
> 
> 
> 
> 
> 
> 
> >From: struts user <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> >Subject: RE: Forward action.
> >Date: Wed, 11 Dec 2002 14:15:09 -0800 (PST)
> >
> >
> >Hi,
> >
> >The page is displayed fine. However, Tomcat
> returned
> >me with the following stack traces. Do you know
> why?
> >Thanks!
> >
> >- Lee
> >
> >2002-12-11 16:12:28 - Ctx() : IOException in R( /)
> -
> >java.net.SocketException: C
> >onnection aborted by peer: socket write error
> > at
> >java.net.SocketOutputStream.socketWrite(Native
> Method)
> > at
>
>java.net.SocketOutputStream.write(SocketOutputStream.java:83)
> > at
>
>org.apache.tomcat.modules.server.Http10.doWrite(Http10.java:436)
> > at
>
>org.apache.tomcat.modules.server.HttpResponse.doWrite(Http10Intercept
> >or.java:480)
> > at
>
>org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:
> >188)
> > at
>
>org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
> > at
>
>org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:315)
> > at
>
>org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
> > at
>
>org.apache.tomcat.core.Response.finish(Response.java:271)
> > at
>
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:838
> >)
> > at
>
>org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
> >Http10Interceptor.java:176)
> > at
>
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> >:494)
> > at
>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> >ool.java:516)
> > at java.lang.Thread.run(Thread.java:484)
> >2002-12-11 16:12:28 - ErrorHandler: Error loop for
> R(
> >/) error java.net.SocketEx
> >ception: Connection aborted by peer: socket write
> >error
> >
> >--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > > Lee wrote:
> > > > I would like to know how do I forward from
> action
> > > to
> > > > action? Can I do the following in my  ...
> > > > path="/showUsers.do"/>?
> > >
> > > Those tags look fine to me, and similar to what
> I'm
> > > using.  Did you try this
> > > and get an error?
> > >
> > > --
> > > Wendy Smoak
> > > Applications Systems Analyst, Sr.
> > > Arizona State University PA Information
> Resources
> > > Management
> > >
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> >http://mailplus.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
>
_
> The new MSN 8: advanced junk mail protection and 2
> months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: dropdowns being reset

2002-12-12 Thread Justin Ashworth
Hi David,

Here is an example.  In this example, homeDepartmentRoles is a String[],
representing all of the roles that a particular user has.  The "roles"
collection in the  tag is a Collection of LabelValueBean
objects (see
http://jakarta.apache.org/struts/api/org/apache/struts/util/LabelValueBean.h
tml).  The LabelValueBean objects in the collection represent ALL items in
the select list.  To put it another way, the collection specified in the
 tag should have ALL items you want to display in your select
box, whereas the  "property" attribute is the array that stores
all items which will show up selected when the select box is displayed.





This can be done a number of different ways, but this is the best way that I
have found works for my needs.

HTH,

Justin

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 8:07 AM
Subject: RE: dropdowns being reset


>
> Is there any way you could mail me sample code for this Options tag?
>
> Thanks,
> David
>
>
>
>   shirishchandra.sakhare@ubs.
>   com To:
[EMAIL PROTECTED]
>   cc:
>   12/12/2002 12:33Subject: RE: dropdowns
being reset
>   Please respond to "Struts
>   Users Mailing List"
>
>
>
>
>
> try using html:options instead..and supply it with the collection or array
> of
> indexes...
>
> because if in html:select u specify property attribute, and the property
is
>
> there in the request(which should be the case when u forward the request
> back
> to same jsp with errors..),the same is used to preselect a element.
> I think may be as u are using html:ootion in a loop, u are having this
> problem.
>
> regards,
> Shirish
>
> -Original Message-
> From: david.heagney [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 1:17 PM
> To: struts-user; david.heagney
> Subject: dropdowns being reset
>
>
> Hi,
>
> I have a page in my STRUTS app which dynamically populates a dropdown
list:
>
> Month
>
> 
> --
> <% for (int i=1; i <= 12; i++) { %>
>   <%= getMonthName (i) %>
> <% } %>
> 
>
> getMonthName() returns the month as a string based in the passed integer,
1
> - 12.
>
> If the user submits the form and leaves out a required field, the above
> dropdown gets re-set, i.e. doesn't retain the selection when the page is
> refreshed with it's errors... does anyone know how i can avoid this?
>
> Thanks,
> David
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information.  If you have
> received it in error, please notify the sender immediately and delete the
> original.  Any other use of the email by you is prohibited.
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information.  If you have
> received it in error, please notify the sender immediately and delete the
> original.  Any other use of the email by you is prohibited.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Processing multiple records all at once

2002-12-12 Thread V. Cekvenich
1. make the bean implement a collection interface.
2. use indexed tag
DONE! Struts controller does the magic. The multi row is basis for doing 
master detail and many to many on the screen. Most pages need indexed 
(mutlirow, M/D, etc.) forms processing.

Source Ex:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BaseBeanImpl.java

This is a "base" bean, and it implements collection. See the iterator 
adapter in source above.
Struts sees this bean as a "collection" (but is's a bean) and it auto 
sets all the properties. You do nothing in action, etc., other than set 
up your base bean as a collection like above. Base, as in other beans 
extend this class. This means no code needed in action or concreate 
beans to handle multi row, just some code to set up bus. M/d processing.

Than your JSP is same as before, you just use indexed property as so:
<%@ tag lib uri="struts/html" prefix="html" %>
<%@ taglib uri="struts/logic" prefix="logic" %>
<%@ taglib uri="jstl/c" prefix="c" %>










FieldName:













For more come to my "1 day best practice Struts" class.
http://www.basebeans.com/do/classReservation
money back if you don't like. You'll learn at least 10 more cool things, 
but some Struts is a pre-req., I do not do intro to Struts.

hth, .V
(voted best instructor as per JDJ)

Brad Balmer wrote:
I was looking on the basicPortal site for the example, but couldn't find
it.  Could you give a direct link?

-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of V. Cekvenich
Sent: Thursday, December 12, 2002 6:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Processing multiple records all at once

This is good.

However a bit much copying. Also, quite a few forms could have multi

row processing or master/detail processing. One does not want to to it 
over and over; if you do OO, you could create a basebean that does this 
in the ancestor, by having your formbean implement a collection, as in 
basicPortal.com open source example.

.V

Max Cooper wrote:

Brad,

I have written some pages/actions that do what you describe here. I


believe


that one way to go would be to use nested properties, but I haven't


tried


that yet, so I am not sure how to do it. The solution I used was to


create


an ActionForm for the page that has arrays for each field from the


rows.


Something like this (generic example -- replace rowId and rowProperty1


with


your real row properties):

public class RowsForm extends ActionForm {
  private String[] rowId;
  private String[] rowProperty1;
  public String[] getRowId() {
 return rowId;
  }
  public void setRowId(String[] rowId) {
 this.rowId = rowId;
  }
  public String[] getRowProperty1() {
 return rowProperty1;
  }
  public void setRowProperty1(String[] rowProperty1) {
 this.rowProperty1 = rowProperty1;
  }
}

The properties are arrays to receive values from each row in the data


set


when you submit the form. For iterating through the data, we added a


method


that would return a Collection of objects, where each represents a


single


row. Something like this:

public class RowForm extends ActionForm { // this could also be a


plain-old


JavaBean, too
  private String id;
  private String property1;
  // getters and setters for the id and property1
}

// add this method to RowsForm
  public Collection getRows() {
 Collection rows = new ArrayList();
 final int size = rowId.length;
 for (int i = 0; i < size; i++) {
RowForm row = new RowForm();
row.setId(rowId[i]);
row.setProperty1(rowProperty1[i]);
rows.add(row);
 }
 return rows;
  }

So, that setup will allow you to get the data out of the form after


the user


submits their changes (by calling RowsForm.getRows()). You will get


data for


each row, so you still need to decide which rows were changed, and


which


ones the user simply left alone.

As for getting the data into the form and displaying it on the page,


you


could add another method like populateForm(Vector rowData) to copy the


data


to the arrays like this:

// another method in RowsForm
  public void populateForm(Vector rowData) {
 // get the Vector size
 final int size = rowData.size();
 // initialize the arrays
 rowId = new String[size];
 rowProperty1 = new String[size];
 // copy the data from the objects in the Vector into the arrays
 Vector rowData = new Vector();
 final int size = rowData.size();
 Enumeration enum = rowData.elements();
 for (int i = 0; i < size; i++) {
Data element = (Data) enum.nextElement();
rowId[i] = String.valueOf(element.getId());
rowProperty1[i] = element.getProperty1();
 }
  }

However, it might be a bit wasteful to copy all the data into the


arrays if


you are going to call getRows() to turn them back into a Collection of
objects so that you can use the  tag to display them in


the


JSP. 

Re: msg bean from jdbc/ldap vs properties files

2002-12-12 Thread BaTien Duong
Has anyone known about JdbcHandler for logging using commons-logging as done
in Struts?
It would be great if there is this addition for jdk1.4 logging.
Thanks.

- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 10:12 PM
Subject: Re: msg bean from jdbc/ldap vs properties files


> On Wed, 2002-12-11 at 22:52, Hanasaki JiJi wrote:
> > Is there any way to pull from jdbc and/or ldap instead of properties
files?
> >
> > Thanks
> > --
>
> I assume you mean pulling your application's resources
> (ApplicationResources.properties) from a Relational Database
>
> (Sorry, can't help you with LDAP)
>
> I can help you with getting them from a database.  I've written an
> implementation of MessageResources that does just that.
>
> It's called DBMessageResources, but will most likely be renamed later
> when I add support for Torque.
>
> You can find it as part of a modified version of the struts-example
> which I wrote to develop and test this extension.
>
>  http://www.open-tools.org/struts-atlanta/downloads
>
>
> --
> James Mitchell
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Map-backed ActionForms with JSTL

2002-12-12 Thread Justin Ashworth
Thanks Kris - this worked.  Seems an obvious solution now that I look at it.
:)

Thanks again,

Justin

- Original Message -
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 11:59 AM
Subject: RE: Map-backed ActionForms with JSTL


> Assuming you've got something like:
>
> public ProfilePageForm extends ActionForm {
>   private final Map map = new HashMap();
>
>   public void setProperty(String key, Object value) {
> map.put(key, value);
>   }
>
>   public Object getProperty(String key) {
> return map.get(key);
>   }
> }
>
> As a standard bean, there really aren't any properties exposed for JSTL to
play
> with. You'd have to add something like:
>
> public Map getMap() {
>   return map;
> }
>
> Then you should be able to do:
>
> 
>
> or:
>
> 
>
> Quoting Jarnot Voytek Contr AU HQ/SC <[EMAIL PROTECTED]>:
>
> > not a JSTL expert here, but have you tried
${profilePage.property["ID"]}?
> >
> > -Original Message-
> > From: Justin Ashworth [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 11, 2002 10:34 AM
> > To: Struts Users Mailing List
> > Subject: Map-backed ActionForms with JSTL
> >
> >
> > Hi,
> >
> > Has anyone been able to successfully access properties in a map-backed
> > ActionForm with JSTL?  I haven't been able to come up with the
expression
> > language to retrieve properties out of a Map in my ActionForm.  If this
is
> > possible, what is the syntax?  I have tried  > value="${profilePage[property].ID}", but that didn't return anything.  I
> > don't get a compilation error - it just returns empty.  profilePage is
my
> > ActionForm, property is the name of the Map within my form (with the
> > appropriate getProperty(String) and setProperty(String, Object)
methods),
> > and ID is the key within the property Map.
> >
> > Once I get this figured out, I'm going to try to replace ID with a
constant
> > variable defined in some class.  Ideas on that?
> >
> > Thanks,
> >
> > Justin
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> Kris Schneider 
> D.O.Tech   
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: HTML anchor with Struts and JSP?

2002-12-12 Thread Gemes Tibor
2002. december 12. 15:58 dátummal Gemes Tibor ezt írtad:
> 2002. december 12. 16:13 dátummal Michael Marrotte ezt írtad:
> > Are there any straightforward ways to leverage Struts to do this?
>
> Is the anchor's name static, or dynamically generated?
> Imho if dynamic you can declare a forward to your action with a # in its
> name, and add redirect="true" to its attributes.


Sorry. I meant 
if static you can declare it in struts-config/action-mappings/action/forward

If dynamic you have to create an ActionForward in your actions's execute, set 
it redirect, and return.

Hth,

Tib

Ps: sorry but my head is malfunctioning a bit 24 minutes more and I can go 
home. Today is not the day for working.

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




RE: Grouping error messages by the field in error

2002-12-12 Thread Bill Tomlinson
> From: Krishnakumar N [mailto:[EMAIL PROTECTED]]
> 
> I had sent this a query a while go, didn't get any responses. 
> Now this is
> proving to be a thorny problem so here it goes again. 

It's been my experience with various mailing lists that, if you don't get
any responses to a "how do I do this" question then that is usually an
indication that you can't (do that). This is becuase people generally only
write responses if they can answer in the positive; silence usually means a
negative.

But you'd really like confirmation, so I'll say that I don't think that
there is any way (with the current set of tags) to do what you want. The
manual "logic present" syntax you indicated for each field is the only way
that I've ever been able to do per field error messages.


> 
> Using html:messages or logic tags, is it possible to group the error
> messages by each property which has errors attached to it and output a
> header, without explicitly coding a html:messages block for 
> each property?
> 
> I have a form which has several fields, which are validated 
> in the Action
> class. These errors are added to the ActionErrors collection with the
> field's property name, for example, 
> errors.add("myFirstField", new Action Error(...);
> 
> Now, in the jsp, it is possible to produce an output such as 
> 
> Errors for My First Field
> 
> 
> 
> Errors for My Third Field
> 
> 
> I would like to do this without repeating a 
> 
>  
>  
>   
>  
> 
> 
> block for each property in the form as (a) this would be 
> error prone, we may
> miss to put this block for all the properties in the form and 
> (b) if this
> can be done without reference to specific form's properties, then this
> generic code can be pulled into each page via some kind of include or
> template mechanism.
> 
> I guess I am looking for something like 
> 
> 
>
>
> 
> 
> Is this possible with the standard tags? Thanks in advance 
> for any hints.
> 
> Cheers,
> Krishna
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: HTML anchor with Struts and JSP?

2002-12-12 Thread Gemes Tibor
2002. december 12. 16:13 dátummal Michael Marrotte ezt írtad:
> Are there any straightforward ways to leverage Struts to do this?

Is the anchor's name static, or dynamically generated?
Imho if dynamic you can declare a forward to your action with a # in its name, 
and add redirect="true" to its attributes.

Tib

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




HTML anchor with Struts and JSP?

2002-12-12 Thread Michael Marrotte
Problem:
Redirect or forward to an HTML anchor placed in a JSP file.

Are there any straightforward ways to leverage Struts to do this?

One solution that comes to mind is to set an anchor attribute in the
request, write it's value with JSP, jump to it using JavaScript.  But, I'd
like to stay away from JavaScript.

Any ideas are greatly appreciated.

--Michael Marrotte


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




Monkey Struts

2002-12-12 Thread Jonathan Holloway
Has anybody got Monkey Struts or the Monkey Tree example to work under
Struts 1.1b2
I can't seem to get it to work.  Are there any other complicated nesting
examples available?
 
Jon.
 
*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*
 



RE: Dynamic list validations

2002-12-12 Thread Bhamani, Nizar A TL56E
Thanks, will try this out.

Nizar Bhamani

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 12, 2002 1:55 AM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic list validations

If you use the field-indexed parameter of required-if, the
dependent-field will get the same index as the dependee field, for
example:


  
  
field[0]
lastName
  
   
field-indexed[0]
true
  
  
field-test[0]
NOTNULL
  
 

This says:  The firstName field is required if the lastName field is not
null, for each indexed value of dependents.  So if
dependents[3].firstName is being checked, it will be checked against
dependents[3].lastName

James


> -Original Message-
> From: Bhamani, Nizar A TL56E [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, December 11, 2002 5:34 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Dynamic list validations
> 
> 
> Thanks for your response. I am already using this 
> (requiredIf) with hardcoded field iterator index values i.e. 
> ' field0', 'field_value0', ...
> 
> I wanted to know if we can do this without hardcoding the indexes.
> 
> Nizar.
> 
> -Original Message-
> From: James Turner [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, December 11, 2002 5:10 PM
> To: 'Struts Users Mailing List'
> Cc: [EMAIL PROTECTED]
> Subject: RE: Dynamic list validations
> 
> Look at the new RequiredIf validation in the night build, it 
> supports just this mechanism.
> 
> James
> 
> > -Original Message-
> > From: Bhamani, Nizar A TL56E [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 11, 2002 5:07 PM
> > To: 'Struts Users Mailing List'
> > Subject: Dynamic list validations
> > 
> > 
> > Our forms have a list of input fields and we are using
> > struts-validators to Validate our forms. i.e. the form looks like :
> > 
> > InputField1[0]  InputField2[0]
> > InputField1[1]  InputField2[1]
> > InputField1[2]  InputField2[2] 
> > InputField1[3]  InputField2[3]
> > 
> > 
> > I want to perform validations in such a way that
> > If InputField1[0] is entered then InputField2[0] is required. 
> > If InputField2[1] is entered then InputField1[1] is required.
> > 
> > And so on...
> > 
> > Has anyone performed such validations ?
> > 
> > Nizar. 
> > CONFIDENTIALITY
> > This e-mail and any attachments are confidential and also may
> > be privileged. If you are not the named recipient, or have 
> > otherwise received this 
> > communication in error, please delete it from your inbox, 
> > notify the sender immediately, and do not disclose its 
> > contents to any other person, 
> > use them for any purpose, or store or copy them in any medium. 
> > Thank you for your cooperation. 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 




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




RE: Processing multiple records all at once

2002-12-12 Thread Brad Balmer
I was looking on the basicPortal site for the example, but couldn't find
it.  Could you give a direct link?

-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of V. Cekvenich
Sent: Thursday, December 12, 2002 6:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Processing multiple records all at once

This is good.

However a bit much copying. Also, quite a few forms could have multi

row processing or master/detail processing. One does not want to to it 
over and over; if you do OO, you could create a basebean that does this 
in the ancestor, by having your formbean implement a collection, as in 
basicPortal.com open source example.

.V

Max Cooper wrote:
> Brad,
> 
> I have written some pages/actions that do what you describe here. I
believe
> that one way to go would be to use nested properties, but I haven't
tried
> that yet, so I am not sure how to do it. The solution I used was to
create
> an ActionForm for the page that has arrays for each field from the
rows.
> Something like this (generic example -- replace rowId and rowProperty1
with
> your real row properties):
> 
> public class RowsForm extends ActionForm {
>private String[] rowId;
>private String[] rowProperty1;
>public String[] getRowId() {
>   return rowId;
>}
>public void setRowId(String[] rowId) {
>   this.rowId = rowId;
>}
>public String[] getRowProperty1() {
>   return rowProperty1;
>}
>public void setRowProperty1(String[] rowProperty1) {
>   this.rowProperty1 = rowProperty1;
>}
> }
> 
> The properties are arrays to receive values from each row in the data
set
> when you submit the form. For iterating through the data, we added a
method
> that would return a Collection of objects, where each represents a
single
> row. Something like this:
> 
> public class RowForm extends ActionForm { // this could also be a
plain-old
> JavaBean, too
>private String id;
>private String property1;
>// getters and setters for the id and property1
> }
> 
> // add this method to RowsForm
>public Collection getRows() {
>   Collection rows = new ArrayList();
>   final int size = rowId.length;
>   for (int i = 0; i < size; i++) {
>  RowForm row = new RowForm();
>  row.setId(rowId[i]);
>  row.setProperty1(rowProperty1[i]);
>  rows.add(row);
>   }
>   return rows;
>}
> 
> So, that setup will allow you to get the data out of the form after
the user
> submits their changes (by calling RowsForm.getRows()). You will get
data for
> each row, so you still need to decide which rows were changed, and
which
> ones the user simply left alone.
> 
> As for getting the data into the form and displaying it on the page,
you
> could add another method like populateForm(Vector rowData) to copy the
data
> to the arrays like this:
> 
> // another method in RowsForm
>public void populateForm(Vector rowData) {
>   // get the Vector size
>   final int size = rowData.size();
>   // initialize the arrays
>   rowId = new String[size];
>   rowProperty1 = new String[size];
>   // copy the data from the objects in the Vector into the arrays
>   Vector rowData = new Vector();
>   final int size = rowData.size();
>   Enumeration enum = rowData.elements();
>   for (int i = 0; i < size; i++) {
>  Data element = (Data) enum.nextElement();
>  rowId[i] = String.valueOf(element.getId());
>  rowProperty1[i] = element.getProperty1();
>   }
>}
> 
> However, it might be a bit wasteful to copy all the data into the
arrays if
> you are going to call getRows() to turn them back into a Collection of
> objects so that you can use the  tag to display them in
the
> JSP. If you can get the data into a Collection instead of a Vector (or
is a
> Vector a Collection these days?), you can just have a single
Collection
> property on RowsForm that you set in the action, and the JSP will call
the
> getter to get the Collection to iterate over. The JSP to iterate over
the
> Collection and write out the rows might look something like this:
> 
> 
> 
>   id
>   property1
> 
>  type="com.yada.yada.yada.RowForm" scope="request">
> 
>   
> <%-- write the id as text for display, and also as a hidden field
for
> submittal --%>
> 
> 
>   
>   
> 
>   
> 
> 
> 
> 
> Your Action will get the populated RowsForm on the submit, and you can
call
> RowsForm.getRows() to get a Collection of RowForm objects to work
with.
> 
> -Max
> 
> - Original Message -
> From: "Brad Balmer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 11, 2002 5:44 PM
> Subject: Processing multiple records all at once
> 
> 
> 
>>I've searched the internet and different news groups for an answer to
this
>>question, but have yet to find something that matches what I'm trying
to
> 
> do.
> 
>>I have an application that reads records from a table and creates an
>>instance of a bean for each row.  Th

  1   2   >