use logic:Iterate display multi-record from the database

2002-12-18 Thread frank
Hi, all
I'm a new of struts.
I want to use logic:Iterate to display the multi-record from the
database, and for each record I use a bean to store as showdata. The
total data are stored in the groupshowdata.
Can I use the logic:Iterate taglib? Can someone give some simple
example?
Any help will be welcome.
 
 
Best regard!
 
Frank
Software Engineer
Bleum Incorporated
9E East Building, Hi-Tech King World
668 East Beijing Road.
Shanghai, P.R.C.21
Phone: (8621) 5308 1196
http:// www.bleum.com
 



Re: use logic:Iterate display multi-record from the database

2002-12-18 Thread Jitendra Singh
hi all,
I am working on a similar problem with my colleague Murthy.
I have made a custom tag that will display a given number of records per
page from a table.I beleive this is a common problem and it can be put in
the the logic tld or some other where it is appropriate.

But i don' know how to do it...

Please guide me...

frank,
If u are intersted tell me i will send u the package .. its for oracle. I
hope to complete it by enveing.

cheers!
Jitendra


- Original Message -
From: frank [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 1:47 PM
Subject: use logic:Iterate display multi-record from the database


 Hi, all
 I'm a new of struts.
 I want to use logic:Iterate to display the multi-record from the
 database, and for each record I use a bean to store as showdata. The
 total data are stored in the groupshowdata.
 Can I use the logic:Iterate taglib? Can someone give some simple
 example?
 Any help will be welcome.


 Best regard!

 Frank
 Software Engineer
 Bleum Incorporated
 9E East Building, Hi-Tech King World
 668 East Beijing Road.
 Shanghai, P.R.C.21
 Phone: (8621) 5308 1196
 http:// www.bleum.com



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




Re: html:rewrite and JavaScript

2002-12-18 Thread Iris
Todd Pierce wrote:

Thanks Todd,
but my question now is: how can I call this forward in JavaScript ?


html:rewrite is essentially the same as html:link except that it doesn't
generate an a element in the HTML, e.g.

html:rewrite forward=some.global.forward paramId=key
paramName=someBean paramProperty=someProperty /

will generate something like this:

myUrl.do?key=somePropertyValue
 


-Original Message-
From: Iris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 18 December 2002 4:07 AM
To: Struts Users Mailing List
Subject: html:rewrite and JavaScript


Hello,

I want to populate an html:select following the value of an html:text.
My idea was to reload the same page with the value of the html:text in 
parameter.
I saw there is an html:rewrite tag that perhaps can help me  but I 
don't know how
to use it.
Someone has an example to show me how to use html:rewrite

Thanks
Iris


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




Tiles horizontal menu

2002-12-18 Thread Heligon Sandra
I try to place the principal menu of my application in horizontal postion,
in top of each page. I use the Tiles components. Some items of the menu are
composed of sub-menu. When I launch for the first time the application all
the sub-menus are visible but I will wish that they all be invisible. I
would like in addition that spaces between each ordering of the menu are
regular what is not at all the case. 
If somebody already carried out this kind of menu to the horizontal one, I
hope that it will be able to help me. 
The majority of the menu are with the vertical and I have thus much evil to
find examples and thus a solution. 

I read artciles in the archive on the overload of the class sub-item? with a
which aim does overload one this class? 
Thanks a lot in advance
Sandra



 ...OLE_Obj...  ...OLE_Obj... 



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




RE: use logic:Iterate display multi-record from the database

2002-12-18 Thread frank
Hi, all
Thank you for your reply. Please send it me as your wish.
I download from the apache's website of the struts and study the
example, in its example, they use Hashmap to store the data, but I think
it is too complex, maybe can use some other collection structure as
Vector.



Best regard!
 
Frank
Software Engineer
Bleum Incorporated
9E East Building, Hi-Tech King World
668 East Beijing Road.
Shanghai, P.R.C.21
Phone: (8621) 5308 1196
http:// www.bleum.com

-Original Message-
From: Jitendra Singh [mailto:[EMAIL PROTECTED]] 
Sent: 2002Äê12ÔÂ18ÈÕ 16:35
To: Struts Users Mailing List
Subject: Re: use logic:Iterate display multi-record from the database

hi all,
I am working on a similar problem with my colleague Murthy.
I have made a custom tag that will display a given number of records per
page from a table.I beleive this is a common problem and it can be put
in
the the logic tld or some other where it is appropriate.

But i don' know how to do it...

Please guide me...

frank,
If u are intersted tell me i will send u the package .. its for oracle.
I
hope to complete it by enveing.

cheers!
Jitendra


- Original Message -
From: frank [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 1:47 PM
Subject: use logic:Iterate display multi-record from the database


 Hi, all
 I'm a new of struts.
 I want to use logic:Iterate to display the multi-record from the
 database, and for each record I use a bean to store as showdata. The
 total data are stored in the groupshowdata.
 Can I use the logic:Iterate taglib? Can someone give some simple
 example?
 Any help will be welcome.


 Best regard!

 Frank
 Software Engineer
 Bleum Incorporated
 9E East Building, Hi-Tech King World
 668 East Beijing Road.
 Shanghai, P.R.C.21
 Phone: (8621) 5308 1196
 http:// www.bleum.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]




Struts user archive

2002-12-18 Thread Heligon Sandra

Is there an order which makes it possible to find in the Struts user
archive all the messages andanswers associated according to the
name with the transmitter ?
Thanks
Sandra


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




AW: Struts user archive

2002-12-18 Thread Lenharcik, Juraj
http://www.servlets.com/archive/servlet/SearchList?listName=struts-userby=t
hread helps you perhaps




-Ursprüngliche Nachricht-
Von: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 10:03
An: '[EMAIL PROTECTED]'
Betreff: Struts user archive



Is there an order which makes it possible to find in the Struts user
archive all the messages andanswers associated according to the
name with the transmitter ?
Thanks
Sandra


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




Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread Heligon Sandra

I will wish to know if somebody uses Marcomedia Dreamweaver
Ultradev4 to develop JSP by using  Struts tags +
Tiles components. 
I use Tomcat4.0.1 with JSP1.2 and Servlet2.3 and I can not define a
site. 
Thanks in advance
Sandra


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




Re: use logic:Iterate display multi-record from the database

2002-12-18 Thread Roland Carlsson
In the documentation, there are a list of accepted structures. But
java.util.Collection with subclasses is a safe bet :-)

Regards
Roland

- Original Message -
From: frank [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:59 AM
Subject: RE: use logic:Iterate display multi-record from the database


 Hi, all
 Thank you for your reply. Please send it me as your wish.
 I download from the apache's website of the struts and study the
 example, in its example, they use Hashmap to store the data, but I think
 it is too complex, maybe can use some other collection structure as
 Vector.



 Best regard!

 Frank
 Software Engineer
 Bleum Incorporated
 9E East Building, Hi-Tech King World
 668 East Beijing Road.
 Shanghai, P.R.C.21
 Phone: (8621) 5308 1196
 http:// www.bleum.com

 -Original Message-
 From: Jitendra Singh [mailto:[EMAIL PROTECTED]]
 Sent: 2002年12月18日 16:35
 To: Struts Users Mailing List
 Subject: Re: use logic:Iterate display multi-record from the database

 hi all,
 I am working on a similar problem with my colleague Murthy.
 I have made a custom tag that will display a given number of records per
 page from a table.I beleive this is a common problem and it can be put
 in
 the the logic tld or some other where it is appropriate.

 But i don' know how to do it...

 Please guide me...

 frank,
 If u are intersted tell me i will send u the package .. its for oracle.
 I
 hope to complete it by enveing.

 cheers!
 Jitendra


 - Original Message -
 From: frank [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, December 18, 2002 1:47 PM
 Subject: use logic:Iterate display multi-record from the database


  Hi, all
  I'm a new of struts.
  I want to use logic:Iterate to display the multi-record from the
  database, and for each record I use a bean to store as showdata. The
  total data are stored in the groupshowdata.
  Can I use the logic:Iterate taglib? Can someone give some simple
  example?
  Any help will be welcome.
 
 
  Best regard!
 
  Frank
  Software Engineer
  Bleum Incorporated
  9E East Building, Hi-Tech King World
  668 East Beijing Road.
  Shanghai, P.R.C.21
  Phone: (8621) 5308 1196
  http:// www.bleum.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]




RE: Struts user archive

2002-12-18 Thread Heligon Sandra
Thank you very much it is exactly what I sought

-Original Message-
From: Lenharcik, Juraj [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 10:04
To: 'Struts Users Mailing List'
Subject: AW: Struts user archive


http://www.servlets.com/archive/servlet/SearchList?listName=struts-userby=t
hread helps you perhaps




-Ursprüngliche Nachricht-
Von: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 10:03
An: '[EMAIL PROTECTED]'
Betreff: Struts user archive



Is there an order which makes it possible to find in the Struts user
archive all the messages andanswers associated according to the
name with the transmitter ?
Thanks
Sandra


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




org.apache.struts.tiles.actions.NoOpAction

2002-12-18 Thread Björn Pewe
Hi, I saw that org.apache.struts.tiles.actions.NoOpAction is deprecated and
that o.a.s.a.ForwardAction should be used instead. But when I use
ForwardAction to forward to a tiles def I get a mapping error. I'm using
modules and it doesn't matter if I append the module name before the tile
def. It seems to me that the TilesRequestProcessor either isn't called or
don't trigger on the tiles-def name. What am I missing here?
Example of my action mapping:
action path=/test type=org.apache.struts.actions.ForwardAction
parameter=.test.def / 
or
action path=/test type=org.apache.struts.actions.ForwardAction
parameter=module/.test.def / 
/Björn

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




mapping to domain objects

2002-12-18 Thread Colin Hawkett
Hi,

I had previously been using struts 1.0, and have started a project using
1.1 - in 1.0 the method I used to map forms to domain objects (By domain
object I mean value object - representing the problem domain e.g. User,
Account, Bank etc.) was to create an action form with the domain object as
an attribute.  I would then create special setters and getters in the domain
object to handle the different types coming in as Strings - e.g.

public void setDateString(String date);
pubic String getDateString();

and also use the nested library to traverse the domain hierarchy (e.g. loop
through a list of accounts in a bank domain object).

Basically I don't like this method because it corrupts all of the domain
objects with methods that are specifically for the presentation layer, and I
couldn't easily validate the incoming values without creating an ActionError
list in the domain object and pulling this out when I hit the validator.
Never mind - lesson learned.  I really did like the nested tags though.

Now that struts 1.1 is on the table I am wondering what I can do to make
this better.  I like the DynaValidator but this appears to only be useful
for static forms (ones that aren't changing depending on the data).

I've been looking at the decalrative exception structure - but I can't quite
make out whether these exceptions can only be caught from the Action or also
from the form associated with the action.  Thats probably one for me to
check out although I can't see it mentioned anywhere.  I was thinking this
might be a good way to handle the problem of domain validating by doign the
validation in the setters and throwing exceptions rather than doing it in
the validate() method.

The only other method I can really see is to produce a wrapper around my
domain objects specifically for the purpose of providing String
setter/getter interfaces so I don't get number format errors on my setters
trying to convert to the actual attribute types.

I guess the main aim of this post was to see if there is a way of doing this
that anybody has found elegant.  I am probably missing something - but what
I am really looking for is a way to map form strings to domain attribute
types directly trapping any format errors in the process.  Any pointers?
Thanks in advance

Colin

Colin Hawkett
Technical Architect
Morpheus - eBusiness Solutions
Morpheus Limited, Gibbs House, Kennel Ride, Ascot, Berkshire, SL5 7NT
Email: [EMAIL PROTECTED]
Tel: 01344 891621; Fax: 01344 891620
Web: http://www.morpheus.co.uk

*Winner of the IBM Solution Excellence Award for e-Commerce 2001*
*Solution Provider of the Month - Channel 2002 Magazine*
*Investor in People*






This email and any files transmitted with it contain information that may be
confidential or privileged, and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the intended
recipient any disclosure, copying, distribution or use of the information is
prohibited. If you have received this email in error, please notify me by
return email immediately. Any opinions expressed are those of the author,
not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre.



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




Struts Frames

2002-12-18 Thread Savantraj, Chennamakal Subramanian
Hi ,

I have a Login page which is a single frame and after successfull login
should go to the 
Application home page which is 2 Frame. How to Achieve this ? Would it be
sufficient if I just call
another 2 different actions in src attribute of the frame?

Thanks in advance

Regards
Savant

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---


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




Re: Workflow extension

2002-12-18 Thread Matthias Bauer
Hi Jerry,

so your question is where is the state information stored an checked, or 
do you have to check it yourself? Well, if you had to check it yourself, 
you would not need to use the workflow extension. ;-)

For detailed instructions please refer to www.livinglogic.de/Struts/

You need to make sure that all your actions are derived from 
GenericAction and implement the method performAction instead of the 
method perform defined by Action. This ensures that all state 
information you define in struts-config.xml is maintained and checked.

Please note: If you are using Struts 1.1, you need to modify the config 
file. For more information refer to: 
http://www.livinglogic.de/Struts/struts1_1.html


--- Matthias


Jerry Yu wrote:

Dear Mr Bauer,

How are you Mr Bauer, my name is Jerry.. I am learning to use your 
Struts Workflow Extension, but I have a problem when I try to use it 
on my own webpages.  I donwloaded your example and it works fine for 
me. Then I try to make my own flow using some pages created for the 
project I am working on.  My problem is I don't need to do 
authentication and basically I only want to control how the order of 
pages that user can see.
Following is the code in struts-config.xml:

action path=/createStaffRec1 name=createStaffForm scope=session 
attribute=createStaffSess 
input=/staff/content-createstaffrecpg1.jsp 
type=com.ifshk.hrms.struts.actions.CreateStaffAction1
   set-property property=primaryWorkflow value=wf1 /
   set-property property=newState value=1 /
   set-property property=nextState value=2 /
   forward name=success 
path=/staff/content-createstaffrecpg2.jsp /
   /action
   action path=/createStaffRec2 
type=com.ifshk.hrms.struts.actions.CreateStaffAction1 
name=createStaffForm input=/staff/content-createstaffrecpg2.jsp 
attribute=createStaffSess scope=session
   set-property property=primaryWorkflow value=wf1 /
   set-property property=prevState value=1 /
   set-property property=newState value=2 /
   set-property property=nextState value=3 /
   forward name=success 
path=/staff/content-selectperson-createpersondetails.jsp/
   /action
   action path=/createStaffRec3 
type=com.ifshk.hrms.struts.actions.CreateStaffAction1 
name=createStaffForm 
input=/staff/content-selectperson-createpersondetails.jsp 
attribute=createStaffSess scope=session
   set-property property=primaryWorkflow value=wf1 /
   set-property property=prevState value=2 /
   set-property property=newState value=3 /
   set-property property=nextState value=0 /
   set-property property= endWorkflow value=true /
   forward name=success path=/staff/content-promotestaff.jsp/
   /action

As you can see, it is only 3 pages and the action I use 
CreateStaffAction1 is almost the same as yours only some more package 
is imported.  The thing is do I have to check the workflow state 
myself? Since I can't find any checking in your Wf1Action.java, 
Wf2Action.java, and Wf3Action.java, I assume I don't have to. My main 
problem is do I have to check the state myself and where is all the 
state information stored ? I know they are coded in the 
struts-config.xml, but when and where did they being used ??  Thanks 
for your time to read this!

P.S. I am using WSAD 4.0 to cook up the whole project.

Thanks in advance,
Jerry





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




RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread Heligon Sandra
I really find this remark not constructive. I do not seek somebody who hates
this tool but on the contrary, somebody which uses it with Struts(voir
Tiles) and with which I can have exchanges. 
Marcomedia and Struts are not incompatible. 

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 10:25
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


   I will wish to know if somebody uses Marcomedia Dreamweaver
 Ultradev4 to develop JSP by using  Struts tags +  
   Tiles components. 
   I use Tomcat4.0.1 with JSP1.2 and Servlet2.3 and I can 
 not define a
 site. 
   Thanks in advance
   Sandra

What about asking to Macromedia support?
After all, proprietary software is supposed to have 
a SO BETTER support!

Ah Ah !!!

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




tomcat's container based authentication and struts

2002-12-18 Thread Boris Folgmann
Hi!

I want to add tomcat's container based authentication to a struts application.

Tomcat already displays my login.jsp, but the problem is to get
action=j_security_check in the form generated by struts' html:form

I tried html:form action=j_security_check ..., but this gets translated
to action=/j_security_check.do in the generated HTML file. How can I
prevent this, or is there an other way to integrate it in struts?

cu,
boris




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




Re: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread Peng Tuck Kwok
Could you give more info on how is that you intend to use Dreamweaver 
and struts?
I understand that Dreamweaver is mainly a html design tool. Perhaps what 
you are looking for is something more like a java ide that works well 
with struts ?

Heligon Sandra wrote:
I really find this remark not constructive. I do not seek somebody who hates
this tool but on the contrary, somebody which uses it with Struts(voir
Tiles) and with which I can have exchanges. 
Marcomedia and Struts are not incompatible. 

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 10:25
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles



	I will wish to know if somebody uses Marcomedia Dreamweaver
Ultradev4 to develop JSP by using  Struts tags + 	
	Tiles components. 
	I use Tomcat4.0.1 with JSP1.2 and Servlet2.3 and I can 
not define a
site. 
	Thanks in advance
	Sandra


What about asking to Macromedia support?
After all, proprietary software is supposed to have 
a SO BETTER support!

Ah Ah !!!

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
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: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread ROSSEL Olivier
 I really find this remark not constructive. I do not seek 
 somebody who hates
 this tool but on the contrary, somebody which uses it with Struts(voir
 Tiles) and with which I can have exchanges. 
 Marcomedia and Struts are not incompatible. 

Sure!
My remark was just a troll for the old time 
OSS adepts, who used to hear, a few years ago: 
Open Source can't win, support is too poor.

Nowadays, proprietary software users rely on 
Open Source mailing-lists for infos about their 
(expensive :-) products.

BTW, I am also very interested in reports about 
Struts-Dreamweaver integration.

Note: serais-tu la premiere francaise abonnee a 
la liste? :-PPP

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




Re: tomcat's container based authentication and struts

2002-12-18 Thread Max Cooper
Just write out a regular HTML form:

form action=j_security_check
Username: input type=text name=j_usernamebr
Password: input type=password name='j_passwordbr
input type=submit
/form

-Max

- Original Message -
From: Boris Folgmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 2:20 AM
Subject: tomcat's container based authentication and struts


 Hi!

 I want to add tomcat's container based authentication to a struts
application.

 Tomcat already displays my login.jsp, but the problem is to get
 action=j_security_check in the form generated by struts' html:form

 I tried html:form action=j_security_check ..., but this gets
translated
 to action=/j_security_check.do in the generated HTML file. How can I
 prevent this, or is there an other way to integrate it in struts?

 cu,
 boris




 --
 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: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread SCOTT VENTER
Good day,

I use Dreamweaver MX, and struts tag-libs to develop jsp's for my struts web 
applications.

I do not use tiles.

You say you are having trouble defining a site. What is the specific problem?

Scott.

#
The information contained in this message and or attachments 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 system and destroy and copies.
#

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html; charset=iso-8859-1
META content=MSHTML 6.00.2800.1106 name=GENERATOR/HEAD
BODY style=MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px
DIVFONT size=1Good day,/FONT/DIV
DIVFONT size=1/FONTnbsp;/DIV
DIVFONT size=1I use Dreamweaver MX, and struts tag-libs to develop jsp's for 
my struts web applications./FONT/DIV
DIVFONT size=1/FONTnbsp;/DIV
DIVFONT size=1I do not use tiles./FONT/DIV
DIVFONT size=1/FONTnbsp;/DIV
DIVFONT size=1You say you are having trouble defining a site. What is the 
specific problem?/FONT/DIV
DIVFONT size=1/FONTnbsp;/DIV
DIVFONT size=1Scott./FONT/DIV/BODY/HTML


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


Re: use logic:Iterate display multi-record from the database

2002-12-18 Thread Mark

(BI have a question and its similar to the original one here:
(B
(BI've written some classes that return hashmaps, i'm currently instantiating
(Bmy beans in my jsp's using useBean .. I want to use the struts bean tags but
(Bthis can wait...
(B
(BI'd prefer to have my collections available to sitebuilders in more elegant
(Bway, but the only way i've found of doing this is by having a liststuff
(Baction which i'm not very keen on becuase this isn't very friendly to the
(Bsite builder whos busy dealing with client side issues etc, and has his/her
(Bhands full doing this.
(B
(BWhats the most elegant way of making HashMaps and Arrays etc available to
(Bthe iterate tags without too much geeking around.. The other problem i have
(Bwith my methodolgy (i.e. Usebean and iterate) is i can't pass my connection
(Bobject to my beans.
(B
(BI basically want to have collections available for sitebuilders to say "i
(Bwant this collection here" , i also want to have my collections avaible to
(Bthe html:options and select menu thingies , but still have found no elegant
(Bmeans of doing so. 
(B
(BI haven't neglected to read the docs, although i could be guilty of not
(Bunderstanding them.
(B
(BIf its usful to anyone i've been using the following
(B
(B///
(BPackage com.acme;
(B
(Bpublic class CompaniesList {
(B
(B
(Bpublic HashMap getCompanies ()
(B{
(B
(BHashMap companies = new HashMap();
(B
(Btry
(B{
(Bput some stuff in my companies hashmap , i've been doing
(Bthis via sql query hence SQLException
(B
(B}
(Bcatch (SQLException e)
(B{
(Be.printStackTrace();
(B}
(Breturn companies;
(B}
(B}
(B///
(BIn the jsp:
(Bjsp:useBean id="cc" class="com.acme.CompaniesList" scope="request"/
(B
(Blogic:iterate id="company" name="cc" property="companies"
(Bbean:write name="company" property="key"/|bean:write
(Bname="company" property="value"/br /
(B/logic:iterate
(B
(B//
(B
(BI'm sure i'm missing something, and have need of correction. One of the
(Battractions of struts was the iterate tags and the select menus iterface for
(Bsite builders. But having list actions seems to be the long way around as
(Bwell.
(B
(BThanks in advance.
(B
(B
(BOn 18-12-2002 10:14, "Roland Carlsson" [EMAIL PROTECTED] wrote:
(B
(B In the documentation, there are a list of accepted structures. But
(B java.util.Collection with subclasses is a safe bet :-)
(B 
(B Regards
(B Roland
(B 
(B - Original Message -
(B From: "frank" [EMAIL PROTECTED]
(B To: "'Struts Users Mailing List'" [EMAIL PROTECTED]
(B Sent: Wednesday, December 18, 2002 9:59 AM
(B Subject: RE: use logic:Iterate display multi-record from the database
(B 
(B 
(B Hi, all
(B Thank you for your reply. Please send it me as your wish.
(B I download from the apache's website of the struts and study the
(B example, in its example, they use Hashmap to store the data, but I think
(B it is too complex, maybe can use some other collection structure as
(B Vector.
(B 
(B 
(B 
(B Best regard!
(B 
(B Frank
(B Software Engineer
(B Bleum Incorporated
(B 9E East Building, Hi-Tech King World
(B 668 East Beijing Road.
(B Shanghai, P.R.C.21
(B Phone: (8621) 5308 1196
(B http:// www.bleum.com
(B 
(B -Original Message-
(B From: Jitendra Singh [mailto:[EMAIL PROTECTED]]
(B Sent: 2002$BG/(J12$B7n(J18$BF|(J 16:35
(B To: Struts Users Mailing List
(B Subject: Re: use logic:Iterate display multi-record from the database
(B 
(B hi all,
(B I am working on a similar problem with my colleague Murthy.
(B I have made a custom tag that will display a given number of records per
(B page from a table.I beleive this is a common problem and it can be put
(B in
(B the the logic tld or some other where it is appropriate.
(B 
(B But i don' know how to do it...
(B 
(B Please guide me...
(B 
(B frank,
(B If u are intersted tell me i will send u the package .. its for oracle.
(B I
(B hope to complete it by enveing.
(B 
(B cheers!
(B Jitendra
(B 
(B 
(B - Original Message -
(B From: "frank" [EMAIL PROTECTED]
(B To: [EMAIL PROTECTED]
(B Sent: Wednesday, December 18, 2002 1:47 PM
(B Subject: use logic:Iterate display multi-record from the database
(B 
(B 
(B Hi, all
(B I'm a new of struts.
(B I want to use logic:Iterate to display the multi-record from the
(B database, and for each record I use a bean to store as showdata. The
(B total data are stored in the groupshowdata.
(B Can I use the logic:Iterate taglib? Can someone give some simple
(B example?
(B Any help will be welcome.
(B 
(B 
(B Best regard!
(B 
(B Frank
(B Software Engineer
(B Bleum Incorporated
(B 9E East Building, Hi-Tech King World
(B 668 East Beijing Road.
(B Shanghai, P.R.C.21
(B Phone: (8621) 5308 1196
(B http:// www.bleum.com
(B 
(B 

Re: tomcat's container based authentication and struts

2002-12-18 Thread Boris Folgmann
Max Cooper wrote:
 Just write out a regular HTML form:
 
 form action=j_security_check
 Username: input type=text name=j_usernamebr
 Password: input type=password name='j_passwordbr
 input type=submit
 /form
 
 -Max

This works, but I wanted to use e.g. the focus attribute of struts'
html:form. Any idea? Is it a bug in struts that my action is changed from
j_security_check to /j_security_check.do?

cu,
boris


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




Validator (newbie)

2002-12-18 Thread Suresh Addagalla
Hi,

I have a couple of basic questions.

1. If we use ActionForm, the ActionServlet first executes the validate()
method before calling execute() on the corresponding Action. If I switch
from ActionForms to Struts Validator (that is, use ValidatorForm instead
of ActionForm), do things work the same way? Is it that in this case
also, ActionServlet calls the validate() just before calling the
execute()?

2. What is the standard way to pass data from Action objects to the JSP
(view)? Should the data be sent as a) Session properties, b) Some bean
objects, or c) Data members of the Action object?

Thanks,
Suresh


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


RE: Validator (newbie)

2002-12-18 Thread shirishchandra . sakhare
U r first Q ,I dont know ...But abt 2nd may be i have some suggestion form my 
experience with struts ..
2. What is the standard way to pass data from Action objects to the JSP
(view)? Should the data be sent as a) Session properties, b) Some bean
objects, or c) Data members of the Action object?

GEnerally u should try to avoid using session variables.So the standard way is 
to pass the data in request scope.So if the data u want to use in jsp is 
attribute of the formBean,then as the form bean is available to the jsp , u can 
use it there...I think this keeps the design clean as the form bean actually 
represents the form data..So u dont have to look at the action class to see 
what u are trying to put on jsp..The form bean is the place...  

-Original Message-
From: suresh.addagalla [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 12:02 PM
To: struts-user
Subject: Validator (newbie)


Hi,

I have a couple of basic questions.

1. If we use ActionForm, the ActionServlet first executes the validate()
method before calling execute() on the corresponding Action. If I switch
from ActionForms to Struts Validator (that is, use ValidatorForm instead
of ActionForm), do things work the same way? Is it that in this case
also, ActionServlet calls the validate() just before calling the
execute()?

2. What is the standard way to pass data from Action objects to the JSP
(view)? Should the data be sent as a) Session properties, b) Some bean
objects, or c) Data members of the Action object?

Thanks,
Suresh



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




RE: Validator (newbie)

2002-12-18 Thread ROSSEL Olivier
 1. If we use ActionForm, the ActionServlet first executes the 
 validate()
 method before calling execute() on the corresponding Action. 
 If I switch
 from ActionForms to Struts Validator (that is, use 
 ValidatorForm instead
 of ActionForm), do things work the same way? Is it that in this case
 also, ActionServlet calls the validate() just before calling the
 execute()?

From my small experience, yes.
The validate() will either return null, and the Action execute().
Or the validate() returns a bunch or ActionErrors, and the ActionServlet
will then point to the URL of the input field of the current
ActionMapping.

 
 2. What is the standard way to pass data from Action objects 
 to the JSP
 (view)? Should the data be sent as a) Session properties, b) Some bean
 objects, or c) Data members of the Action object?

Beans stored in request scope sounds good.
Personnally, I use A LOT of session properties.

The problem of request scope is that it is reset at each request.

Do take care about your ActionForm. They are reset() each time
the ActionServlet access them. A lot of time is lost before you
realize it. Most of the time, you will need to create subclasses of
the ActionForm that have empty reset(), so your forms survives some
time.

I would greatly appreciate the gurus to confirm all what I said :-)

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: Validator (newbie)

2002-12-18 Thread Suresh Addagalla
Hi,

Using request scope instead of session makes sense.

One question on your suggestion. Usually the form bean represents the
form data of the previous page. The data, which is required to be put
in the view (JSP), most probably would not be present in the form bean.
So, how can we say that using the form bean is the best idea. In the
scenario which I described, what can be the alternative and best
practise?

Thanks,
Suresh

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 18, 2002 4:37 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Validator (newbie)


U r first Q ,I dont know ...But abt 2nd may be i have some 
suggestion form my 
experience with struts ..
2. What is the standard way to pass data from Action 
objects to the JSP
(view)? Should the data be sent as a) Session properties, b) Some bean
objects, or c) Data members of the Action object?

GEnerally u should try to avoid using session variables.So the 
standard way is 
to pass the data in request scope.So if the data u want to use 
in jsp is 
attribute of the formBean,then as the form bean is available 
to the jsp , u can 
use it there...I think this keeps the design clean as the form 
bean actually 
represents the form data..So u dont have to look at the action 
class to see 
what u are trying to put on jsp..The form bean is the place... 

-Original Message-
From: suresh.addagalla [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 12:02 PM
To: struts-user
Subject: Validator (newbie)


Hi,

I have a couple of basic questions.

1. If we use ActionForm, the ActionServlet first executes the 
validate()
method before calling execute() on the corresponding Action. 
If I switch
from ActionForms to Struts Validator (that is, use 
ValidatorForm instead
of ActionForm), do things work the same way? Is it that in this case
also, ActionServlet calls the validate() just before calling the
execute()?

2. What is the standard way to pass data from Action objects to the JSP
(view)? Should the data be sent as a) Session properties, b) Some bean
objects, or c) Data members of the Action object?

Thanks,
Suresh




**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Re: tomcat's container based authentication and struts

2002-12-18 Thread Max Cooper
Try html:form action=/j_security_check. Perhaps with the slash in front
of j_security_check, Struts won't interpret it as an action.

-Max

- Original Message -
From: Boris Folgmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 2:41 AM
Subject: Re: tomcat's container based authentication and struts


 Max Cooper wrote:
  Just write out a regular HTML form:
 
  form action=j_security_check
  Username: input type=text name=j_usernamebr
  Password: input type=password name='j_passwordbr
  input type=submit
  /form
 
  -Max

 This works, but I wanted to use e.g. the focus attribute of struts'
 html:form. Any idea? Is it a bug in struts that my action is changed
from
 j_security_check to /j_security_check.do?

 cu,
 boris


 --
 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: tomcat's container based authentication and struts

2002-12-18 Thread Boris Folgmann
Max Cooper wrote:
 Try html:form action=/j_security_check. Perhaps with the slash in front
 of j_security_check, Struts won't interpret it as an action.

No, it doesn't help. Same problem.

cu,
boris


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




RE: AW: Struts user archive

2002-12-18 Thread shirishchandra . sakhare
aabe breakpoint set hoto ka bagh bare ..tomcat cha source code aahe ka?

mi pan baghato ethe kahi milate ka te..

-Ojava.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:329)
at
org.apache.commons.logging.LogFactory.getCachedFactory(LogFactory.java:502)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:264)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
at org.apache.commons.digester.Digester.init(Digester.java:345)
at
org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)rigin
al Message-
From: Juraj.Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 10:04 AM
To: struts-user
Subject: AW: Struts user archive


http://www.servlets.com/archive/servlet/SearchList?listName=struts-userby=t
hread helps you perhaps




-Ursprüngliche Nachricht-
Von: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 10:03
An: '[EMAIL PROTECTED]'
Betreff: Struts user archive



Is there an order which makes it possible to find in the Struts user
archive all the messages andanswers associated according to the
name with the transmitter ?
Thanks
Sandra


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




AW: AW: Struts user archive

2002-12-18 Thread Lenharcik, Juraj
I would say: Your Hashtable Object is null .

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 13:13
An: [EMAIL PROTECTED]
Betreff: RE: AW: Struts user archive


aabe breakpoint set hoto ka bagh bare ..tomcat cha source code aahe ka?

mi pan baghato ethe kahi milate ka te..

-Ojava.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:329)
at
org.apache.commons.logging.LogFactory.getCachedFactory(LogFactory.java:502)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:264)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
at org.apache.commons.digester.Digester.init(Digester.java:345)
at
org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)r
igin
al Message-
From: Juraj.Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 10:04 AM
To: struts-user
Subject: AW: Struts user archive


http://www.servlets.com/archive/servlet/SearchList?listName=struts-userby=t
hread helps you perhaps




-Ursprüngliche Nachricht-
Von: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 10:03
An: '[EMAIL PROTECTED]'
Betreff: Struts user archive



Is there an order which makes it possible to find in the Struts user
archive all the messages andanswers associated according to the
name with the transmitter ?
Thanks
Sandra


--
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 give form name in struts?

2002-12-18 Thread Mohammed_Rafeeq
hi all ,
i'm a newbie.

how to give the form name when using  struts-html.tld

html:form action=/saveSubscription focus=host


i want to submit the form on click of a link, i thought of calling
javascript:document.formname.submit() onclick of the link


but in struts syntax is there provision to specify the form name?


-rafeeq


** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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




RE: how to give form name in struts?

2002-12-18 Thread shirishchandra . sakhare
check documentation for html:form tag...

-Original Message-
From: Mohammed.Rafeeq [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 1:44 PM
To: struts-user
Subject: how to give form name in struts?


hi all ,
i'm a newbie.

how to give the form name when using  struts-html.tld

html:form action=/saveSubscription focus=host


i want to submit the form on click of a link, i thought of calling
javascript:document.formname.submit() onclick of the link


but in struts syntax is there provision to specify the form name?


-rafeeq


** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

--
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: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread Heligon Sandra
Dreamweaver UltraDev is not only one tool of design, it facilitates the
construction of Web page by the use of graphic components. Not knowing
really HTML syntax I will use Ultradev to organize the components (edict,
table, buttons...)on each page. 
I installed the extension Custom Tag Library Extension for Ultradev
(http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html) that allows
to use
Struts tags in  Ultadev. I can access to the command Use custom tags and
Edit custom tag in the Ultradev menu. In the Use Custom tag library window I
view the libraries struts-html, struts-tiles etc...
but when I activate the button Use tag Library I have the following error:
Tag library struts-html not found on the server. 
I don't know why I have this error ?

-Original Message-
From: SCOTT VENTER [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 11:30
To: [EMAIL PROTECTED]
Subject: Re: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


Good day,

I use Dreamweaver MX, and struts tag-libs to develop jsp's for my struts web
applications.

I do not use tiles.

You say you are having trouble defining a site. What is the specific
problem?

Scott.


#
The information contained in this message and or attachments 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 system and destroy and copies.

#

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




html:errors/ question

2002-12-18 Thread Dmitry Vasilenko

Dear,

Describe:
I have for example 10 form field (with validaton required). I see in the
jsp(html:errors/) 10 errors when I try to inut ntohing.

Question:
I  want to see in the jsp only for example 3 errors.


Best regards,
Dmitry.


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




RE: html:errors/ question

2002-12-18 Thread Andrew Hill
Get the user to enter data into 7 of the fields before they submit the form.
;-

-Original Message-
From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 20:52
To: Struts Users Mailing List
Subject: html:errors/ question



Dear,

Describe:
I have for example 10 form field (with validaton required). I see in the
jsp(html:errors/) 10 errors when I try to inut ntohing.

Question:
I  want to see in the jsp only for example 3 errors.


Best regards,
Dmitry.


--
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:errors/ question

2002-12-18 Thread shirishchandra . sakhare
do some thing like...
public static void logErrorOnce(ActionErrors errors, String errorKey) {
if (errors.get(errorKey).hasNext() == false) {
logError(errors, errorKey);
}
}

-Original Message-
From: vasilenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 1:52 PM
To: struts-user
Cc: vasilenko
Subject: html:errors/ question



Dear,

Describe:
I have for example 10 form field (with validaton required). I see in the
jsp(html:errors/) 10 errors when I try to inut ntohing.

Question:
I  want to see in the jsp only for example 3 errors.


Best regards,
Dmitry.


--
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:errors/ question

2002-12-18 Thread Dmitry Vasilenko
In my sample space for error information is limited. I want to outut only
first 3 errors. :(

- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 3:05 PM
Subject: RE: html:errors/ question


 Get the user to enter data into 7 of the fields before they submit the
form.
 ;-

 -Original Message-
 From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 20:52
 To: Struts Users Mailing List
 Subject: html:errors/ question



 Dear,

 Describe:
 I have for example 10 form field (with validaton required). I see in the
 jsp(html:errors/) 10 errors when I try to inut ntohing.

 Question:
 I  want to see in the jsp only for example 3 errors.


 Best regards,
 Dmitry.


 --
 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: org.apache.struts.tiles.actions.NoOpAction

2002-12-18 Thread Cedric Dumoulin

 Hi,

 The parameter attribute should be the name of the tile, as it appears 
in your tile definitions file. Check that the definition exist, and that 
the Tiles factory is successfully loaded.

  Hope this help,

   Cedric

Björn Pewe wrote:

Hi, I saw that org.apache.struts.tiles.actions.NoOpAction is deprecated and
that o.a.s.a.ForwardAction should be used instead. But when I use
ForwardAction to forward to a tiles def I get a mapping error. I'm using
modules and it doesn't matter if I append the module name before the tile
def. It seems to me that the TilesRequestProcessor either isn't called or
don't trigger on the tiles-def name. What am I missing here?
Example of my action mapping:
action path=/test type=org.apache.struts.actions.ForwardAction
parameter=.test.def / 
or
action path=/test type=org.apache.struts.actions.ForwardAction
parameter=module/.test.def / 
/Björn

--
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:errors/ question

2002-12-18 Thread Andrew Hill
Hehe. Sorry. Couldnt resist making that joke  ;-)

Afaik the errors tag only allows you to show all , or individually specified
messages.
However you still have some options. You could use a scriptlet to iterate
over and output the first 3 messages only. If this space limit applies to
lots of pages you might be best implementing your own tag to do that. You
could use the source for the html:errors tag as a starting point. Shouldnt
be too hard to give it another attribute that takes a maximum number of
errors to display and have it halt its iterations if this number is reached.

-Original Message-
From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 21:08
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: html:errors/ question


In my sample space for error information is limited. I want to outut only
first 3 errors. :(

- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 3:05 PM
Subject: RE: html:errors/ question


 Get the user to enter data into 7 of the fields before they submit the
form.
 ;-

 -Original Message-
 From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 20:52
 To: Struts Users Mailing List
 Subject: html:errors/ question



 Dear,

 Describe:
 I have for example 10 form field (with validaton required). I see in the
 jsp(html:errors/) 10 errors when I try to inut ntohing.

 Question:
 I  want to see in the jsp only for example 3 errors.


 Best regards,
 Dmitry.


 --
 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:errors ActionErrors.GLOBAL_ERROR

2002-12-18 Thread Sri Sankaran
I don't understand the code snippet you have sent.  What is the enumeration?

Are you *forwarding* to the second action or are you *redirecting*?  The latter, as 
you know, will result in a new request being issued by the browser effectively 
throwing away your errors.

As an aside, chaining of actions is not a good idea.  Extracting your business logic 
out of the action classes should obviate the need for this technique.

Sri

-Original Message-
From: Vijay Balakrishnan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 6:03 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors  ActionErrors.GLOBAL_ERROR


Hi,

I tried using saveErrors(request,errors) in the 1st action.But the 2nd action to which 
it is forwarded doesn't seem to get the error.

Here is my code in the 2nd action:

while (enum.hasMoreElements()){
Object obj = enum.nextElement();
count++;
log.debug(obj is:+obj+ count:+count);
 
log.debug(request.getAttribute:+request.getAttribute(obj.toString()));
//this returns 3 objects-ApplicationConfig,ActionConfig and PropertyMessageResources
}

ActionErrors errors = (ActionErrors)request.getAttribute(ERROR_KEY);
log.debug(errors is:+errors);//this is null

Thanx,
Vijay

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 5:47 AM
To: Struts Users Mailing List
Subject: RE: html:errors  ActionErrors.GLOBAL_ERROR


Are you invoking saveErrors() in the action that generates the ActionErrors?

Sri

-Original Message-
From: Vijay Balakrishnan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 4:48 PM
To: '[EMAIL PROTECTED]'
Subject: html:errors  ActionErrors.GLOBAL_ERROR


Hi,

I am doing the following in the first Action:
ActionErrors errors = new ActionErrors();
   errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError(individual.backbutton.error)); 
   return forward; 

I am forwarding to another Action which in turn forwards to another Action.This last 
Action then forwards to a jsp page.I am displaying a html:errors / in the final jsp 
page and want to display the error message set in the first action. 

Right now,the jsp page doesn't show the error message.How can i get the message 
displayed ? 

Thanx,
Vijay


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




Struts using in Tomcat 4.0.1 and Visual Age For Java !!!

2002-12-18 Thread Ram
Hi ,
We are implementing Struts  in our present project.
Since most of us have worked on Visual Age For Java
we wish to use it as our IDE.
But we Find documents only tomcat 3.0 and Visual Age
Have any one used Tomcat 4 with Visual Age?
or 
Came across any Documents relating to configuring tomcat 4.0.* and Visual age?
If so Pls help us..


Thanks

Regards,
Ram







Re: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread Duma Rolando
I tried to configure UD in the past without succes.In the server model
option it shows only a jsp 1.0 support, so I think you can't use struts 1.1.
Dreamvewaver MX taglib support is unlimited ( requires only a tld file
configured in the IDE), but I haven't yet tried to configure a jsp 1.2 site
with live data feature enabled.
Bye

- Original Message -
From: Heligon Sandra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 10:08 AM
Subject: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles



 I will wish to know if somebody uses Marcomedia Dreamweaver
 Ultradev4 to develop JSP by using  Struts tags +
 Tiles components.
 I use Tomcat4.0.1 with JSP1.2 and Servlet2.3 and I can not define a
 site.
 Thanks in advance
 Sandra


 --
 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 give form name in struts?

2002-12-18 Thread Mark
If you view the source the form renders as haveing the name of the formbean
that you define in struts-config.xml..

You can make you js functions more portable by feeding them the form name
when you call them. This way you don't need the form name. I prefer to use
document.form[myform] rather than document.myform because in reality you are
accessing an array.


Function myfunction(form) {
document.forms[form].etc
}


form onsubmit=myfunction(this.form)

Hope this helps mark


On 18-12-2002 13:49, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 check documentation for html:form tag...
 
 -Original Message-
 From: Mohammed.Rafeeq [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 1:44 PM
 To: struts-user
 Subject: how to give form name in struts?
 
 
 hi all ,
 i'm a newbie.
 
 how to give the form name when using  struts-html.tld
 
 html:form action=/saveSubscription focus=host
 
 
 i want to submit the form on click of a link, i thought of calling
 javascript:document.formname.submit() onclick of the link
 
 
 but in struts syntax is there provision to specify the form name?
 
 
 -rafeeq
 
 
 **
 This email (including any attachments) is intended for the sole use of the
 intended recipient/s and may contain material that is CONFIDENTIAL AND
 PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
 distribution or forwarding of any or all of the contents in this message is
 STRICTLY PROHIBITED. If you are not the intended recipient, please contact
 the sender by email and delete all copies; your cooperation in this regard
 is appreciated.
 **
 
 --
 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:errors/ question

2002-12-18 Thread Kris Schneider
How 'bout using a dummy form with a select element whose size attribute is 3?
Each error message would be rendered as an option element. Of course, there's no
strict requirement for browsers to render a select element as a scrollable list
box when the size attribute is present (and  1), but IE 6.0, NS 4.79, and
Mozilla 1.2 seem to do so.

form
  select size=3
optionError 1/option
optionError 2/option
optionError 3/option
optionError 4/option
optionError 5/option
optionError 6/option
  /select
/form

Quoting Andrew Hill [EMAIL PROTECTED]:

 Hehe. Sorry. Couldnt resist making that joke  ;-)
 
 Afaik the errors tag only allows you to show all , or individually
 specified
 messages.
 However you still have some options. You could use a scriptlet to iterate
 over and output the first 3 messages only. If this space limit applies to
 lots of pages you might be best implementing your own tag to do that. You
 could use the source for the html:errors tag as a starting point. Shouldnt
 be too hard to give it another attribute that takes a maximum number of
 errors to display and have it halt its iterations if this number is
 reached.
 
 -Original Message-
 From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 21:08
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: html:errors/ question
 
 
 In my sample space for error information is limited. I want to outut only
 first 3 errors. :(
 
 - Original Message -
 From: Andrew Hill [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, December 18, 2002 3:05 PM
 Subject: RE: html:errors/ question
 
 
  Get the user to enter data into 7 of the fields before they submit the
 form.
  ;-
 
  -Original Message-
  From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 18, 2002 20:52
  To: Struts Users Mailing List
  Subject: html:errors/ question
 
 
 
  Dear,
 
  Describe:
  I have for example 10 form field (with validaton required). I see in the
  jsp(html:errors/) 10 errors when I try to inut ntohing.
 
  Question:
  I  want to see in the jsp only for example 3 errors.
 
 
  Best regards,
  Dmitry.
 
 
  --
  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]
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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




RE: html:rewrite and JavaScript

2002-12-18 Thread Sri Sankaran
Ted's tip #9 may be what you are looking for; see 
http://husted.com/struts/tips/009.html.

Sri

-Original Message-
From: Iris [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 18, 2002 3:38 AM
To: Struts Users Mailing List
Subject: Re: html:rewrite and JavaScript


Todd Pierce wrote:

Thanks Todd,
but my question now is: how can I call this forward in JavaScript ?

html:rewrite is essentially the same as html:link except that it 
doesn't generate an a element in the HTML, e.g.

html:rewrite forward=some.global.forward paramId=key 
paramName=someBean paramProperty=someProperty /

will generate something like this:

myUrl.do?key=somePropertyValue
  


-Original Message-
From: Iris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 18 December 2002 4:07 AM
To: Struts Users Mailing List
Subject: html:rewrite and JavaScript


Hello,

I want to populate an html:select following the value of an 
html:text. My idea was to reload the same page with the value of the 
html:text in parameter. I saw there is an html:rewrite tag that 
perhaps can help me  but I don't know how
to use it.
Someone has an example to show me how to use html:rewrite

Thanks
Iris


--
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:errors/ question

2002-12-18 Thread Andrew Hill
Thats a cool idea.
Good thinking :-)
Furthermore if there really is little space you could set the size to 1.
Then all the errors could be rendered as options and the user would just
need to click the select to drop down the list for reading.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 22:12
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: html:errors/ question


How 'bout using a dummy form with a select element whose size attribute is
3?
Each error message would be rendered as an option element. Of course,
there's no
strict requirement for browsers to render a select element as a scrollable
list
box when the size attribute is present (and  1), but IE 6.0, NS 4.79, and
Mozilla 1.2 seem to do so.

form
  select size=3
optionError 1/option
optionError 2/option
optionError 3/option
optionError 4/option
optionError 5/option
optionError 6/option
  /select
/form

Quoting Andrew Hill [EMAIL PROTECTED]:

 Hehe. Sorry. Couldnt resist making that joke  ;-)

 Afaik the errors tag only allows you to show all , or individually
 specified
 messages.
 However you still have some options. You could use a scriptlet to iterate
 over and output the first 3 messages only. If this space limit applies to
 lots of pages you might be best implementing your own tag to do that. You
 could use the source for the html:errors tag as a starting point. Shouldnt
 be too hard to give it another attribute that takes a maximum number of
 errors to display and have it halt its iterations if this number is
 reached.

 -Original Message-
 From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 21:08
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: html:errors/ question


 In my sample space for error information is limited. I want to outut only
 first 3 errors. :(

 - Original Message -
 From: Andrew Hill [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, December 18, 2002 3:05 PM
 Subject: RE: html:errors/ question


  Get the user to enter data into 7 of the fields before they submit the
 form.
  ;-
 
  -Original Message-
  From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 18, 2002 20:52
  To: Struts Users Mailing List
  Subject: html:errors/ question
 
 
 
  Dear,
 
  Describe:
  I have for example 10 form field (with validaton required). I see in the
  jsp(html:errors/) 10 errors when I try to inut ntohing.
 
  Question:
  I  want to see in the jsp only for example 3 errors.
 
 
  Best regards,
  Dmitry.
 
 
  --
  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]



--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.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]




radio button checked ?

2002-12-18 Thread Marcus Biel
How to make a radio Button checked using Struts 1.02 ?
That would be the html equivalent:
input type=radio name=name value=value checked

thx in advance for your help.

marcus

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




using regexp in input validation

2002-12-18 Thread Hirschmann, Bernhard

Is there a smooth way to use regular expressions in the input validation?

i.e. to allow only [A-Z|a-z|0-9] 

Regards,
Bernhard


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




RE: radio button checked ?

2002-12-18 Thread Sri Sankaran
The html:radio shows as selected if the value of the property attribute matches the 
value of the value attribute.  So, if you have

html:radio property=operation value=yes/ Yes
html:radio property=operation value=no/ No

This will show 2 radio buttons with the first one selected if getOperation() on the 
form bean returns yes.

Sri


-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 18, 2002 9:17 AM
To: [EMAIL PROTECTED]
Subject: radio button checked ?


How to make a radio Button checked using Struts 1.02 ?
That would be the html equivalent:
input type=radio name=name value=value checked

thx in advance for your help.

marcus

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




AW: using regexp in input validation

2002-12-18 Thread Lenharcik, Juraj
Verwende doch die Java 1.4 regexp



Is there a smooth way to use regular expressions in the input validation?

i.e. to allow only [A-Z|a-z|0-9] 

Regards,
Bernhard


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




Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
Could someone post the very simplest example of some custom validation code.
I am still having problems with my code as explained in previous post below.
Maybe if I start of smaller I could make some sense of whats going on. 



Thanks,


Jeremy


Im trying to start of simple with a custom validaton method.  Currently all
it contains is a system.out to verify that the method never gets called. Can
some one verify that my configuration is correct?  I would appreciate it.


validator-rules.xml

  validator name=identical
 classname=com.vs.install.util.VsValidate
 method=validateIdentical
 methodParams=java.lang.Object,
   org.apache.commons.validator.ValidatorAction,
   org.apache.commons.validator.Field,
   org.apache.struts.action.ActionErrors,
   javax.servlet.http.HttpServletRequest

 depends=required
 msg=errors.identical
/


validation.xml
formname=SetupFormBean
fieldproperty=vsynchNum
depends=required,integer
arg0
key=newinstall.vsynchnum.displayname/
/field
fieldproperty=vsappNum
depends=required,integer,identical
arg0
key=newinstall.vsappnum.displayname/
/field
fieldproperty=installDir
  depends=required
  arg0
key=newinstall.installdir.displayname/

/field
/form

package com.vs.util.validate;

import java.io.Serializable;
import java.util.Locale;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.commons.validator.Field;
import org.apache.commons.validator.GenericValidator;
import org.apache.commons.validator.ValidatorAction;
import org.apache.commons.validator.ValidatorUtil;
import org.apache.struts.util.StrutsValidatorUtil;
import java.text.*;
import java.util.*;

public final class VsValidate implements Serializable  {

public VsValidate() {
}


public static boolean validateIdentical(Object bean, ValidatorAction
va, Field field, ActionErrors errors, HttpServletRequest request){
   System.out.println(entered method);

return true;
}



}




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




how to assign values to hidden form variables

2002-12-18 Thread Mohammed_Rafeeq

hi sankaran,

how to assign values to hidden parameters in a form using struts?
-rafeeq

** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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




RE: how to assign values to hidden form variables

2002-12-18 Thread James Childers

 how to assign values to hidden parameters in a form using struts?
 -rafeeq

The same way you do other form elements, with the html:xxx tags. In this case you 
use the html:hidden property=blech / tag.

-= J

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




RE: Struts using in Tomcat 4.0.1 and Visual Age For Java !!!

2002-12-18 Thread Colin Hawkett
Hi,

It will become more and more difficult to find documentation for newer
versions of things and visual age.  As you probably know, all of IBM's IDE
effort is going into the eclipse based WebSphere Application Developer
(version 5 is very good), and hence I suspect that most people that write
how-to's for things will probably be targeting WSAD rather than visual
age... visual age has probably become a dead end from a skills perspective -
are you sure you want to continue to use it - especially when it seems you
have the option to make a clean break for something else?  The learning
curve for WSAD isn't too great.  Probably not exactly what you wanted to
hear, but if you want to take on newer technologies like tomcat 4 it might
be more difficult with that choice of IDE.  With that said I woudln't be
surprised if there was a document out there that told you what you wanted to
know :)

Colin

-Original Message-
From: Ram [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 13:59
To: Struts Users Mailing List
Subject: Struts using in Tomcat 4.0.1 and Visual Age For Java !!!


Hi ,
We are implementing Struts  in our present project.
Since most of us have worked on Visual Age For Java
we wish to use it as our IDE.
But we Find documents only tomcat 3.0 and Visual Age
Have any one used Tomcat 4 with Visual Age?
or
Came across any Documents relating to configuring tomcat 4.0.* and Visual
age?
If so Pls help us..


Thanks

Regards,
Ram









This email and any files transmitted with it contain information that may be
confidential or privileged, and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the intended
recipient any disclosure, copying, distribution or use of the information is
prohibited. If you have received this email in error, please notify me by
return email immediately. Any opinions expressed are those of the author,
not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre.



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




Re: request.getContextPath() and Tiles

2002-12-18 Thread Susan Bradeen
snip
 
  using the requestURI='request.getContextPath().concat(/showlist.do)'
  gets me closer, but still not quite there.
 
 
 I can get around this by hard coding myModule into the path, such as 
...
 
 requestURI='request.getContextPath().concat(/myModule/showlist.do)'
 
 and the links are built properly, but I'd rather not do this. If there 
was
 a way to dynamically
 retrieve the application module prefix, I could get around hard coding.
 

I have resolved the hard coding of the module path by doing the 
following ...

In the action, set the module-relative path in a request attribute:

public ActionForward execute(...) throws Exception {
...
/*Build a module-relative path that Display tags can use for html:link 
href= parameter.*/
ModuleConfig mc = (ModuleConfig) 
request.getAttribute(Globals.MODULE_KEY);
request.setAttribute(linkPath, 
request.getContextPath().concat(mc.getPrefix()));
return mapping.findForward(success);

}

then in the JSP retrieve the path attribute and add on the action ...

requestURI='%=((String)request.getAttribute(linkPath)).concat(/showlist.do)%'


There is probably a better way to do this, but this seems to work.

Susan Bradeen

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




Re: Java Server Faces

2002-12-18 Thread Kevin . Bedell


I've been following this recently -

For info on Struts and JSF, search the struts-user archives for various
posts by Craig recently outlining where things stand. He posts on this just
about weekly.

Interestingly, if you look at the votes on the early draft of the JSF spec
at jcp.org, you can see that Apache voted against it - saying that it was
in competition with Struts (which was open source) and they were against
competing work on a standard that would be done under licensing terms (from
Sun) that did not ensure the ability to build open source implementation. A
number of other voters voted against the spec as well echoing Apache's
concerns. These concerns were met and JSP moved forward with full industry
support - open source implementations are now ensured.

As part of specification development under the Java Community Process
(again. jcp.org), it is a *requirement* that a reference implementation
(RI) of the specification be delivered. For example. Tomcat is the
reference implementation for the servlet/jsp specs. As a result, a
reference implementation of JSF will be required to be delivered prior to
the final spec approval - this is what they are working on.

However, the spec isn't yet final. Any RI released at this time would not
only be early, it may not be compatible with the JSF spec when it goes
final.

In other words - gosh this stuff is gonna be cool, but geez - let's let it
cook a little longer!.

Kevin
http://www.strutskickstart.com





Alireza Fattahi [EMAIL PROTECTED] on 12/18/2002 12:44:59 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:Java Server Faces


Hi,

As you might know the Java Server Faces is released. Is Struts compatible
with this specification? If not will it be compatible with that?

By the way, is this sentence correct:
The JFC is specification and sun will not develop any thing at all by
himself.

Alireza.

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







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




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




Re: how to assign values to hidden form variables

2002-12-18 Thread Mark Lepkowski
how about:

html:hidden property=myProperty/

 how to assign values to hidden parameters in a form using struts?



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




Re: Simple Custom Validation Example Request

2002-12-18 Thread Rick Reumann
On Wednesday, December 18, 2002, 9:36:33 AM, Jeremy wrote:

WJ Could someone post the very simplest example of some custom
WJ validation code. I am still having problems with my code as
WJ explained in previous post below. Maybe if I start of smaller I
WJ could make some sense of whats going on.

Well one thing I see right away is the package name is off. You
are setting up the rule as : com.vs.install.util.VsValidate
yet the class is set up as
package com.vs.util.validate;

Fix the validation part to call com.vs.util.validate.VsValidate
and you should be all set.


-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: Simple Custom Validation Example Request

2002-12-18 Thread Alireza Fattahi
Here is sample.

Hope it helps. One question are default validations like required working?
If not check your struts_config.xml.

Validation_rule.xml:

validator name=preciseEmail
  classname=com.sgccir.struts.validations.EmailValidator
  method=isEmail
  methodParams=java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest
  msg=errors.email /



validation.xml
  form name=CommentVwcredForm
field property=email depends=preciseEmail
  arg0 key=label.email /
  var
var-namemask/var-name
var-value^[a-zA-Z]*$/var-value
  /var
/field
  /form



public static boolean isEmail( java.lang.Object bean,
 
org.apache.commons.validator.ValidatorAction va,
 org.apache.commons.validator.Field field,
 org.apache.struts.action.ActionErrors
errors,
 javax.servlet.http.HttpServletRequest
request ) {
log.trace( In isEmail() method );

boolean blIsValidEmail = true;
..

}


-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 18, 2002 6:07 PM
To: 'Struts Users Mailing List' (E-mail)
Subject: Simple Custom Validation Example Request

Could someone post the very simplest example of some custom validation code.
I am still having problems with my code as explained in previous post below.
Maybe if I start of smaller I could make some sense of whats going on. 



Thanks,


Jeremy


Im trying to start of simple with a custom validaton method.  Currently all
it contains is a system.out to verify that the method never gets called. Can
some one verify that my configuration is correct?  I would appreciate it.


validator-rules.xml

  validator name=identical
 classname=com.vs.install.util.VsValidate
 method=validateIdentical
 methodParams=java.lang.Object,
   org.apache.commons.validator.ValidatorAction,
   org.apache.commons.validator.Field,
   org.apache.struts.action.ActionErrors,
   javax.servlet.http.HttpServletRequest

 depends=required
 msg=errors.identical
/


validation.xml
formname=SetupFormBean
fieldproperty=vsynchNum
depends=required,integer
arg0
key=newinstall.vsynchnum.displayname/
/field
fieldproperty=vsappNum
depends=required,integer,identical
arg0
key=newinstall.vsappnum.displayname/
/field
fieldproperty=installDir
  depends=required
  arg0
key=newinstall.installdir.displayname/

/field
/form

package com.vs.util.validate;

import java.io.Serializable;
import java.util.Locale;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.commons.validator.Field;
import org.apache.commons.validator.GenericValidator;
import org.apache.commons.validator.ValidatorAction;
import org.apache.commons.validator.ValidatorUtil;
import org.apache.struts.util.StrutsValidatorUtil;
import java.text.*;
import java.util.*;

public final class VsValidate implements Serializable  {

public VsValidate() {
}


public static boolean validateIdentical(Object bean, ValidatorAction
va, Field field, ActionErrors errors, HttpServletRequest request){
   System.out.println(entered method);

return true;
}



}




--
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 assign values to hidden form that are not strings

2002-12-18 Thread Iris
Hello

I have a problem with an html:optionsCollection .../ that is populated 
with a collection
in my ValidatorForm dynamicaly.
When, my form pass in validation and return to the input jsp because of 
errors,
the collection seems to disappear.
Can I put it in a hidden tag to keep it ?

Iris


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



Re: html:errors/ question

2002-12-18 Thread Dmitry Vasilenko
As I understand this is for Action class.
In my sample i use DynaValidatorForm and
I must cath error in the jsp page.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 3:04 PM
Subject: RE: html:errors/ question


 do some thing like...
 public static void logErrorOnce(ActionErrors errors, String errorKey) {
 if (errors.get(errorKey).hasNext() == false) {
 logError(errors, errorKey);
 }
 }

 -Original Message-
 From: vasilenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 1:52 PM
 To: struts-user
 Cc: vasilenko
 Subject: html:errors/ question



 Dear,

 Describe:
 I have for example 10 form field (with validaton required). I see in the
 jsp(html:errors/) 10 errors when I try to inut ntohing.

 Question:
 I  want to see in the jsp only for example 3 errors.


 Best regards,
 Dmitry.


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




date format

2002-12-18 Thread Doug Ogateter

Hi:
I have a problem with date format. I appreciate your help.
Using bean:write name=customer property=day /, the web page displayed the day as 
Sun Nov 30 00:00:00 EST 1980  . To format the day, I added formatKey, so the above tag 
bean:write tag becomes bean:write name=customer property=day  
formatKey=customer.day.format/. In my ApplicationResources.properties, I have 
customer.day.format=dd/mm/. The problem is, after I used the formatKey, it shows 
me 30/00/1980(the month part becomes 00. It should show me 30/11/1980). 
I am using struts1.1. Could anyone help me out? Is it the formatKey problem? Thank you 
very much.

Regards,

Doug



-
Post your free ad now! Yahoo! Canada Personals



RE: date format

2002-12-18 Thread James Childers
Try 

customer.day.format=dd/MM/

mm = minutes in hour
MM = months

-= J

 -Original Message-
 From: Doug Ogateter [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 9:52 AM
 To: Struts Users Mailing List
 Subject: date format
 
 
 
 Hi:
 I have a problem with date format. I appreciate your help.
 Using bean:write name=customer property=day /, the web 
 page displayed the day as Sun Nov 30 00:00:00 EST 1980  . To 
 format the day, I added formatKey, so the above tag 
 bean:write tag becomes bean:write name=customer 
 property=day  formatKey=customer.day.format/. In my 
 ApplicationResources.properties, I have 
 customer.day.format=dd/mm/. The problem is, after I used 
 the formatKey, it shows me 30/00/1980(the month part becomes 
 00. It should show me 30/11/1980). 
 I am using struts1.1. Could anyone help me out? Is it the 
 formatKey problem? Thank you very much.
 
 Regards,
 
 Doug
 
 
 
 -
 Post your free ad now! Yahoo! Canada Personals
 

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




RE: date format

2002-12-18 Thread Doug Ogateter

James:
It WORKS! IT'S AMAZING!
THANK YOU VERY MUCH!
BEST REGARDS,
Doug
 James Childers [EMAIL PROTECTED] wrote:Try 

customer.day.format=dd/MM/

mm = minutes in hour
MM = months

-= J

 -Original Message-
 From: Doug Ogateter [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 9:52 AM
 To: Struts Users Mailing List
 Subject: date format
 
 
 
 Hi:
 I have a problem with date format. I appreciate your help.
 Using , the web 
 page displayed the day as Sun Nov 30 00:00:00 EST 1980 . To 
 format the day, I added formatKey, so the above tag 
 bean:write tag becomes  property=day formatKey=customer.day.format/. In my 
 ApplicationResources.properties, I have 
 customer.day.format=dd/mm/. The problem is, after I used 
 the formatKey, it shows me 30/00/1980(the month part becomes 
 00. It should show me 30/11/1980). 
 I am using struts1.1. Could anyone help me out? Is it the 
 formatKey problem? Thank you very much.
 
 Regards,
 
 Doug
 
 
 
 -
 Post your free ad now! Yahoo! Canada Personals
 

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



-
Post your free ad now! Yahoo! Canada Personals



RE: Struts Frames

2002-12-18 Thread Siggelkow, Bill
Yes ... that's it  I have my login forward to an index.jsp which is the frameset 
-- the src of the frames in that frameset is dynamically generated based on some user 
profile info.

-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 4:51 AM
To: 'Struts Users Mailing List'
Subject: Struts  Frames


Hi ,

I have a Login page which is a single frame and after successfull login
should go to the 
Application home page which is 2 Frame. How to Achieve this ? Would it be
sufficient if I just call
another 2 different actions in src attribute of the frame?

Thanks in advance

Regards
Savant

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---


--
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 with message-resources with custom key

2002-12-18 Thread Maciej Ko³odziej
Hello,

If I put something like this:

message-resources key=messages.MESSAGES_MAIN
   null=false parameter=resources.main/

into my stuts-config-main.xml (main module in my application) then
should I be able to use:

bean:message key=logon.title
bundle=messages.MESSAGES_MAIN/

in my jsp file?
Because it's not working :(

-- 
 Maciej Kolodziej


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




RE: mapping to domain objects

2002-12-18 Thread Siggelkow, Bill
One option is to have your form implement an a domain (business) object interface.  
For example, you would have Customer interface that would have the get/setFoo methods 
and the form would implement get/setFoo (for the business interface) and 
get/setFooString (for presentation) -- in this way you can use the form both as a 
translation object as well as a transfer (value) object -- that is, internally, 
setFooString() would translate the string into the business foo type.

-Original Message-
From: Colin Hawkett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 4:42 AM
To: 'Struts Users Mailing List'
Subject: mapping to domain objects


Hi,

I had previously been using struts 1.0, and have started a project using
1.1 - in 1.0 the method I used to map forms to domain objects (By domain
object I mean value object - representing the problem domain e.g. User,
Account, Bank etc.) was to create an action form with the domain object as
an attribute.  I would then create special setters and getters in the domain
object to handle the different types coming in as Strings - e.g.

public void setDateString(String date);
pubic String getDateString();

and also use the nested library to traverse the domain hierarchy (e.g. loop
through a list of accounts in a bank domain object).

Basically I don't like this method because it corrupts all of the domain
objects with methods that are specifically for the presentation layer, and I
couldn't easily validate the incoming values without creating an ActionError
list in the domain object and pulling this out when I hit the validator.
Never mind - lesson learned.  I really did like the nested tags though.

Now that struts 1.1 is on the table I am wondering what I can do to make
this better.  I like the DynaValidator but this appears to only be useful
for static forms (ones that aren't changing depending on the data).

I've been looking at the decalrative exception structure - but I can't quite
make out whether these exceptions can only be caught from the Action or also
from the form associated with the action.  Thats probably one for me to
check out although I can't see it mentioned anywhere.  I was thinking this
might be a good way to handle the problem of domain validating by doign the
validation in the setters and throwing exceptions rather than doing it in
the validate() method.

The only other method I can really see is to produce a wrapper around my
domain objects specifically for the purpose of providing String
setter/getter interfaces so I don't get number format errors on my setters
trying to convert to the actual attribute types.

I guess the main aim of this post was to see if there is a way of doing this
that anybody has found elegant.  I am probably missing something - but what
I am really looking for is a way to map form strings to domain attribute
types directly trapping any format errors in the process.  Any pointers?
Thanks in advance

Colin

Colin Hawkett
Technical Architect
Morpheus - eBusiness Solutions
Morpheus Limited, Gibbs House, Kennel Ride, Ascot, Berkshire, SL5 7NT
Email: [EMAIL PROTECTED]
Tel: 01344 891621; Fax: 01344 891620
Web: http://www.morpheus.co.uk

*Winner of the IBM Solution Excellence Award for e-Commerce 2001*
*Solution Provider of the Month - Channel 2002 Magazine*
*Investor in People*






This email and any files transmitted with it contain information that may be
confidential or privileged, and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the intended
recipient any disclosure, copying, distribution or use of the information is
prohibited. If you have received this email in error, please notify me by
return email immediately. Any opinions expressed are those of the author,
not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre.



--
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: Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
Still no go.  I had some problems with my package paths etc., but that wasnt
the cause either.  The default validations do work but do I need to do
anything else in struts-config.xml?


Thanks


Jeremy

-Original Message-
From: Alireza Fattahi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 10:33 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple Custom Validation Example Request


Here is sample.

Hope it helps. One question are default validations like required working?
If not check your struts_config.xml.

Validation_rule.xml:

validator name=preciseEmail
  classname=com.sgccir.struts.validations.EmailValidator
  method=isEmail
  methodParams=java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest
  msg=errors.email /



validation.xml
  form name=CommentVwcredForm
field property=email depends=preciseEmail
  arg0 key=label.email /
  var
var-namemask/var-name
var-value^[a-zA-Z]*$/var-value
  /var
/field
  /form



public static boolean isEmail( java.lang.Object bean,
 
org.apache.commons.validator.ValidatorAction va,
 org.apache.commons.validator.Field field,
 org.apache.struts.action.ActionErrors
errors,
 javax.servlet.http.HttpServletRequest
request ) {
log.trace( In isEmail() method );

boolean blIsValidEmail = true;
..

}


-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 18, 2002 6:07 PM
To: 'Struts Users Mailing List' (E-mail)
Subject: Simple Custom Validation Example Request

Could someone post the very simplest example of some custom validation code.
I am still having problems with my code as explained in previous post below.
Maybe if I start of smaller I could make some sense of whats going on. 



Thanks,


Jeremy


Im trying to start of simple with a custom validaton method.  Currently all
it contains is a system.out to verify that the method never gets called. Can
some one verify that my configuration is correct?  I would appreciate it.


validator-rules.xml

  validator name=identical
 classname=com.vs.install.util.VsValidate
 method=validateIdentical
 methodParams=java.lang.Object,
   org.apache.commons.validator.ValidatorAction,
   org.apache.commons.validator.Field,
   org.apache.struts.action.ActionErrors,
   javax.servlet.http.HttpServletRequest

 depends=required
 msg=errors.identical
/


validation.xml
formname=SetupFormBean
fieldproperty=vsynchNum
depends=required,integer
arg0
key=newinstall.vsynchnum.displayname/
/field
fieldproperty=vsappNum
depends=required,integer,identical
arg0
key=newinstall.vsappnum.displayname/
/field
fieldproperty=installDir
  depends=required
  arg0
key=newinstall.installdir.displayname/

/field
/form

package com.vs.util.validate;

import java.io.Serializable;
import java.util.Locale;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.commons.validator.Field;
import org.apache.commons.validator.GenericValidator;
import org.apache.commons.validator.ValidatorAction;
import org.apache.commons.validator.ValidatorUtil;
import org.apache.struts.util.StrutsValidatorUtil;
import java.text.*;
import java.util.*;

public final class VsValidate implements Serializable  {

public VsValidate() {
}


public static boolean validateIdentical(Object bean, ValidatorAction
va, Field field, ActionErrors errors, HttpServletRequest request){
   System.out.println(entered method);

return true;
}



}




--
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: Simple Custom Validation Example Request

2002-12-18 Thread James Turner
Do you have both validation_rule.xml and validation.xml in the list in
your plug-in definition in struts-config.xml?

James

 -Original Message-
 From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 18, 2002 11:18 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple Custom Validation Example Request
 
 
 Still no go.  I had some problems with my package paths etc., 
 but that wasnt the cause either.  The default validations do 
 work but do I need to do anything else in struts-config.xml?
 
 
 Thanks
 
 
 Jeremy
 
 -Original Message-
 From: Alireza Fattahi [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 10:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple Custom Validation Example Request
 
 
 Here is sample.
 
 Hope it helps. One question are default validations like 
 required working? If not check your struts_config.xml.
 
 Validation_rule.xml:
 
 validator name=preciseEmail
   classname=com.sgccir.struts.validations.EmailValidator
   method=isEmail
   methodParams=java.lang.Object,
 org.apache.commons.validator.ValidatorAction,
 org.apache.commons.validator.Field,
 org.apache.struts.action.ActionErrors,
 javax.servlet.http.HttpServletRequest
   msg=errors.email /
 
 
 
 validation.xml
   form name=CommentVwcredForm
 field property=email depends=preciseEmail
   arg0 key=label.email /
   var
 var-namemask/var-name
 var-value^[a-zA-Z]*$/var-value
   /var
 /field
   /form
 
 
 
 public static boolean isEmail( java.lang.Object bean,
  
 org.apache.commons.validator.ValidatorAction va,
  
 org.apache.commons.validator.Field field,
  org.apache.struts.action.ActionErrors
 errors,
  javax.servlet.http.HttpServletRequest
 request ) {
 log.trace( In isEmail() method );
 
 boolean blIsValidEmail = true;
 ..
 
 }
 
 
 -Original Message-
 From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 18, 2002 6:07 PM
 To: 'Struts Users Mailing List' (E-mail)
 Subject: Simple Custom Validation Example Request
 
 Could someone post the very simplest example of some custom 
 validation code. I am still having problems with my code as 
 explained in previous post below. Maybe if I start of smaller 
 I could make some sense of whats going on. 
 
 
 
 Thanks,
 
 
 Jeremy
 
 
 Im trying to start of simple with a custom validaton method.  
 Currently all it contains is a system.out to verify that the 
 method never gets called. Can some one verify that my 
 configuration is correct?  I would appreciate it.
 
 
 validator-rules.xml
 
   validator name=identical
classname=com.vs.install.util.VsValidate
method=validateIdentical
methodParams=java.lang.Object,
  org.apache.commons.validator.ValidatorAction,
  org.apache.commons.validator.Field,
  org.apache.struts.action.ActionErrors,
  javax.servlet.http.HttpServletRequest
 
depends=required
msg=errors.identical
   /
 
 
 validation.xml
   formname=SetupFormBean
   fieldproperty=vsynchNum
   depends=required,integer
   arg0
 key=newinstall.vsynchnum.displayname/
   /field
   fieldproperty=vsappNum
   depends=required,integer,identical
   arg0
 key=newinstall.vsappnum.displayname/
   /field
   fieldproperty=installDir
 depends=required
 arg0
 key=newinstall.installdir.displayname/
 
   /field
   /form
 
 package com.vs.util.validate;
 
 import java.io.Serializable;
 import java.util.Locale;
 import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 import org.apache.struts.action.ActionErrors;
 import org.apache.commons.validator.Field;
 import org.apache.commons.validator.GenericValidator;
 import org.apache.commons.validator.ValidatorAction;
 import org.apache.commons.validator.ValidatorUtil;
 import org.apache.struts.util.StrutsValidatorUtil;
 import java.text.*;
 import java.util.*;
 
 public final class VsValidate implements Serializable  {
 
   public VsValidate() {
   }
 
 
   public static boolean validateIdentical(Object bean, 
 ValidatorAction va, Field field, ActionErrors errors, 
 HttpServletRequest request){
  System.out.println(entered method);
 
   return true;
   }
 
 
 
 }
 
 
 
 
 --
 To unsubscribe, e-mail: 
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail: 
 mailto:struts-user- 

Re: tomcat's container based authentication and struts

2002-12-18 Thread Patrice
I think that if you use the html:form tag, Struts will always interpret it
as an action.
If it is just for the focus attribute, you can implement your own javascript
function to place the focus on the element you want:

form name=logonForm action=j_security_check
Username: input type=text name=j_usernamebr
Password: input type=password name='j_passwordbr
input type=submit
/form
script language=JavaScript type=text/javascript
  !--
document.forms[logonForm].elements[j_username].focus();
  // --
/script

Hope it helps
Patrice

- Original Message -
From: Boris Folgmann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 11:41 AM
Subject: Re: tomcat's container based authentication and struts


 Max Cooper wrote:
  Just write out a regular HTML form:
 
  form action=j_security_check
  Username: input type=text name=j_usernamebr
  Password: input type=password name='j_passwordbr
  input type=submit
  /form
 
  -Max

 This works, but I wanted to use e.g. the focus attribute of struts'
 html:form. Any idea? Is it a bug in struts that my action is changed
from
 j_security_check to /j_security_check.do?

 cu,
 boris


 --
 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: Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
I dont know what the deal is but its working now.  

Thanks for all your suggestions.

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




Re[2]: Simple Custom Validation Example Request

2002-12-18 Thread Rick Reumann


On Wednesday, December 18, 2002, 11:18:06 AM, Jeremy wrote:

WJ Still no go.  I had some problems with my package paths etc., but
WJ that wasnt the cause either.  The default validations do work but
WJ do I need to do anything else in struts-config.xml?

When trying to debug validation stuff, first remove all the other
validations that you know are working. Just comment them out of
the validation.xml. Then also on the one you are trying to test,
( in this case validateIdentical ) remove the test for integer.
Basically narrow it down so that you know exactly where things are
going wrong.

Also what happens when you submit? Does the page return to the
same form (it shouldn't since you are returning true)? Does it
forward on to the next page without errors? Are there any errors
in the logs?


-- 

Rick
mailto:[EMAIL PROTECTED]


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




beanutils populate problem with formbeans and vectors

2002-12-18 Thread Michael Olszynski
Hi,

I´ve always get an Exception, when I try to change my scope in the struts-config.xml 
from session to request. 
I think the problem is that I have a getter and setter for a vector in my formbean.
Everything works well with the scope session. My formbean is also working if i 
completly remove the getter/setter vector out of my bean and my jsp´s.
But I´d like to use a bean in  a scope session with a getter/setter for vectors. 
Anybody has a clue about this problem. I read some things in the mailarchive, but that 
didn´t help me.

This is the error:
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:713)
at 
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:503)
at 
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:410)
at 
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:749)
at 
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:780)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:793)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
at 

RE: Simple Custom Validation Example Request

2002-12-18 Thread Weber, Jeremy
Yes.

  plug-in className=org.apache.struts.validator.ValidatorPlugIn
  set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
  /plug-in

I assume thats all I need but I am running out of ideas, as to why I cant
get this work:(

Thanks


Jeremy

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 11:23 AM
To: 'Struts Users Mailing List'
Subject: RE: Simple Custom Validation Example Request


Do you have both validation_rule.xml and validation.xml in the list in
your plug-in definition in struts-config.xml?

James

 -Original Message-
 From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 18, 2002 11:18 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple Custom Validation Example Request
 
 
 Still no go.  I had some problems with my package paths etc., 
 but that wasnt the cause either.  The default validations do 
 work but do I need to do anything else in struts-config.xml?
 
 
 Thanks
 
 
 Jeremy
 
 -Original Message-
 From: Alireza Fattahi [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 10:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Simple Custom Validation Example Request
 
 
 Here is sample.
 
 Hope it helps. One question are default validations like 
 required working? If not check your struts_config.xml.
 
 Validation_rule.xml:
 
 validator name=preciseEmail
   classname=com.sgccir.struts.validations.EmailValidator
   method=isEmail
   methodParams=java.lang.Object,
 org.apache.commons.validator.ValidatorAction,
 org.apache.commons.validator.Field,
 org.apache.struts.action.ActionErrors,
 javax.servlet.http.HttpServletRequest
   msg=errors.email /
 
 
 
 validation.xml
   form name=CommentVwcredForm
 field property=email depends=preciseEmail
   arg0 key=label.email /
   var
 var-namemask/var-name
 var-value^[a-zA-Z]*$/var-value
   /var
 /field
   /form
 
 
 
 public static boolean isEmail( java.lang.Object bean,
  
 org.apache.commons.validator.ValidatorAction va,
  
 org.apache.commons.validator.Field field,
  org.apache.struts.action.ActionErrors
 errors,
  javax.servlet.http.HttpServletRequest
 request ) {
 log.trace( In isEmail() method );
 
 boolean blIsValidEmail = true;
 ..
 
 }
 
 
 -Original Message-
 From: Weber, Jeremy [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 18, 2002 6:07 PM
 To: 'Struts Users Mailing List' (E-mail)
 Subject: Simple Custom Validation Example Request
 
 Could someone post the very simplest example of some custom 
 validation code. I am still having problems with my code as 
 explained in previous post below. Maybe if I start of smaller 
 I could make some sense of whats going on. 
 
 
 
 Thanks,
 
 
 Jeremy
 
 
 Im trying to start of simple with a custom validaton method.  
 Currently all it contains is a system.out to verify that the 
 method never gets called. Can some one verify that my 
 configuration is correct?  I would appreciate it.
 
 
 validator-rules.xml
 
   validator name=identical
classname=com.vs.install.util.VsValidate
method=validateIdentical
methodParams=java.lang.Object,
  org.apache.commons.validator.ValidatorAction,
  org.apache.commons.validator.Field,
  org.apache.struts.action.ActionErrors,
  javax.servlet.http.HttpServletRequest
 
depends=required
msg=errors.identical
   /
 
 
 validation.xml
   formname=SetupFormBean
   fieldproperty=vsynchNum
   depends=required,integer
   arg0
 key=newinstall.vsynchnum.displayname/
   /field
   fieldproperty=vsappNum
   depends=required,integer,identical
   arg0
 key=newinstall.vsappnum.displayname/
   /field
   fieldproperty=installDir
 depends=required
 arg0
 key=newinstall.installdir.displayname/
 
   /field
   /form
 
 package com.vs.util.validate;
 
 import java.io.Serializable;
 import java.util.Locale;
 import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 import org.apache.struts.action.ActionErrors;
 import org.apache.commons.validator.Field;
 import org.apache.commons.validator.GenericValidator;
 import org.apache.commons.validator.ValidatorAction;
 import org.apache.commons.validator.ValidatorUtil;
 import org.apache.struts.util.StrutsValidatorUtil;
 import java.text.*;
 import java.util.*;
 
 public final class VsValidate implements 

RE: beanutils populate problem with formbeans and vectors

2002-12-18 Thread Yee, Richard K,,DMDCWEST
Michael,
The problem is that the get method is being called when your Collection is
empty. This is causing the ArrayIndexOutOfBounds exception that you are
seeing. What I have done to prevent this problem is to code my getX(int
index) and set(int index, Object obj) methods like this:

  public Object getMyVector(int index) {
if (index = myVector.size())
  return ;
return myVector.get(index);
  }

  public void setMyVector(int index, Object value) {
int size=myVector.size();
if (index = size) {
  for(int i=size; i=index; i++) {
myVector.add();
  }
}
myVector.set(index,value);
  }

For the get method, I just return an empty string if the index is bigger
than the current size of the vector. For the set method, I increase the size
of the vector up to the index if the current size is smaller, otherwise I
just set the value that the index points to. This alleviates the need to
pre-fill the Vector in the constructor.

This solution also works with indexed properties in an html form too.

Regards,

Richard


 -Original Message-
 From: Michael Olszynski [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, December 18, 2002 9:08 AM
 To:   'Struts Users Mailing List'
 Subject:  beanutils populate problem with formbeans and vectors
 
 Hi,
 
 I´ve always get an Exception, when I try to change my scope in the
 struts-config.xml from session to request. 
 I think the problem is that I have a getter and setter for a vector in my
 formbean.
 Everything works well with the scope session. My formbean is also
 working if i completly remove the getter/setter vector out of my bean and
 my jsp´s.
 But I´d like to use a bean in  a scope session with a getter/setter for
 vectors. Anybody has a clue about this problem. I read some things in the
 mailarchive, but that didn´t help me.
 
 This is the error:
 javax.servlet.ServletException: BeanUtils.populate
   at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
   at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor
 .java:779)
   at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:24
 6)
   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
   at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
 onFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
 Chain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
 java:260)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
 )
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
 java:191)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java
 :246)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
 )
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
 80)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv
 e.java:170)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
 72)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 okeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480
 )
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
 va:174)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv
 

RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-18 Thread Haseltine, Celeste
What do you mean by defining a site?  Some of my developers use Macromedia
Dreamweaver MX to create/template JSP pages/templates, though I prefer to
code my HTML by hand in Eclipse using various plug-ins.  But I create all of
our new J2EE projects on a test server using Macromedia's JRUN Server (which
is a JSP/Servlet and EJB application server product by Macromedia.), and
then place our created JSP pages into the file structure created by JRUN.

If you can clarify your question, I will try and get an answer for you.

Celeste  

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 4:12 AM
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


I really find this remark not constructive. I do not seek somebody who hates
this tool but on the contrary, somebody which uses it with Struts(voir
Tiles) and with which I can have exchanges. 
Marcomedia and Struts are not incompatible. 

-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 10:25
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


   I will wish to know if somebody uses Marcomedia Dreamweaver
 Ultradev4 to develop JSP by using  Struts tags +  
   Tiles components. 
   I use Tomcat4.0.1 with JSP1.2 and Servlet2.3 and I can 
 not define a
 site. 
   Thanks in advance
   Sandra

What about asking to Macromedia support?
After all, proprietary software is supposed to have 
a SO BETTER support!

Ah Ah !!!

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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

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

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




RE: Struts validating with beta2 not working for server-side validation

2002-12-18 Thread John . E . Gregg
I can contribute a tiny bit to this issue.  I had the same server-side
validation problem and tried to use the debugger on it.  I couldn't figure
out what version of the src to use with the struts 1.1b2 commons-validator
jar, so I just got the latest commons-validator src release and built it
myself.  Once I started using this new jar, validation works almost
correctly.  My simple example works, but the message key isn't resolved.
Instead I get ???en_US.cam.form1.error.key1???.  That's the right key
except for the prepended locale stuff.

I haven't looked at the source code carefully, but I think Bens' concern
isn't a problem.  The ActionErrors instance is passed to the initValidator()
method.  The validator then holds on to that ref and populates it as
necessary.  This is all just speculation, though.  I know the code works.

john


-Original Message-
From: Michelle Harris [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 6:51 AM
To: Struts Users Mailing List; Struts Users Mailing List;
[EMAIL PROTECTED]
Subject: RE: Struts validating with beta2 not working for server-side
validation


I too haven't been able to get server-side validation to work. Although I
have been using a different release. When I use validator-1.0 from
dwinterfeldt's site, using server side validation results in nothing being
validated as described in Bens Kwable message.
 
Thanks,
Michelle Harris

-Original Message- 
From: Kwabla, Bens [mailto:[EMAIL PROTECTED]] 
Sent: Mon 12/16/2002 07:13 
To: 'Struts Users Mailing List' 
Cc: 
Subject: Struts validating with beta2 not working for server-side
validation



Hi All!

When I switch from client-side to server-side validation, the
validation is
not effected. Now I called super.validate(..) in the validate(..)
method of
my formbean (derived from ValidatorForm) and logged out
errors.size() which
turned out to be 0, apparently indicating that my errors Object is
empty. I
further checked the ValidatorForm.validate(..) method of the latest
nightly
build and saw this code...

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

ServletContext application =
getServlet().getServletContext();
ActionErrors errors = new ActionErrors();

Validator validator =
Resources.initValidator(mapping.getAttribute(),
 this,
 application, request,
 errors, page);

try {
validatorResults = validator.validate();
} catch (ValidatorException e) {
log.error(e.getMessage(), e);
}
   

return errors;
}
What I don't understand is the errors Object is returned, but I
don't see
when it is filled with the validation results. Is it likely there is
a bug
in here?


-Ursprüngliche Nachricht-
Von: David Graham [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 13. Dezember 2002 18:43
An: [EMAIL PROTECTED]
Betreff: Re: Struts validating with beta2 not working


You need to tell us exactly what not working means.  Did you
replace all
the jars in WEB_INF/lib with the new ones for beta 2?

David


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




validate one field in multipage

2002-12-18 Thread david chan
Hi,
 I am using Struts-1.1b2 client side validator. And I
have a big form for multipage user input. One of the
field need to validated in page 1 and  2. But I don't
see how can I do that, or does anyone know how to do
it? Here is my config:
validator.xml:
field property=firstnm
depends=required,maxlength
page=1
arg0 key=prompt.firstnm/
...

in my JSP:
...
html:javascript formName=caseForm  page=1/
...

And this will lock the validation of firstnm field in
page 1 only, it won't show up in page 2.

Can I specify more than one page validation like this:

field property=firstnm
depends=required,maxlength
page=1,2
arg0 key=prompt.firstnm/


Thanks.
David

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

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




Internationlization Bug

2002-12-18 Thread JONATHAN PHILIP HOLLOWAY
Could somebody please tell me whether I can use the following:

message-resources parameter=applicationresources.properties/

to define my applicationresources.properties file (internationlisation file) under
Struts 1.1 or if I have to use the Struts 1.0 and web.xml way of specifying
the file:

init-param
  param-nameapplication/param-name
  param-valueApplicationResources.properties/param-value
/init-param

Many Thanks,
Jon.

*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*



RE: Internationlization Bug

2002-12-18 Thread Karr, David
The first one is closer, but you leave off the .properties part, and just leave the 
basename.  Make sure the case of the file matches.

 -Original Message-
 From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED]]
 
 Could somebody please tell me whether I can use the following:
 
 message-resources parameter=applicationresources.properties/
 
 to define my applicationresources.properties file 
 (internationlisation file) under
 Struts 1.1 or if I have to use the Struts 1.0 and web.xml way 
 of specifying
 the file:
 
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources.properties/param-value
 /init-param

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




Re: validate one field in multipage

2002-12-18 Thread Derek Lin
David,

I saw this email after I sent you my previous reply.  Anyway, like I said, I
am against the page attribute because it locks your form fields to certain
page.  My approach is to modify the validation code:
For example:
In Java:
public static boolean validateRequired(Object bean,
ValidatorAction va,
Field field,
ActionErrors errors,
HttpServletRequest request) {
if (field == null || bean == null) {
   return true;
}
String value = null;
if (isString(bean)) {
value = (String) bean;
} else {
value = ValidatorUtil.getValueAsString(bean,
field.getProperty());
}
if (value == null) {
return true;
}
value = value.trim();
if (GenericValidator.isBlankOrNull(value)) {
errors.add(field.getKey(),
   StrutsValidatorUtil.getActionError(request, va,
field));

return false;
} else {
return true;
}
}

In JavaScript:
 javascript![CDATA[
function validateRequired(form) {
var bValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
oRequired = new futurecargorequired();
for (x in oRequired) {
  if (form[oRequired[x][0]] != null) {
if ( (form[oRequired[x][0]].type == 'text' ||
 form[oRequired[x][0]].type == 'textarea' ||
 form[oRequired[x][0]].type == 'select-one' ||
 form[oRequired[x][0]].type == 'radio' ||
 form[oRequired[x][0]].type == 'password') 
(trim(form[oRequired[x][0]].value) == '')) {
if (i == 0) {
focusField = form[oRequired[x][0]];
}
fields[i++] = oRequired[x][1];
bValid = false;
}
  form[oRequired[x][0]].value = trim(form[oRequired[x][0]].value);
  }
}
if (fields.length  0) {
   focusField.focus();
   alert(fields.join('\n'));
}
return bValid;
}
...

Maybe you can rewrite them to make them more elegant.

-- Derek

- Original Message -
From: david chan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 12:01 PM
Subject: validate one field in multipage


 Hi,
  I am using Struts-1.1b2 client side validator. And I
 have a big form for multipage user input. One of the
 field need to validated in page 1 and  2. But I don't
 see how can I do that, or does anyone know how to do
 it? Here is my config:
 validator.xml:
 field property=firstnm
 depends=required,maxlength
 page=1
 arg0 key=prompt.firstnm/
 ...

 in my JSP:
 ...
 html:javascript formName=caseForm  page=1/
 ...

 And this will lock the validation of firstnm field in
 page 1 only, it won't show up in page 2.

 Can I specify more than one page validation like this:

 field property=firstnm
 depends=required,maxlength
 page=1,2
 arg0 key=prompt.firstnm/


 Thanks.
 David

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.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]




Where can I get good example for access DB with struts?

2002-12-18 Thread James HU
Hi,

I am learning struts, and I want to connect Access 2000 with struts 
application (simple), does anybody tell me where I can get good example for 
connect to any DB (Access, SQL Server ,Oracle, whatever) with struts? (pls 
give me the links)

Thanks a lot!!!

James





_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: Where can I get good example for access DB with struts?

2002-12-18 Thread Wendy Smoak
 I am learning struts, and I want to connect Access 2000 with struts 
 application (simple), does anybody tell me where I can get good example
for 
 connect to any DB (Access, SQL Server ,Oracle, whatever) with struts? (pls

 give me the links)

You don't connect to a database with Struts.  Once you figure out how to
connect to your database, you might use that code within your Action, but
that code doesn't have anything to do with Struts.

In my case, I've implemented the J2EE Data Access Object pattern and I use
code like this:

ProfileView profileView = 
   (ProfileView) session.getAttribute( profileView );

if ( profileView == null ) {
 DAOFactory udFactory = DAOFactory.getDAOFactory();
 ProfileViewDAO profileViewDAO = udFactory.getProfileViewDAO();
 profileView = profileViewDAO.read( profileKey );
}

All of the details about what kind of database I'm connecting to, the user
name, password, etc., are encapsulated in the DAO layer.

Now, this might be WAY overkill for your project, and you might put JDBC
code right into your Actions with no ill effects.  

I haven't heard good things about communicating with Access using Java, but
perhaps things have improved.  I've never tried it.  If you need a small
database to play with, I've used HyperSonic SQL in school projects with
great success.  Installation involves adding a .jar file to your classpath,
and then you can use JDBC to communicate with it.  You can find it on
SourceForge.

HTH!  Try the comp.lang.java.databases newsgroup if you need help getting up
and running with JDBC.

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



Digester - Config.xml - datasource

2002-12-18 Thread Mark
Hello

I'm wondering whether anyone has every used digester to read in properties
from config.xml and then addSetProperty to change a couple of values..

E.g.

data-source key=mykey jism=jism username=frank password=butcher /

Now I want to make a connection to pretty much the same db etc.. Has anyone
tried. 

Digester newdatasource = new Digester();
newdatasource . addObjectCreate(datasources/datasource, DataSource);
newdatasource 
.AddSetProperty(struts-config/datasources/datasource/setproperty,key,my
key²);
newdatasource 
.AddSetProperty(struts-config/datasources/datasource/setproperty,username
,ricky²);
newdatasource 
.AddSetProperty(struts-config/datasources/datasource/setproperty,password
,bianca²);

//Some means of reading in the properties that I don¹t want to change, but I
haven¹t found yet.. Etc

Javax.sql.DataSource ds = getDatasource(³mykey²);

Will this work? 
Has anyone done this.,

Many thanks in advance and seasonal felicitations




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




Re: Struts Frames

2002-12-18 Thread Kamal_Konduru
You can specify the target in the form of the login page frame. so the 
result will be displayed on the other frame.






Savantraj, Chennamakal Subramanian [EMAIL PROTECTED]
12/18/2002 01:50 AM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc: (bcc: Kamal Konduru/AFS/CAPITAL)
Subject:Struts  Frames


Hi ,

I have a Login page which is a single frame and after successfull login
should go to the 
Application home page which is 2 Frame. How to Achieve this ? Would it be
sufficient if I just call
another 2 different actions in src attribute of the frame?

Thanks in advance

Regards
Savant

---
This email is confidential and intended only for the use of the individual
or entity named above and may contain information that is privileged. If 
you
are not the intended recipient, you are notified that any dissemination,
distribution or copying of this email is strictly prohibited. If you have
received this email in error, please notify us immediately by return email
or telephone and destroy the original message. Thank you. - This mail is
sent via Sony Asia Pacific Mail Gateway. 
---


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






Re: Where can I get good example for access DB with struts?

2002-12-18 Thread Kevin . Bedell


My new book Struts Kick Start contains a database-driven sample app and
includes all source code.

http://www.amazon.com/exec/obidos/tg/detail/-/0672324725/ref=pm_dp_ln_b_1/104-2271529-7143101?v=glances=books

It also comes with mysql and struts (and a bunch of other apps) on the
CD-ROM.

Let me know if you have questions -
Kevin
http://www.strutskickstart.com





   

   

 James HUTo: [EMAIL PROTECTED]  

 [EMAIL PROTECTED]cc: (bcc: Kevin 
Bedell/Systems/USHO/SunLife)
 12/18/2002 05:01 PM   Subject:  Where can I get good example 
for access DB with struts?   
 Please respond to Struts 

 Users Mailing List   

   

   





Hi,

I am learning struts, and I want to connect Access 2000 with struts
application (simple), does anybody tell me where I can get good example for

connect to any DB (Access, SQL Server ,Oracle, whatever) with struts? (pls
give me the links)

Thanks a lot!!!

James





_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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





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




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




struts-el:submit question

2002-12-18 Thread Dan Tran
Hi,

I have this code

snippet
html-el:submit value=${action} /
/snippet

The sumbut button lable shows as ${action}, no translation 

What is wrong with my code?

Thanks

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




LDAP+Websphere Roles+struts

2002-12-18 Thread Jitendra Singh
hi all,
newbie here .. :)
Can anyone tell me where to find some reference material on how to use LDAP
server for authentication and Websphere roles for authorization
simultaneously with struts.

Thanks in advance

Jitendra

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




pagination in struts

2002-12-18 Thread cnyinhua
Hi, all
Has somebody have the experience of the pagination?
Does the struts support this feature?
I hope the script in the display jsp can be as little as possible.
Any help will welcome especially some example code.
 
 
Best regard!
 
Frank
Software Engineer
Bleum Incorporated
9E East Building, Hi-Tech King World
668 East Beijing Road.
Shanghai, P.R.C.21
Phone: (8621) 5308 1196
http:// www.bleum.com
 



Form Errors (Newbie)

2002-12-18 Thread Suresh Addagalla
Title: Message



Hi,

I 
would like to know whether the following is possible to implement with 
Struts.

I 
display a form for creating, say, a Service. The user fills in a form. When the 
form is submitted, the Validator performs the validations with no errors. Now 
the control comes to the execute method. In this method, I find that the 
ServiceName is already present in DB. Now I need to display the "input 
form" indicating along side the field that "this Service already exists, give a 
different name".

Although it seems possible, the doubt I have is as follows. The input 
form might have been generated based on a complex logic:..s performed in 
the JSP. Now when Action encounters an error, will it be able to display the 
input form in "exactly the same" state? Which means that if the input form 
contains a lot of fields with specific values, do I see the same values when it 
is displayed again with some errors?

Thanks 
for your time.

Suresh
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Form Errors (Newbie)

2002-12-18 Thread Suresh Addagalla
Hi,

I would like to know whether the following is possible to implement with
Struts.

I display a form for creating, say, a Service. The user fills in a form.
When the form is submitted, the Validator performs the validations with
no errors. Now the control comes to the execute method. In this method,
I find that the Service Name is already present in DB. Now I need to
display the input form indicating along side the field that this
Service already exists, give a different name.

Although it seems possible, the doubt I have is as follows. The input
form might have been generated based on a complex logic:..s performed
in the JSP. Now when Action encounters an error, will it be able to
display the input form in exactly the same state? Which means that if
the input form contains a lot of fields with specific values, do I see
the same values when it is displayed again with some errors?

Thanks for your time.

Suresh


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


form action doubt

2002-12-18 Thread Mohammed_Rafeeq
hi  all,

 i've used   html:form action=/screenLabelType in my jsp when i try to
execute  the jsp i get the exception
 
org.apache.jasper.JasperException: Cannot find ActionMappings or
ActionFormBeans collection
 
-[Mohammed_Rafeeq] 
 
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**



html tablib

2002-12-18 Thread usha
Hi

can anybody tell me how the struts-html tld's text tag works.especially 
setting the property attribute for the texttag.

thanks
usha


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



Re: Struts validating with beta2 not working for server-side validation

2002-12-18 Thread Rob Leland
I haven't been following this thread, but whenever a bug is discovered
try downlading a recient nightly build. A number of bugs have been fixed
since 1.1b2.

-Rob 


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



Sample multipage form

2002-12-18 Thread Joao Araujo
Hi all,

	Where can I get a sample of multipage form.?
	Thanks in advance

Joao, 


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



Bean:message question

2002-12-18 Thread Joao Araujo
Hi,

	Is there a way to pass a bean:message key=...  as an argument to 
another bean message?

	something like bean:message key=xx arg0=bean:message key='xxx' /  /


	Obvious the above does not work. But I wish something like this.


Joao, 


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



RE: form action doubt

2002-12-18 Thread Shabbir Khadir Mohammed
Hi 
MAKE SURE THAT THE action mapping  from bean are mentioned in struts-config.xml file
As below:

**

!-- == Form Bean Definitions === --
  form-beans

!-- Logon form bean --
form-bean  name=logonForm
   type=METION WHICH ACTION FROM BEAN U WANT TO INVOKE/
  /form-beans
!-- == Action Mapping Definitions == --
  action-mappings
!-- Process a screenLabelType --
actionpath=/screenLabelType
   type=METION WHICH ACTION BEAN U WANT TO INVOKE
  forward name=success  path=/METIONESOMEJSPFILE HERE/
/action
 /action-mappings
***


Let me know the result.!!!

Regards
Shabbir



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 11:20 AM
To: [EMAIL PROTECTED]
Subject: form action doubt


hi  all,

 i've used   html:form action=/screenLabelType in my jsp when i try to
execute  the jsp i get the exception
 
org.apache.jasper.JasperException: Cannot find ActionMappings or
ActionFormBeans collection
 
-[Mohammed_Rafeeq] 
 
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Re: Bean:message question

2002-12-18 Thread Dan Tran
bean:define id=msg1 
bean:message key=yours.msg1
/bean:define

bean:message key=yours.msg2 arg0=%=msg1%  /

just a guess

-D

- Original Message -
From: Joao Araujo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 10:33 PM
Subject: Bean:message question


 Hi,

 Is there a way to pass a bean:message key=...  as an argument to
 another bean message?

 something like bean:message key=xx arg0=bean:message key='xxx' /
/


 Obvious the above does not work. But I wish something like this.


 Joao,


 --
 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: form action doubt

2002-12-18 Thread Loren Hall
I'm pretty new to this, but it's possible your struts-config isn't being
read fully because of an error.  I received the similar error:

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

after adding a data source element to the struts-config.xml which tomcat
couldn't successfully initialize : (  Without that element the .jsp page
worked just fine.

hope that helps,

Loren

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 9:50 PM
To: [EMAIL PROTECTED]
Subject: form action doubt


hi  all,

 i've used   html:form action=/screenLabelType in my jsp when i try to
execute  the jsp i get the exception

org.apache.jasper.JasperException: Cannot find ActionMappings or
ActionFormBeans collection

-[Mohammed_Rafeeq]

**
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**



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