Re: Using struts with UIX and or BC4J

2002-03-11 Thread Oliver Kiessler

struts works fine for me in an oc4j container. i don't know about uix
though.
bc4j is interessting. that i would like to know too... ;)

oliver 


Am Mon, 2002-03-11 um 06.29 schrieb Gibson Brad - IL:
 Has anyone used UIX and or BC4J (Oracle 9iAS) with struts? 
  
 Brad Gibson
  
-- 
mailto: [EMAIL PROTECTED]
web: http://www.linustar.de
gnupg key: http://www.linustar.de/pgp/kiessler.gpg

---
Ubi non accusator, ibi non judex.


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




AW: [Fwd: Introducing Enterprise Object Broker]

2002-03-11 Thread Dimitrios Venizeleas

Hi,

we are using McKoi in a client-server Java RemoteDataEntry Software for
performing clinical trials. The Java-Application is opensource PhOSCo
(www.phosco.com) .
McKoi can be used both as a local database or as a multithread-,
transaction-capable database server.
We have been using it since  ~10 months and now in production environment,
although
we are still using a beta-version (because of system-validation).
We will later have McKoi running on the client side, and the central server
will run Oracle 8.1.7.
But in the moment McKoi is our central database server.
I didn't yet use it with struts, but I will!

Our experience with McKoi is very positive.

Regards,

Dimitris




 -Ursprüngliche Nachricht-
 Von: Emaho, Ghoot [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 7. März 2002 15:46
 An: Struts Users Mailing List
 Betreff: RE: [Fwd: Introducing Enterprise Object Broker]


 On this note, has anyone used McKoi ? (http://mckoi.com) Its an
 Open Source Java SQL Database System that I've just started
 looking at, and it looks very promising. Wondered if anyone else
 had come across it.

 In the context of Struts apps, it allows you to bundle the db
 with your app, great for apps like Chiki that need to run out of
 the box without requiring users to setup any external 3rd party stuff.

 Let me know if you have experience with McKoi. I intend to
 upgrade Chiki to use McKoi and I'll knock together a little
 tutorial on using McKoi with Struts apps, if anyones interested.

 Cheers

 Ghoot

  -Original Message-
  From: Ted Husted [mailto:[EMAIL PROTECTED]]
  Sent: 07 March 2002 11:37
  To: [EMAIL PROTECTED]
  Subject: [Fwd: Introducing Enterprise Object Broker]
 
 
  Since hooking up a with a persistence layer is an important part of
  using Struts, I thought I would pass this along.
 
  -Ted.
 
   Original Message 
  Subject: Introducing Enterprise Object Broker
  Date: Thu, 07 Mar 2002 09:08:24 +
  From: Paul Hammant [EMAIL PROTECTED]
  Reply-To: Jakarta General List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
 
  Folks,
 
  Enterprise Object Broker (EOB) is an application server that
  tries to a
  be a simpler EJB container.  It is not complete yet, but we have many
  demos showing local, remote, and webapp usage.
 
  Take a look at http://eob.sourceforge.net/
 
  Features:
 
* Not J2EE compliant.
* Real Java interfaces  impls (no XxxHome or XxxRemote
  interfaces) .
* Does not use RMI for interoperation (no RemoteException, no
  extending rmi.Remote interface).
- Uses AltRMI (commons-sandbox).
* No forced choices about persistence.
- Use files, Castor, XML, JDBC, delegated, whatever..
* Avalon Framework methods ( IoC pattern )
- Beans are handed a ServiceManager they use to lookup() other
  beans without have multiple
lines of JNDI code.
* Applications can hand a WAR file to Hendrik Schreiber's Jo!
  webserver (same VM) for web publishing.
* Sits on top of Avalon-Phoenix.
- Meaning it could be along side (and the beans could use)
  multiple other server components.
 
  Supplied Examples:
 
0 - Dual impl stock-quote service with ugly WAR file web-presence.
1 - Small People  Addresses PIM. Beans in different jars, and
  potentially machines.
2 - Small shopping cart app. Beans all in one jar.
3 - A port of Velocity's ForumDemo app.  The obj model
  moved to EOB,
  Jo! handling WAR file.
 
  For those interested in the EOB project, ignore the 0.20
  release as it
  does not have the ForumDemo in it.  If you are CVS and Ant savvy, you
  should manage to build and launch the demo.
 
  We are looking to add more demos, especially Jakarta ones.  The best
  candidates are WAR file apps with object models (hopefully
  interface/impl separated) that can be moved out of the Servlet's
  context.  These also include EJB using webapps, but the EJB
  side would
  have to be trimmed of the EJB 'noise' before being run in EOB.
 
  As well as our need for more demos, we are interested in
  people to join
  in the main development.  Apache license of course.
 
  Regards,
 
  - Paul H
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 

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




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




How to avoid one session in multiple browser instances

2002-03-11 Thread Torsten Trzeciak

Hi,
in my app there is a very common way to handle data:
List - Select a row - change - save

The ID of the data is in the session. What can I do to prevent multiple browser 
instances (e.g. CTRL N) .
How can I guarantee that only one instance of the browser is open. Do they  send an ID 
or so?

I think one solution is to put the ID in a hidden field and compare it with the value 
of the session.

What is the best pattern to handle this problem?
__
Gestalte Dein eigenes Handy-Logo unter http://www.yesms.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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




session timeout message

2002-03-11 Thread Praveer Mathur

Hi,

While going through the mail archives, I did find a thread on session
timeout and with the help of that I have set the session timeout period in
my web.xml.
But my problem is that after the session expires as per specified
timeout period, I am not able to give appropriate message saying Your
session has expired, please login again. How do I do that? I do not
know the part of code/property file where to put a condition checking
timeout
status. Can you please help?

Praveer






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




RE: session timeout message

2002-03-11 Thread Garni, Khalid M

Hi
getCreationTime() getLastAccessedTime() 
I think these methods will help you . Try to put them at your jsp code 
Thanks

-Original Message-
From: Praveer Mathur [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:35 PM
To: Struts Users Mailing List
Subject: session timeout message


Hi,

While going through the mail archives, I did find a thread on session
timeout and with the help of that I have set the session timeout period in
my web.xml.
But my problem is that after the session expires as per specified
timeout period, I am not able to give appropriate message saying Your
session has expired, please login again. How do I do that? I do not
know the part of code/property file where to put a condition checking
timeout
status. Can you please help?

Praveer






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




i18n and struts problem

2002-03-11 Thread Haider Kazmi

I will really appreciate if someone would give me a nudge in the correct direction.
I have japanese multibyte characters in Strings that I put in my jsps with 
%=japanString%
This data is corrupted when I view it in a japanese (SJIS) browser.

I can fix this if instead of using japaneString I do this

%=new String(japanString.getBytes(SJIS), ISO8859_1)%

but I don't want to do this everywhere, is there a struts tag that will do the 
conversion for me based on the charset I have specified with 
 
response.setContentType() 

Please help!

regards
Haider Kazmi



RE: Where do I start to solve this error message: 'Cannot retrieve definition for form bean beanname'

2002-03-11 Thread Ronald Haring

you probably missed a definition somewhere. The way to go is

- create a bean preferably with only String attributes, e.g. OrderBean
- in the action servlet add this bean to your request or session 
(e.g. request.setAtribute(myOrderBean,myOrderBean);
- in struts-config.xml define in form-beans where the definition for
myOrderBean
can be found (e.g. form-bean name=myOrderBean
type=com.yourpackage.OrderBean/
- in your jsp page you can now refer to myOrderBean.orderLine or whatever.

Gr
Ronald 

 -Original Message-
 From: Kevin J. Turner [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 10:32 PM
 To: Struts Users Mailing List
 Subject: Where do I start to solve this error message: 
 'Cannot retrieve
 definition for form bean beanname'
 
 
 I have encountered the following error message in my Struts 
 application: 
 
 Cannot retrieve definition for form bean bean-name
 
 Where do I start to look for a solution to this one? I'm stuck.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


Furore B.V.
Rijswijkstraat 175-8
Postbus 9204
1006 AE Amsterdam
tel. (020) 346 71 71
fax. (020) 346 71 77


---
The information transmitted is intended only for the person
or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other
than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material
from any computer

---




RE: i18n and struts problem

2002-03-11 Thread Maris Orbidans


Have you written your encoding in page tag like this ?

%@ page language=java contentType=text/html; charset=windows-1257
%

Have you read

http://tagunov.newmail.ru/i18n/i18n.html



Maris




-Original Message-
From: Haider Kazmi [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 2:47 PM
To: [EMAIL PROTECTED]
Subject: i18n and struts problem


I will really appreciate if someone would give me a nudge in the correct
direction.
I have japanese multibyte characters in Strings that I put in my jsps
with %=japanString%
This data is corrupted when I view it in a japanese (SJIS) browser.

I can fix this if instead of using japaneString I do this

%=new String(japanString.getBytes(SJIS), ISO8859_1)%

but I don't want to do this everywhere, is there a struts tag that will
do the conversion for me based on the charset I have specified with 
 
response.setContentType() 

Please help!

regards
Haider Kazmi


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




Re: Struts resources

2002-03-11 Thread MARK NICHOLS

JSP and Tag Libraries for Web Development by Wellington L.S. da Silva (New Riders, 
October 2001, isbn: 0-7357-1095-3) has several chapters on Struts that were helpful to 
me (new struts user).

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

Ooo. They've got the Internet on computers now. - Homer Simpson 

 [EMAIL PROTECTED] 03/09/02 07:56AM 
On Fri, 8 Mar 2002 07:01:20 -0500, Andrew H. Peterson wrote:
--snip--
Can anyone recommend some good resources for coming up to speed on
--snip--

Here's some usefull sites:
1) http://www.husted.com/struts -- Ted Husted's site, lots of stuff
there
2) http://stealthis.athensgroup.com/presentations/ -- a white paper
on Struts, assembled by Larry Maturo
3) The book, Professional JSP : 2nd Edition (Wrox Press, ISBN
1861004958), has an excellent chapter devoted entirely on Struts

Hope this helps.

--
Kevin J. Turner / dot com Entertainment Group
150 Randall Street, Oakville, Ontario L6J 1P4
telephone: 905.337.8524 fax: 905.337.8630



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




Reading values from a form bean

2002-03-11 Thread sanjeev_dutt

Hi,

I have a jsp say a.jsp and a corresponding aForm.java form bean which gets and sets 
prticular variables.
How do I read the values stored in these variables from a different jsp say b.jsp ?

Thanks
Sanjeev



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




RE: Reading values from a form bean

2002-03-11 Thread Kanoza, Douglas (NCI)

Insert this into b.jsp:

%
  aForm form = (aForm)request.getSession().getAttribute(aForm);
%

The parameter passed to getAttribute() is whatever name you gave the form in
struts-config.xml.

-Original Message-
From: sanjeev_dutt [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 8:56 AM
To: Struts Users Mailing List
Subject: Reading values from a form bean

Hi,

I have a jsp say a.jsp and a corresponding aForm.java form bean which gets
and sets prticular variables.
How do I read the values stored in these variables from a different jsp say
b.jsp ?

Thanks
Sanjeev



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




Problem installing Struts on os/390

2002-03-11 Thread Steven Banks

Does anyone have installation instructions for installing Struts 1.0 with Websphere 
3.5.3 on the os/390?

When the action servlet starts we get an error message:

Missing configuration resource for path  /WEB-INF/struts-config.xml

We are using the websphere specific struts jar.

Thanks in Advance






Steven Banks



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




RE: Reading values from a form bean

2002-03-11 Thread Jay sissom

Or, you can do this:

bean:write name=aForm property=beanProperty/

This will print out the contents of a property in the bean using the 
struts-bean tag library.  It will call getBeanProperty() in the bean and 
print the results.

Jay

On Mon, 11 Mar 2002, Kanoza, Douglas (NCI) wrote:

 Insert this into b.jsp:
 
 %
   aForm form = (aForm)request.getSession().getAttribute(aForm);
 %
 
 The parameter passed to getAttribute() is whatever name you gave the form in
 struts-config.xml.
 
 -Original Message-
 From: sanjeev_dutt [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 11, 2002 8:56 AM
 To: Struts Users Mailing List
 Subject: Reading values from a form bean
 
 Hi,
 
 I have a jsp say a.jsp and a corresponding aForm.java form bean which gets
 and sets prticular variables.
 How do I read the values stored in these variables from a different jsp say
 b.jsp ?
 
 Thanks
 Sanjeev
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




error on starting the weblogic server

2002-03-11 Thread Dua, Amit

Hi 
I am getting this error on running struts on my weblogic server.
Can anyone tell me why I am getting this.


Parse Error at line 237 column 17: The content of element type
struts-config must match
(data-sources?,form-beans?,global-forwards?,action-mappings?).org.xml.sax.
SAXParseException: The content of element type struts-config must
match (data-sources?,form-beans?,global-forwards?,action-mappings?). at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java



Thanks
Amit

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




RE: error on starting the weblogic server

2002-03-11 Thread Kanoza, Douglas (NCI)

Your struts-config.xml is not valid xml according to the DTD.  You misplaced
a tag, or didn't close a tag properly.

-Original Message-
From: Dua, Amit [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 9:47 AM
To: 'Struts Users Mailing List'
Subject: error on starting the weblogic server

Hi 
I am getting this error on running struts on my weblogic server.
Can anyone tell me why I am getting this.


Parse Error at line 237 column 17: The content of element type
struts-config must match
(data-sources?,form-beans?,global-forwards?,action-mappings?).org.xml.sax.
SAXParseException: The content of element type struts-config must
match (data-sources?,form-beans?,global-forwards?,action-mappings?). at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java



Thanks
Amit

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

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




RE: error on starting the weblogic server

2002-03-11 Thread rajesh kalluri

Hi Amit,

As the error stated your struts-config does not match struts-config_1_0.dtd.

make sure your elemenst in the struts-config are in the following order.

--data-sources
--form-beans
--global-forwards
--action-mappings



-Original Message-
From: Dua, Amit [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:47 AM
To: 'Struts Users Mailing List'
Subject: error on starting the weblogic server


Hi
I am getting this error on running struts on my weblogic server.
Can anyone tell me why I am getting this.


Parse Error at line 237 column 17: The content of element type
struts-config must match
(data-sources?,form-beans?,global-forwards?,action-mappings?).org.xml.sax.
SAXParseException: The content of element type struts-config must
match (data-sources?,form-beans?,global-forwards?,action-mappings?). at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java



Thanks
Amit

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



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




Re: Populating complex java objects in forms

2002-03-11 Thread keithBacon


--- Jon Ferguson [EMAIL PROTECTED] wrote:
 Do you have the appropriate setXXX() method on the customer for name?
 Jon
 
 Charlesworth, Chico wrote:
 
  Hi,
 
  If I've got a complex java object (i.e Customer) in the Form class, I can
  then read off this object in the jsp page, but when submitting to the
 Action
  class the Customer object is null.
 
  The jsp would look like:
  html:form action=/updateCustomer
  Customer Name: html:text property=customer.name/
  br
  a href=javascript:document.forms[0].submit();Update
 Customer/a
  /html:form
 
  So this would display the current customer name, but if I change the
  customer name and then hit the submit link, I find the customer instance is
  now null in the updateCustomer action class.
 
  Am I doing something wrong, or is it not possible to populate complex java
  objects in the jsp form using struts?
 
  Cheers,
  Chico.
 
  --
  The content of this e-mail is confidential, may contain privileged material
  and is intended solely for the recipient(s) named above. If you receive
 this
  in error, please notify Software AG immediately and delete this e-mail.
 
  Software AG (UK) Limited
  Registered in England  Wales 1310740
  Registered Office: Hudson House, Hudson Way,
  Pride Park, Derby DE24 8HS
 
  --
  To unsubscribe, e-mail:  
 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]


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Downloading files

2002-03-11 Thread Konstantina Stamopoulou

Hello,

I' m building an application where the user has the options to:
a.Store his files on the server (upload files) 
b.View the directories and the files he has created on the server side. These files 
will be links and when the user clicks on one of the files, the file should open.  
Also there will be a link Download file for the file download .

The first part has already been done but I have no idea how to do the second part.
Any help, any reference links would be really appriciated since I have never developed 
something like that previously. 

Many thanx,
Konstantina
 




RE: Struts with JBuilder5

2002-03-11 Thread Robert D. Morse

- Bring up JBuilder
- In the left panel showing all of your files, right click on your web
application (this is the file with the icon of the hand holding the globe).
- Click on the Classes tab
- Click on the Add Files button
- Add whatever files you'd like here
- Make sure that the radio button 'Always include classes and resources' is
selected
- Rebuild your project

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 9:36 PM
To: 'Struts Users Mailing List'
Subject: Struts with JBuilder5


Does anyone know how to get JBuilder5 to include the .tld
files in the WAR file?

I am trying to configure a project based on the struts-blank
template.

TIA

Steve

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


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




RE: Struts with JBuilder5

2002-03-11 Thread Jay sissom

I believe this link has the two OpenTool updates you need for Struts to 
work property within JBuilder 5:

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=16369

Jay

On Mon, 11 Mar 2002, Robert D. Morse wrote:

 - Bring up JBuilder
 - In the left panel showing all of your files, right click on your web
 application (this is the file with the icon of the hand holding the globe).
 - Click on the Classes tab
 - Click on the Add Files button
 - Add whatever files you'd like here
 - Make sure that the radio button 'Always include classes and resources' is
 selected
 - Rebuild your project
 
 -Original Message-
 From: Steve [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 10, 2002 9:36 PM
 To: 'Struts Users Mailing List'
 Subject: Struts with JBuilder5
 
 
 Does anyone know how to get JBuilder5 to include the .tld
 files in the WAR file?
 
 I am trying to configure a project based on the struts-blank
 template.
 
 TIA
 
 Steve
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: Problem installing Struts on os/390

2002-03-11 Thread Steven Banks

Yes we have the information in there.  I suspect that the problem is that we do not 
have a servlets directory at the root of the web application.  The paths from the root 
of the train directory are:

train -  web
-  WEB-INF

We are using the WAS.CONF file to point to /WEB-INF/struts-config.xml







Steven Banks
368-0566

 Don Dumrauf [EMAIL PROTECTED] 03/11/02 10:30AM 
Did you remember to put your struts-config.xml in the web.xml action servlet
configuration element?

-Original Message-
From: Steven Banks [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 9:03 AM
To: [EMAIL PROTECTED] 
Subject: Problem installing Struts on os/390


Does anyone have installation instructions for installing Struts 1.0 with
Websphere 3.5.3 on the os/390?

When the action servlet starts we get an error message:

Missing configuration resource for path  /WEB-INF/struts-config.xml

We are using the websphere specific struts jar.

Thanks in Advance






Steven Banks



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




This email and any files transmitted with it are confidential and are
intended for the sole use of the individual to whom they are addressed.
Black Box Corporation reserves the right to scan all e-mail traffic for
restricted content and to monitor all e-mail in general. If you are not the
intended recipient or you have received this email in error, any use,
dissemination or forwarding of this email is strictly prohibited. If you
have received this email in error, please notify the sender by replying to
this email.


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




Question about Locales

2002-03-11 Thread Juan Alvarado \(Struts List\)

I have the following requirement in my application. I need to display a list
of products with product descriptions. This list is generated from the
database and that is how I will build an array Product beans into a
ProductList bean. My requirement is that I need to display both spanish and
english product descriptions on my pages. So I think I will need to have two
separate beans. One Product bean will hold product information in spanish
and another product bean will hold product information in english.

When a use comes to the site he/she will be given the option how they want
to view the site (spanish or english version). If they choose spanish, I
would want to use the ProductList bean that holds an array of ProductBean
objects. If they choose english they would get the english version of the
ProductList bean. Both ProductList beans are usually loaded into application
scope when the container starts up.

If anyone has had any experience integrating this type of solution for
internationalization, or knows how to go about doing this within struts, I
would greatly appreciate any information you could share with me. I have
looked in the archives and I did not find any information specific to my
needs.

Thanks in advance.

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


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




Struts with VisualAge 3.5.3

2002-03-11 Thread cyril guszkiewicz


Hi everybody,
Does anyone know how to make Struts working in the
Visual Age 3.5.3 Websphre test Environment?
Thanks a lot
CYRIL

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Problem

2002-03-11 Thread Adrian Theuma

Hi,

please look at the following problem scenario. 

Assume that you are on page A, and there is a link on page A to page B.
Page B is a form. I would like that when a user clicks on the submit
button on page B, the user is returned to page A. Keep in mind that page
B can be accessed from pages other than A. i.e. page B must basically
return control to the page from which it was called. 

I will greatly appreciate a clean way to do this.

Thanks.

Adrian.

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




Re: Struts with VisualAge 3.5.3

2002-03-11 Thread David A. D. Konrad


 Hi everybody,
 Does anyone know how to make Struts working in the
 Visual Age 3.5.3 Websphre test Environment?
 Thanks a lot

By removing the servlet API, installing struts, xerces and tomcatrunner 3.2.1...That 
should do it - at least, it worked for us ;-)  



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




RE: Struts with VisualAge 3.5.3

2002-03-11 Thread Young, Jim


Take a look at this link. It worked for us.

Jim

http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocumentSubMast=
1


-Original Message-
From: cyril guszkiewicz [mailto:[EMAIL PROTECTED]]
Sent: March 11, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: Struts with VisualAge 3.5.3



Hi everybody,
Does anyone know how to make Struts working in the
Visual Age 3.5.3 Websphre test Environment?
Thanks a lot
CYRIL

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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

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




RE: session timeout message

2002-03-11 Thread Michelle Popovits

How would these methods help?
Wouldn't they give you the information only on the new session?
How would this be different from a user who is entering the system for the
first time?

Thanks
-Original Message-
From: Garni, Khalid M [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 6:30 AM
To: Struts Users Mailing List
Subject: RE: session timeout message


Hi
getCreationTime() getLastAccessedTime() 
I think these methods will help you . Try to put them at your jsp code 
Thanks

-Original Message-
From: Praveer Mathur [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:35 PM
To: Struts Users Mailing List
Subject: session timeout message


Hi,

While going through the mail archives, I did find a thread on session
timeout and with the help of that I have set the session timeout period in
my web.xml.
But my problem is that after the session expires as per specified
timeout period, I am not able to give appropriate message saying Your
session has expired, please login again. How do I do that? I do not
know the part of code/property file where to put a condition checking
timeout
status. Can you please help?

Praveer






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

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

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




RE: session timeout message

2002-03-11 Thread Jay sissom

Here's how I check it on one of my applications.

I always put an item in the session area when the user first starts to use 
the application.  In every action object, I always check for that object.  
If it doesn't exist, I know the session expired.  I have found also that 
sometimes request.getSession() returns null.  You have to check for that 
also.  I'm using Tomcat 3.2.x for development, so maybe it only happens in 
that product, but it can't hurt to check for getSession() returning a 
null.

Jay


On Mon, 11 Mar 2002, Michelle Popovits wrote:

 How would these methods help?
 Wouldn't they give you the information only on the new session?
 How would this be different from a user who is entering the system for the
 first time?
 
 Thanks
 -Original Message-
 From: Garni, Khalid M [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 6:30 AM
 To: Struts Users Mailing List
 Subject: RE: session timeout message
 
 
 Hi
 getCreationTime() getLastAccessedTime() 
 I think these methods will help you . Try to put them at your jsp code 
 Thanks
 
 -Original Message-
 From: Praveer Mathur [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 1:35 PM
 To: Struts Users Mailing List
 Subject: session timeout message
 
 
 Hi,
 
 While going through the mail archives, I did find a thread on session
 timeout and with the help of that I have set the session timeout period in
 my web.xml.
 But my problem is that after the session expires as per specified
 timeout period, I am not able to give appropriate message saying Your
 session has expired, please login again. How do I do that? I do not
 know the part of code/property file where to put a condition checking
 timeout
 status. Can you please help?
 
 Praveer
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: html:checkbox tag not setting its property value in Formbean

2002-03-11 Thread Maturo, Larry

Hi Krishnan,

If you are using a nightly build you can probably use
the indexed attribute.  This would look something
like this:

In your jsp:
logic:iterate id=fruits name=nameOfYourFormBean property=fruits
html:checkbox indexed=true name=fruits property=checked/
bean:write name=fruits property=fruitName /
/logic:iterate

in class Fruit
public class Fruit {
private String fruitName = ;
private boolean checked = false;

public Fruit() {
super();
}

public String getFruitName() {
return fruitName;
}

public void setFruitName(String _fruitName) {
fruitName = _fruitName;
}

public boolean getChecked() {
return checked;
}

public void setChecked(boolean _checked){
checked = _checked;
}
}

In you form bean:

private ArrayList frutis = null;

public ArrayList getFruits() {
return fruits;
}

public void setFruits(ArrayList _frutis) {
fruits = _fruits;
}

public Fruit getFruits(int index) {
return (Fruit) fruits.get(index);
}

public void setFruits(int index, Fruit fruit) {
fruits.set(index,fruit);
}

public void reset(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request){
Fruit f = null;
Iterator it = fruits.iterator();
while it.hasNext() {
  f = (Fruit) it.next();
  f.setChecked(false);
}
}

In your action class you would then create an array list of
fruits and set them in your form bean.  After the form was
submitted you would get the list back out and see which
fruits were checked.

The trick to make this work is that the id used with the iterate
tag can not be random, it must exactly match the property in
your form bean that you want to get set.

I hope this helps.

-- Larry Maturo
   [EMAIL PROTECTED]


-Original Message-
From: KrishPS [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 8:33 AM
To: Struts Users Mailing List
Subject: Re: html:checkbox tag not setting its property value in
Formbean


Hi Larry

Each element in the array list is a bean and the bean has a boolean property
for the checkbox.

Krishnan
[EMAIL PROTECTED]

- Original Message -
From: Maturo, Larry [EMAIL PROTECTED]
Newsgroups: Struts
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 5:13 PM
Subject: RE: html:checkbox tag not setting its property value in Formbean


 Hi Krishnan,

 Could you post more details.  Is the arraylist an
 arraylist of boolean, or an arraylist of some
 bean, which itself has a boolean property, or
 perhaps each entry in the arraylist is of a
 different type?

 -- Larry Maturo
[EMAIL PROTECTED]


 -Original Message-
 From: Krishnan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 3:19 PM
 To: [EMAIL PROTECTED]
 Subject: html:checkbox tag not setting its property value in Formbean


 Hi

  In my Jsp form,  I have a check box that is part of a
 collection object.  This collection object is rendered
 through a bean. The collection (arrayList) itself has
 getter/setter in the form bean. When I select the
 checkbox on the form, the corresponding property value
 is not updated to true.  However, I saw that the
 request parameters had the property name for the
 checkbox with the value 'true'.  Are there other ways
 of getting the checkbox to set the property?.  Any
 examples would be appreciated.

 Thanks

 Krishnan

 __
 Do You Yahoo!?
 Try FREE Yahoo! Mail - the world's greatest free email!
 http://mail.yahoo.com/

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


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




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


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




RE: Problem

2002-03-11 Thread Maturo, Larry

Hi Adrian,

The only clean solution we have found 
for this is to have a nav bar at the 
top of your page to make it easy for 
the user to do it manually. :-)  Not 
a good solution.

Any one else know a better way?

-- Larry Maturo


-Original Message-
From: Adrian Theuma [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:22 AM
To: Struts Users Mailing List
Subject: Problem


Hi,

please look at the following problem scenario. 

Assume that you are on page A, and there is a link on page A to page B.
Page B is a form. I would like that when a user clicks on the submit
button on page B, the user is returned to page A. Keep in mind that page
B can be accessed from pages other than A. i.e. page B must basically
return control to the page from which it was called. 

I will greatly appreciate a clean way to do this.

Thanks.

Adrian.

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




msg25752/bin0.bin
Description: application/ms-tnef

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


What gives?

2002-03-11 Thread Jason Wells

I've sent three emails over the past two weeks to 
[EMAIL PROTECTED], but I still receive hundreds 
and hundreds of emails, with no end in sight...

Is there something else I need to do? Any help is appreciated. I'm 
getting swamped :)

-- 
Jason Wells
Web Architect
Xsilogy, Inc.
http://www.xsilogy.com/


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




RE: What gives?

2002-03-11 Thread Matt Read

You realise that you have to confirm you unsubscribe once you've sent the
e-mail? Ezmlm will send you back a message which you have to reply to in
order to confirm that it was actually you that decided to unsubscribe you
and not someone spoofing your e-mail address. If you've deleted these
e-mails without replying then you won't get unsubscribed.

-Original Message-
From: Jason Wells [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 17:33
To: [EMAIL PROTECTED]
Subject: What gives?


I've sent three emails over the past two weeks to
[EMAIL PROTECTED], but I still receive hundreds
and hundreds of emails, with no end in sight...

Is there something else I need to do? Any help is appreciated. I'm
getting swamped :)

--
Jason Wells
Web Architect
Xsilogy, Inc.
http://www.xsilogy.com/


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




Question on the use of html:form and html:submit tags within struts 1.0.2

2002-03-11 Thread Paul Idusogie

Could anyone kindly provide some suggestions to remedy these 2 issues?.

I used the html:form tag syntax in a logon.jsp page with the following syntax
html:form action=/logon.do focus=userName
.
/html:form

This will add the javascript portion to set the form username attribute on focus when 
the page is launched. However I receive a 'document.form.userName is null or not an 
object' error with IE 5.X. The javascript script appears before the rest of the form 
attributes when I view the geenerated code using view source

Secondly, I can not get the  form to submit the entries when I click the submit button.
I used the html:submit tag

Here is a code snippet

html:submit
bean:message key=prompt.userName/
/html:submit

bean and hml are taglib prefixes for the struts-html and struts-bean taglibs and 
prompt.userName is defined within the ApplicationResources.properties file.



Thanks,

Paul Idusogie 
Technical Architect 
Consulting Services
Stellent Inc.
 Golden Triangle Drive
Eden Prairie, MN 55104
Desk: 952.656.2755
Fax: 952.903.2115
Email: [EMAIL PROTECTED]
website: http://www.stellent.com

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




RE: What gives?

2002-03-11 Thread Michelle Popovits

Did you receive and reply to the confirmation message that should have been
sent to you after you send the unsubscribe msg?

-Michelle

-Original Message-
From: Jason Wells [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: What gives?


I've sent three emails over the past two weeks to 
[EMAIL PROTECTED], but I still receive hundreds 
and hundreds of emails, with no end in sight...

Is there something else I need to do? Any help is appreciated. I'm 
getting swamped :)

-- 
Jason Wells
Web Architect
Xsilogy, Inc.
http://www.xsilogy.com/


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

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




RE: Problem

2002-03-11 Thread Boyalla, Raveendra

Hi Adrian,

if I understand you problem You ca Use 
HttpServletRequest.getRequestURI() which gives the URL of Caller

Thanks
Raveendra Boyalla

-Original Message-
From: Maturo, Larry [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem


Hi Adrian,

The only clean solution we have found 
for this is to have a nav bar at the 
top of your page to make it easy for 
the user to do it manually. :-)  Not 
a good solution.

Any one else know a better way?

-- Larry Maturo


-Original Message-
From: Adrian Theuma [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:22 AM
To: Struts Users Mailing List
Subject: Problem


Hi,

please look at the following problem scenario. 

Assume that you are on page A, and there is a link on page A to page B.
Page B is a form. I would like that when a user clicks on the submit
button on page B, the user is returned to page A. Keep in mind that page
B can be accessed from pages other than A. i.e. page B must basically
return control to the page from which it was called. 

I will greatly appreciate a clean way to do this.

Thanks.

Adrian.

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


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




RE: Problem

2002-03-11 Thread Matt Read

If I'm understanding you correctly and you're looking for a struts config
type solution then you really need to set a forward on your form processing
action to send you back to page A. Something like this in struts-config.xml

action path=/myFormProcessorActionForPageB
type=myPackage.MyFormProcessorAction
name=formForPageB
scope=request
validate=true
input=/WEB-INF/pages/pageB.jsp
forward name=success path=/WEB-INF/pages/pageA.jsp/
/action

Then in your execute() method in MyFormProcessorAction code to fill in the
gaps:

// process the form
...
// send the user back to pageA
return (mapping.findForward(success));

Obviously any other page which can invoke pageB would have similar forward
set up.

Hope this helps,
Matt.

-Original Message-
From: Adrian Theuma [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 15:22
To: Struts Users Mailing List
Subject: Problem


Hi,

please look at the following problem scenario.

Assume that you are on page A, and there is a link on page A to page B.
Page B is a form. I would like that when a user clicks on the submit
button on page B, the user is returned to page A. Keep in mind that page
B can be accessed from pages other than A. i.e. page B must basically
return control to the page from which it was called.

I will greatly appreciate a clean way to do this.

Thanks.

Adrian.

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




installation problem - help?

2002-03-11 Thread @Basebeans.com

Subject: installation problem - help?
From: Paul Tomsic [EMAIL PROTECTED]
 ===
Hi, I'm new to Struts, but I'm having trouble getting Apache/Tomcat 3.1 to
see even the /struts-documentation

I've followed the directions on the
http://jakarta.apache.org/struts/kickstart.html#install
and in the INSTALL file that comes w/ it.

Any thoughts or direction on where else I can look for problems w/
installation?
If I point my webbrowser to http://SERVER/struts-documentation.war
it prompts me to download the file, but if I remove the .WAR from that, I
simply get a
File Not Found

??

thanks
Paul




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




Re: Problem

2002-03-11 Thread keithBacon

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

and search on workflow (work-flow)  chaining.


--- Adrian Theuma [EMAIL PROTECTED] wrote:
 Hi,
 
 please look at the following problem scenario. 
 
 Assume that you are on page A, and there is a link on page A to page B.
 Page B is a form. I would like that when a user clicks on the submit
 button on page B, the user is returned to page A. Keep in mind that page
 B can be accessed from pages other than A. i.e. page B must basically
 return control to the page from which it was called. 
 
 I will greatly appreciate a clean way to do this.
 
 Thanks.
 
 Adrian.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




Struts Validator changing the key in the validator.xml

2002-03-11 Thread Ben Kafka

Was wondering if there is a way to access a unique string to display for a
required error in the javascript function under validator-rules.xml. Right
now the following happens:
If in the validator.xml file I specify the arg0
key=regform.firstname.displayname  it is
used by both the required and mask javascript functions to display a
canned error like
Firstname is invalid.
Firstname required.

How can I differentiate these. For instance I would like to say..
Firstname in invalid because only upper and lower case letters are allowed.

In the Application resources properties currently I have {0} is invalid
for my errors.invalid tag. What I would like to have is {0} is invalid
because {1} but I don't know how to define the {1} in the validation.xml
and validation-rules.xml.


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




html:errors/ prints null at both ends of message

2002-03-11 Thread Maris Orbidans

hello folks


html:errors/

prints

null blablabla null 


Why null gets printed ?


   if(!user.isPasswordValid(request.getParameter(password)))
{
log.info(Incorrect password for
+request.getParameter(username));
errors.add(password, new
ActionError(error.password.mismatch));
return errors;
}
} 



Maris


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




JavaScript Form/submit Function

2002-03-11 Thread Bettina Gaus

Hello,

i tried to use the document.forms[0].submit() function in the onchange property of a 
html:select tag,
but i allways received the error message: The object does not support this property 
or method. It must be the
submit() function, because i.e the document.forms[0].length property gives a result.

Does anybody got the same problem or can anybody help me

Bettina


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




RE: How to pass parameters to actions ? action.do?variable=value

2002-03-11 Thread Klaus Bucka-Lassen

Hi Maris

Yes, you can pass parameters in different ways:

1) The most straight forward way is the one that you
   suggested:
   a href=www.somelink.com?age=12gender=male
 Touch me!
   /a

2) You can also use the html:link tag, which is easy
   if you only want to pass one parameter (see paramId,
   paramName  paramProperty). For multiple parameters
   you'll have to define a property on your action-form 
   (something like a 'getParameters' method) that
   returns a Map consisting of the key-value pairs you
   want to pass.

3) If you want buttons instead of links use hidden
   fields to pass parameters [use the 'method'
   attribute to specify whether you want to use POST
   (default) or GET]

I don't think it makes sense to talk about using the POST method in context with links 
- these always resolve to a GET-request.

Hope that helps  with regards,
Klaus Bucka-Lassen
aragost ag
Zurich, Switzerland


-Original Message-
From: struts-user-digest-help
[mailto:[EMAIL PROTECTED]]
Sent: Freitag, 8. März 2002 20:35
To: struts-user
Cc: M.Orbidans
Subject: How to pass parameters to actions ? action.do?variable=value


hello

I need to create links with different parameters. Can I pass them
directly to actions ?

like this aaction.do?variable=value/a

Does the Struts servlet do POST and GET ?

thanx
Maris Orbidan


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




RE: Reading values from a form bean

2002-03-11 Thread Jacob Weintraub

That's correct if it's on the session scope.

If it's on the request scope, then you should insert into b.jsp

%
aForm form = (aForm)request.getAttribute(aForm);
%


At 09:00 AM 3/11/02 -0500, you wrote:
Insert this into b.jsp:

%
   aForm form = (aForm)request.getSession().getAttribute(aForm);
%

The parameter passed to getAttribute() is whatever name you gave the form in
struts-config.xml.

-Original Message-
From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 8:56 AM
To: Struts Users Mailing List
Subject: Reading values from a form bean

Hi,

I have a jsp say a.jsp and a corresponding aForm.java form bean which gets
and sets prticular variables.
How do I read the values stored in these variables from a different jsp say
b.jsp ?

Thanks
Sanjeev



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

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


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




Re: #anchors in page

2002-03-11 Thread George Papandreou

logic:notEqual name=xyzForm property=xyzButton value=
body onLoad='location.href=#xyzSection;'
/logic:notEqual

Depending, say, on which button was pressed.

Cheers!

 [EMAIL PROTECTED] 03/08/02 08:26pm 
I have a web page with a form that has 5 different sections.  Each of 
these 5 sections has an a name=anchor at the beginning of it.

I would like for my action to decide (based on user input) which section 
of the page to return the user to.

I can't figure out how to tell the browser to position the screen on one 
of these anchor pages.  Has anyone come up with a good solution for this?

Thanks
Jay



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



Free (or inexpensive) web hosting site for JSP/Struts/MySql?

2002-03-11 Thread theron . kousek


Hi Folks:

A thousand pardon's if this has already been asked in the pastIs
there a hosting service that's inexpensive or free (I doubt it?) that would
allow one to create a web-site that allows me to use JSP/Struts and mySql
database as well as access to an SMTP daemon to send email?I'd like to
possibly create a web-site in my spare time that would allow people to post
reviews of their favorite cd's.

I am getting more/more proficient with Struts and am liking it and feel I
am possessing the knowledge to build such a site...The one catch is the
database can grow to big proportions since people are posting reviews which
could be many sentances long.I'd expect the database to contain as much
as 20-30MB (if not more) after the first 6-12 months.

Also, can mySql handle such a workload?I am proficient with using
Oracle (what we use at work) but don't want to pay to use Oracle for this
web-site.   mySql makes sense since it seems to be free.

thanks in advance,
Theron


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




RE: html:errors/ prints null at both ends of message

2002-03-11 Thread Kanoza, Douglas (NCI)

Because your ApplicationResources file does not define errors.footer and
error.header.  The html:errors tag is looking for those values to wrap your
error messages in.

-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 12:55 PM
To: Struts Users Mailing List
Subject: html:errors/ prints null at both ends of message

hello folks


html:errors/

prints

null blablabla null 


Why null gets printed ?


   if(!user.isPasswordValid(request.getParameter(password)))
{
log.info(Incorrect password for
+request.getParameter(username));
errors.add(password, new
ActionError(error.password.mismatch));
return errors;
}
} 



Maris


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




are there any good tag usage examples anywhere online?

2002-03-11 Thread Kevin J. Turner

Does anyone know of any good web sites that show *examples* of all
the different Struts tags? The user guide is extremely ineffective in
that capactity.


--
Kevin J. Turner / dot com Entertainment Group
150 Randall Street, Oakville, Ontario L6J 1P4
telephone: 905.337.8524 fax: 905.337.8630



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




RE: JavaScript Form/submit Function

2002-03-11 Thread Brian Richards

Sounds like you have an element in your form named submit.  Check your
html and make sure none of your elements are named submit.

bsr

-Original Message-
From: Bettina Gaus [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 9:57 AM
To: '[EMAIL PROTECTED]'
Subject: JavaScript Form/submit Function


Hello,

i tried to use the document.forms[0].submit() function in the onchange
property of a html:select tag, but i allways received the error
message: The object does not support this property or method. It must
be the
submit() function, because i.e the document.forms[0].length property
gives a result.

Does anybody got the same problem or can anybody help me

Bettina


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





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




Re: Struts Validator changing the key in the validator.xml

2002-03-11 Thread David Winterfeldt


There are some examples here.
http://home.earthlink.net/~dwinterfeldt/overview.html#i18n

 In the Application resources properties currently I
 have {0} is invalid
 for my errors.invalid tag. What I would like to
 have is {0} is invalid
 because {1} but I don't know how to define the {1}
 in the validation.xml
 and validation-rules.xml.

field property=lastName 
  depends=required,mask 
   arg0 key=registrationForm.lastname.displayname/

   arg1 name=mask
key=registrationForm.lastname.becauseMessage/ 
   var
  var-namemask/var-name
  var-value^[a-zA-Z]*$/var-value
   /var
/field 

or you can override the default message:

field property=lastName 
  depends=required,mask 
   msg name=mask
key=registrationForm.lastname.maskmsg/ 
   arg0 key=registrationForm.lastname.displayname/

   var
  var-namemask/var-name
  var-value^[a-zA-Z]*$/var-value
   /var
/field 

David

--- Ben Kafka [EMAIL PROTECTED] wrote:
 Was wondering if there is a way to access a unique
 string to display for a
 required error in the javascript function under
 validator-rules.xml. Right
 now the following happens:
 If in the validator.xml file I specify the arg0
 key=regform.firstname.displayname  it is
 used by both the required and mask javascript
 functions to display a
 canned error like
 Firstname is invalid.
 Firstname required.
 
 How can I differentiate these. For instance I would
 like to say..
 Firstname in invalid because only upper and lower
 case letters are allowed.
 
 In the Application resources properties currently I
 have {0} is invalid
 for my errors.invalid tag. What I would like to
 have is {0} is invalid
 because {1} but I don't know how to define the {1}
 in the validation.xml
 and validation-rules.xml.
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




AW: JavaScript Form/submit Function

2002-03-11 Thread Guido Schmutz

Hello,
 
I'm currently having the exact same problem. It's caused by the
html:submit button, which automatically assigns the name submit to
the button. Therefore you have an object submit in your form an IE does
not seem to recognize the submit() method on the form anymore. If you
remove your html:submit tag, your form would work perferctly.
 
I'm not sure what the solution for the problem is and I'm still working
on it. 
I've tried to put the html:select in a second form and that would
work. Another way would be to not use the html:submit tag and code the
submit button manually (with a different name than submit). Unfortunatly
it's not possible to pass a name to the html:submit tag and I'm also
not sure, if Struts uses the name submit internally.
 
Any additional input would help me as well.
 
Guido

-Ursprüngliche Nachricht- 
Von: Bettina Gaus 
Gesendet: Mo 11.03.2002 15.56 h 
An: '[EMAIL PROTECTED]' 
Cc: 
Betreff: JavaScript Form/submit Function



Hello,

i tried to use the document.forms[0].submit() function in the
onchange property of a html:select tag,
but i allways received the error message: The object does not
support this property or method. It must be the
submit() function, because i.e the document.forms[0].length
property gives a result.

Does anybody got the same problem or can anybody help me

Bettina


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






winmail.dat
Description: application/ms-tnef

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


RE: JavaScript Form/submit Function

2002-03-11 Thread Kanoza, Douglas (NCI)

The solution is simple - don't use the html:submit tag.  Use plain old
HTML, which allows you to give it a different name.
 
-Original Message-
From: Guido Schmutz [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 1:21 PM
To: Struts Users Mailing List
Subject: AW: JavaScript Form/submit Function
 
Hello,
 
I'm currently having the exact same problem. It's caused by the
html:submit button, which automatically assigns the name submit to the
button. Therefore you have an object submit in your form an IE does not seem
to recognize the submit() method on the form anymore. If you remove your
html:submit tag, your form would work perferctly.
 
I'm not sure what the solution for the problem is and I'm still working on
it. 
I've tried to put the html:select in a second form and that would work.
Another way would be to not use the html:submit tag and code the submit
button manually (with a different name than submit). Unfortunatly it's not
possible to pass a name to the html:submit tag and I'm also not sure, if
Struts uses the name submit internally.
 
Any additional input would help me as well.
 
Guido
-Ursprüngliche Nachricht- 
Von: Bettina Gaus 
Gesendet: Mo 11.03.2002 15.56 h 
An: '[EMAIL PROTECTED]' 
Cc: 
Betreff: JavaScript Form/submit Function
Hello,

i tried to use the document.forms[0].submit() function in the onchange
property of a html:select tag,
but i allways received the error message: The object does not support this
property or method. It must be the
submit() function, because i.e the document.forms[0].length property gives
a result.

Does anybody got the same problem or can anybody help me

Bettina


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



RE: html:errors/ prints null at both ends of message

2002-03-11 Thread Maturo, Larry

Hi Maris,

Look in your ApplicationResources.properties file
for your error message and make sure it does not
have nulls in it.  Also make sure your error header
and footer don't have nulls in them. I can't think 
of anywhere else they could be coming from.

-- Larry


-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:55 AM
To: Struts Users Mailing List
Subject: html:errors/ prints null at both ends of message


hello folks


html:errors/

prints

null blablabla null 


Why null gets printed ?


   if(!user.isPasswordValid(request.getParameter(password)))
{
log.info(Incorrect password for
+request.getParameter(username));
errors.add(password, new
ActionError(error.password.mismatch));
return errors;
}
} 



Maris


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




msg25774/bin0.bin
Description: application/ms-tnef

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


Re: JavaScript Form/submit Function

2002-03-11 Thread dderry

Use the 'property' attribute of the submit tag to change the name that is
assigned to the submit button.

This in my jsp: html:submit property=testsubmit value=Add/ generated
this in the HTML: input type=submit name=testsubmit value=Add

Dave D


- Original Message -
From: Guido Schmutz [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:20 PM
Subject: AW: JavaScript Form/submit Function


 Hello,

 I'm currently having the exact same problem. It's caused by the
 html:submit button, which automatically assigns the name submit to
 the button. Therefore you have an object submit in your form an IE does
 not seem to recognize the submit() method on the form anymore. If you
 remove your html:submit tag, your form would work perferctly.

 I'm not sure what the solution for the problem is and I'm still working
 on it.
 I've tried to put the html:select in a second form and that would
 work. Another way would be to not use the html:submit tag and code the
 submit button manually (with a different name than submit). Unfortunatly
 it's not possible to pass a name to the html:submit tag and I'm also
 not sure, if Struts uses the name submit internally.

 Any additional input would help me as well.

 Guido



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




RE: Populating complex java objects in forms - PROBLEM SOLVED, BUT IS THIS A BUG IN STRUTS?

2002-03-11 Thread Alex Paransky

There is no way in struts to populate the complex JAVA object with data
simply from a submit form.  If you pre-initialize your complex object then
the submit form will be able to populate customer.name,
customer.address.line1, customer.address.zip but ONLY if you have these in
your form as valid properties.

The method setCustomer(Customer c) or Customer getCustomer() will never be
called because there is no such representation of a customer on the page.
Because your form has a scope of request, it goes away after the request is
complete.  So, when you first show the customer on the screen, I presume,
the Customer object is somehow found and populated and put into the form.
At this point, the request is done and over with.  The Customer object that
you have created has been lost.  When the user hits the submit button, a new
request is created.  Since this new request is calling on the action which
requires a form, a NEW form is created with a NEW Customer member.  If you
initialized the customer to a new Customer(), then struts is able to match
properties and put customer.name in to your customer name or
customer.address.city in to the proper field, but it's NOT the same Customer
object (pointer wise) that you have initially found.

So, if you have other properties in the Customer object which are NOT shown
on the page, then they will be reset to what ever they are when you do an
initial new Customer.

If you want to keep the same form, there are two things you can do:

1. Change the scope from request to session.  This will keep the original
form that you created, and since the original customer object that you have
found and populated in to the form.  Using this method, however, will
probably require that your submit action, removes the data from the session.
Otherwise, your session would contain variables which are no longer used
(bad use of resources).

2. Pre-initialize the customer and all the objects inside of the customer
just like you already did.  This will populate the fields on your .jsp form
back into the customer object, but not all the fields of the customer.  Only
those which are directly used on the form.

These are the options I can think of.

Hope this helps.

-
-AP_
See my profile at
http://www.myprofiles.com/member/view.do?profileId=128


-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 2:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Populating complex java objects in forms - PROBLEM SOLVED,
BUT IS THIS A BUG IN STRUTS?



I've found that my problem is that my Customer instance was not initialized
in the Form class, but I wouldn't have thought this should be necessary in
Struts. This then also means that any other complex java objects within
customer would need to be instantiated (i.e. Address) and so on if Address
had other complex java objects.

So it works fine if in the form I define:
Customer customer = new Customer();

Also, if I invoke an Action class and create a new instance of customer in
the Customer form and then forward to the customer jsp, it displays the new
instance values ok, but it still doesn't work when submitting the form if
the Customer instance in the form is not instantiated (customer is null
again).

Chico.

-Original Message-
From: Jon Ferguson [mailto:[EMAIL PROTECTED]]
Sent: 08 March 2002 09:12
To: Struts Users Mailing List
Subject: Re: Populating complex java objects in forms

Do you have the appropriate setXXX() method on the customer for name?
Jon

Charlesworth, Chico wrote:

 Hi,

 If I've got a complex java object (i.e Customer) in the Form class, I can
 then read off this object in the jsp page, but when submitting to the
Action
 class the Customer object is null.

 The jsp would look like:
 html:form action=/updateCustomer
 Customer Name: html:text property=customer.name/
 br
 a href=javascript:document.forms[0].submit();Update
Customer/a
 /html:form

 So this would display the current customer name, but if I change the
 customer name and then hit the submit link, I find the customer instance
is
 now null in the updateCustomer action class.

 Am I doing something wrong, or is it not possible to populate complex java
 objects in the jsp form using struts?

 Cheers,
 Chico.

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

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

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


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

RE: Found Solution to setting server side parm in Javascript BUT....

2002-03-11 Thread Robert Nocera

Theron,

There isn't an easier way because a FormBean is a server-side object.
You might think that your html page has access to it, but it's only
because of the sleight of hand involved in JSP programming.  Since a JSP
is actually a servlet, it is only sending HTML to a browser so your
browser knows nothing of these objects.

Robert Nocera
New England Open Solutions
www.neosllc.com
You supply the vision, we'll do the rest.
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, March 10, 2002 7:21 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Found Solution to setting server side parm in Javascript
BUT


After spending 2 hours trying to find a solution to this, I found one by
trial and error...
BUT THERE HAS GOT TO BE A BETTER WAY  :-)

Here's what I did but I can't believe it's this difficult to do...

Here's my checkfield property that needs to force a form value to be
updated:

 html:select property=psdProductType size=1
  onchange=setCurrProductType(this.value)
  html:options collection=psbusinesstype
property=value
   labelProperty=label/
 /html:select

Here's the javascript function:

 function setCurrProductType(inProductType) {
  alert(Setting curr product type to:  + inProductType);
  window.location=SetProperty.jsp?enteredPt=+inProductType;
 }


and here's the SetProperty.jsp
-
%@ taglib uri=/struts-bean prefix=bean %

bean:define id=psInfo name=psSession type=express.EBPsSession
scope
=session /
bean:define id=psForm name=psForm type=express.psForm scope
=session /

%
 //
 // If they changed the product type on the first page, set it
 // here in the form object...
 //
 String sCurrProductType=request.getParameter(enteredPt);
 psInfo.setCurrProductType(sCurrProductType);
 System.out.println(Current Product Type =  +
psInfo.getCurrProductType()
  +  current page =  + psInfo.getCurrpage());
 psForm.setPsdProductType(psInfo.getCurrProductType());
%

jsp:forward page=PsPage.jsp/


So in essence, the forward tag simply causes control to come back to
the
page I was on...   But in-between, I was able to set a form bean
propertyAgain my problem is the form bean property is not
updated
until you hit the submit button...   In this case, I don't want a submit
to
occur when you change the contents of the dropdown.   Only the property
for
that drop down should change...   After adding this, when I click to go
to
the 4th tab, the action now sees the newly changed value

It works BUT I have to believe there's a better way!!!I open to any
suggestions...



 

theron.kousek

@webmd.net   To: Struts Users Mailing
List  
 
[EMAIL PROTECTED]   
03/10/02 cc:

02:32 PM Subject: setting server
side parm in Javascript?   
Please

respond to

Struts Users

Mailing List

 

 





Hi Folks:

I'm doing a mimic-JTabbedPane approach.   I have a screen with 5 tabs.
I
am using 1 form object and 5 action mappings...

On tab 4, I'd like to detect changes made to a field on tab 1. I
notice
I can change the field on tab 1 but tab 4 does not know about until the
form is submitted.I can't submit the form...

I'd like to have a Javascript handler that implements the onchange() and
somehow sets a session attribute or some kind of trigger that tells tab
4
to reload itself when this field on tab 1 has changed.I notice if
I
change these values, the form object will not get the new values until
you
hit submit.Having the javascript function call submit is not an
option
either...   Any ideas on how best to do this??

If I could access my form-bean directly within the Javascript method,
that
would be an option to (as I could call the set method on the form
object)
but I am not sure if the javascript can access the form object directly
and
call a set method?

thanks,
Theron


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




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


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




Problem using the nested taglib

2002-03-11 Thread Javier Campoamor

Hi,

I'm using the nested extension to manage a bean that has a list of other
beans, but I'm having always the same problem that I'm unable to solve.

I have a first action that creates the action form to be showed in the next
jsp. This works and everything I need is in the response. The problem that I
have is after that, when I submit the form to the next action, no
information about the nested beans is there. The nested beans array list is
null.

Does anybody know what I'm doing wrong? Where can be the problem?

Thanks in advance.

Javier




Here I create the action form:

  AuDistrAdminForm auDistrAdminForm = (AuDistrAdminForm) form;

  auDistrAdminForm.setAggregationUnitId(auAux.getAggregationUnitId());
  auDistrAdminForm.setAuDescription(auAux.getDescription());
  ArrayList distributionBeanslist = new ArrayList();
  for(Iterator iter = auAux.getAuDistributionList().iterator();
iter.hasNext(); )
{
AUDistribution auDistribution = (AUDistribution) iter.next();
AUDistributionBean auDistributionBean = new AUDistributionBean();

auDistributionBean.setAggregationUnitId(auDistribution.getAggregationUnitId(
));
auDistributionBean.setEmployeeId(auDistribution.getEmployeeId());

auDistributionBean.setEmailAddress(auDistribution.getEmailAddress());
auDistributionBean.setEmployeeName(auDistribution.getFirstName() + 

+  auDistribution.getLastName());
distributionBeanslist.add(auDistributionBean);
}
  auDistrAdminForm.setDistributionList(distributionBeanslist);

  if (request.equals(mapping.getScope()))
  request.setAttribute(mapping.getAttribute(), form);
  else
  session.setAttribute(mapping.getAttribute(), form);
  }



And here is the JSP content:

html:form action=/saveAuDistrAdministration.do
bean:write name=auDistrAdminForm property=aggregationUnitId
filter=true/
nested:hidden property=aggregationUnitId /
nested:text property=auDescription /
table width=86% border=1 cellspacing=0
tr align=left
  td width=22% class=bgGrey
bean:message key=auDistAdmin.prompt.email/
  /td
  td width=18% class=bgGrey
bean:message key=auDistAdmin.prompt.identifier/
  /td
  td width=48% class=bgGrey
bean:message key=auDistAdmin.prompt.employeeName/
  /td
  td width=12% class=bgGreynbsp;/td
/tr

nested:iterate property=distributionArray 
tr
  td align=leftnested:write property=emailAddress
/nested:hidden property=emailAddress //td
  td align=leftnested:write property=employeeId /nested:hidden
property=employeeId //td
  td align=leftnested:write property=employeeName
/nested:hidden property=employeeName //td
  td align=leftnested:checkbox property=markedForDeletion //td
/tr
/nested:iterate

  /tablebr
html:submitSave/html:submit
/html:form




This is the action from getter that returns that nested beans array:

  public Object[] getDistributionArray()
{
return _DistributionList.toArray();
}




And the struts-config file has the next lines:

form-bean name=auDistrAdminForm
type=com.lapize.frs.form.AuDistrAdminForm/

action path=/auDistrAdministration
type=com.lapize.frs.action.AuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auAdministration.jsp
forward name=success path=/auDistribution.jsp/
/action
action path=/saveAuDistrAdministration
type=com.lapize.frs.action.SaveAuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auDistrAdministration
forward name=success path=/aggregationUnits.jsp/
/action



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




RE: Free (or inexpensive) web hosting site for JSP/Struts/MySql?

2002-03-11 Thread Greg.Reddin

Check out http://www.webappcabaret.com/index.html.  They're free for 15
days and quite affordable after that.  You have access to Tomcat and
Jonas as well as mySql.

No offense, but you're not going to get the functionality you want for
free.  You must be willing to pay at least a little if you're going to
have database access and reliability.  WebAppCabaret is very affordable.
I can't speak for their reliability or performance.

Greg

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:06 PM
 To: Struts Users Mailing List
 Subject: Free (or inexpensive) web hosting site for JSP/Struts/MySql?
 
 
 
 Hi Folks:
 
 A thousand pardon's if this has already been asked in the 
 pastIs
 there a hosting service that's inexpensive or free (I doubt 
 it?) that would
 allow one to create a web-site that allows me to use 
 JSP/Struts and mySql
 database as well as access to an SMTP daemon to send email?   
  I'd like to
 possibly create a web-site in my spare time that would allow 
 people to post
 reviews of their favorite cd's.
 
 I am getting more/more proficient with Struts and am liking 
 it and feel I
 am possessing the knowledge to build such a site...The 
 one catch is the
 database can grow to big proportions since people are posting 
 reviews which
 could be many sentances long.I'd expect the database to 
 contain as much
 as 20-30MB (if not more) after the first 6-12 months.
 
 Also, can mySql handle such a workload?I am proficient with using
 Oracle (what we use at work) but don't want to pay to use 
 Oracle for this
 web-site.   mySql makes sense since it seems to be free.
 
 thanks in advance,
 Theron
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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




RE: error on starting the weblogic server

2002-03-11 Thread Dua, Amit

thanks Rajesh


-Original Message-
From: rajesh kalluri [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:52 AM
To: 'Struts Users Mailing List'
Subject: RE: error on starting the weblogic server


Hi Amit,

As the error stated your struts-config does not match struts-config_1_0.dtd.

make sure your elemenst in the struts-config are in the following order.

--data-sources
--form-beans
--global-forwards
--action-mappings



-Original Message-
From: Dua, Amit [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:47 AM
To: 'Struts Users Mailing List'
Subject: error on starting the weblogic server


Hi
I am getting this error on running struts on my weblogic server.
Can anyone tell me why I am getting this.


Parse Error at line 237 column 17: The content of element type
struts-config must match
(data-sources?,form-beans?,global-forwards?,action-mappings?).org.xml.sax.
SAXParseException: The content of element type struts-config must
match (data-sources?,form-beans?,global-forwards?,action-mappings?). at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java



Thanks
Amit

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



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

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




RE: Problem using the nested taglib

2002-03-11 Thread Alex Paransky

Shouldn't you be using a nested:form ? in your .JSP?

-
-AP_
See my profile at
http://www.myprofiles.com/member/view.do?profileId=128


-Original Message-
From: Javier Campoamor [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:49 AM
To: Struts Users Mailing List
Subject: Problem using the nested taglib


Hi,

I'm using the nested extension to manage a bean that has a list of other
beans, but I'm having always the same problem that I'm unable to solve.

I have a first action that creates the action form to be showed in the next
jsp. This works and everything I need is in the response. The problem that I
have is after that, when I submit the form to the next action, no
information about the nested beans is there. The nested beans array list is
null.

Does anybody know what I'm doing wrong? Where can be the problem?

Thanks in advance.

Javier




Here I create the action form:

  AuDistrAdminForm auDistrAdminForm = (AuDistrAdminForm) form;

  auDistrAdminForm.setAggregationUnitId(auAux.getAggregationUnitId());
  auDistrAdminForm.setAuDescription(auAux.getDescription());
  ArrayList distributionBeanslist = new ArrayList();
  for(Iterator iter = auAux.getAuDistributionList().iterator();
iter.hasNext(); )
{
AUDistribution auDistribution = (AUDistribution) iter.next();
AUDistributionBean auDistributionBean = new AUDistributionBean();

auDistributionBean.setAggregationUnitId(auDistribution.getAggregationUnitId(
));
auDistributionBean.setEmployeeId(auDistribution.getEmployeeId());

auDistributionBean.setEmailAddress(auDistribution.getEmailAddress());
auDistributionBean.setEmployeeName(auDistribution.getFirstName() + 

+  auDistribution.getLastName());
distributionBeanslist.add(auDistributionBean);
}
  auDistrAdminForm.setDistributionList(distributionBeanslist);

  if (request.equals(mapping.getScope()))
  request.setAttribute(mapping.getAttribute(), form);
  else
  session.setAttribute(mapping.getAttribute(), form);
  }



And here is the JSP content:

html:form action=/saveAuDistrAdministration.do
bean:write name=auDistrAdminForm property=aggregationUnitId
filter=true/
nested:hidden property=aggregationUnitId /
nested:text property=auDescription /
table width=86% border=1 cellspacing=0
tr align=left
  td width=22% class=bgGrey
bean:message key=auDistAdmin.prompt.email/
  /td
  td width=18% class=bgGrey
bean:message key=auDistAdmin.prompt.identifier/
  /td
  td width=48% class=bgGrey
bean:message key=auDistAdmin.prompt.employeeName/
  /td
  td width=12% class=bgGreynbsp;/td
/tr

nested:iterate property=distributionArray 
tr
  td align=leftnested:write property=emailAddress
/nested:hidden property=emailAddress //td
  td align=leftnested:write property=employeeId /nested:hidden
property=employeeId //td
  td align=leftnested:write property=employeeName
/nested:hidden property=employeeName //td
  td align=leftnested:checkbox property=markedForDeletion //td
/tr
/nested:iterate

  /tablebr
html:submitSave/html:submit
/html:form




This is the action from getter that returns that nested beans array:

  public Object[] getDistributionArray()
{
return _DistributionList.toArray();
}




And the struts-config file has the next lines:

form-bean name=auDistrAdminForm
type=com.lapize.frs.form.AuDistrAdminForm/

action path=/auDistrAdministration
type=com.lapize.frs.action.AuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auAdministration.jsp
forward name=success path=/auDistribution.jsp/
/action
action path=/saveAuDistrAdministration
type=com.lapize.frs.action.SaveAuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auDistrAdministration
forward name=success path=/aggregationUnits.jsp/
/action



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


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




RE: Problem using the nested taglib

2002-03-11 Thread Alex Paransky

Also, I think you need to be using indexed properties to properly generate
the names of the nested:hidden property names inside of your loop.  Without
using indexed properties, how will struts know which member to update in
your array when a submit is done?

-
-AP_
See my profile at
http://www.myprofiles.com/member/view.do?profileId=128


-Original Message-
From: Javier Campoamor [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:49 AM
To: Struts Users Mailing List
Subject: Problem using the nested taglib


Hi,

I'm using the nested extension to manage a bean that has a list of other
beans, but I'm having always the same problem that I'm unable to solve.

I have a first action that creates the action form to be showed in the next
jsp. This works and everything I need is in the response. The problem that I
have is after that, when I submit the form to the next action, no
information about the nested beans is there. The nested beans array list is
null.

Does anybody know what I'm doing wrong? Where can be the problem?

Thanks in advance.

Javier




Here I create the action form:

  AuDistrAdminForm auDistrAdminForm = (AuDistrAdminForm) form;

  auDistrAdminForm.setAggregationUnitId(auAux.getAggregationUnitId());
  auDistrAdminForm.setAuDescription(auAux.getDescription());
  ArrayList distributionBeanslist = new ArrayList();
  for(Iterator iter = auAux.getAuDistributionList().iterator();
iter.hasNext(); )
{
AUDistribution auDistribution = (AUDistribution) iter.next();
AUDistributionBean auDistributionBean = new AUDistributionBean();

auDistributionBean.setAggregationUnitId(auDistribution.getAggregationUnitId(
));
auDistributionBean.setEmployeeId(auDistribution.getEmployeeId());

auDistributionBean.setEmailAddress(auDistribution.getEmailAddress());
auDistributionBean.setEmployeeName(auDistribution.getFirstName() + 

+  auDistribution.getLastName());
distributionBeanslist.add(auDistributionBean);
}
  auDistrAdminForm.setDistributionList(distributionBeanslist);

  if (request.equals(mapping.getScope()))
  request.setAttribute(mapping.getAttribute(), form);
  else
  session.setAttribute(mapping.getAttribute(), form);
  }



And here is the JSP content:

html:form action=/saveAuDistrAdministration.do
bean:write name=auDistrAdminForm property=aggregationUnitId
filter=true/
nested:hidden property=aggregationUnitId /
nested:text property=auDescription /
table width=86% border=1 cellspacing=0
tr align=left
  td width=22% class=bgGrey
bean:message key=auDistAdmin.prompt.email/
  /td
  td width=18% class=bgGrey
bean:message key=auDistAdmin.prompt.identifier/
  /td
  td width=48% class=bgGrey
bean:message key=auDistAdmin.prompt.employeeName/
  /td
  td width=12% class=bgGreynbsp;/td
/tr

nested:iterate property=distributionArray 
tr
  td align=leftnested:write property=emailAddress
/nested:hidden property=emailAddress //td
  td align=leftnested:write property=employeeId /nested:hidden
property=employeeId //td
  td align=leftnested:write property=employeeName
/nested:hidden property=employeeName //td
  td align=leftnested:checkbox property=markedForDeletion //td
/tr
/nested:iterate

  /tablebr
html:submitSave/html:submit
/html:form




This is the action from getter that returns that nested beans array:

  public Object[] getDistributionArray()
{
return _DistributionList.toArray();
}




And the struts-config file has the next lines:

form-bean name=auDistrAdminForm
type=com.lapize.frs.form.AuDistrAdminForm/

action path=/auDistrAdministration
type=com.lapize.frs.action.AuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auAdministration.jsp
forward name=success path=/auDistribution.jsp/
/action
action path=/saveAuDistrAdministration
type=com.lapize.frs.action.SaveAuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auDistrAdministration
forward name=success path=/aggregationUnits.jsp/
/action



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




How do you do a map with hotspots in Struts

2002-03-11 Thread Maturo, Larry

How do you have a graphic image with embedded hotspots
in Struts such that once you are in the action class you
can tell which hotspot was clicked on?

I've searched the archives and checked on JGRU and could
not find anything on this.

-- Larry Maturo

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




RE: Struts Validator changing the key in the validator.xml

2002-03-11 Thread Ben Kafka

Thanks Dave!

-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:21 AM
To: Struts Users Mailing List
Subject: Re: Struts Validator changing the key in the validator.xml



There are some examples here.
http://home.earthlink.net/~dwinterfeldt/overview.html#i18n

 In the Application resources properties currently I
 have {0} is invalid
 for my errors.invalid tag. What I would like to
 have is {0} is invalid
 because {1} but I don't know how to define the {1}
 in the validation.xml
 and validation-rules.xml.

field property=lastName
  depends=required,mask
   arg0 key=registrationForm.lastname.displayname/

   arg1 name=mask
key=registrationForm.lastname.becauseMessage/
   var
  var-namemask/var-name
  var-value^[a-zA-Z]*$/var-value
   /var
/field

or you can override the default message:

field property=lastName
  depends=required,mask
   msg name=mask
key=registrationForm.lastname.maskmsg/
   arg0 key=registrationForm.lastname.displayname/

   var
  var-namemask/var-name
  var-value^[a-zA-Z]*$/var-value
   /var
/field

David

--- Ben Kafka [EMAIL PROTECTED] wrote:
 Was wondering if there is a way to access a unique
 string to display for a
 required error in the javascript function under
 validator-rules.xml. Right
 now the following happens:
 If in the validator.xml file I specify the arg0
 key=regform.firstname.displayname  it is
 used by both the required and mask javascript
 functions to display a
 canned error like
 Firstname is invalid.
 Firstname required.

 How can I differentiate these. For instance I would
 like to say..
 Firstname in invalid because only upper and lower
 case letters are allowed.

 In the Application resources properties currently I
 have {0} is invalid
 for my errors.invalid tag. What I would like to
 have is {0} is invalid
 because {1} but I don't know how to define the {1}
 in the validation.xml
 and validation-rules.xml.


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



__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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


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




RE: Free (or inexpensive) web hosting site for JSP/Struts/MySql?

2002-03-11 Thread theron . kousek


Thanks Greg:

Chances are whatever site I go with, I'll try and find a sponser who will
cover the charges since the site would benefit the readers and the bands
that the site promotes.The site would not benefit myself.So what I
would do is perhaps develop the site locally and borrow a friend's
web-server temporarily for a week and let people bang on the site.If
they like what they see, they could perhaps help me obtain a sponser(s) to
cover the monthly costs of keeping the site running.

thanks,
Theron


   
 
Greg.Reddin@a  
 
lltel.comTo: [EMAIL PROTECTED]
 
 cc:   
 
03/11/02 Subject: RE: Free (or inexpensive) web 
hosting site for
11:46 AM JSP/Struts/MySql? 
 
Please 
 
respond to 
 
Struts Users   
 
Mailing List   
 
   
 
   
 



Check out http://www.webappcabaret.com/index.html.  They're free for 15
days and quite affordable after that.  You have access to Tomcat and
Jonas as well as mySql.

No offense, but you're not going to get the functionality you want for
free.  You must be willing to pay at least a little if you're going to
have database access and reliability.  WebAppCabaret is very affordable.
I can't speak for their reliability or performance.

Greg

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:06 PM
 To: Struts Users Mailing List
 Subject: Free (or inexpensive) web hosting site for JSP/Struts/MySql?



 Hi Folks:

 A thousand pardon's if this has already been asked in the
 pastIs
 there a hosting service that's inexpensive or free (I doubt
 it?) that would
 allow one to create a web-site that allows me to use
 JSP/Struts and mySql
 database as well as access to an SMTP daemon to send email?
  I'd like to
 possibly create a web-site in my spare time that would allow
 people to post
 reviews of their favorite cd's.

 I am getting more/more proficient with Struts and am liking
 it and feel I
 am possessing the knowledge to build such a site...The
 one catch is the
 database can grow to big proportions since people are posting
 reviews which
 could be many sentances long.I'd expect the database to
 contain as much
 as 20-30MB (if not more) after the first 6-12 months.

 Also, can mySql handle such a workload?I am proficient with using
 Oracle (what we use at work) but don't want to pay to use
 Oracle for this
 web-site.   mySql makes sense since it seems to be free.

 thanks in advance,
 Theron


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


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




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




RE: JavaScript Form/submit Function

2002-03-11 Thread Satish Jeejula


I had noticed the problem. This is how I made it work. The java script that
is invoked by pressing submit button returns 'true' or 'false'. The form
gets submitted only if the value of 'onclick' attribute is true.

I use html:submit tag as following ..

 html:submit onclick=javascript:return validate(document.purchaseForm)
bean:message key=button.submit/
 /html:submit

The javascipt code is as follows ...

script language=javascript type=text/javascript
function validate(form)
{
  if(!isAnyCard(form.elements[cc_number].value)){
  alert(Invalid Card number, please enter a valid number now.);
  return false;
  }
  else {
return true;
  }
}
/script

Hope this helps.
Satish.

- Original Message -
From: Guido Schmutz [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:20 PM
Subject: AW: JavaScript Form/submit Function


 Hello,

 I'm currently having the exact same problem. It's caused by the
 html:submit button, which automatically assigns the name submit to
 the button. Therefore you have an object submit in your form an IE does
 not seem to recognize the submit() method on the form anymore. If you
 remove your html:submit tag, your form would work perferctly.

 I'm not sure what the solution for the problem is and I'm still working
 on it.
 I've tried to put the html:select in a second form and that would
 work. Another way would be to not use the html:submit tag and code the
 submit button manually (with a different name than submit). Unfortunatly
 it's not possible to pass a name to the html:submit tag and I'm also
 not sure, if Struts uses the name submit internally.

 Any additional input would help me as well.

 Guido



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




BeanUtils.populate and OutOfMemoryError

2002-03-11 Thread John M. Corro

I have a form page that incorporates a quite a few form elements (generated from 
Struts tag lib) particularly select menus.  I recently had to add a few more pulldown 
menus and found that doing so caused the page to not to be able to submit.  I can get 
the page to display correctly, but when I hit submit I get an error message saying 
javax.servlet.ServletException: BeanUtils.populate and the root cause being 
java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError.  I used JSP 
comment tags to comment out the pulldown menus I just added and trying to submit again 
and the page was able to go through to the ActionForm, so I think based on that I can 
pretty reasonably assume that the source of my problems is the extra form elements.  

There's been some talk before about having problems w/ pages *displaying* because of 
too many tags (if I'm not mistaken, it's because the compiled servlet gets too big 
because the tag lib gets compiled in along w/ the other JSP code).  I tried 
approaching it from that angle, but then I started wondering if that would apply in 
this situation - the page displays fine so there's no problems from the compiled JSP's 
standpoint.  The only thing I'm left w/ is that the form is so big that the BeanUtils 
method eats up all the memory when it tries to populate the ActionForm via reflection.

The form itself has 50-60 form elements (client requirement to keep the form that 
big...so no option of utilizing a multi-page workflow).  I was thinking about breaking 
part of the form out into a different page and then doing an include (I believe I read 
before that doing that helps), but the Struts tag lib documentation said that the html 
form elements (select) are only valid when nested in a form tag body.

Has anyone else run into this?  I've done some pretty thorough Google searching and 
wasn't able to find any other options to pursue.  Thanks in advance for anyones input.

Btw, I'm running on Tomcat 4 (on W2K) and tried optimizing by setting Xms=128 and 
Xmx=160.


  



FW: Config for WAS 3.5 on OS/390?

2002-03-11 Thread KASSON, STEVEN R (Steve), ALBAS

Hmm... I received a follow-up question on this topic, so I tried to find my posting 
from awhile back.  I couldn't find it in the archives... so here it is again.
 

Regards, 
-Steve 


 To: [EMAIL PROTECTED]
Subject: RE: Config for WAS 3.5 on OS/390?

Hi All,  

Since I made my original post we've been able to get things running. Here are the 
details (I needed to write them up anyway). I'm sure it's not the only solution, but 
it's working!  Any suggestions on the DTD validation are welcome...

Regards,

-Steve

 

Configuring Struts 1.0 on WAS 3.5 for OS/390

Background Info:

WAS for OS/390 strives to be compatible with the multi-platform releases of WAS, but 
it does have some differences. One big difference is the lack of the Administrator's 
Console. Instead it uses a set of properties files to configure the server and web 
applications. The following site has specific documentation; the Planning, 
Installing, and Using (PIU) document is the most useful. 

http://www-4.ibm.com/software/webservers/appserv/library_390.html

There is a section in Chapter 3 of the PIU document which details how to convert a WAR 
file. We tried this on the struts-blank.war but were unable to get things working. But 
it was helpful to see what the conversion process generated. We then manually 
configured our application as described below.

Problems Encountered

XML Validation

We tried multiple combinations for specifying the DTD's for the XML files: 
struts-config.xml and web.xml.  Nothing seemed to work.  The parser could not seem to 
resolve to the local copy of the DTD.  We got around this by removing the DOCTYPE tag 
from the files and adding/setting the servlet parameter validating to false for 
the action servlet.

ASCII vs EBCDIC

It turns out that most files (jsp, xml, tld, resources, etc.) must be ASCII in 
order for WAS and Struts to process them. The only exception is the myapp.webapp 
file (described below). We use FTP to promote our files to the 390. Here's the 
confusing part... When you FTP in mode ASCII, an automatic conversion takes place, 
converting your text files to EBCDIC. To keep the files in ASCII format, you must FTP 
in mode BINARY. 

Key Files

The key files for configuring WAS on OS/390 are detailed in the PIU document. I've 
noted some comments below and snippets/content for each that we touched in our 
installation.

httpd.conf

The configuration file for the Web server. A Service directive is needed to 
route requests through WAS for your application. 

# MYAPP application 

# 

Service /myapp/* /usr/lpp/WebSphere/uq56298/AppServer/bin/was350plugin.so:service_exit 

 

was.conf

A properties file used to configure the application server and web 
applications. The key here is to only use the deployedwebapp items, do not include 
any webapp items. This way, WAS will look for the myapp.webapp file in your path 
for the webapp configuration. 

#

# myapp application 

# 

deployedwebapp.myapp.host=default_host 

deployedwebapp.myapp.rooturi=/myapp 

deployedwebapp.myapp.classpath=/myapp/WEB-INF/classes:/myapp/WEB-INF/lib 

deployedwebapp.myapp.documentroot=/myapp

deployedwebapp.myapp.autoreloadinterval=3 

 

myapp.webapp  

An XML file that is similar to the web.xml standard for web application 
deployments.  (The PIU document claims that it is the same, but it's not.)  The online 
documentation for Visual Age contains information on it's tags and formatting.  Also, 
Kyle Brown's article discusses it with regard to configuring the WebSphere Test 
Environment on Visual Age for Java - 
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubMast=1 
Actually, the configuration for WAS on OS/390 seems to be very similar to the 
configuration for the WebSphere Test Environment in Visual Age for Java. Remember, 
this file MUST be EBCDIC. Here is a complete example file:

?xml version=1.0?

webapp

taglib

taglib-uri/WEB-INF/struts-bean.tld/taglib-uri

taglib-location/WEB-INF/struts-bean.tld/taglib-location

/taglib

taglib

taglib-uri/WEB-INF/struts-html.tld/taglib-uri

taglib-location/WEB-INF/struts-html.tld/taglib-location

/taglib

taglib

taglib-uri/WEB-INF/struts-logic.tld/taglib-uri

taglib-location/WEB-INF/struts-logic.tld/taglib-location

/taglib

servlet

nameaction/name

codeorg.apache.struts.action.ActionServlet/code

autostarttrue/autostart

init-parameter

nameapplication/name

valueApplicationResources/value

/init-parameter

init-parameter

nameconfig/name

value/WEB-INF/struts-config.xml/value

/init-parameter

init-parameter

namedebug/name

value2/value

/init-parameter

init-parameter

namedetail/name

value2/value

/init-parameter

init-parameter

namevalidate/name

valuetrue/value

/init-parameter 

init-parameter

namevalidating/name

valuefalse/value

/init-parameter

servlet-path*.do/servlet-path

/servlet

welcome-file-list

welcome-fileindex.jsp/welcome-file


Re: What's the rigth way to do it ?

2002-03-11 Thread Slimane

Hi,

I don't know if your concepts are wrong :) (too newbie for that)
But I don't think your first solution seems not to comply with my problem 
and so I think I'll stick with the session object.

Although, thanx for your reply :)

Friendly Regards,
Slimane

At 19:55 10/03/2002 -0800, Someone poor demented soul by the name of 
@Basebeans.com presented us with the following text which may contain 
useless information.
Subject: Re: What's the rigth way to do it 1 2 3 4 5 6 7 8 9
From: Tea Yu [EMAIL PROTECTED]
  ===
Hi Slimane,

It seems that you're using the same parameters or combinations from a
parameter set across various pages.  And links like what you've
mentioned are gonna be referred from a couple of pages?

Can these links be factorized into more general actions like
bla.do?category=bulldoHarm=nobe mapped tobla/whiteLie.doso
that your users can still bookmark your pages for further reference (if
allowed) and any change in parameter-value mappings could be done in the
controller config in future?(General practice using Struts, please see
Ted's resources for elaborations)

If no, are the parameter values supposed to change after some period of
time?  If so I guess session object may do the job right.

Well... I'm new to struts too, just tell me if my concepts are wrong.

Tea Yu

  Bin,
 
  Thanks for your answer :)
 
  The fact is I don't have any EJB. So I think I'll just use the
HttpSession
  object :)
  And about passing the strings as parameters* of my Action classes ? Was
it
  a bad idea ? If so, why ?
 
  * What I mean by parameters is for example doing the following:
   A HREF=bla.do?param1=dohparam2=goshblabla/A
  where param1 and param2 are my actual parameters
  and then in the Action classes, I'll use the getParameter() method
 
  Thanks again,
  Slimane



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


--
Make it run, Make it right, Make it fast


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




RE: Found Solution to setting server side parm in Javascript BUT....

2002-03-11 Thread theron . kousek


thanks Robert:

I don't feel so bad.I was stuck for 3 hours on this doggone dilema (not
to mention a little bit of cussing) and tried quite a few things prior to
my final solution of the intermediate JSP to set the property...I did
not think that setting a form object's values from html/javascript was
going to be *this* difficult.If there was a way to force a form
object's values to be loaded without having to do a submit in javascript,
my problem would have been solved.This was one of those things where I
thought it would take me 5-10 minutes to do and ended up being 3 hours.
Adding the intermediate JSP seemed to be a hack at first but based on
what you just told me, I guess it's a normal thing  :-)It works now and
it works beautifully but it sure is alot harder to do then when the screen
was in a JTabbedPane using Swing  :-)

thanks,
Theron



   
 
Robert Nocera  
 
rnocera@neosTo: Struts Users Mailing List 
 
llc.com [EMAIL PROTECTED]  
 
 cc:   
 
03/11/02 Subject: RE: Found Solution to setting 
server side parm in 
11:16 AM Javascript BUT
 
Please 
 
respond to 
 
Struts Users   
 
Mailing List   
 
   
 
   
 



Theron,

There isn't an easier way because a FormBean is a server-side object.
You might think that your html page has access to it, but it's only
because of the sleight of hand involved in JSP programming.  Since a JSP
is actually a servlet, it is only sending HTML to a browser so your
browser knows nothing of these objects.

Robert Nocera
New England Open Solutions
www.neosllc.com
You supply the vision, we'll do the rest.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 7:21 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Found Solution to setting server side parm in Javascript
BUT


After spending 2 hours trying to find a solution to this, I found one by
trial and error...
BUT THERE HAS GOT TO BE A BETTER WAY  :-)

Here's what I did but I can't believe it's this difficult to do...

Here's my checkfield property that needs to force a form value to be
updated:

 html:select property=psdProductType size=1
  onchange=setCurrProductType(this.value)
  html:options collection=psbusinesstype
property=value
   labelProperty=label/
 /html:select

Here's the javascript function:

 function setCurrProductType(inProductType) {
  alert(Setting curr product type to:  + inProductType);
  window.location=SetProperty.jsp?enteredPt=+inProductType;
 }


and here's the SetProperty.jsp
-
%@ taglib uri=/struts-bean prefix=bean %

bean:define id=psInfo name=psSession type=express.EBPsSession
scope
=session /
bean:define id=psForm name=psForm type=express.psForm scope
=session /

%
 //
 // If they changed the product type on the first page, set it
 // here in the form object...
 //
 String sCurrProductType=request.getParameter(enteredPt);
 psInfo.setCurrProductType(sCurrProductType);
 System.out.println(Current Product Type =  +
psInfo.getCurrProductType()
  +  current page =  + psInfo.getCurrpage());
 psForm.setPsdProductType(psInfo.getCurrProductType());
%

jsp:forward page=PsPage.jsp/


So in essence, the forward tag simply causes control to come back to
the
page I was on...   But in-between, I was able to set a form bean
propertyAgain my problem is the form bean property is not
updated
until you hit the submit button...   In this case, I don't want a submit
to
occur when you change the contents of the dropdown.   Only the property
for
that drop down should change...   After adding this, when I click to go
to
the 4th tab, the action now sees the newly changed value


RE: JavaScript Form/submit Function

2002-03-11 Thread Paul Idusogie



Thanks,

Paul Idusogie 
Technical Architect 
Consulting Services
Stellent Inc.
 Golden Triangle Drive
Eden Prairie, MN 55104
Desk: 952.656.2755
Fax: 952.903.2115
Email: [EMAIL PROTECTED]
website: http://www.stellent.com


-Original Message-
From: Satish Jeejula [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 2:48 PM
To: 'Struts Users Mailing List'
Subject: RE: JavaScript Form/submit Function



I had noticed the problem. This is how I made it work. The java script that
is invoked by pressing submit button returns 'true' or 'false'. The form
gets submitted only if the value of 'onclick' attribute is true.

I use html:submit tag as following ..

 html:submit onclick=javascript:return validate(document.purchaseForm)
bean:message key=button.submit/
 /html:submit

The javascipt code is as follows ...

script language=javascript type=text/javascript
function validate(form)
{
  if(!isAnyCard(form.elements[cc_number].value)){
  alert(Invalid Card number, please enter a valid number now.);
  return false;
  }
  else {
return true;
  }
}
/script

Hope this helps.
Satish.

- Original Message -
From: Guido Schmutz [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:20 PM
Subject: AW: JavaScript Form/submit Function


 Hello,

 I'm currently having the exact same problem. It's caused by the
 html:submit button, which automatically assigns the name submit to
 the button. Therefore you have an object submit in your form an IE does
 not seem to recognize the submit() method on the form anymore. If you
 remove your html:submit tag, your form would work perferctly.

 I'm not sure what the solution for the problem is and I'm still working
 on it.
 I've tried to put the html:select in a second form and that would
 work. Another way would be to not use the html:submit tag and code the
 submit button manually (with a different name than submit). Unfortunatly
 it's not possible to pass a name to the html:submit tag and I'm also
 not sure, if Struts uses the name submit internally.

 Any additional input would help me as well.

 Guido



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




Newbie Question: Struts Installation

2002-03-11 Thread David . A . Ventimiglia


Hello,

Is there a mistake in the Struts installation instructions?  

I'm trying to use Struts in Weblogic 6.1, and am getting an error that says
Weblogic can't find the tag class.

When I looked in the Struts docs, it seemed to contradict the Weblogic docs:

The Struts docs say to copy the Struts jar files into the ../WEB-INF/lib
directory, then copy all the *.tld files into the ../WEB-INF directory.
Then place entries like these in your ../WEB-INF/web.xml file:

taglib
  taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
  taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib

This page of the Weblogic docs, however, say to point tablib-location not
the the *.tld file, but to the *.jar file, at least when deploying a JSP Tag
Library as a JAR file:

http://e-docs.bea.com/wls/docs61///taglib/admin.html#361243

Basically, it says to put this in the ../WEB-INF/web.xml file:

taglib
taglib-urimyjar.tld/taglib-uri
taglib-location
  /WEB-INF/lib/myTagLibrary.jar
/taglib-location
/taglib

Which is it?  If I want to keep my custom tags in JAR files, do I reference
the location to the TLD file or the JAR file?

Thanks!

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




/servlet is the industry standard?

2002-03-11 Thread Dave J Dandeneau

Our current client is inquiring why we are not using /servlet as the prefix to our 
URIs. They are saying that /servlet is the industry standard. I have argued that a 
struts application only has one servlet (possibly two if you include the validator) 
and therefore  it wouldn't make any sense to do it that way in a struts application. 

Is this truly an industry standard? Would there be any reasoning to try to mimic this? 


Can this even be done if you have multiple web-apps? 

Wouldn't it look more like domain/contextpath/servlet and not domain/servlet?

Any feedback would be greatly appreciated.

Thanks,
dave dandeneau



RE: /servlet is the industry standard?

2002-03-11 Thread Robert

It may have been a non-written 'standard' back before the WebAppliation
came along, i.e. the .war file. Back then servlets were mapped via the
/servlet URL so that web servers knew how to send the request to servlet
engines. At least it was that way in everything I saw.

I never use the /servlet anymore, and nor does anyone else I know. It
just isn't really needed, for the reasons you mention. Most people don't
write just servlets anymore, they use JSPs and one or two controllers.

HTH,
Robert

-Original Message-
From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 4:33 PM
To: Struts Users Mailing List
Subject: /servlet is the industry standard?

Our current client is inquiring why we are not using /servlet as the
prefix to our URIs. They are saying that /servlet is the industry
standard. I have argued that a struts application only has one servlet
(possibly two if you include the validator) and therefore  it wouldn't
make any sense to do it that way in a struts application. 

Is this truly an industry standard? Would there be any reasoning to try
to mimic this? 

Can this even be done if you have multiple web-apps? 

Wouldn't it look more like domain/contextpath/servlet and not
domain/servlet?

Any feedback would be greatly appreciated.

Thanks,
dave dandeneau


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




RE: /servlet is the industry standard?

2002-03-11 Thread Greg.Reddin

Let me make an idiot of myself :-)

I believe /servlet is used if you do not define an entry in web.xml for
your servlet.  If you have the class com.stuff.servlet.AServlet in
WEB-INF/classes you can type
http://localhost/app-context/servlet/com/stuff/servlet/AServlet to
invoke your servlet.

Somebody please correct me if I've misstated that.  In any case that is
not the industry standard for invoking ANY servlet, just one that is not
defined in web.xml.  I believe your client is misinformed.

Thanks,
Greg

 -Original Message-
 From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 4:33 PM
 To: Struts Users Mailing List
 Subject: /servlet is the industry standard?
 
 
 Our current client is inquiring why we are not using /servlet 
 as the prefix to our URIs. They are saying that /servlet is 
 the industry standard. I have argued that a struts 
 application only has one servlet (possibly two if you include 
 the validator) and therefore  it wouldn't make any sense to 
 do it that way in a struts application. 
 
 Is this truly an industry standard? Would there be any 
 reasoning to try to mimic this? 
 
 Can this even be done if you have multiple web-apps? 
 
 Wouldn't it look more like domain/contextpath/servlet and 
 not domain/servlet?
 
 Any feedback would be greatly appreciated.
 
 Thanks,
 dave dandeneau
 



Installing struts 1.1 and message-resources tag

2002-03-11 Thread Natalie Gordon

Hi,

I've been working on a project using Struts 1.0.x in JBuilder.  I'm trying
to move the project to version 1.1 (I'm using jakarta-struts-20020307) to
use the LookupDispatchAction class.  I got this working in Tomcat 3.3.a, but
only by specifying

  message-resources
parameter=org.apache.struts.webapp.example.ApplicationResources/

in the struts-config.xml file.

I'm now trying to get it to work in JBuilder 5.  When I include the above in
struts-config.xml I get the error:

javax.servlet.ServletException: Missing message for key index.title

I'm assuming that it can't find the ApplicationResources.properties file
(even though it is in the directory
WEB-INF/src/org/apache/struts/webapp/example).

Has anyone else had this problem?  In 1.0 I had my
ApplicationResources.properties file in the WEB-INF/src directory and there
was no problem.  Does anyone know why I'm having problems when I disclude
the message-resources tag in the struts-config.xml file?

Any help is appreciated.

Thanks,
Natalie Gordon

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




javascript appearing before object is created.

2002-03-11 Thread Paul Idusogie

Could any provide a workaround?



I used the html:form tag syntax in a logon.jsp page with the following syntax
html:form action=/logon.do focus=userName
.
/html:form

This will add the javascript portion to set the form username attribute on focus when 
the page is launched. However I receive the following error:
'document.form.userName is null or not an object'

with IE 5.X. 

The javascript script appears before the rest of the form attributes when I view the 
generated code using view source. It looks like this:

form name=aFormName method=POST action=/anAction.do
script language=javascript 
!--
document.forms[aformName].elements[userName].focus()
// --
/script
table
tr
tdUserName:/td
tdinput type=text size=16 name=userName value=/td
/tr

/table
/form

This error occurs probably because IE executes the javascript portion before the page 
is painted. Any remedies, Please.

Thanks,

Paul Idusogie 
Technical Architect 
Consulting Services
Stellent Inc.
 Golden Triangle Drive
Eden Prairie, MN 55104
Desk: 952.656.2755
Fax: 952.903.2115
Email: [EMAIL PROTECTED]
website: http://www.stellent.com

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




simple frames problem, no help in archives

2002-03-11 Thread Joseph Barefoot

Hi all,

This problem is a bit annoying, because I have a fairly straight-forward
solution that inexplicably doesn't work.  As a preface, I have checked out
everything I could find related to frames in the archive, and nobody seems
to have encountered this particluar problem.

I have two simple frames, one a navigation bar dynamically generated from
form data, the other a view frame to show dynamically generated results when
the user clicks on a link in the nav-bar.  This MUST be implemented as two
frames, since the nav-bar is a tree-view of database table data (looks like
a file browser's nav-bar) and shouldn't be refreshed (esp. since we want to
retain opened nodes, etc.) when the view is changed.

So, this little application has:  3 JSP pages (frameset page, nav-bar frame,
view frame), 1 Action class, and 1 ActionForm, with a single global forward
for the Action and local forwards for the frameset and view pages (the
Action has session scope, b.t.w.).

The initial request (i.e., you can type this URL into a browser) is to the
Action class, with URL request parameters, and looks something like this:
http://localhost/txql.do?action=processTemplateuserID=someUser

This txql Action does some fancy processing, caches the results in the
ActionForm, and then forwards to the frameset page (all of this works fine,
yeaaa Struts!).  In this frameset page, the nav-bar frame src attribute
points back to the same Action class, which merely uses the value of the URL
param action to forward the browser to the correct JSP.  The only problem
with this is that it DOESN'T WORK (IE 5.0, Netscape 4.08, same behavior).
The Action class never receives the second request (to load the nav-bar
frame) at all, which I have tested exhaustively by printing the value of the
action parameter upon every execution of the perfom method inside the
Action.  I've examined the source received by both browsers for the frameset
page, and it has the correct request URL in each.

Here's the weird part:  When I test the same URL with the Konqueror web
browser packaged with KDE (Red-Hat Linux), the second request IS received by
the Action and processed correctly.  What gives?  I've tried using the
html:base/ tag as well, with no effect.

Any ideas, anyone?  This is driving me nuts, quite frankly.  :)
Thanks in advance to anyone who can help clear this up...has to be a
mistaken assumption on my part or something



The frameset page:


%@ page language=java %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ page contentType=text/html%

html
head
titleTXQL/title
/head
body bgcolor=maroon

frameset frameborder=0 framespacing=0 border=0 cols=30%,*
frame marginheight=0 marginwidth=0 name=navigator
src=html:rewrite page=/txql.do?action=TXQLNavigator/ target=view
frame marginheight=0 marginwidth=0 name=view

/frameset

/body
/html





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




Re: Problem using the nested taglib

2002-03-11 Thread Arron Bates

Almost. :)

html:form is a valid nested tags root. For compatibility reasons. 
nested:form is literally an extension of that. Other than that you can 
use the nested:root for non-form based stuff.

Indexed attribute is not needed. It has limited use in all the tags, and 
doesn't penetrate (multiple iterators) very well. The nested tags will 
ask each tag to get the underlying property. When it comes across the 
iterate tag, it will get it's correct index. All behind the scenes 
without you having to worry about it. It will work correctly for all 
tags, not just some, which the indexed attribute fails to do. For all 
intents and purposes, you only need the property property in the 
nested tags because all the rest is done for you. Makes management of 
markup much easier.


Arron.


Alex Paransky wrote:

Also, I think you need to be using indexed properties to properly generate
the names of the nested:hidden property names inside of your loop.  Without
using indexed properties, how will struts know which member to update in
your array when a submit is done?

-
-AP_
See my profile at
http://www.myprofiles.com/member/view.do?profileId=128


-Original Message-
From: Javier Campoamor [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:49 AM
To: Struts Users Mailing List
Subject: Problem using the nested taglib


Hi,

I'm using the nested extension to manage a bean that has a list of other
beans, but I'm having always the same problem that I'm unable to solve.

I have a first action that creates the action form to be showed in the next
jsp. This works and everything I need is in the response. The problem that I
have is after that, when I submit the form to the next action, no
information about the nested beans is there. The nested beans array list is
null.

Does anybody know what I'm doing wrong? Where can be the problem?

Thanks in advance.

Javier




Here I create the action form:

  AuDistrAdminForm auDistrAdminForm = (AuDistrAdminForm) form;

  auDistrAdminForm.setAggregationUnitId(auAux.getAggregationUnitId());
  auDistrAdminForm.setAuDescription(auAux.getDescription());
  ArrayList distributionBeanslist = new ArrayList();
  for(Iterator iter = auAux.getAuDistributionList().iterator();
iter.hasNext(); )
{
AUDistribution auDistribution = (AUDistribution) iter.next();
AUDistributionBean auDistributionBean = new AUDistributionBean();

auDistributionBean.setAggregationUnitId(auDistribution.getAggregationUnitId(
));
auDistributionBean.setEmployeeId(auDistribution.getEmployeeId());

auDistributionBean.setEmailAddress(auDistribution.getEmailAddress());
auDistributionBean.setEmployeeName(auDistribution.getFirstName() + 

+  auDistribution.getLastName());
distributionBeanslist.add(auDistributionBean);
}
  auDistrAdminForm.setDistributionList(distributionBeanslist);

  if (request.equals(mapping.getScope()))
  request.setAttribute(mapping.getAttribute(), form);
  else
  session.setAttribute(mapping.getAttribute(), form);
  }



And here is the JSP content:

html:form action=/saveAuDistrAdministration.do
bean:write name=auDistrAdminForm property=aggregationUnitId
filter=true/
nested:hidden property=aggregationUnitId /
nested:text property=auDescription /
table width=86% border=1 cellspacing=0
tr align=left
  td width=22% class=bgGrey
bean:message key=auDistAdmin.prompt.email/
  /td
  td width=18% class=bgGrey
bean:message key=auDistAdmin.prompt.identifier/
  /td
  td width=48% class=bgGrey
bean:message key=auDistAdmin.prompt.employeeName/
  /td
  td width=12% class=bgGreynbsp;/td
/tr

nested:iterate property=distributionArray 
tr
  td align=leftnested:write property=emailAddress
/nested:hidden property=emailAddress //td
  td align=leftnested:write property=employeeId /nested:hidden
property=employeeId //td
  td align=leftnested:write property=employeeName
/nested:hidden property=employeeName //td
  td align=leftnested:checkbox property=markedForDeletion //td
/tr
/nested:iterate

  /tablebr
html:submitSave/html:submit
/html:form




This is the action from getter that returns that nested beans array:

  public Object[] getDistributionArray()
{
return _DistributionList.toArray();
}




And the struts-config file has the next lines:

form-bean name=auDistrAdminForm
type=com.lapize.frs.form.AuDistrAdminForm/

action path=/auDistrAdministration
type=com.lapize.frs.action.AuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auAdministration.jsp
forward name=success path=/auDistribution.jsp/
/action
action path=/saveAuDistrAdministration
type=com.lapize.frs.action.SaveAuDistrAdminAction
name=auDistrAdminForm scope=session validate=false
input=/auDistrAdministration
forward name=success path=/aggregationUnits.jsp/
/action


No getter

2002-03-11 Thread Jon Ferguson

Hey guys, anybody see this??  I've had the particular exception before but
it's always been apparent what it was [eg. me :-) ].

I'm developing on Linux and Windows 2k.

I've built a struts/tiles app that works flawlessly under my
linux setup but when I serve it from my Windows 2k box I'm
getting :

No getter method for property mapping of bean category
when my jsp is hit.  The offending code uses a logic:iterate
as follows:

logic:iterate id=category
type=uk.co.omegasoftware.util.struts.CategoryWrapper
 name=itemListForm
property=categoryWrappers
tr
  td
html:link page=/inventory.do name=category
property=mapping
  bean:write name=category property=name filter=true/
/html:link
  /td
/tr
/logic:iterate

the CategoryWrapper class Does have the appropriate accessors:
...
public void setMapping(Map map) {
mapping = map;
}

   public Map getMapping() {
  return mapping;
   }
...

In both cases I'm using release versions of struts. I've tried 1.0: 1.0.1
and 1.0.2

I'm running on Tomcat 4.0-b6 on my Linux box..
I've tried: Tomcat 4.0.1, 3.2.3, and 4.0 on my Windows box.

I'm using JDK 1.4.0-beta on linux
I've tried JDK 1.3.1, 1.4.0-beta and 1.4.0-beta3 on windows

Any ideas??

Thanks,

Jon






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


Session management in Struts

2002-03-11 Thread Mark Glass

I'm developing a web application in Struts that requires a user to have a session 
before they can use the application. Currently anyone can bypass the logon and use the 
application. I would like the user to be required to login first. I am saving the user 
info to session when the user logs in and testing the session for this attribute 
before allowing them to use the functionality, however this does not work.

Can anyone point me to a paper or tutorial or example which will show me how to do 
this properly?

Thanks much in advance,
Mark



html:options bug?

2002-03-11 Thread Lawlor, Frank

The Struts Options tag seems to have problems accessing collections 
that are in some other object (e.g., your form).  The following dotted
notation should work (I thought) (roleList is an ArrayList):

   html:select property=requiredrole
html:options collection=MyForm.roleList property=name
labelProperty=description/
   /html:select

or alternatively:

   html:select property=requiredrole
html:options name=MyForm collection=roleList property=name
labelProperty=description/
   /html:select

But both of these result in an error that a bean cannot be found in
roleList.
A workaround is to cache the list:

   bean:define id=rolestemp name=MyForm property=roleList
scope=session /
   html:select property=requiredrole
html:options collection=rolestemp property=name
labelProperty=description/
   /html:select

Is this a bug or expected behavior?

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




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




RE: /servlet is the industry standard?

2002-03-11 Thread Paul Idusogie

Apparently you will have to use the /servlet in the URI if you do not specify a 
servlet mapping for your servlet in the web.xml file. I have provided an illustration 
below:

web-app
...
servlet
servlet-nameMyServlet/servlet-name  
servlet-classcom.mywebsite.package.MyServlet/servlet-class
/servlet

servlet-mapping
servlet-nameMyServlet/servlet-name
url-mapping/url-mapping
/servlet-mapping
...

/web-app
Thanks,

Paul Idusogie 
Technical Architect 
Consulting Services
Stellent Inc.
 Golden Triangle Drive
Eden Prairie, MN 55104
Desk: 952.656.2755
Fax: 952.903.2115
Email: [EMAIL PROTECTED]
website: http://www.stellent.com


-Original Message-
From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:33 PM
To: Struts Users Mailing List
Subject: /servlet is the industry standard?


Our current client is inquiring why we are not using /servlet as the prefix to our 
URIs. They are saying that /servlet is the industry standard. I have argued that a 
struts application only has one servlet (possibly two if you include the validator) 
and therefore  it wouldn't make any sense to do it that way in a struts application. 

Is this truly an industry standard? Would there be any reasoning to try to mimic this? 


Can this even be done if you have multiple web-apps? 

Wouldn't it look more like domain/contextpath/servlet and not domain/servlet?

Any feedback would be greatly appreciated.

Thanks,
dave dandeneau



Re: html:options bug?

2002-03-11 Thread Arron Bates

The collection attribute needs the bean reference only. The dot notation 
is for your property. Because the collection isn't the bean itself 
you'll have to use a define tag or something to make a bean reference 
directly to your collection, then use that reference in your collection 
attribute.

For your second example... The collection attribute is overriding, and 
ignores the name attribute. It's meant to be the direct link to a bean 
reference that itself is a collection.

Arron.


Lawlor, Frank wrote:

The Struts Options tag seems to have problems accessing collections 
that are in some other object (e.g., your form).  The following dotted
notation should work (I thought) (roleList is an ArrayList):

   html:select property=requiredrole
html:options collection=MyForm.roleList property=name
labelProperty=description/
   /html:select

or alternatively:

   html:select property=requiredrole
html:options name=MyForm collection=roleList property=name
labelProperty=description/
   /html:select

But both of these result in an error that a bean cannot be found in
roleList.
A workaround is to cache the list:

   bean:define id=rolestemp name=MyForm property=roleList
scope=session /
   html:select property=requiredrole
html:options collection=rolestemp property=name
labelProperty=description/
   /html:select

Is this a bug or expected behavior?

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




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





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




RE: Session management in Struts

2002-03-11 Thread Joseph Barefoot

I'm not sure about a paper or tutorial Mark, but we accomplish this by
sub-classing the struts Action class and peforming authentication there.
All Action classes in the system except the login Action use this class
(call it CustomAction) as their superclass.  All user information (id,
password, etc.) is maintained in a session-scope Form initialized by the
login Action class.
The perform method defined in CustomAction performs authentication before
calling an appropriate method (call it performAction) that is defined in
the subclass of CustomAction.  This way, the code for user authentication is
in a centralized location and will be called anytime the Struts servlet
controller processes a request.

If all your requests go through Action classes, this should work for you.

hope this helps,
Joe


-Original Message-
From: Mark Glass [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:08 PM
To: Struts Users Mailing List
Subject: Session management in Struts


I'm developing a web application in Struts that requires a user to have a
session before they can use the application. Currently anyone can bypass the
logon and use the application. I would like the user to be required to login
first. I am saving the user info to session when the user logs in and
testing the session for this attribute before allowing them to use the
functionality, however this does not work.

Can anyone point me to a paper or tutorial or example which will show me how
to do this properly?

Thanks much in advance,
Mark


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




Re: Session management in Struts

2002-03-11 Thread Rafe Colburn

 The example application that comes with Struts has a taglib that
provides this very functionality.  There's a tag that checks to make
sure that the user is properly stored in the session, and if they
aren't, it forwards them to the login page.

On Mon, Mar 11, 2002 at 04:07:39PM -0500, Mark Glass wrote:
 I'm developing a web application in Struts that requires a user to have a session 
before they can use the application. Currently anyone can bypass the logon and use 
the application. I would like the user to be required to login first. I am saving the 
user info to session when the user logs in and testing the session for this attribute 
before allowing them to use the functionality, however this does not work.
 
 Can anyone point me to a paper or tutorial or example which will show me how to do 
this properly?
 
 Thanks much in advance,
 Mark

-- 
 Rafe Colburn 
 http://rc3.org

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




Struts tags to inside XSLT

2002-03-11 Thread srinivas

hi all,

I am in a kind of a situation where i have to use struts tags in XSLT.
The problem is as follows:

i have a form, the contents of which are partially generated by XSLT. I use
XSLT taglibs from jakarta.
After transformation to XML  i need to apply struts tags to generate the
HTML.
I dont know how to achieve this.

i can give an example of what i intend to do:
---
jsp
---
%@ taglib uri=/WEB-INF/tlds/xsl.tld prefix=xsltlib%
%@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=strutshtml %
xsltlib:apply xml=test.xml xsl=test.xsl 
/xsltlib:apply
---

-
test.xsl
---
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/root
html
head
title/title
strutshtml:form action=/TestAction.do
strutshtml:text property=testField/br/
/strutshtml:form
/xsl:template
/xsl:stylesheet


pls note that the actual XSLT i tried is huge, which is omited for brevity.

I get an error that the strutshtml name space is not defined, which i could
guess why but not sure how to solve this issue.

I am a bit confused the order in which the tags are evaluated in this case.

Any help is greatly appreciated.

thanks in advance,

regards,
srinivas



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




Re: Session management in Struts

2002-03-11 Thread Ye Tian

Dear Mark:

Did you actually check if the session variables about username and pwd info were null 
or correct at the beginning of those pages? Plus, you need to clear up these session 
variables after the user log out.

Ye

Mark Glass wrote:

 I'm developing a web application in Struts that requires a user to have a session 
before they can use the application. Currently anyone can bypass the logon and use 
the application. I would like the user to be required to login first. I am saving the 
user info to session when the user logs in and testing the session for this attribute 
before allowing them to use the functionality, however this does not work.

 Can anyone point me to a paper or tutorial or example which will show me how to do 
this properly?

 Thanks much in advance,
 Mark




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




RE: Struts tags to inside XSLT

2002-03-11 Thread srinivas

solved this issue may be got to think twice before posting

-Original Message-
From: srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 2:48 AM
To: Struts Users Mailing List
Subject: Struts tags to inside XSLT


hi all,

I am in a kind of a situation where i have to use struts tags in XSLT.
The problem is as follows:

i have a form, the contents of which are partially generated by XSLT. I use
XSLT taglibs from jakarta.
After transformation to XML  i need to apply struts tags to generate the
HTML.
I dont know how to achieve this.

i can give an example of what i intend to do:
---
jsp
---
%@ taglib uri=/WEB-INF/tlds/xsl.tld prefix=xsltlib%
%@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=strutshtml %
xsltlib:apply xml=test.xml xsl=test.xsl 
/xsltlib:apply
---

-
test.xsl
---
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/root
html
head
title/title
strutshtml:form action=/TestAction.do
strutshtml:text property=testField/br/
/strutshtml:form
/xsl:template
/xsl:stylesheet


pls note that the actual XSLT i tried is huge, which is omited for brevity.

I get an error that the strutshtml name space is not defined, which i could
guess why but not sure how to solve this issue.

I am a bit confused the order in which the tags are evaluated in this case.

Any help is greatly appreciated.

thanks in advance,

regards,
srinivas



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




How to process multiple lines data in one page?

2002-03-11 Thread nsg
Now, i want to use that display style-multiple lines in one page.
for example,i hava one page to display user's basic information.

UserIDNameGender...
0001Tommale
0002Linda  female



in Action class I executed one query,and  got data of all users.but what's
the right way to process the data and display them in one page?


Thanks in advance.


best regards,

Laker


Re: Cannot find ActionMappings or ActionFormBeans collection

2002-03-11 Thread @Basebeans.com

Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
From: Jeff Moszuti [EMAIL PROTECTED]
 ===
Hi Laker,

The problem is probably caused by the ActionServlet not initialising
correctly due to an illegal exception being thrown. The most common cause is
a misconfigured datasource in struts-config.xml. Check your console log for
more information.

Hope this helps

Jeff

nsg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi all,

 Now,I am developing a web application based struts1.20 + Tomcat3.24.
 while I run the application.one excexption occured. error message is
listed
 below:

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

 what reason causes the problem?


 Thanks in advance.


 regards,
 Laker





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




Re: Session management in Struts

2002-03-11 Thread Sean Willson

We accomplished this by writing an Authentication Filter that sits in front
of all requests to the servlet container. The problem with putting it in a
Struts Action and then subclassing that (which we did do at one time) is
that you can only then protect things going through Struts. Which in itself
isn't a problem IF that's the only framework you plan on using to route
eventing in your web application. If however you have other needs I
recommend looking into writing a filter.

You can do anything from creation of a session, setting session/request and
accessing application scoped variables from within the filter itself.

Sean

- Original Message -
From: Mark Glass [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:07 PM
Subject: Session management in Struts


I'm developing a web application in Struts that requires a user to have a
session before they can use the application. Currently anyone can bypass the
logon and use the application. I would like the user to be required to login
first. I am saving the user info to session when the user logs in and
testing the session for this attribute before allowing them to use the
functionality, however this does not work.

Can anyone point me to a paper or tutorial or example which will show me how
to do this properly?

Thanks much in advance,
Mark



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




multipart request error. Problem forwarding to 2nd Action.

2002-03-11 Thread $B%"%s%H%K!<(B $B%9%F%$%9(B

Hi

I am having some difficulties with a multipart request.  The sequence
of actions I have is

1.  Using an Action(Action1) I populate some beans and display a page.  This
 page
has the multipart/form-data form on it... 

html:form action=/testUpload focus=theFile enctype=multipart/form-data 
method=post 
2.  The user fills out the form and hits the submit button.  The user gets
sent to Action1 for processing.  Action1 then returns success which
maps to Action2.

Now the problem is that when Action1 forwards to Action2 I always get the
exception

2002-03-12 11:11:06 ApplicationDispatcher[/testApp] Servlet.service() for servlet 
action threw exception
javax.servlet.ServletException: MultipartIterator: no multipart request data sent 
 at org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.java:342)
 at org.apache.struts.upload.MultipartIterator.init(MultipartIterator.java:342).

Can someone please explain to me how I can forward to Action2 from Action1
without getting this exception.

Thanks for your help.

Cheers

Tony


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




RE: Session management in Struts

2002-03-11 Thread Joseph Barefoot

That sounds like a good idea to meso, this Authentication Filter is sort
of like a servlet firewall?

Hmmm...so you implement javax.servlet.Filter such that an unauthenticated
user is routed to a login page, and after login the assigned session ids are
then stored in the servlet context for subsequent authentications.  Then I
suppose you configure the filter (in the deployment descriptor) for the
Struts controller servlet and any other non-Struts servlets or resources you
may have and wish to enforce authentication on.

Neat.  Are there any gotchas for Struts other frameworks when using
Filters?

--joe

-Original Message-
From: Sean Willson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 5:53 PM
To: Struts Users Mailing List
Subject: Re: Session management in Struts


We accomplished this by writing an Authentication Filter that sits in front
of all requests to the servlet container. The problem with putting it in a
Struts Action and then subclassing that (which we did do at one time) is
that you can only then protect things going through Struts. Which in itself
isn't a problem IF that's the only framework you plan on using to route
eventing in your web application. If however you have other needs I
recommend looking into writing a filter.

You can do anything from creation of a session, setting session/request and
accessing application scoped variables from within the filter itself.

Sean

- Original Message -
From: Mark Glass [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:07 PM
Subject: Session management in Struts


I'm developing a web application in Struts that requires a user to have a
session before they can use the application. Currently anyone can bypass the
logon and use the application. I would like the user to be required to login
first. I am saving the user info to session when the user logs in and
testing the session for this attribute before allowing them to use the
functionality, however this does not work.

Can anyone point me to a paper or tutorial or example which will show me how
to do this properly?

Thanks much in advance,
Mark



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


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




Re: How to process multiple lines data in one page?

2002-03-11 Thread Jay sissom

Look in the Struts documentation for the logic:iterate tag.

This was designed to do exactly what you want to do.

Jay

On Tue, 12 Mar 2002, nsg wrote:

 Now, i want to use that display style-multiple lines in one page.
 for example,i hava one page to display user's basic information.
 
 UserIDNameGender...
 0001Tommale
 0002Linda  female
 
 
 
 in Action class I executed one query,and  got data of all users.but what's
 the right way to process the data and display them in one page?
 
 
 Thanks in advance.
 
 
 best regards,
 
 Laker
 


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




Re: Session management in Struts

2002-03-11 Thread Sean Willson

Servlet Firewall, that's a pretty cool name. FirewallFilter.java has a
ring to it ;) ...

The only gotchas I have found are that the container you are running this in
has to support the Servlet 2.3 specification. This really has no effect on
Struts at all ... But there are a number of things you can do to make it
integrated into struts however.

One thing we did do was create a root Action class that all classes
subclass. The Authentication Filter's job was to check that someone is
authenticated and forward on to some login action/jsp in the event they
aren't authenticated. The other job is if they are authenticated to place
their authentication token in the request. We have an underlying
authentication system that needs this token to perform anything in any
business tier. Anyhow, the root action takes that token out of the request
and then calls a method called processRequest which is the same as perform
except it passes in the token as the first argument.

Anyhow, not sure I answered your question ... but anyhow, the only gotcha I
know of is the 2.3 Servlet thing. Let me know if you need any other info ...

Sean

- Original Message -
From: Joseph Barefoot [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 8:27 PM
Subject: RE: Session management in Struts


 That sounds like a good idea to meso, this Authentication Filter is
sort
 of like a servlet firewall?

 Hmmm...so you implement javax.servlet.Filter such that an unauthenticated
 user is routed to a login page, and after login the assigned session ids
are
 then stored in the servlet context for subsequent authentications.  Then I
 suppose you configure the filter (in the deployment descriptor) for the
 Struts controller servlet and any other non-Struts servlets or resources
you
 may have and wish to enforce authentication on.

 Neat.  Are there any gotchas for Struts other frameworks when using
 Filters?

 --joe

 -Original Message-
 From: Sean Willson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 5:53 PM
 To: Struts Users Mailing List
 Subject: Re: Session management in Struts


 We accomplished this by writing an Authentication Filter that sits in
front
 of all requests to the servlet container. The problem with putting it in a
 Struts Action and then subclassing that (which we did do at one time) is
 that you can only then protect things going through Struts. Which in
itself
 isn't a problem IF that's the only framework you plan on using to route
 eventing in your web application. If however you have other needs I
 recommend looking into writing a filter.

 You can do anything from creation of a session, setting session/request
and
 accessing application scoped variables from within the filter itself.

 Sean

 - Original Message -
 From: Mark Glass [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:07 PM
 Subject: Session management in Struts


 I'm developing a web application in Struts that requires a user to have a
 session before they can use the application. Currently anyone can bypass
the
 logon and use the application. I would like the user to be required to
login
 first. I am saving the user info to session when the user logs in and
 testing the session for this attribute before allowing them to use the
 functionality, however this does not work.

 Can anyone point me to a paper or tutorial or example which will show me
how
 to do this properly?

 Thanks much in advance,
 Mark



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


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




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




Development approach question

2002-03-11 Thread Vladimir Levin

Hi, I have a basic design-level question to ask of those who are
using the struts framework. The question concerns how data from
the database get retrieved into the 'web-tier' beans
of the application when table joins are involved.

One approach is to nest objects. e.g. say we want to display
all the BANANA records belonging to each MONKEY in our database.

we can create a Monkey object and assign a list of Banana objects
to each Monkey.

public class Monkey {
  private String name;
  private List bananas; //type of objects in list is Banana

  public String getName() { return name; }
  public void setName(String name) { this.name = name; }
  public List getBananas() { return bananas; }
  public void setBananas(List bananas) { this.bananas = bananas; }
}

public class Banana {
  private String id;
  public String getId() { return id; }
  public void setId(String id) { this.id = id; }
}

This approach implies using the nested taglibs package. It has
potential downside that many objects get created.

Another approach is to create a 'super' object to aggregate the
data for the join between tables. e.g.

public class MonkeyBanana {
  private String name; //Monkey name
  private String id; //Banana id;
}

This is essentially a denormalization of the Monkey and Banana
objects. It is more redundant, but we don't need to use the
nested taglib package and we create fewer objects.

Does anyone have advice regarding which approach is better?

Vlad






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


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




Using Struts with JetSpeed.

2002-03-11 Thread Ramanswamy, Muthu

Hi All-

I am in the process of developing a Portal. Currently I also use Struts in
other Web Application.

Question? Can I use JetSpeed to communicate to a Struts based Servlet
instead of a Turbine based Servlet. I am not familiar with Turbine or
JetSpeed. As I did most of the work with Struts, I am thinking may be I
should leverage the Struts knowledge rather than learning another framework.

Has anyone used Struts with JetSpeed? Any recommendations?

Appreciate your input.

Thanks.,





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




Re: Development approach question

2002-03-11 Thread Arron Bates

If known for nothing else, I may go down for creating the infamous 
Monkey/Banana bean model example :)

I don't think that one object per row is much of an overhead for the 
benefit it brings. You are going to have to marshal your results anyway, 
so you may as well create separate objects. Hell, you could even have 
the beans as a proxy only and go driect through to the result set. But 
that's not very MVC.

The nested tags don't imply anything. They simply make easier work of 
some more complex markup. Even with nested beans you can use the old 
tags. The nested tags are also better at adaptation. If your spec 
changes, then it will be easier to update with the nested system. Even 
if I'm not nesting beans, I still use the nested tags. They simply make 
life easier.

You could take me as being bias :) ... so are there any other opinions 
out there?...

Arron.

Vladimir Levin wrote:

 Hi, I have a basic design-level question to ask of those who are
 using the struts framework. The question concerns how data from
 the database get retrieved into the 'web-tier' beans
 of the application when table joins are involved.

 One approach is to nest objects. e.g. say we want to display
 all the BANANA records belonging to each MONKEY in our database.

 we can create a Monkey object and assign a list of Banana objects
 to each Monkey.

 public class Monkey {
  private String name;
  private List bananas; //type of objects in list is Banana

  public String getName() { return name; }
  public void setName(String name) { this.name = name; }
  public List getBananas() { return bananas; }
  public void setBananas(List bananas) { this.bananas = bananas; }
 }

 public class Banana {
  private String id;
  public String getId() { return id; }
  public void setId(String id) { this.id = id; }
 }

 This approach implies using the nested taglibs package. It has
 potential downside that many objects get created.

 Another approach is to create a 'super' object to aggregate the
 data for the join between tables. e.g.

 public class MonkeyBanana {
  private String name; //Monkey name
  private String id; //Banana id;
 }

 This is essentially a denormalization of the Monkey and Banana
 objects. It is more redundant, but we don't need to use the
 nested taglib package and we create fewer objects.

 Does anyone have advice regarding which approach is better?

 Vlad






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


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





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




Re: Development approach question

2002-03-11 Thread Vladimir Levin

Thanks Aaron,

Just to make sure, I believe the paragraph below is in favour
of not 'denormalizing'. I.e. the approach you're suggesting
is to return a list of Monkey objects
where each Monkey holds a reference to its Bananas. (Hey, it's
an odd example, but it's more fun than the old standby of
Customers and Orders, and so forth!).

I don't think that one object per row is much of an overhead for the
benefit it brings. You are going to have to marshal your results anyway,
so you may as well create separate objects. Hell, you could even have
the beans as a proxy only and go driect through to the result set. But
that's not very MVC.

Do you know where I can find a really simple example using the
nested tags? I get the general idea that you're supposed to
describe a path to the nested object using '.' separators, but
I can't seem to find any docs or tutorials on using these tags.

If you or anyone else replies to this message, please cc: to
[EMAIL PROTECTED]

Thanks,

Vlad


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


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




UML example?

2002-03-11 Thread John Menke

Are there any links to a Struts sample project modeled with UML on the web?
I am starting a new Struts project and would like to use UML.  I was hoping
somebody had an example I could look at.

-john


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




Re: UML example?

2002-03-11 Thread Vladimir Levin

This is not a project, but it shows the basic struts architecture
in UML. Maybe a good starting point?

http://husted.com/struts/resources/uml-jps.pdf

Vlad

Are there any links to a Struts sample project modeled with UML on the web?
I am starting a new Struts project and would like to use UML.  I was hoping
somebody had an example I could look at.

-john


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





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


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




  1   2   >