Re: I would like to iterate though a Collection of beans and needs some help?

2002-10-16 Thread Howard Miller

It all depends on the data structure in which you store your beans. If you store the 
beans in a collection object of some sort then logic:iterate works: that's what is 
does!


On 15 Oct 2002 at 13:18, Matt Vredenburg wrote:

 I have a collection of beans (a bean for each row within the database) and 
 would like some guidance on how to use the Iterate tag to walk through 
 them.
 
 Or more yet, can it be done using Iterate tag?
 
 An example would be great!
 
 Thanks,
 
 Matt
 



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




Fw: document.forms[0].submit() not working

2002-10-16 Thread Amit Khurana


- Original Message - 
From: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Sent: Wednesday, October 16, 2002 12:21 PM
Subject: Fwd: document.forms[0].submit() not working


 

 [EMAIL PROTECTED] wrote: 

  Date: Tue, 15 Oct 2002 07:12:33 -0700 (PDT)
  From: 
  Subject: document.forms[0].submit() not working
  To: [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]


  Hi 

  I have just started using the struts. I am having  a multi form with three pages. 
First is having an image link to second page and second is having an image link to 3rd 
and finally 3rd is having the submit button.To retrieve the first page data i have 
written the code given below but I am getting the javascript error. Even though call 
to other functions like document.forms[0].reset() is working fine. Can sb tell me what 
is the cause.

  html:form action=/addPayee 

  a href='javascript:document.forms[0].submit();'
 html:img src=graphics/continue.gif width=67 height=15/
 /a

  /html:form

  Can some one suggest what is the better way to implement such multi page form in the 
struts. Thanks in advance.

  amit khurana





--
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos,  more
  faith.yahoo.com





Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com



RE: document.forms[0].submit() not working

2002-10-16 Thread Andrew Hill

Do you have any fields or buttons etc... on the form that have the name or
id submit.
If so these will shadow (hide) the submit function of the form object and
thus attempting to call form.submit() will give you an error as you are now
attempting to call an object that is not of the function type (functions in
javascript are objects to and exist as properties of their parent object in
the same way as other objects).

-Original Message-
From: Amit Khurana [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 14:59
To: [EMAIL PROTECTED]
Subject: Fw: document.forms[0].submit() not working



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 12:21 PM
Subject: Fwd: document.forms[0].submit() not working




 [EMAIL PROTECTED] wrote:

  Date: Tue, 15 Oct 2002 07:12:33 -0700 (PDT)
  From:
  Subject: document.forms[0].submit() not working
  To: [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]


  Hi

  I have just started using the struts. I am having  a multi form with three
pages. First is having an image link to second page and second is having an
image link to 3rd and finally 3rd is having the submit button.To retrieve
the first page data i have written the code given below but I am getting the
javascript error. Even though call to other functions like
document.forms[0].reset() is working fine. Can sb tell me what is the cause.

  html:form action=/addPayee

  a href='javascript:document.forms[0].submit();'
 html:img src=graphics/continue.gif width=67 height=15/
 /a

  /html:form

  Can some one suggest what is the better way to implement such multi page
form in the struts. Thanks in advance.

  amit khurana






--
  Do you Yahoo!?
  Faith Hill - Exclusive Performances, Videos,  more
  faith.yahoo.com






Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


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




Ending a session

2002-10-16 Thread Marc AMIR-TAHMASSEB

Hi everybody,

Is there a way to end a user session after a action ?
Typically, i have in my page a Close button that disply the login 
form. But actualy if i use the back button of the browser, i come back 
to the page where the close were. Then i can continue like if the 
session wasn't closed...

thank's

-- 
Marc AMIR-TAHMASSEB
[EMAIL PROTECTED]



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




Re: Users clicking twice

2002-10-16 Thread BERNARDO ANTONIO BUFFA

Hi,

I solve this problem with some client-side scripting. In few words, there
are a mutex flag for each logical groups of links.
After I encapsulate this on a JSP tag.

Attached the code.
good luck
Bernardo



 Hi,

 We have a problem with users clicking two links on a page, and our app
 falls over.

 The user clicks a link on the first page, then whilst that page is being
 processed by the struts servlet, they click another on the first page.

 How has everyone else got around this problem?

 ta,

 Tim.





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





FormNavigationLinkTag.java
Description: Binary data

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


options collection

2002-10-16 Thread Marcus Biel


Still same problem. I want to make a dynamic select box.
Now I've got:
html:select property=werkAuswahl size=1
  html:options collection=%=werkeList % property=mo/
/html:select


Compiler throws:

An error occurred at line: 26 in the jsp file: /index.jsp

Generated servlet error:
C:\opt\tomcat4.0.4\work\Standalone\localhost\group\index$jsp.java:120:
Incompatible type for method. Can't convert java.util.ArrayList to
java.lang.String.
 
_jspx_th_html_options_0.setCollection(werkeList );


Can't convert java.util.ArrayList to java.lang.String.

Do I need a toString() Method ???
And: How does the Compiler know that each mo property is in a
different bean ?
Should I make an ArrayList just filled with mo properties (Strings) ?

If so, do I still need a toString Method ?


thx,

Marcus

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




Re: [OT] RE: Struts 1.1 Release

2002-10-16 Thread Emmanuel Boudrant

Perhaps Big Brother can autoreply mail contains STRUTS 1.1 RELEASE DATE ;)



 --- micael [EMAIL PROTECTED] a écrit :  Anyone wonder why all of a sudden 
this question
becomes so popular?
 
 At 12:47 AM 10/16/2002 -0400, you wrote:
 It wouldn't matter if it was plastered on the main struts page (WITH
 BLINKING TEXT), someone would still askLOL.
 
 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org
 
 
 
 
   -Original Message-
   From: Andrew Hill [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 16, 2002 12:46 AM
   To: Struts Users Mailing List
   Subject: RE: Struts 1.1 Release
  
  
   Ye gods!
   Here we go again:
   snip
   The 12th of April 2156 at 15:28 in the afternoon.
  
   Or perhaps even sooner if its ready before then... ;-)
   /snip
  
   Hey Craig? Any chance we can get my more specific answer for this question
   into the FAQ?
  
   -Original Message-
   From: Bachan Sadanandan [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 16, 2002 05:54
   To: Struts Users Mailing List
   Subject: Struts 1.1 Release
  
  
   Hi all,
   Any idea when Struts 1.1 would be ready for Production .???
  
   Thanks !
   Bachan
  
   --
   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]
 
 Micael
 
 ---
 
 This electronic mail  transmission and any accompanying documents contain 
 information belonging to the sender which may be confidential and legally 
 privileged.  This information is intended only for the use of the 
 individual or entity to whom this electronic mail transmission was sent as 
 indicated above. If you are not the intended recipient, any disclosure, 
 copying, distribution, or action taken in reliance on the contents of the 
 information contained in this transmission is strictly prohibited.  If you 
 have received this transmission in error, please delete the message.  Thank you 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  

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

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




Is Struts full J2EE compliant?

2002-10-16 Thread Gilles . Vandaele


Hi list,

Is Struts full J2EE compliant?
Can I find confirmation on this somewhere?
And by the way, where can I find a short article who summary the J2EE
specification.

Thanks.


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


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




RequestProcessor path error with Tiles - HELP!

2002-10-16 Thread Heligon Sandra


I have overriden the processPreprocess method of the
TilesRequestProcess,
but it dosen't work:

In Struts-config.xml:

forward name=welcome path=/welcome.do /
forward name=login path=/login.do /

action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=site.login.page
scope=request
validate=false/

action path=/login
name=LoginForm
validate=true

type=xms.clients.webappli.common.struts.controller.actions.LoginAction
input=site.login.page
scope=request
forward name=success path=site.atm.calls.status.page /
/action   

In MyRequestProcessor calss:

protected boolean processPreprocess(HttpServletRequest request,
HttpServletResponse response)
{   
  HttpSession session = request.getSession();

  try{
 
String path = processPath(request, response);
if ( !path.equals((String) /login) )
{

   User userInfo =
(User)session.getAttribute(Constants.USER_KEY);

   if ( userInfo == null ||
  (userInfo != null  userInfo.getSessionId() == 0) )
   {
 processForwardConfig(request,
response,appConfig.findForwardConfig(login));
   }
}
}
   
catch (ServletException ex)
{
}
catch (IOException ex)
{
}
return true;
}

If userInfo == null, the call of the processForwardConfig works and
then we pass again in the processPreprocess
and return true.
Then the following error javax.servlet.ServletException: Path
site.login.page does not start with a / character
is displayed but the login page is displayed.
But if  userInfo != null then the return true is called but the
login page is not displayed.
And the error javax.servlet.ServletException: Path site.login.page
does not start with a / character is displayed.
After each login I must exit the JBuilder and restart it in order
that userInfo = null.

What is the problem ?
Thanks a lot for your help,
Sandra

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




RE: [OT] RE: Struts 1.1 Release

2002-10-16 Thread Andrew Hill

Hehe. Seems Im not the only one with this idea. :-)
Just realised my reply on this only went to James so heres a copy to second
Emmanuel's motion:

snip
We need a listbot to autoreply to any such message and filter it from
hitting the list.
Also this listbot should have a 'personality' modelled on Dogbert rather
than just replying with the FAQ contents everytime ;-)
Once in place we could use it to filter other things too... (ie: messages
from Mark that it calculates have been sent before he has had time for his
morning coffee, etc...)
/snip

-Original Message-
From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 15:51
To: Struts Users Mailing List
Subject: Re: [OT] RE: Struts 1.1 Release


Perhaps Big Brother can autoreply mail contains STRUTS 1.1 RELEASE DATE ;)



 --- micael [EMAIL PROTECTED] a écrit :  Anyone wonder why all of a
sudden this question
becomes so popular?

 At 12:47 AM 10/16/2002 -0400, you wrote:
 It wouldn't matter if it was plastered on the main struts page (WITH
 BLINKING TEXT), someone would still askLOL.
 
 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org
 
 
 
 
   -Original Message-
   From: Andrew Hill [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 16, 2002 12:46 AM
   To: Struts Users Mailing List
   Subject: RE: Struts 1.1 Release
  
  
   Ye gods!
   Here we go again:
   snip
   The 12th of April 2156 at 15:28 in the afternoon.
  
   Or perhaps even sooner if its ready before then... ;-)
   /snip
  
   Hey Craig? Any chance we can get my more specific answer for this
question
   into the FAQ?
  
   -Original Message-
   From: Bachan Sadanandan [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 16, 2002 05:54
   To: Struts Users Mailing List
   Subject: Struts 1.1 Release
  
  
   Hi all,
   Any idea when Struts 1.1 would be ready for Production .???
  
   Thanks !
   Bachan
  
   --
   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]

 Micael

 ---

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the message.
Thank you



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


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

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


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




RE: Validating Nested Form

2002-10-16 Thread Sriram Hariharan

That goes in as the last option if struts doesnt support validating 
'dynamically generated' fields. But guess it goes well with one 
nested:iterate- http://home.earthlink.net/~dwinterfeldt/revision.html 
(Update 9/25/2001).

My application has two nested iterates- nested:iterate property=parent 
nested:iterate property=child

So I feel I've no other option other than working ovver 'dynamically 
generated' JavaScript.

Thsnks, SRIRAM


From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Validating Nested Form
Date: Tue, 15 Oct 2002 14:45:03 -0400

I don’t recall Struts supporting ‘dynamically generated’ fields.

Have you tried your own ‘dynamically generated’ JavaScript?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




  -Original Message-
  From: Sriram Hariharan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 12:52 PM
  To: [EMAIL PROTECTED]
  Subject: Validating Nested Form
 
 
  Hi,
 
  Has anyone tried validating nester form using, David Winterfeldt's
  validation framework 
(http://home.earthlink.net/~dwinterfeldt/index.html)?
 
  How to validate the fields which are dynamically generated?
 
  Is there anyother way to validate dynamically generated fields if this
  doesnt provide a way to do.
 
  Thanking in advance,
 
  SRIRAM.
 
 
 
 
  _
  Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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


_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp


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




Re: [OT] WAS Connection Pool

2002-10-16 Thread Adolfo Miguelez

Yes Craig, that one is the first idea, but you know about the partial 
suppport that IBM and BEA provide. Their policy is attempt to bring the 
customer to their own products rather than solving integration problems with 
other companies.

I asked just in case someone run in the same issue, but I agree it is not 
the right forum for it. However this forum is so dynamic that I thought it 
would be worth dropping a message.

Sorry anyway,

Adolfo.

From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] WAS Connection Pool
Date: Tue, 15 Oct 2002 09:45:06 -0700 (PDT)



On Tue, 15 Oct 2002, Adolfo Miguelez wrote:

  Date: Tue, 15 Oct 2002 16:21:24 +
  From: Adolfo Miguelez [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [OT] WAS Connection Pool
 
  Firsly, thanks for your response:
 
  Yeah, I knew the issue appears also for WL. I have seem the problem 
quite
  complained in the web, but no the solution.
 
  Probably I will need to write and read.
 
  My employer want to use a pool managed by WAS itself. Preferably WAS 
pool,
  but it seems not possible. Is it possible to configure a different pool 
for
  WAS? e.g. Oracle pool? Have you tried it for WL?
 
  Any pointer to some way to proceed would be kindly appreciated. 
Absolutely
  lost, how to bind the OracleConnectionCacheImpl to JNDI and configure 
it, if
  possible, to WAS.
 

Anything like this would have to be documented by Oracle and BEA - you
might try reviewing their documentation, and/or asking their technical
support folks for help.

  Adolfo.

Craig


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


_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp


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




Re: Is Struts full J2EE compliant?

2002-10-16 Thread Thomas Eichberger

I don't understand the question.

Struts is *just* a small framework of servlets and tag libraries. So of 
course it works in J2EE web applications.

So in this sense it is compliant to the J2EE specification.
But of course it's not a J2EE application server...


Thomas




At 09:57 16.10.2002 +0200, [EMAIL PROTECTED] wrote:

Hi list,

Is Struts full J2EE compliant?
Can I find confirmation on this somewhere?
And by the way, where can I find a short article who summary the J2EE
specification.

Thanks.


Gilles Vandaele
0498 52 64 12
[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: Sub Application ?

2002-10-16 Thread Emmanuel Boudrant

Yes recently, I didn't found any topic about sub app.

what I want to know is : 
Why sub-app ?
How to configure (Is there an example) ?

Thx,
-emmanuel

 --- Eddie Bush [EMAIL PROTECTED] a écrit :  Recently?  What questions did you have 
that
weren't answered there?  If 
 you haven't looked recently look again - if you have then just ask your 
 questions.
 
 Emmanuel Boudrant wrote:
 
 Yes ;(
 
  --- Eddie Bush [EMAIL PROTECTED] a écrit :  Have you tried:
 
 http://jakarta.apache.org/struts/userGuide/index.html
 
 Emmanuel Boudrant wrote:
 
 
 -- 
 Eddie Bush
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  

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

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




struts collection - layout with ArrayList returning from an bean

2002-10-16 Thread Heiko . Mesech . extern

hi,

in my struts-webapplication i'm using an data-bean, which returns an
ArrayList
for every columns of an sql statement:

public List getColumn1( )

returns an List of String objects 



i'm trying to use the collection-tag to display the different columns of the
sql statement:

jsp:useBean id=result scope=request
class=com.hvbsystems.sg.marvin.obj.ResultBean /

layout:collection name=result styleClass=ARRAY 

layout:collectionItem title=Column1 property=column1 /

/layout:collection


it doesn't work ;-(

the output looks like:

[JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB]

it should looks like a table:

JAVAWEB
JAVAWEB
JAVAWEB
JAVAWEB
JAVAWEB



hope for help ;-)

many thank's


Heiko Mesech



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




Re: Sub Application ?

2002-10-16 Thread Gemes Tibor

2002. október 16. 11:01 dátummal Emmanuel Boudrant ezt írtad:
 Yes recently, I didn't found any topic about sub app.

 what I want to know is :
 Why sub-app ?
 How to configure (Is there an example) ?

http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_config_modules


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




Re: Sub Application ?

2002-10-16 Thread Emmanuel Boudrant

Thx a lot

-emmanuel

 --- Gemes Tibor [EMAIL PROTECTED] a écrit :  2002. október 16. 11:01 dátummal 
Emmanuel Boudrant
ezt írtad:
  Yes recently, I didn't found any topic about sub app.
 
  what I want to know is :
  Why sub-app ?
  How to configure (Is there an example) ?
 
 http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_config_modules
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  

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

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




ValidatorPlugin not initializing

2002-10-16 Thread Bas Passon

Hello,

I'm using struts 1.1b2 with tomcat 4.1.12 and trying to use the validator
in combination with dynaforms. I noticed the initialization step of the
validator plugin does not show any rules being read in the logs and no
formsets are read either. It does however say:

Oct 16, 2002 10:50:36 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Oct 16, 2002 10:50:36 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'

But that is all that is written in the logs.

When I deploy the struts-validator.war example webapp these rules and
formsets are listed. The logs then have statements like:

Oct 16, 2002 10:14:56 AM org.apache.commons.validator.ValidatorResources
put
INFO: Adding FormSet 'FormSet: language=null  country=null  variant=null

which I would expect for my own set of forms as wel.

I suppose I have a bug in my configuration, but I can't find it. Can
anyone tell me what I am doing wrong? I listed sections from my
configuration below.

thnx,

Bas

+ struts-config.xml ++

*** snip ***

form-beans
  !--  DEFINITION OF LOGINFORM +++ --
  form-bean
   name=loginForm
   dynamic=true
   type=org.apache.struts.validator.DynaValidatorForm
  
form-property name=username type=java.lang.String/
form-property name=password type=java.lang.String/
  /form-bean
/form-beans

action-mappings
  action
 path=/login
 type=ac.linc.pdp.actions.LoginAction
 name=loginForm
 scope=request
 validate=true
 input=/login.jsp
  
forward name=success path=/main.jsp/
  /action

/action-mappings

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

* snip *

+ struts-config.xml ++

+ validation.xml +

form-validation
   formset
  form name=loginForm
 field property=username depends=required
arg0   key=label.username/
 /field
 field property=password depends=required
arg0   key=label.password/
 /field
  /form
   /formset
/form-validation

+ validation.xml +

---
Bas Passon
First8 - http://www.first8.nl
Email: [EMAIL PROTECTED]
Phone: +31 (0)24 348 38 77
Fax:   +31 (0)24 348 35 71


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




Re: struts collection - layout with ArrayList returning from an bean

2002-10-16 Thread Jean-Noel Ribette

Hi,

If you're getting the list by the getColumn1 method, the code should be:

jsp:useBean id=result scope=request 
class=com.hvbsystems.sg.marvin.obj.ResultBean /

layout:collection name=result property=column1 styleClass=ARRAY 
id=column1
 layout:collectionItem title=Column1 name=column1 /
/layout:collection

struts-layout also allows to iterate over two collection, so you will be 
able to do:

layout:collection name=result property=column1 name2=result 
property2=column2 styleClass=ARRAY id=column1 id2=column2
 layout:collectionItem title=Column1 name=column1 /
 layout:collectionItem title=Column2 name=column2 /
/layout:collection
However it is not possible to iterate over more than 2 collections, and you 
may have to change your data model to display it easily without using 
scriptlet.

Regards,

Jean-Noel

At 11:16 16/10/2002, you wrote:
hi,

in my struts-webapplication i'm using an data-bean, which returns an
ArrayList
for every columns of an sql statement:

public List getColumn1( )

returns an List of String objects



i'm trying to use the collection-tag to display the different columns of the
sql statement:

jsp:useBean id=result scope=request
class=com.hvbsystems.sg.marvin.obj.ResultBean /

layout:collection name=result styleClass=ARRAY 

layout:collectionItem title=Column1 property=column1 /

/layout:collection


it doesn't work ;-(

the output looks like:

[JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB]

it should looks like a table:

JAVAWEB
JAVAWEB
JAVAWEB
JAVAWEB
JAVAWEB



hope for help ;-)

many thank's


 Heiko Mesech



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


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




Search example of JSP pager tag with table/logic:iterate tags

2002-10-16 Thread Heligon Sandra


I am searching an example of pagination with table/logic:iterate
tags.
I read the documentation about JSP pager tag
(http://jsptags.com/tags/navigation/pager/) 
but I don't understand well how use it with my JSP:

table width=100% border=1 cellpadding=0 cellspacing=0
bordercolor=#FF

%-- Title for the columns of the table --%
tr bgcolor=#FFCC00
th align=leftbean:message key=status.id//th
th align=leftbean:message key=status.service//th
/tr

%-- List of  calls --%
logic:iterate id=myCollectionElement name=list
type=com.compagny.call
tr bgcolor=#CC
  td
html:link href=id.do
bean:write name=myCollectionElement property=id/
/html:link
  /td

  td
bean:write name=myCollectionElement property=service/
  /td
/tr
/logic:iterate
/table

Has someone an exemple of JSP pager tag with Struts?
Thanks for your help in advance,



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




Generic Data Source

2002-10-16 Thread Kevin Viet


GenericDataSource Question

I need to set the driver of a generic datasource
the only method to configure the driver is setDriverClass(String
driverCLass) 

I want a method like setDriver(java.sql.Driver driver)

The only way to handle this is to extend the GenericDataSource class 
and add this method ... but now I need to redefine the GenericDataSource
instantiation in order to instantiate my Implementation,
have an idea ?

(I imagine that this is done into the ActionServlet) ... 

-- 
Kevin Viet [EMAIL PROTECTED]
ActiVia Networks




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




RE: Search example of JSP pager tag with table/logic:iterate tags

2002-10-16 Thread Divakar Satyanarayan

Visit the below link for an example on paging using struts 

  http://www.javanovic.com/articles/paging.html


Regards,
Divakar

 -Original Message-
 From: Heligon Sandra [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 3:15 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  Search example of JSP pager tag with table/logic:iterate
 tags
 Importance:   High
 
 
   I am searching an example of pagination with table/logic:iterate
 tags.
   I read the documentation about JSP pager tag
 (http://jsptags.com/tags/navigation/pager/) 
   but I don't understand well how use it with my JSP:
 
   table width=100% border=1 cellpadding=0 cellspacing=0
 bordercolor=#FF
 
   %-- Title for the columns of the table --%
   tr bgcolor=#FFCC00
   th align=leftbean:message key=status.id//th
   th align=leftbean:message key=status.service//th
   /tr
 
   %-- List of  calls --%
   logic:iterate id=myCollectionElement name=list
 type=com.compagny.call
   tr bgcolor=#CC
 td
   html:link href=id.do
   bean:write name=myCollectionElement property=id/
   /html:link
 /td
 
 td
   bean:write name=myCollectionElement property=service/
 /td
   /tr
   /logic:iterate
   /table
 
   Has someone an exemple of JSP pager tag with Struts?
   Thanks for your help in advance,
 
   
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



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




dynamic select box

2002-10-16 Thread Marcus Biel

Hi,

I am still trying to get this dynamic select box created.

Well, now I had a CLOSE look at the Struts documentation about
html:options tag.

The collection attribute is interpreted as the name of a JSP bean, in
some scope, that itself represents a collection of individual beans, one
per option value to be rendered. 

If the collection attribute is not specified:
The collection of values actually selected depends on the presence or
absence of the name and property attributes. The following combinations
are allowed:

·   Only name is specified - The value of this attribute is the name
of a
JSP bean in some scope that is the collection. 

·   Only property is specified - The value of this attribute is the
name
of a property of the ActionForm bean associated with our form, which
will return the collection. 

·   Both name and property are specified - The value of the name
attribute
identifies a JSP bean in some scope. The value of the property
attribute
is the name of some property of that bean which will return the
collection. 

I think that means that I will need:


a bean, that is a collection.
how can a bean be a collection ???
or an ActionForm, that contains an getArrayList method
how can I use that ActionFor without using form
action=getWerke.do, that only works, when someone hit the submit
button, even though the
select box must be created BEFORE someone hits this button.
or using a Bean, that gots a getArrayList method.

I tried the last possibility, as I don't know how to do the other cases.
I wrote a Bean that returns the ArrayList, then I wrote this in my jsp
html:select property=werkAuswahl size=1
  html:options name=WerkeListBean property=werkeList/
/html:select

And got the following error:
javax.servlet.ServletException: Cannot find bean under name
org.apache.struts.taglib.html.BEAN

I am desperate!!! Anyone, plz help me out how to get this damn dynamical
select box created!

bye, 
Marcus

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




RE: What it will take for a 1.1 release... (was RE: Struts 1.1 Release)

2002-10-16 Thread Kosh . Podder

Guys,

Before I say anything more, I'd just like to say that it's great to see the discussion 
taking place here... 

From: Joe Germuska [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 00:35
To: Struts Users Mailing List
Subject: What it will take for a 1.1 release... (was RE: Struts 1.1
Release)


Struts committers are volunteers.  That is, they get no compensation 
for their work on Struts.  Therefore, is it so surprising that their 
primary motivation is pride in their work?  This means that they are 
in no hurry to release too early.

I think this is well understood and appreciated by all, and I certainly have no 
problem with this. I keep beating myself up about having no time to contribute 
anything - even writing my initial email seemed to take too much time out of my 
schedule - so the effort and work undertaken by all contributors is admired.

Also, as volunteers, they are likely to devote their time to the most 
interesting problems.  It appears that few of them find the formal 
management of the Struts development process to be a very interesting 
problem.

This is a bigger open-ended question than the immediate discussion here that I'm sure 
will have many different perspectives and opinions, but I'll just put it here so that 
people can offer their thoughts: how far can open source projects based on the work of 
volunteers, or more specifically (Jakarta/XML/etc) Apache projects go towards 
following the formalised development process, e.g. as we have to follow for our 
applications in our strictly controlled environments? What are the practical barriers 
to this:| e.g. dependence on lack of people willing and/or able to take on this boring 
stuff. How does this affect take up of such products in large organisations - e.g. off 
the top of my head, I can think of about 10 projects in my immediate area, leaving 
aside the many others here, that would I could get to start adopting Struts 1.1 if I 
could make it available to them.

That said, Struts components like Tiles, Validator, and most 
recently, the EL version of the tag libraries were all dreamed up by 
someone who saw a need, and they were adopted into Struts because 
those people committed their own energy to making something happen.

Perhaps what Struts needs are some people who are interested in 
managing the development process enough that they'll donate time and 
energy to it.  Or perhaps there will be a company that finds Struts 
promising enough that it will endorse some of its staff spending time 
and energy while on the job?

I think you've identified one of the requirements, but as we've all noted, the reality 
dictates that this will be very difficult. The latter part is another battle that 
we're fighting about how to allow our developers to contribute components we write as 
part of our development of our applications back into open source projects without 
breaking our policies and raising concerns on intellectual property rights.

I don't know of any official versioning policy besides the vision of 
the committers.  Perhaps they would concede that it would be OK to 
release Struts 1.1 sooner with the understanding that there might be 
a Struts 1.1.1 later.   Then again, they probably think that anyway, 
and they just believe that Struts 1.1 isn't ready yet.

It would be very useful to get some clarification of what the current take on this 
is...

The Release Plan page on the Jakarta site lists the bugs which are 
officially targeted for a 1.1 release.  However, it's pretty out of 
date.  Perhaps turning this into a living document would be a good 
volunteer opportunity?

I think this is a good idea - would be somewhere where people could just go and know 
that they an clear and accurate picture of the current release status, which they can 
take back into their discussions. Do others agree, and that this is possible and 
practical?

It turns out that only two are actually new and open (10537, 7353), 
plus one which was reassigned to Commons Validator and switched to an 
enhancement.  (10584)  (details below, since I was taking notes in my 
email client...)

 From that, you'd think a 1.1 release was just around the corner!! 
However, it's not going to be that easy.  My Bugzilla query turns up 
39 non-Enhancement open bugs against Struts.  Some of these are very 
old and may no longer be relevant.  (For example, a few refer to the 
original File Upload piece, while Struts now uses commons-fileupload.)

Maybe the first step would be to draft a release plan, even if it had 
no specific date on it, if only to track the bugs which were 
considered critical fixes for a full release.  A question for 
committers: is this something you feel you should draft?  Or would 
you accept a draft from a volunteer?  (For the next edition of the 
release plan that gets posted on the site, I'd suggesting putting 
HTML links straight into bugzilla for each issue, to make it easier 
for people to track things.)

Another significant issue will 

Example App

2002-10-16 Thread Stephen . Thompson

Hello all,

Does anyone have a simple struts app that makes use of EJB's? I need to make
a presentation later this week on these topics.

Regards,


Stephen.
x 5125




---

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

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

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




Re: What it will take for a 1.1 release... (was RE: Struts 1.1 Release)

2002-10-16 Thread Vilya Harvey

 From: Joe Germuska [mailto:[EMAIL PROTECTED]]
...
 From that, you'd think a 1.1 release was just around the corner!!
 However, it's not going to be that easy.  My Bugzilla query turns up
 39 non-Enhancement open bugs against Struts.  Some of these are very
 old and may no longer be relevant.  (For example, a few refer to the
 original File Upload piece, while Struts now uses commons-fileupload.)

After reading this, I took a quick look at Bugzilla. It seems that a lot of
the bugs still marked as 'open' have actually had patches submitted. I don't
know if this is because the patches were found to be incorrect, but I didn't
see any comment to that effect during my quick trawl. So maybe the problem
is that bugs just aren't being closed when they're fixed.

 That said, Struts components like Tiles, Validator, and most
 recently, the EL version of the tag libraries were all dreamed up by
 someone who saw a need, and they were adopted into Struts because
 those people committed their own energy to making something happen.

Because of all these having been incorporated, I think Struts is now way
past something that should have been called a 1.1 release. According to the
release plan document, 1.1 beta 2 was supposed to be feature-complete; the
intent was to provide a stable base for bugfixes and documentation updates,
leading to the 1.1 final release. As someone pointed out earlier in this
thread, now that all of this additional (wonderful!) functionality has been
added it's much more like a 2.0 release.

 From: [EMAIL PROTECTED]
...
 The Release Plan page on the Jakarta site lists the bugs which are
 officially targeted for a 1.1 release.  However, it's pretty out of
 date.  Perhaps turning this into a living document would be a good
 volunteer opportunity?

 I think this is a good idea - would be somewhere where people could just
go and know
 that they an clear and accurate picture of the current release status,
which they
 can take back into their discussions. Do others agree, and that this is
possible and
 practical?

I definitely agree that this would be useful. I would prefer it to go
slightly further though, into being a milestone plan along the same lines as
the one Mozilla has (i.e. to set out the features and bug fixes that are
targetted for the next N releases, rather than just the next one). I find
that gives a very clear picture of where the project is at. It does need to
be kept up to date, though...

Vil.
--
Vilya Harvey, Consultant
[EMAIL PROTECTED] / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

--Disclaimer--

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.


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




Re: Newbie Questions / Direction

2002-10-16 Thread V. Cekvenich


Robert Hendley wrote:
 I am a php developer mainly. And am in the learning curve for
 JSP/Servlet development. I am sold on Stuts, I have read 20+ articles on
 Struts and have found them helpful. My problem is information overload.
 I am trying to port a php application to Struts that manages inventory
 and invoicing. I am wondering if any one has written an application like
 that using Struts. Or if one could give me some direction on where to
 start. I have deployed several webapps with success and used a cookbook
 approach to modify and tweak etc.. So if you have a moment I have a few
 questions.
 
 
 1. How did you handle record locking ? As an example editing a customer
 record and not allowing two to edit at the same time.
I am thinking a hash but where to put it?

Most of us do optimistic, or like a timestamp column.


 
 2. I want to have a cache at the application scope of the open
 invoices
 , approx (100-200) about 1k each. The application currently uses 27
 tables, so any invoice can require up to 12 queries(I did not design the
 schema)I have no real idea where to start with this.

If it does not decay, you can make it application scope singleton R/O.
A lot of clients buy the O/R and then they do not design the model 
relational, or have it done by somone who read a book on relational 
design, 6 months of experience (degree in MIS, they must teach that? 
:-), HUge difference in SQL written by 3 years of SQL experience, vs 6 
years, 9, etc. I have been on clients that have 8 way joins and more, 
and they would say things like we read that the model is not important. 
Other readers note that this is more of a realistic problem, not desgin 
patters of VO/DTO)

Alternative, Poolman (sourceforge) can cache the results of a query.

Commons pool can cache your own objects. I use CachedRowSet, where you 
can store your massaged resulsts. Maybe your best bet.

Maybe...  have a cache/optimization memory db  of my own design, (ASA, 
pgSQL) that I would use that matches use design. That db would then run 
a cron job and use procs in pgSQL or transactSQL to sync up to old db.

You are not going to have a standard Struts project, but something with 
a complex model.

 
 3.What if any advice could you give for a navigation system that has
 properties that are only available to a user/group?

I use StrutsMenu on sourceforge for navigation. It has some new features 
to let you turn on / of menu items.
You could do getUserPricincapal() and based on it do a select of groups 
they are in. Store the group in session. Then turn/on /of menu items.


hth,.V

 
 Thanks
 Robert Hendley
 [EMAIL PROTECTED]




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




Struts without RequestDispatcher.forward()

2002-10-16 Thread Praful . Kapadia

Hi 

We have a situation where, if we use Struts 1.1 and WebSphere 4 and Oracle Portal 2, 
we cannot use the RequestDispatcher.forward() method.

Can Struts be used effectively without this feature? If this is a bit vague, what 
features would be lost?

TIA

Praful

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

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

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


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




Struts taglibs without Struts

2002-10-16 Thread Praful . Kapadia

Hi

Can the Struts taglibs, e.g. struts-html, be used on their own i.e. just included in a 
page without using the Struts framework?

In other words can it be used in a standalone way like, say, JSTL?
 
TIA

Praful

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

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

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


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




Re: Struts without RequestDispatcher.forward()

2002-10-16 Thread Cedric Dumoulin


  Well, you will loose the struts actions mechanism, which means nearly 
all. Can your configuration use RequestDispatcher.include() instead of 
RequestDispatcher.forward() ? If yes, you can switch by extending the 
Struts RequestProcessor, overload the appropriate method, and use your 
new RequestProcessor.

   Hope this help,

  Cedric



[EMAIL PROTECTED] wrote:

Hi 

We have a situation where, if we use Struts 1.1 and WebSphere 4 and Oracle Portal 2, 
we cannot use the RequestDispatcher.forward() method.

Can Struts be used effectively without this feature? If this is a bit vague, what 
features would be lost?

TIA

Praful

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

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

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


--
To unsubscribe, e-mail:   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 without RequestDispatcher.forward()

2002-10-16 Thread Praful . Kapadia

Thank you. We can use RequestDispatcher.include().

Praful
 

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 13:08
To: Struts Users Mailing List
Subject: Re: Struts without RequestDispatcher.forward()



  Well, you will loose the struts actions mechanism, which means nearly 
all. Can your configuration use RequestDispatcher.include() instead of 
RequestDispatcher.forward() ? If yes, you can switch by extending the 
Struts RequestProcessor, overload the appropriate method, and use your 
new RequestProcessor.

   Hope this help,

  Cedric



[EMAIL PROTECTED] wrote:

Hi 

We have a situation where, if we use Struts 1.1 and WebSphere 4 and Oracle Portal 2, 
we cannot use the RequestDispatcher.forward() method.

Can Struts be used effectively without this feature? If this is a bit vague, what 
features would be lost?

TIA

Praful

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

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

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


--
To unsubscribe, e-mail:   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]


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

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

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


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




RE: dynamic select box

2002-10-16 Thread Sri Sankaran

Please look at the html-select.jsp file that is part of the struts-exercise-taglib 
application that ships with Struts.  It demonstrates different ways of specifying the 
options for the html:select.  It should answer all your questions.

Sri

-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subject: dynamic select box


Hi,

I am still trying to get this dynamic select box created.

Well, now I had a CLOSE look at the Struts documentation about html:options tag.

The collection attribute is interpreted as the name of a JSP bean, in some scope, that 
itself represents a collection of individual beans, one per option value to be 
rendered. 

If the collection attribute is not specified:
The collection of values actually selected depends on the presence or absence of the 
name and property attributes. The following combinations are allowed:

*   Only name is specified - The value of this attribute is the name
of a
JSP bean in some scope that is the collection. 

*   Only property is specified - The value of this attribute is the
name
of a property of the ActionForm bean associated with our form, which
will return the collection. 

*   Both name and property are specified - The value of the name
attribute
identifies a JSP bean in some scope. The value of the property attribute
is the name of some property of that bean which will return the
collection. 

I think that means that I will need:


a bean, that is a collection.
how can a bean be a collection ???
or an ActionForm, that contains an getArrayList method
how can I use that ActionFor without using form
action=getWerke.do, that only works, when someone hit the submit button, 
even though the
select box must be created BEFORE someone hits this button.
or using a Bean, that gots a getArrayList method.

I tried the last possibility, as I don't know how to do the other cases. I wrote a 
Bean that returns the ArrayList, then I wrote this in my jsp html:select 
property=werkAuswahl size=1
  html:options name=WerkeListBean property=werkeList/ /html:select

And got the following error:
javax.servlet.ServletException: Cannot find bean under name 
org.apache.struts.taglib.html.BEAN

I am desperate!!! Anyone, plz help me out how to get this damn dynamical select box 
created!

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




RE: Ending a session

2002-10-16 Thread Sri Sankaran

Session.invalidate() is one way.

Sri

-Original Message-
From: Marc AMIR-TAHMASSEB [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 3:26 AM
To: [EMAIL PROTECTED]
Subject: Ending a session


Hi everybody,

Is there a way to end a user session after a action ? Typically, i have in my page a 
Close button that disply the login 
form. But actualy if i use the back button of the browser, i come back 
to the page where the close were. Then i can continue like if the 
session wasn't closed...

thank's

-- 
Marc AMIR-TAHMASSEB
[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: No Action Instance

2002-10-16 Thread Richard Wagner

Hello I run into the same problem.

Using Tomcat or the iPlanet AppServer. Windows OK, Solaris not.
I've no CR/LF case, everything is there and fully specified.
When i put my classes into the appserver classpath it works.
When the classes must be read from WEB-INF/classes i get this error.

This thread ended a few weeks ago. Is there a solution to this problem?

Regards




- Original Message -
From: slickdev [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 9:52 PM
Subject: No Action Instance


 I developed a simple Struts app named ecapp on win2k, then dropped it's
war file into Tomcat 3.3.1 running on a Sun box.

 When requesting this action:

http://thesunbox.com:8080/ecapp/dbopsAction.do;jsessionid=9fimfkovb1?action=
listusers
 I get this reply:
 Status code: 500 request:R( /ecapp + /dbopsAction.do + null) msg:No
action instance for path /dbopsAction could be created

 I figure this is a path problem. However, the dbopsAction class is in
ecapp/WEB-INF/classes, as it should be.

 The struts-config has this for the action mapping, which works fine in
w2K:
 action
   path=/dbopsAction
   type=dbopsAction
   scope=request
 /action

 On the Sun box, I also set up an apps-ecapp.xml file to explicitly inform
tomcat about the context for the ecapp app:
 webapps
   Context path=/ecapp
  codeBase=webapps/ecapp
  --- // realm stuff here
  --- // log stuff here (works fine)
   /Context
 /webapps

 In sum: the ecapp jsp's are callable, but just the app can't find the
dbopsAction class.

 Suggestions?

 Thanks!




-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


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




RE: Struts 1.1 Release

2002-10-16 Thread Bill Chmura


I agree on all these points...  I had a heck of a time getting them to
agree to develop on struts while it was a beta...  I really did not want
to go back to 1.0

Part of me still wants to keep a beta program in place though


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 15, 2002 10:44 PM
To: Struts Users Mailing List
Subject: RE: Struts 1.1 Release


I am rather of the opinion that the struts versioning nomenclature is a
wee bit on the humble side. This beta release of 1.1 is pretty stable. I
dont see why you cant just loosen up your standards a bit and call it
1.1 , then when all the bugs are fixed call that 1.2 , etc... For
'bigger' or more stable version changes use bigger numbers. Really 1.1
is so much better then 1.02 that you should be calling it 2.0 when it is
released (and the current beta releases should be something like
1.99) That will help keep the corporate monkeys off peoples backs
and lead to more impressively high sounding version numbers. :-)

-Original Message-
From: news [mailto:[EMAIL PROTECTED]]On Behalf Of V. Cekvenich
Sent: Wednesday, October 16, 2002 08:36
To: [EMAIL PROTECTED]
Subject: Re: Struts 1.1 Release



[EMAIL PROTECTED] wrote:


I totally understand and agree with the release policy, but I think 
it's

 worth remembering that a lot of these

questions are driven by the constraints of users' environments - e.g. 
in

 corporate environments like ours, there

any many people like myself continually fighting to get great open 
source

 products like Struts into the organisation

so that development teams can use them, and the latest versions of 
them.

 However, this has to be done within the

processes and policies that apply to any third party software, 
commercial

 or otherwise.

 Not trying to whine - but I fight the same battles. I work for a big, 
 conservative company. Telling people it's a 'beta' release - 
 regardless of what that means - makes it much more difficult to get 
 things approved.

 Probably a greater percentage of your users than you realize are still

 using 1.02 for the sole reason that 1.1 is still called 'beta'. Worse,

 probably a lot of projects have started off that had to use 1.02 
 because
it
 was the 'stable release' - and then the development teams struggled. I

 saw one project dump struts because they had trouble getting it to do 
 what
they
 wanted (they were forced to use 1.02).



IMO, That could not possibly be a source of failure. I and others had
1.02 projects just fine! Statistically 80% of projects fail due to
requirements, so that would be my first guess. (More numbers? most
projects fail period, and that 99% of code in production is written by
1% of programmers) If they had tech issues, they could have gone with a
experienced mentor who has had Struts code in production before, which
is cost effective. And one needs to ask, why use open source?
http://www.opensource.org/advocacy/case_for_business.php
Because it is *better* quality is one good reason.

my 2c, .V





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


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




Using Dispatch Action

2002-10-16 Thread deepank

Hi,
I am new to struts so please dont yell at this basic question about dispatch action

I have a single form in my JSP(and a single formbean associated with its action).
I have to specify  which method to invoke in the form's action as usual

something like html:form action=doSomething?action=method1

I would like to know how can i invoke methods other than method1 in the action class. 
If i have method2 and i want to invoke it when a user clicks a button, how can make 
sure
that method2 gets invoked and not method1, without the ability to do this, i dont see 
how dispatch action
is useful

Deepank




Populating a Select dropdown using LabelvalueBean

2002-10-16 Thread Kavitha ranga

Hi,
  I am trying to populate a select dropdown using the LabelValueBean .I have 
seen some examples but am unable to find them .Could some one provide me 
with the links to the earlier mails or sample example.

thanks,
Kavitha




_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


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




bean property parameter problem

2002-10-16 Thread Heiko . Mesech . extern

hi,

my databean contains an property which uses an parameter like this

getColumnValue( int column_key )


when i try to get this property in struts collection tag like

layout:collectionItem title=TS Typ name=bla property=columnValue(0)
/

it will not work ;-)

thanks for help

heiko mesech

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




RE: Using Dispatch Action

2002-10-16 Thread Robert Taylor

Name each of your submit buttons action. Now unless you want the submit
button values to be
method1, method2, etc..., you would have to use LookUpDispatchAction. I
believe this allows you
to have user friendly submit button values and still invoke the appropriate
method. This is done
using a translation map which maps the submit button values to the actual
method to be invoked.
Submit buttons are mutually exclusive, so they guarantee that only the
button that was clicked will transmit its name and value.

I'm not currently using LookUpDispatchAction, or I would give you more
details. You can find more
information on Ted's site or in the archives.

robert

 -Original Message-
 From: deepank [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 9:26 AM
 To: Struts Users Mailing List
 Subject: Using Dispatch Action


 Hi,
 I am new to struts so please dont yell at this basic question
 about dispatch action

 I have a single form in my JSP(and a single formbean associated
 with its action).
 I have to specify  which method to invoke in the form's action as usual

 something like html:form action=doSomething?action=method1

 I would like to know how can i invoke methods other than method1
 in the action class.
 If i have method2 and i want to invoke it when a user clicks a
 button, how can make sure
 that method2 gets invoked and not method1, without the ability to
 do this, i dont see how dispatch action
 is useful

 Deepank




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




Look Feel

2002-10-16 Thread avasey


Hi

We have a requirement to change our site depending upon the User's
Client type. This involves changing the look  feel using stylesheet
and images which is quite straight forward.
How about things like using different Application Resource properties
files depending upon the Client type for example, to display
different messages ?
Any suggestion or resource I should look at to achieve this kind of
personalization using Struts ?

thanks for your help





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




Re: Using Dispatch Action

2002-10-16 Thread deepank

Hi,
I have used LookUpDispatchAction without any problems, but want to find out
the usefulness of Dispatch Action, thats why i want to know a neat way to
change the action attribute of the form in the JSP.


Deepank
- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 6:55 PM
Subject: RE: Using Dispatch Action


 Name each of your submit buttons action. Now unless you want the submit
 button values to be
 method1, method2, etc..., you would have to use LookUpDispatchAction. I
 believe this allows you
 to have user friendly submit button values and still invoke the
appropriate
 method. This is done
 using a translation map which maps the submit button values to the actual
 method to be invoked.
 Submit buttons are mutually exclusive, so they guarantee that only the
 button that was clicked will transmit its name and value.

 I'm not currently using LookUpDispatchAction, or I would give you more
 details. You can find more
 information on Ted's site or in the archives.

 robert

  -Original Message-
  From: deepank [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 16, 2002 9:26 AM
  To: Struts Users Mailing List
  Subject: Using Dispatch Action
 
 
  Hi,
  I am new to struts so please dont yell at this basic question
  about dispatch action
 
  I have a single form in my JSP(and a single formbean associated
  with its action).
  I have to specify  which method to invoke in the form's action as usual
 
  something like html:form action=doSomething?action=method1
 
  I would like to know how can i invoke methods other than method1
  in the action class.
  If i have method2 and i want to invoke it when a user clicks a
  button, how can make sure
  that method2 gets invoked and not method1, without the ability to
  do this, i dont see how dispatch action
  is useful
 
  Deepank
 
 


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



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




Re: Populating a Select dropdown using LabelvalueBean

2002-10-16 Thread Marcus Biel

Do you want a static dropdown or a dynamical drop down ?

Anyways, have a look at
http://localhost:8080/struts-exercise-taglib/html-select.jsp
( When Tomcat is running)

You can find the sources at ../tomcat
folder/webapps/struts-exercise-taglib/html-select.jsp

One hint:
Don't forget to implement the html:form action=SomeAction.do, even
though you still might been working on your file.
I thought I didn't not yet need it, and that was the reason my example
didn't work the whole time!!!
But that's really important, because struts looks into your
struts-config file,
and tries to convert the .do into the real adress of your Action and
ActionForm files.
If you don't got them, it won't work.

Hope this helps you as much as it helped me. :-)

cya,
marcus



[EMAIL PROTECTED] schrieb:
 
 Hi,
   I am trying to populate a select dropdown using the LabelValueBean .I have
 seen some examples but am unable to find them .Could some one provide me
 with the links to the earlier mails or sample example.
 
 thanks,
 Kavitha
 
 _
 Get faster connections -- switch to MSN Internet Access!
MSN SUCKS!
 http://resourcecenter.msn.com/access/plans/default.asp
 
 --
 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: dynamic select box

2002-10-16 Thread Marcus Biel

Yes, 30 minutes before I did -I really forgot this valuable source of
information
What I did was really stupid!

At the beginning, I tried to do all features of my page from scratch,
but as it didn't work, I decided to work step by step.
So I left everything aside, and just tried to get this select box done.
What I also left, was the starting form tag, and my select
property=werkAuswahl
didn't exist yet, as I thought I only would need it, if I klicked on
submit
What I did not think of, is that this is all struts mapping,
and that Struts needs to exchange all those parameters into the real
adresses,
as the struts file gets translated into a servelet, and without working
parameters,
this cannot be done.

Now it works greatly!

:-)

thanks,

marcus

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




Re: Look Feel

2002-10-16 Thread David Graham

Struts loads properties files based on the locale stored in the user's 
session.  One quick way would be to define properties files for languages 
you will never support and assign those languages to different client types. 
  So, chinese could be cell phones, etc. When you recognize a cell phone 
user you can put the chinese locale in there session so struts will use the 
chinese properties file.

There is probably a much more elegant solution but this would work.

David






From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Look  Feel
Date: Wed, 16 Oct 2002 15:31:13 +0200


Hi

We have a requirement to change our site depending upon the User's
Client type. This involves changing the look  feel using stylesheet
and images which is quite straight forward.
How about things like using different Application Resource properties
files depending upon the Client type for example, to display
different messages ?
Any suggestion or resource I should look at to achieve this kind of
personalization using Struts ?

thanks for your help





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


_
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp


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




[ANN] Expresso 5.0 Released

2002-10-16 Thread Sandra Cann

The Expresso team is proud to announce Expresso 5.0 - a major new
release. Expresso is an open source architectural J2EE framework
comprising application development components which extends Struts for
developing database-driven web applications.  Expresso has more than
100,000 downloads and offers the benefit of being the largest framework
community - about 4500 developers on it's listserv.

This major release includes more than 50 new features, many feature and
performance improvements, package updates, as well as significant
JavaDoc and documentation updates. Download freely from:
http://www.jcorporate.com/product/expresso.html  Download link  (both
Expresso source and binaries available)

Highlights of the Expresso 5.0 release include:

- Additional Struts Integration including Tiles integration,
ActionForms, Radio Input types, Combobox tag, and an Expresso-aware
html:link tag that will work with Transitions.
- Refactored Authentication and Registration including Login prompt
automation, email address validation and Redirection support 
- Clean  Universal URL support
- Basic Workflow Capabilities  
- Container-Based Authentication Integration
- SSL Integration Capabilities: now can transition into and out of SSL
web pages and still maintain session state. 
- Security Enhancements have been made.
- many DBObjects improvements including a new class that can have Row
level permissions.
- BLOB/CLOB datatypes Support
- JNDI Compatible Data Connections: critical for JTA compatibility as
well as some drivers for, for example, DB2 databases. 
- i18n Improvements: Error Collections can have keys to Message Bundles
with this tag. Polish and Chinese language support added. 

Please refer to the Change log for the complete list.
http://www.jcorporate.com/econtent/Content.do?state=resourceresource=79
8

Release notes:
http://www.jcorporate.com/econtent/Content.do?state=resourceresource=11
3

Contact and Location Example demos are available for download at:
http://www.jcorporate.com/econtent/Content.do?state=templatetemplate=2;
db=defaultresource=767  Downloads link

For more information on Struts users getting started with Expresso
please see Expresso/Struts Integration Summary at:
http://www.jcorporate.com/econtent/Content.do?state=resourceresource=58
6. You may also want to view the Roadmap under the doc to see the
schedule for Struts 1.1 integration.

If it has been some time since you evaluated Expresso, please consider
doing so again.

Special thanks to Michael Rimov for all of his dedication as lead
developer on Expresso 5.0. This release is also credited to the many
community members that have offered their contributions, support and
feedback.  This collaborative development synergy has created the best
Expresso release yet. 

Regards
--
The Expresso Team 



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




Re: Is Struts full J2EE compliant?

2002-10-16 Thread David Graham

You can find all the java specs on java.sun.com.  Being J2EE compliant, as I 
understand it, is only applicable to app. servers.  Struts will work in all 
J2EE compliant app. servers because it is 100% java code.

David






From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Is Struts full J2EE compliant?
Date: Wed, 16 Oct 2002 09:57:01 +0200


Hi list,

Is Struts full J2EE compliant?
Can I find confirmation on this somewhere?
And by the way, where can I find a short article who summary the J2EE
specification.

Thanks.


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


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


_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


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




RE: Using Dispatch Action

2002-10-16 Thread Robert Taylor

I think you are circumventing its usefulness by specifying the method to
invoke
in the query string of the action attribute of the form element. You would
want
to name the submit button action and have its value identify the method to
invoke.
This is the cleanest way, but is not pretty because you end up having submit
buttons
with the actual method name; hence, the reason to use LookUpDispatchAction.

html:form action=doSomething

!-- put stuff here --

html:submit property=action value=method1/
html:submit property=action value=method2/

/html:form

This will send action=method1 in the request if method1 submit button is
clicked and
alternatively will send action=method2 in the request if method2 submit
button is clicked.
In either case the appropriate method should be invoked by DispatchAction.

I guess you could always use JavaScript to change the value of a hidden
input field named
action, but I usually don't like to rely on the client.

robert

 -Original Message-
 From: deepank [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 9:42 AM
 To: Struts Users Mailing List
 Subject: Re: Using Dispatch Action


 Hi,
 I have used LookUpDispatchAction without any problems, but want
 to find out
 the usefulness of Dispatch Action, thats why i want to know a neat way to
 change the action attribute of the form in the JSP.


 Deepank
 - Original Message -
 From: Robert Taylor [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, October 16, 2002 6:55 PM
 Subject: RE: Using Dispatch Action


  Name each of your submit buttons action. Now unless you want
 the submit
  button values to be
  method1, method2, etc..., you would have to use LookUpDispatchAction. I
  believe this allows you
  to have user friendly submit button values and still invoke the
 appropriate
  method. This is done
  using a translation map which maps the submit button values to
 the actual
  method to be invoked.
  Submit buttons are mutually exclusive, so they guarantee that only the
  button that was clicked will transmit its name and value.
 
  I'm not currently using LookUpDispatchAction, or I would give you more
  details. You can find more
  information on Ted's site or in the archives.
 
  robert
 
   -Original Message-
   From: deepank [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 16, 2002 9:26 AM
   To: Struts Users Mailing List
   Subject: Using Dispatch Action
  
  
   Hi,
   I am new to struts so please dont yell at this basic question
   about dispatch action
  
   I have a single form in my JSP(and a single formbean associated
   with its action).
   I have to specify  which method to invoke in the form's
 action as usual
  
   something like html:form action=doSomething?action=method1
  
   I would like to know how can i invoke methods other than method1
   in the action class.
   If i have method2 and i want to invoke it when a user clicks a
   button, how can make sure
   that method2 gets invoked and not method1, without the ability to
   do this, i dont see how dispatch action
   is useful
  
   Deepank
  
  
 
 
  --
  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 1.1 Release

2002-10-16 Thread Greg.Reddin

 Really 1.1 is so much better then 1.02 that you should be calling it
2.0 
 when it is released (and the current beta releases should be something

 like 1.99)


Of course Java is at 1.4.1.  How similar is 1.4 to 1.0?  And why do they
call 1.2+ Java 2?  Why didn't they just call it Java 2.0?  Will there
ever be a Java 2.0 or will it just go to 1.100?  Coming from a Microsoft
background (and finally seeing the light), I'm not familiar with the
strange versioning strategy in the Java Community and it's always
baffled me.  At our company we release a new major version every year
whether we need to or not.  I'm working to evangelize things like Struts
and open source in general, and part of that may be trying to change the
perception of release names, and words like beta.

Greg


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




(struts1.1b2) redirect problem

2002-10-16 Thread Iris

Hello,

I just change from struts1.1b1 to struts1.1b2 and I have a redirect 
problem.
In my struts-config I have a forward redirected: (to change from 
context-path1 to context-path2)
global-forwards type=org.apache.struts.action.ActionForward
forward name=getlist
   path=http://machine:8080/context-path2/jsp2.jsp;
   redirect=true/
/global-forwards

This works fine with struts1.1b1 but with struts1.1b2 there is a problem:
In my Action class I get the ActionForward and trace it:
ActionForward af = mapping.findForward(getlist) ;
System.out.println(af) ;

The result is:
[STDOUT] 
ForwardConfig[name=getlist,path=http://machine:8080/context-path2/jsp2.jsp,redirect=true]
 

but in the browser:
_The requested resource 
(/context-path1/http:/machine:8080/context-path2/jsp2.jsp) is not 
available._

Is this a bug in struts1.1b2 or have I to change something in my 
struts-config ?

Iris


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




security roles per action mapping

2002-10-16 Thread Alexis Gallagher

Hello,

I've gotten a lot of help just lurking on this list,
so I'm hoping my first question isn't too off base.

I am trying to use the action roles parameter to
define fine-grained security constraints. However,
these constraints will apply to security roles which
are defined programmatically within my webapp and
which are net registered with the server's security
realm.

So I'm wondering, is there a way to stop the server
from checking the roles parameter for its own
purposes, so that I can hijack it for my own?

If I seem not just confused but totally off-base, I'll
stick the gory details of why I'm trying to do this in
a P.S..

Thanks,
Alexis Gallagher

p.s. 
Why would I want to do disable the server's check of
security roles? Well, in my system every user can
belong to multiple projects, but he can only browse
one project at a time. A user has both a global
security role (admin vs. non-admin) but also a
per-project security role (manager vs. member, etc.). 

My understanding is that container-managed security is
not intended to support a situation where a user's
role might changing depending on their position
session state (that is, what project they're
browsing). Also, container-managed security doesn't
have a vendor-neutral realm implementation.

Nevertheless, it would be very convenient to
declaritively configure all these security
constraints, and I can just put the security logic my
action base class.



__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: Damn where is bug in my code????

2002-10-16 Thread David M. Karr

 kiuma == kiuma  [EMAIL PROTECTED] writes:

kiuma Ok, I've understood that if I have the tag
kiuma html-el:checkbox property=principalPermissions value=Foo

kiuma and then I have a Collection getPrincipalPermissions() and
kiuma setPrincipalPermissions(String value)

kiuma and if I put the value Foo in the collection this should be checked.
kiuma But I have some doubt about it.

It's important to know how the three select button types (checkbox, multibox,
and radio) work with respect to when the checked attribute gets set, and the
values of the specified bean property and the value attribute value:

Checkbox: property = true, yes, or on
Multibox: property = any of the collection values
Radio:property = value

So, if you have a checkbox, the property value has to be a scalar, and having
the value true, yes, or on.

If you want it to be checked if the value is equal to any of the entries of a
collection/array, then you need to use the multibox tag.

If this isn't clear from the documentation, it is often helpful to run your
application in a debugger, and set breakpoints in the Struts source code.
You'll learn a lot.

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


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




Re: Dynamically changing errors.header and errors.footer in Action Class???

2002-10-16 Thread David M. Karr

 Samit == Samit Goyal [EMAIL PROTECTED] writes:

Samit Hi all,
Samit I need to give some informational messages to the user in run time. For that
Samit it'll ebe better if i could change the errors.header and errors.footer in my
Samit action class...and use ActionErrors to display my message. Can you please
Samit help me out how to do it!!

Presently there isn't an easy way to do this.  There's some discussion on the
dev list about enhancing the errors and messages tags, giving them both
some functionality of the other.  Two considered possibilities are:

1. Adding header, footer, prefix, and suffix attributes to the errors
tag, so you can override them.

2. Allowing the errors tag to iterate through its body, so you can add your
own prefix and suffix decorations.  This would not help for the header
and footer, however.

To reiterate, I don't see an easy way to get what you want right now.

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


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




Re: (struts1.1b2) redirect problem

2002-10-16 Thread David Graham

Do any errors show up in your server log?  I'm also wondering why you're 
redirecting to the jsp directly instead of *.do?

David






From: Iris [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: (struts1.1b2) redirect problem
Date: Wed, 16 Oct 2002 16:26:16 +0200

Hello,

I just change from struts1.1b1 to struts1.1b2 and I have a redirect 
problem.
In my struts-config I have a forward redirected: (to change from 
context-path1 to context-path2)
global-forwards type=org.apache.struts.action.ActionForward
forward name=getlist
   path=http://machine:8080/context-path2/jsp2.jsp;
   redirect=true/
/global-forwards

This works fine with struts1.1b1 but with struts1.1b2 there is a problem:
In my Action class I get the ActionForward and trace it:
ActionForward af = mapping.findForward(getlist) ;
System.out.println(af) ;

The result is:
[STDOUT] 
ForwardConfig[name=getlist,path=http://machine:8080/context-path2/jsp2.jsp,redirect=true]

but in the browser:
_The requested resource 
(/context-path1/http:/machine:8080/context-path2/jsp2.jsp) is not 
available._

Is this a bug in struts1.1b2 or have I to change something in my 
struts-config ?

Iris


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


_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


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




Re: Damn where is bug in my code????

2002-10-16 Thread kiuma

Thx a lot for delucidation,
which kind of debugger should I use , how could I use it, any docs?

David M. Karr wrote:

kiuma == kiuma  [EMAIL PROTECTED] writes:


kiuma Ok, I've understood that if I have the tag
kiuma html-el:checkbox property=principalPermissions value=Foo

kiuma and then I have a Collection getPrincipalPermissions() and
kiuma setPrincipalPermissions(String value)

kiuma and if I put the value Foo in the collection this should be checked.
kiuma But I have some doubt about it.

It's important to know how the three select button types (checkbox, multibox,
and radio) work with respect to when the checked attribute gets set, and the
values of the specified bean property and the value attribute value:

Checkbox: property = true, yes, or on
Multibox: property = any of the collection values
Radio:property = value

So, if you have a checkbox, the property value has to be a scalar, and having
the value true, yes, or on.

If you want it to be checked if the value is equal to any of the entries of a
collection/array, then you need to use the multibox tag.

If this isn't clear from the documentation, it is often helpful to run your
application in a debugger, and set breakpoints in the Struts source code.
You'll learn a lot.




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




Hashtable in ActionForm

2002-10-16 Thread Hari

Hello,

Can somebody help me . I am not sure if this is possible.
Can struts-html tag set and get data from a Hashtable in ActionForm

Like this

In my JSP I have
html:text property=”name” 

and in my actionform is
public class TestActionForm extends ActionForm


public Hashtable testData = new Hashtable(); // This hashtable
contains a key value pair as key = “name” and value=”xyz”
}

Thanks in advance
Hari



Re: Damn where is bug in my code????

2002-10-16 Thread David Graham

Every major IDE has a debugger in it.  Some free ones are Eclipse and 
NetBeans.  Of the two, I've only used eclipse and it works well.  You can 
also debug jsps.

David






From: kiuma [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Damn where is bug in my code
Date: Wed, 16 Oct 2002 16:51:35 +0200

Thx a lot for delucidation,
which kind of debugger should I use , how could I use it, any docs?

David M. Karr wrote:

kiuma == kiuma  [EMAIL PROTECTED] writes:


kiuma Ok, I've understood that if I have the tag
kiuma html-el:checkbox property=principalPermissions value=Foo

kiuma and then I have a Collection getPrincipalPermissions() and
kiuma setPrincipalPermissions(String value)

kiuma and if I put the value Foo in the collection this should be 
checked.
kiuma But I have some doubt about it.

It's important to know how the three select button types (checkbox, 
multibox,
and radio) work with respect to when the checked attribute gets set, and 
the
values of the specified bean property and the value attribute value:

Checkbox: property = true, yes, or on
Multibox: property = any of the collection values
Radio:property = value

So, if you have a checkbox, the property value has to be a scalar, and 
having
the value true, yes, or on.

If you want it to be checked if the value is equal to any of the entries 
of a
collection/array, then you need to use the multibox tag.

If this isn't clear from the documentation, it is often helpful to run 
your
application in a debugger, and set breakpoints in the Struts source code.
You'll learn a lot.




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


_
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp


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




Re: Hashtable in ActionForm

2002-10-16 Thread David Graham

You can do this in 1.1.

See section  4.2.2
http://jakarta.apache.org/struts/userGuide/building_controller.html

BTW, You should be using :

private Map testData = new HashMap();

David



From: Hari [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Subject: Hashtable in ActionForm
Date: Wed, 16 Oct 2002 20:32:16 +0530

Hello,

Can somebody help me . I am not sure if this is possible.
Can struts-html tag set and get data from a Hashtable in ActionForm

Like this

In my JSP I have
html:text property=”name” 

and in my actionform is
public class TestActionForm extends ActionForm


 public Hashtable testData = new Hashtable(); // This hashtable
contains a key value pair as key = “name” and value=”xyz”
}

Thanks in advance
Hari


_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


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




Re: (struts1.1b2) redirect problem

2002-10-16 Thread Iris

I've nothing more in the server log.
I pass by jsp1.do but in this action I redirect to jsp2 that is not in 
the same webapp.

I see in struts source and I find that in 
org.apache.action.RequestProcessor.processForwardConfig (l. 414)
the redirect is did with the contextPath.
And in org.apache.util.RequestUtils.forwardURL there's nothing 
particular if the forward is redirected.
I think that the problem become from there.
Do you think I must add that in the bug list ?
Or I'm not watching in the good way ?

Iris

David Graham wrote:

 Do any errors show up in your server log?  I'm also wondering why 
 you're redirecting to the jsp directly instead of *.do?

 David






 From: Iris [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: (struts1.1b2) redirect problem
 Date: Wed, 16 Oct 2002 16:26:16 +0200

 Hello,

 I just change from struts1.1b1 to struts1.1b2 and I have a redirect 
 problem.
 In my struts-config I have a forward redirected: (to change from 
 context-path1 to context-path2)
 global-forwards type=org.apache.struts.action.ActionForward
 forward name=getlist
   path=http://machine:8080/context-path2/jsp2.jsp;
   redirect=true/
 /global-forwards

 This works fine with struts1.1b1 but with struts1.1b2 there is a 
 problem:
 In my Action class I get the ActionForward and trace it:
 ActionForward af = mapping.findForward(getlist) ;
 System.out.println(af) ;

 The result is:
 [STDOUT] 
 
ForwardConfig[name=getlist,path=http://machine:8080/context-path2/jsp2.jsp,redirect=true]
 


 but in the browser:
 _The requested resource 
 (/context-path1/http:/machine:8080/context-path2/jsp2.jsp) is not 
 available._

 Is this a bug in struts1.1b2 or have I to change something in my 
 struts-config ?

 Iris


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



 _
 Internet access plans that fit your lifestyle -- join MSN. 
 http://resourcecenter.msn.com/access/plans/default.asp


 -- 
 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: Damn where is bug in my code????

2002-10-16 Thread kiuma

Sorry I mean, as I'm a really newbie to enterprise-programming, I'm 
starting with a complex work ;-P

Infact I'm using XDcolet to generate files, Jboss + jetty(or Tomcat) as 
containers, and struts as MVC framework.
Then in my jsp I don't want any sort of java code, only tags.
This is my really first time in this kind of apps, and thanks to u all, 
I'm making really big progresses.
This work is particularry hard even because in my office I'm alone.

Because all these different technologies, even if I'm using netBeans, 
it's not possible for me to use all its rad features.
So can you suggest some debugging techniques to me?



David Graham wrote:

 Every major IDE has a debugger in it.  Some free ones are Eclipse and 
 NetBeans.  Of the two, I've only used eclipse and it works well.  You 
 can also debug jsps.

 David






 From: kiuma [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Damn where is bug in my code
 Date: Wed, 16 Oct 2002 16:51:35 +0200

 Thx a lot for delucidation,
 which kind of debugger should I use , how could I use it, any docs?

 David M. Karr wrote:

 kiuma == kiuma  [EMAIL PROTECTED] writes:


kiuma Ok, I've understood that if I have the tag
kiuma html-el:checkbox property=principalPermissions 
 value=Foo

kiuma and then I have a Collection getPrincipalPermissions() and
kiuma setPrincipalPermissions(String value)

kiuma and if I put the value Foo in the collection this should 
 be checked.
kiuma But I have some doubt about it.

 It's important to know how the three select button types 
 (checkbox, multibox,
 and radio) work with respect to when the checked attribute gets 
 set, and the
 values of the specified bean property and the value attribute value:

 Checkbox: property = true, yes, or on
 Multibox: property = any of the collection values
 Radio:property = value

 So, if you have a checkbox, the property value has to be a scalar, 
 and having
 the value true, yes, or on.

 If you want it to be checked if the value is equal to any of the 
 entries of a
 collection/array, then you need to use the multibox tag.

 If this isn't clear from the documentation, it is often helpful to 
 run your
 application in a debugger, and set breakpoints in the Struts source 
 code.
 You'll learn a lot.




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



 _
 Choose an Internet access plan right for you -- try MSN! 
 http://resourcecenter.msn.com/access/plans/default.asp


 -- 
 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: bean property parameter problem

2002-10-16 Thread Jean-Noel Ribette

At 15:19 16/10/2002, you wrote:
hi,

my databean contains an property which uses an parameter like this

getColumnValue( int column_key )


when i try to get this property in struts collection tag like

layout:collectionItem title=TS Typ name=bla property=columnValue(0)
/

it will not work ;-)

Hi,

You need to write:
layout:collectionItem title=TS Typ name=bla property=columnValue[0]/

The () are the delimiter for the mapped properties corresponding to the 
signature public String getValue(String in_key)
The [] are the delimiter for the indexed properties corresponding to the 
signature public String getValue(int in_index)

Regards,

Jean-Noel


thanks for help

heiko mesech

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

--__/ \__-
   improve   Jean-Noël Ribette
--/-\--
Ingénieur études et développement


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




Re: security roles per action mapping

2002-10-16 Thread V. Cekvenich

One aproach:
make all the users is a single role for CMA.
In first action, make a getUserPricipal, and store in session bean (I 
also have getFullName in there, so I display in header loged in user name)
the Session bean, add methods for getProjectRole() that calls dao to 
find this.

Based on sesionBean.getProejctRole(), your action/controller can do 
things like
formBean.find(sessionBean.getProjectRole()) to only find things that are 
relevant.
The book FastTrack to Struts, has a chapter on this, and also how to 
make this row based updates or row based RO

.V

Alexis Gallagher wrote:
 Hello,
 
 I've gotten a lot of help just lurking on this list,
 so I'm hoping my first question isn't too off base.
 
 I am trying to use the action roles parameter to
 define fine-grained security constraints. However,
 these constraints will apply to security roles which
 are defined programmatically within my webapp and
 which are net registered with the server's security
 realm.
 
 So I'm wondering, is there a way to stop the server
 from checking the roles parameter for its own
 purposes, so that I can hijack it for my own?
 
 If I seem not just confused but totally off-base, I'll
 stick the gory details of why I'm trying to do this in
 a P.S..
 
 Thanks,
 Alexis Gallagher
 
 p.s. 
 Why would I want to do disable the server's check of
 security roles? Well, in my system every user can
 belong to multiple projects, but he can only browse
 one project at a time. A user has both a global
 security role (admin vs. non-admin) but also a
 per-project security role (manager vs. member, etc.). 
 
 My understanding is that container-managed security is
 not intended to support a situation where a user's
 role might changing depending on their position
 session state (that is, what project they're
 browsing). Also, container-managed security doesn't
 have a vendor-neutral realm implementation.
 
 Nevertheless, it would be very convenient to
 declaritively configure all these security
 constraints, and I can just put the security logic my
 action base class.
 
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com




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




Re: Damn where is bug in my code????

2002-10-16 Thread Eddie Bush

Netbeans also works quite well ;-)

David Graham wrote:

 Every major IDE has a debugger in it.  Some free ones are Eclipse and 
 NetBeans.  Of the two, I've only used eclipse and it works well.  You 
 can also debug jsps.

 David 


-- 
Eddie Bush




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




Re: Damn where is bug in my code????

2002-10-16 Thread Eddie Bush

kiuma wrote:

 Sorry I mean, as I'm a really newbie to enterprise-programming, I'm 
 starting with a complex work ;-P

 Infact I'm using XDcolet to generate files, Jboss + jetty(or Tomcat) 
 as containers, and struts as MVC framework.
 Then in my jsp I don't want any sort of java code, only tags.
 This is my really first time in this kind of apps, and thanks to u 
 all, I'm making really big progresses.
 This work is particularry hard even because in my office I'm alone.

 Because all these different technologies, even if I'm using netBeans, 
 it's not possible for me to use all its rad features.
 So can you suggest some debugging techniques to me? 

My guess is that you've never used a built-in debugger :-)  That being 
the case, let me assure you it is quite simple.  All you have to do is:
- set a break-point
- run the program in debug mode (From the debug menu)
- execution will pause where you set the breakpoint
- examine anything important (values of variables - hold your 
mouse over them or look in the frame to your left)
- you have many options on how to proceed (step over/in, 
continue, continue to cursor).  Play with them :-)

HTH,

Eddie

-- 
Eddie Bush




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




Re: security roles per action mapping

2002-10-16 Thread Eddie Bush

Alexis Gallagher wrote:

Hello,

I've gotten a lot of help just lurking on this list,
so I'm hoping my first question isn't too off base.

I am trying to use the action roles parameter to
define fine-grained security constraints. However,
these constraints will apply to security roles which
are defined programmatically within my webapp and
which are net registered with the server's security
realm.

So I'm wondering, is there a way to stop the server
from checking the roles parameter for its own
purposes, so that I can hijack it for my own?

If I seem not just confused but totally off-base, I'll
stick the gory details of why I'm trying to do this in
a P.S..

You could write a filter and provide wrappers for the request that would 
let you override the important functions.

Thanks,
Alexis Gallagher

p.s. 
Why would I want to do disable the server's check of
security roles? Well, in my system every user can
belong to multiple projects, but he can only browse
one project at a time. A user has both a global
security role (admin vs. non-admin) but also a
per-project security role (manager vs. member, etc.). 

My understanding is that container-managed security is
not intended to support a situation where a user's
role might changing depending on their position
session state (that is, what project they're
browsing). Also, container-managed security doesn't
have a vendor-neutral realm implementation.

Nevertheless, it would be very convenient to
declaritively configure all these security
constraints, and I can just put the security logic my
action base class.

Well, I think the thing to do would be to maybe come up with some 
additional roles for each project.  No, wait, you'd have to be modifying 
your server config for every project.  Nevermind that ...

It smells like you really do need a custom solution.  I think probably 
writing a filter to wrap the request so you can override isUserInRole 
would probably be the way to go.  You could then implement that method 
(and any others you needed to) so that it would return the appropriate 
result - after having consulted your database.  Ideally, what would 
happen is you would load all roles associated with the user in something 
(Map perhaps) and then just consult that (map.containsKey(roleName)). 
 That way you're offsetting hitting the database for each request.  Of 
course, if roles were added after a person logged in, they wouldn't have 
them loaded.  The user would have to relog to effect the change.

See version 2.3 of the servlet specification and the J2EE tutorial for 
information about writing a filter that would do what you need to do. 
 You're looking at using a Filter and ... what is it called ... 
HttpServletRequestWrapper?  That's close, I believe.

I feel like maybe there's a better solution to this - but it doesn't 
occur to me what it might be.  Hopefully someone else has further insight.

-- 
Eddie Bush




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




[Nested Tags] Please help to confirm a problem..

2002-10-16 Thread Jeff_Mychasiw

I am running on Struts 1.1b2 and Tomcat 4.04

I have provided a self contained JSP page that defines two objects and creates a list 
of lists and iterates though them three ways.
first by standard java, then logic:iterate tags and finally with nested tags.
My preference would be to use the nested tag version.
As near as I can tell, what I am doing is the same as many of the examples on Arrons 
site http://www.keyboardmonkey.com/
The only difference is a property that accesses an internal Map.  It seems to work 
well until the nested tags are used.

It my test the nested tags read all correct properties for the root object but when 
the child objects are accessed,the properties
are called on the root and not the current object as I would expect.

My Request:
Could someone please drop the JSP code into a test page and run it.
Observe the System.out from the wrapper object as well.
I would like to find out if there is a bug or that I am just a nut.

Thanks alot.
I need to decide on a direction for the remainder of our project, and would love to 
use the nested as much as possible.

PS:
A common requirement in our project to work with lists of lists.
many times each list has header information such as subtotal ect.

I am trying to use a generic wrapper that contains one internal List and a single 
getHeaderItem(headerName) property that will provide the specific.
My goal is to have my business delegate methods return this generic wrapper (or 
wrapper of wrappers) and keep the business structure out of the
actions ect


Jsp test page:
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
%@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

%@ page import=java.util.* %

%
//create sample data
ArViewListImpl childWrapper = null;
List childWrapperList = new ArrayList();

List sampleGroupList = new ArrayList();
sampleGroupList.add(new TestBean(1 - childItem1,1 - childItem2));
sampleGroupList.add(new TestBean(2 - childItem1,2 - childItem2));
sampleGroupList.add(new TestBean(3 - childItem1,3 - childItem2));

//add group list
childWrapper = new ArViewListImpl(sampleGroupList,99);
childWrapper.setHeaderItem(subTotal,new Float(123.87));
childWrapperList.add(childWrapper);

//add group list
childWrapper = new ArViewListImpl(sampleGroupList,98);
childWrapper.setHeaderItem(subTotal,new Float(321.87));
childWrapperList.add(childWrapper);

 //add group list
childWrapper = new ArViewListImpl(sampleGroupList,97);
childWrapper.setHeaderItem(subTotal,new Float(333.87));
childWrapperList.add(childWrapper);

ArViewListImpl rootWrapper = new ArViewListImpl(childWrapperList,100);
rootWrapper.setHeaderItem(grandTotal,new Float(8987.98));
rootWrapper.setHeaderItem(amt1ColTotal,new Float(222.89));
rootWrapper.setHeaderItem(amt2ColTotal,new Float(333.89));

System.out.println(\n\n*** Java Loop Start ***);
//display sample data the hard way
out.println(h1Java Test/h1);
out.println(uroot:/u);
out.println(brbTotal Count: /b+ rootWrapper.getTotalCount());
out.println(brbAmount1 Column Total: /b+ 
rootWrapper.getHeaderItem(amt1ColTotal));
out.println(brbAmount2 Column Total: /b+ 
rootWrapper.getHeaderItem(amt2ColTotal));
out.println(brbGrand Total: /b+ rootWrapper.getHeaderItem(grandTotal));

TestBean testBean = null;
ArViewListImpl tempItem =null;
ArViewListImpl tempChildWrapper =null;
Iterator tempChildList = null;
Iterator tempRootList = rootWrapper.getPageList().iterator();
   while(tempRootList.hasNext()){
tempItem = (ArViewListImpl)tempRootList.next();
out.println(bruchild/u:);

tempChildList = tempItem.getPageList().iterator();
out.println(brTotal Count: + tempItem.getTotalCount());
while(tempChildList.hasNext()){
testBean = (TestBean)tempChildList.next();
 out.println(br bTest Item1: /b + testBean.getItem1() +  bTest 
Item2: /b + testBean.getItem2());
}
out.println(brib Child Wrapper subtotal: /b + 
tempItem.getHeaderItem(subTotal)+/i);
}
System.out.println(*** Java Loop End ***);

pageContext.setAttribute(wrapperTestBean,rootWrapper);
%
% System.out.println(*** Logic Loop Start ***); %
h1Logic Test:/H1
bean:define name=wrapperTestBean id=rootWrap /
uroot:/u
brbTotalCount: /bbean:write name=rootWrap property=totalCount /
brbAmt 1 Col Total: /bbean:write name=rootWrap 
property=headerItem(amt1ColTotal) /
brbAmt 2 Col Total:/b bean:write name=rootWrap 
property=headerItem(amt2ColTotal) /
brbGrand Total: /bbean:write name=rootWrap property=headerItem(grandTotal) 
/
logic:iterate name=rootWrap property=pageList id=childW 
bruChild/u
brbTotal Count: /bbean:write name=childW property=totalCount /
logic:iterate 

html:select and SELECTing an option - without access to ActionForm

2002-10-16 Thread peteralen

Hello,

I have a portlet that has a select list.  The code looks like:

html:select property=CC size=10
  html:options collection=ctrypicklist property=value
labelProperty=label/
/html:select

When a country is selected and the form is submitted, the selected
country is highlighted when the page is redrawn because the active
ActionForm has the value in the field CC (getCC()).  No problems there.
My problem comes when another form from another portlet is submitted.
When the portal is redrawn the country that was selected is no longer
selected because a different ActionForm was used in the submission.  I
do have the value of CC available via getAttribute() but I can't find a
way to let the html:options tag know which option to SELECT.

Does anyone know either how to pass an argument for SELECTion to the
taglib OR how I can put a value in the ActionForm used by the select
object when that ActionForm was not used on the page submission?  It
would seem that this is not an uncommon thing to do.

Thanks - Peter



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




Struts and cocoon

2002-10-16 Thread Madhavi Thottempudi

Hi!
Is anybody out there working with Apache cocoon and Struts framework together??
We are building a struts application and one of our requirement is 
Transformations.
I am quite interested to know if anybody has worked on this combination, as 
I am wondering if it's possible to do that at all.
Any comments/suggestions on this would be really helpful.

Cheers
-Madhavi



Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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




Re: security roles per action mapping

2002-10-16 Thread Eddie Bush

Bah!  Your web.xml - not your server.xml.  I know what I'm talking 
about, I'm just experiencing technical difficulties in the broadcasting 
department! LOL

Your web.xml holds all your role data and constraints, so using 
traditional CMA, you'd have to modify that file and restart the app 
every time you added a project.  If that's a good solution for you 
(projects don't get added often) then it may be the easiest, most 
straight-forward way to go about it.  I suspect you'll find that less 
than ideal though - and I believe the filter/wrapper approach would fit 
the ticket.

-- 
Eddie Bush




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




RE: Struts taglibs without Struts

2002-10-16 Thread James Mitchell

What happened when you tried it?   You did try itright?

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: Struts taglibs without Struts


 Hi

 Can the Struts taglibs, e.g. struts-html, be used on their own
 i.e. just included in a page without using the Struts framework?

 In other words can it be used in a standalone way like, say, JSTL?

 TIA

 Praful

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

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

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


 --
 To unsubscribe, e-mail:
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 and cocoon

2002-10-16 Thread James Mitchell

Check out the STXX project

http://sf.net/projects/stxx

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




 -Original Message-
 From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 11:53 AM
 To: [EMAIL PROTECTED]
 Subject: Struts and cocoon


 Hi!
 Is anybody out there working with Apache cocoon and Struts
 framework together??
 We are building a struts application and one of our requirement is
 Transformations.
 I am quite interested to know if anybody has worked on this
 combination, as
 I am wondering if it's possible to do that at all.
 Any comments/suggestions on this would be really helpful.

 Cheers
 -Madhavi



 Madhavi T
 E-Learning Systems Group
 CARET, University of Cambridge
 16 Mill Lane
 Cambridge CB2 1SB

 Tel: +44 (0) 1223 765382
 [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 Validator problem error with default values

2002-10-16 Thread Heligon Sandra


I use Struts Validator in my application and I have the following
error
on my JSP login page:

cannot be less than 3 characters. Password cannot be less than 3
characters. UsernamePassword

Username:
Password:
button: Login


This error has to be displayed if a user select the login button
without
enter a loginName or password.
But not the first time that the page is displayed.
Is it due to the forward ?

My configuration is the following Struts1.1b2 with Tiles and
Validator:

struts_config.xml:
form-beans
  form-bean name=LoginForm dynamic=true
type=org.apache.struts.validator.DynaValidatorForm
form-property name=userName type=java.lang.String
initial= /
form-property name=password type=java.lang.String
initial= /
  /form-bean
/form-beans

global-forwards
forward name=welcome path=/welcome.do /
forward name=login path=/login.do /
/global-forwards

action path=/welcome
type=org.apache.struts.tiles.actions.NoOpAction
forward name=success path=site.login.page/
/action

action path=/login
name=LoginForm
validate=true
type=com.compagny.LoginAction
input=site.login.page
scope=request
forward name=success path=callsStatus.do /
/action

validation.xml:
form name=LoginForm

field property=userName
depends=minlength,maxlength
arg0   key=label.username/
arg1   key=${var:minlength} name=minlength
   resource=false/
arg2   key=${var:maxlength} name=maxlength
   resource=false/
var
var-namemaxlength/var-name
var-value16/var-value
/var
var
var-nameminlength/var-name
var-value3/var-value
/var
/field

field property=password
depends=minlength,maxlength
arg0   key=label.password/
arg1   key=${var:minlength} name=minlength
   resource=false/
arg2   key=${var:maxlength} name=maxlength
   resource=false/
var
var-namemaxlength/var-name
var-value16/var-value
/var
var
var-nameminlength/var-name
var-value3/var-value
/var
/field

/form

Thanks in advance,




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




RE: Struts taglibs without Struts

2002-10-16 Thread Praful . Kapadia

The problem with trying is that whilst you can prove that some tags work, it is much 
harder to prove that all tags in all taglibs will work. For that you need knowledge of 
the architecture.

Someone who had this knowledge sent me the answer.

Praful
 

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 17:02
To: Struts Users Mailing List
Subject: RE: Struts taglibs without Struts


What happened when you tried it?   You did try itright?

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: Struts taglibs without Struts


 Hi

 Can the Struts taglibs, e.g. struts-html, be used on their own
 i.e. just included in a page without using the Struts framework?

 In other words can it be used in a standalone way like, say, JSTL?

 TIA

 Praful

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

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

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


 --
 To unsubscribe, e-mail:
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]


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

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

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


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




RE: Struts taglibs without Struts

2002-10-16 Thread James Mitchell

Well, I’m happy you got your answer.

I hate giving out fish, I’d much rather hand out a pole and instruction
manual.

Good Luck!

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 12:14 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Struts taglibs without Struts


 The problem with trying is that whilst you can prove that some
 tags work, it is much harder to prove that all tags in all
 taglibs will work. For that you need knowledge of the architecture.

 Someone who had this knowledge sent me the answer.

 Praful


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 16 October 2002 17:02
 To: Struts Users Mailing List
 Subject: RE: Struts taglibs without Struts


 What happened when you tried it?   You did try itright?

 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org




  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 16, 2002 8:03 AM
  To: [EMAIL PROTECTED]
  Subject: Struts taglibs without Struts
 
 
  Hi
 
  Can the Struts taglibs, e.g. struts-html, be used on their own
  i.e. just included in a page without using the Struts framework?
 
  In other words can it be used in a standalone way like, say, JSTL?
 
  TIA
 
  Praful
 
  Visit our website at http://www.ubswarburg.com
 
  This message contains confidential information and is intended only
  for the individual named.  If you are not the named addressee you
  should not disseminate, distribute or copy this e-mail.  Please
  notify the sender immediately by e-mail if you have received this
  e-mail by mistake and delete this e-mail from your system.
 
  E-mail transmission cannot be guaranteed to be secure or error-free
  as information could be intercepted, corrupted, lost, destroyed,
  arrive late or incomplete, or contain viruses.  The sender therefore
  does not accept liability for any errors or omissions in the contents
  of this message which arise as a result of e-mail transmission.  If
  verification is required please request a hard-copy version.  This
  message is provided for informational purposes and should not be
  construed as a solicitation or offer to buy or sell any securities or
  related financial instruments.
 
 
  --
  To unsubscribe, e-mail:
 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]


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

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

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


--
To unsubscribe, e-mail:
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]




sortPictogram not found

2002-10-16 Thread Heiko . Mesech . extern

hi,

many thank's for incomming help ;-) (especialy an 
Jean-Noel Ribette...)

i'm trying to use my own sort.gif like

layout:collection name=tableBean styleClass=FORM width=600
sortAction=client sortPictogram=jsp/struts_layout/sort.gif

but i'm getting an error:

java.util.MissingResourceException: Can't find resource for bundle
java.util.PropertyResourceBundle, key jsp/struts_layout/sort.gif 

where must it be configured ???

thanks for help

heiko mesech






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




RE: Struts taglibs without Struts

2002-10-16 Thread Joe Germuska

At 12:02 PM -0400 2002/10/16, James Mitchell wrote:
What happened when you tried it?   You did try itright?

I've ported the struts taglibs to another project; you have to go 
through and weed out some pervasive references to Struts classes, but 
it's doable.  It's particuarly easy with the logic tags, although if 
you can use JSP 1.2, you should just use the JSTL for that.  If 
you're stuck with JSP 1.1, you could probably pull out all the Struts 
specific bits of the bean, html, and logic tag libraries in half a 
day or so.

Check the license to make sure you can use the resulting code, but 
the Apache license is pretty liberal...

Joe




James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 16, 2002 8:03 AM
  To: [EMAIL PROTECTED]
  Subject: Struts taglibs without Struts


  Hi

  Can the Struts taglibs, e.g. struts-html, be used on their own
  i.e. just included in a page without using the Struts framework?

  In other words can it be used in a standalone way like, say, JSTL?

  TIA

  Praful

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

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

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


  --
  To unsubscribe, e-mail:
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]


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

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




Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann

My business layer bean has a field as java.util.Date (example:
birthDate). My form bean uses the String for this date (in this
example.. String birthDate). The problem is I can't seem to use
BeanUtils to copy the properties since it appears BeanUtils will only
convert a java.sql.Date by default (get
java.lang.IllegalArgumentException: argument type mismatch when using
java.util.Date) . I tried dealing with registering a custom Coverter I
wrote and registering it with ConvertUtils and below is a copy of the
message I posted concerning this problem.

I'm posting this question, though, because I'm curious how others have
dealt with this situation? Maybe using the BeanUtils or PropertyUtils
is not that common of a practice or most use a java.sql.Date as
opposed to java.util.Date? Having dates in form fields is common so
I'm curious how others transfer their form field dates to their
business model (as java.util.Date?).

Thanks for any info.

Below was Converter question I posted last night, in case anyone is
interested:

I'm still having a bit of trouble trying to use BeanUtils to copy
java.util.Date properties. It appears that it will work fine by
default with java.sql.Date but isn't set up by default for
java.util.Date (which I'm using for Dates in my business bean). I
build a class implements Converter interface and used the ConvertUtils
to register java.util.Date with this Converter. It works great
converting the String form properties to Dates as expected. The
question I have is how do I build a converter (or modify the existing
one) that will convert the Date properties to String properties when I
want to go the other way with the copyProperties (populate my DynaForm
from a business bean)? I tried modifying the covert method of the
Converter I created so that if the arg was a String property it would
covert and return a Date but the problem is this Converter never got
used when going the other direction (Date to String). Any ideas what
I'm doing wrong or what I can do to solve this problem?


-- 

Rick
mailto:[EMAIL PROTECTED]


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




ApplicationResources.properties Size limit

2002-10-16 Thread Smith, Johnathan M.

Does anyone know a size limit with the ApplicationResources.properties?? We
are thinking about making some properties about 1k in size and we will have
a number of them?


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




RE: Struts taglibs without Struts

2002-10-16 Thread Praful . Kapadia

So your pole and instruction manual in this case is: try out every tag in every taglib 
and prove it yourself?

This seems to be asking too much of someone dipping their toe for the first time in 
the Struts pond. 

Praful
 

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 17:19
To: Struts Users Mailing List
Subject: RE: Struts taglibs without Struts


Well, I'm happy you got your answer.

I hate giving out fish, I'd much rather hand out a pole and instruction
manual.

Good Luck!

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 12:14 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Struts taglibs without Struts


 The problem with trying is that whilst you can prove that some
 tags work, it is much harder to prove that all tags in all
 taglibs will work. For that you need knowledge of the architecture.

 Someone who had this knowledge sent me the answer.

 Praful


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: 16 October 2002 17:02
 To: Struts Users Mailing List
 Subject: RE: Struts taglibs without Struts


 What happened when you tried it?   You did try itright?

 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org




  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 16, 2002 8:03 AM
  To: [EMAIL PROTECTED]
  Subject: Struts taglibs without Struts
 
 
  Hi
 
  Can the Struts taglibs, e.g. struts-html, be used on their own
  i.e. just included in a page without using the Struts framework?
 
  In other words can it be used in a standalone way like, say, JSTL?
 
  TIA
 
  Praful
 
  Visit our website at http://www.ubswarburg.com
 
  This message contains confidential information and is intended only
  for the individual named.  If you are not the named addressee you
  should not disseminate, distribute or copy this e-mail.  Please
  notify the sender immediately by e-mail if you have received this
  e-mail by mistake and delete this e-mail from your system.
 
  E-mail transmission cannot be guaranteed to be secure or error-free
  as information could be intercepted, corrupted, lost, destroyed,
  arrive late or incomplete, or contain viruses.  The sender therefore
  does not accept liability for any errors or omissions in the contents
  of this message which arise as a result of e-mail transmission.  If
  verification is required please request a hard-copy version.  This
  message is provided for informational purposes and should not be
  construed as a solicitation or offer to buy or sell any securities or
  related financial instruments.
 
 
  --
  To unsubscribe, e-mail:
 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]


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

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

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


--
To unsubscribe, e-mail:
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]


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

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

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

RE: Am I the only one using java.util.Date?

2002-10-16 Thread James Higginbotham

If you search the list archives at www.mail-archive.com, I think you
will find your question answered. Pappa Struts (Craig) answered it, as
did other folks. 

James

 -Original Message-
 From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 16, 2002 11:22 AM
 To: Struts List
 Subject: Am I the only one using java.util.Date?
 
 
 My business layer bean has a field as java.util.Date 
 (example: birthDate). My form bean uses the String for this 
 date (in this example.. String birthDate). The problem is I 
 can't seem to use BeanUtils to copy the properties since it 
 appears BeanUtils will only convert a java.sql.Date by default (get
 java.lang.IllegalArgumentException: argument type mismatch when using
 java.util.Date) . I tried dealing with registering a custom 
 Coverter I wrote and registering it with ConvertUtils and 
 below is a copy of the message I posted concerning this problem.
 
 I'm posting this question, though, because I'm curious how 
 others have dealt with this situation? Maybe using the 
 BeanUtils or PropertyUtils is not that common of a practice 
 or most use a java.sql.Date as opposed to java.util.Date? 
 Having dates in form fields is common so I'm curious how 
 others transfer their form field dates to their business 
 model (as java.util.Date?).
 
 Thanks for any info.
 
 Below was Converter question I posted last night, in case anyone is
 interested:
 
 I'm still having a bit of trouble trying to use BeanUtils to 
 copy java.util.Date properties. It appears that it will work 
 fine by default with java.sql.Date but isn't set up by 
 default for java.util.Date (which I'm using for Dates in my 
 business bean). I build a class implements Converter 
 interface and used the ConvertUtils to register 
 java.util.Date with this Converter. It works great converting 
 the String form properties to Dates as expected. The question 
 I have is how do I build a converter (or modify the existing
 one) that will convert the Date properties to String 
 properties when I want to go the other way with the 
 copyProperties (populate my DynaForm from a business bean)? I 
 tried modifying the covert method of the Converter I created 
 so that if the arg was a String property it would covert and 
 return a Date but the problem is this Converter never got 
 used when going the other direction (Date to String). Any 
 ideas what I'm doing wrong or what I can do to solve this problem?
 
 
 -- 
 
 Rick
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [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 taglibs without Struts

2002-10-16 Thread Praful . Kapadia

I've ported the struts taglibs to another project; you have to go 

Thanks Joe. It's good to know someone else has done it.


Praful
 

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 17:12
To: Struts Users Mailing List
Subject: RE: Struts taglibs without Struts


At 12:02 PM -0400 2002/10/16, James Mitchell wrote:
What happened when you tried it?   You did try itright?

I've ported the struts taglibs to another project; you have to go 
through and weed out some pervasive references to Struts classes, but 
it's doable.  It's particuarly easy with the logic tags, although if 
you can use JSP 1.2, you should just use the JSTL for that.  If 
you're stuck with JSP 1.1, you could probably pull out all the Struts 
specific bits of the bean, html, and logic tag libraries in half a 
day or so.

Check the license to make sure you can use the resulting code, but 
the Apache license is pretty liberal...

Joe




James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 16, 2002 8:03 AM
  To: [EMAIL PROTECTED]
  Subject: Struts taglibs without Struts


  Hi

  Can the Struts taglibs, e.g. struts-html, be used on their own
  i.e. just included in a page without using the Struts framework?

  In other words can it be used in a standalone way like, say, JSTL?

  TIA

  Praful

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

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

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


  --
  To unsubscribe, e-mail:
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]


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

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


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

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

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


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




Re: Am I the only one using java.util.Date?

2002-10-16 Thread kiuma

Since I'm connected to jboss
I use java.sql.Date.

Then I pass values in millis and use a GregorianCalendar to manage dates.


Rick Reumann wrote:

My business layer bean has a field as java.util.Date (example:
birthDate). My form bean uses the String for this date (in this
example.. String birthDate). The problem is I can't seem to use
BeanUtils to copy the properties since it appears BeanUtils will only
convert a java.sql.Date by default (get
java.lang.IllegalArgumentException: argument type mismatch when using
java.util.Date) . I tried dealing with registering a custom Coverter I
wrote and registering it with ConvertUtils and below is a copy of the
message I posted concerning this problem.

I'm posting this question, though, because I'm curious how others have
dealt with this situation? Maybe using the BeanUtils or PropertyUtils
is not that common of a practice or most use a java.sql.Date as
opposed to java.util.Date? Having dates in form fields is common so
I'm curious how others transfer their form field dates to their
business model (as java.util.Date?).

Thanks for any info.

Below was Converter question I posted last night, in case anyone is
interested:

I'm still having a bit of trouble trying to use BeanUtils to copy
java.util.Date properties. It appears that it will work fine by
default with java.sql.Date but isn't set up by default for
java.util.Date (which I'm using for Dates in my business bean). I
build a class implements Converter interface and used the ConvertUtils
to register java.util.Date with this Converter. It works great
converting the String form properties to Dates as expected. The
question I have is how do I build a converter (or modify the existing
one) that will convert the Date properties to String properties when I
want to go the other way with the copyProperties (populate my DynaForm
from a business bean)? I tried modifying the covert method of the
Converter I created so that if the arg was a String property it would
covert and return a Date but the problem is this Converter never got
used when going the other direction (Date to String). Any ideas what
I'm doing wrong or what I can do to solve this problem?





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




struts + EJBs?

2002-10-16 Thread Vincent Stoessel

Hello,
I am using struts 1.1b2
I am finding that modeling my business logic in custom beans seems to be
working fine for me in tomcat 4.1.x enviroment. I know that my 
management would really like for me to add the buzz compliant EJBs to 
the mix. I was looking at using jboss. Can some pro-Jboss/EJB person 
tell why in the world I need to be using EJB instead of using my own 
model classes? it is a relatively small app but an important one for the 
company.
Thanks.
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




RE: Am I the only one using java.util.Date?

2002-10-16 Thread du Plessis, Corneil C

When you input or output dates you should java.text.SimpleDateFormat format
and parse functions to convert to and from a known format string like
-MM-dd that you can maintain in a ResourceBundle.

Tell the user which format you expect by rendering todays date with the
format string.

Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137



-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: 16 October, 2002 18:22
To: Struts List
Subject: Am I the only one using java.util.Date?


My business layer bean has a field as java.util.Date (example:
birthDate). My form bean uses the String for this date (in this
example.. String birthDate). The problem is I can't seem to use
BeanUtils to copy the properties since it appears BeanUtils will only
convert a java.sql.Date by default (get
java.lang.IllegalArgumentException: argument type mismatch when using
java.util.Date) . I tried dealing with registering a custom Coverter I
wrote and registering it with ConvertUtils and below is a copy of the
message I posted concerning this problem.

I'm posting this question, though, because I'm curious how others have
dealt with this situation? Maybe using the BeanUtils or PropertyUtils
is not that common of a practice or most use a java.sql.Date as
opposed to java.util.Date? Having dates in form fields is common so
I'm curious how others transfer their form field dates to their
business model (as java.util.Date?).

Thanks for any info.

Below was Converter question I posted last night, in case anyone is
interested:

I'm still having a bit of trouble trying to use BeanUtils to copy
java.util.Date properties. It appears that it will work fine by
default with java.sql.Date but isn't set up by default for
java.util.Date (which I'm using for Dates in my business bean). I
build a class implements Converter interface and used the ConvertUtils
to register java.util.Date with this Converter. It works great
converting the String form properties to Dates as expected. The
question I have is how do I build a converter (or modify the existing
one) that will convert the Date properties to String properties when I
want to go the other way with the copyProperties (populate my DynaForm
from a business bean)? I tried modifying the covert method of the
Converter I created so that if the arg was a String property it would
covert and return a Date but the problem is this Converter never got
used when going the other direction (Date to String). Any ideas what
I'm doing wrong or what I can do to solve this problem?


-- 

Rick
mailto:[EMAIL PROTECTED]


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




Re: Ending a session

2002-10-16 Thread Marc AMIR-TAHMASSEB

Thank' Sri,
but my problem subsists !

In my page named pageX when i use the quit button , then in the 
perfom i invalidate() the session and then return mapping for the 
login page as describe below.

if (mapping.getPath().equals(/doQuit)) {
  HttpSession session = request.getSession(false);
  if (session != null) {
session.invalidate();
   }
  return mapping.findForward(login);
}
Then my login page is displayed and my session id has changed.
At this time, i use the BACK button of my browser. The old pageX is 
displayed.
if i perfom an action in this page, then the action is realised with the 
old session id (whereas it should not be done !)

do you have an idea ?

thanks,

Marc
 

Sri Sankaran wrote:

Session.invalidate() is one way.

Sri

-Original Message-
From: Marc AMIR-TAHMASSEB [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 3:26 AM
To: [EMAIL PROTECTED]
Subject: Ending a session


Hi everybody,

Is there a way to end a user session after a action ? Typically, i have in my page a 
Close button that disply the login 
form. But actualy if i use the back button of the browser, i come back 
to the page where the close were. Then i can continue like if the 
session wasn't closed...

thank's

  



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




RE: Struts 1.1 Release

2002-10-16 Thread Craig R. McClanahan

On Wed, 16 Oct 2002 [EMAIL PROTECTED] wrote:

 Date: Wed, 16 Oct 2002 09:21:04 -0500
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Struts 1.1 Release

  Really 1.1 is so much better then 1.02 that you should be calling it
 2.0
  when it is released (and the current beta releases should be something

  like 1.99)
 

 Of course Java is at 1.4.1.  How similar is 1.4 to 1.0?  And why do they
 call 1.2+ Java 2?  Why didn't they just call it Java 2.0?  Will there
 ever be a Java 2.0 or will it just go to 1.100?  Coming from a Microsoft
 background (and finally seeing the light), I'm not familiar with the
 strange versioning strategy in the Java Community and it's always
 baffled me.  At our company we release a new major version every year
 whether we need to or not.  I'm working to evangelize things like Struts
 and open source in general, and part of that may be trying to change the
 perception of release names, and words like beta.


Every product strategy is different, but most Java projects I'm familiar
with or involved in don't flip the major version number unless there are
significant backwards incompatibilities and/or very substantial new
features.  By that rule, we could have called it Struts 2.0 instead, but I
want to emphasize the fact that 1.0 based apps should generally run fine
in 1.1 unless you're doing some really intricate things.  (In other words,
the engineers picked the version number instead of the marketing folks :-).

For future versions of Struts, I'd likely support the x.y.z style that
Tomcat 4.1 (and Apache httpd server releases) use, where you do a
milestone with no implied quality label at all, and it's then assigned
an alpha, beta, or general availability label after the fact, based
on feedback.  But it's too late in the 1.1 cycle to change things that
radically this time around.

 Greg


Craig


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




Re: Is Struts full J2EE compliant?

2002-10-16 Thread Vincent Stoessel

Hello, this brings out an issue that I have been dealing with
lately. Management wants my fledging struts application to run
on a J2EE application server. Even though I beleive that the whole
app will continue to run fine on tomcat 4.1.x.




David Graham wrote:
 You can find all the java specs on java.sun.com.  Being J2EE compliant, 
 as I understand it, is only applicable to app. servers.  Struts will 
 work in all J2EE compliant app. servers because it is 100% java code.
 
 David
 
 
 
 
 
 
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Is Struts full J2EE compliant?
 Date: Wed, 16 Oct 2002 09:57:01 +0200


 Hi list,

 Is Struts full J2EE compliant?
 Can I find confirmation on this somewhere?
 And by the way, where can I find a short article who summary the J2EE
 specification.

 Thanks.


 Gilles Vandaele
 0498 52 64 12
 [EMAIL PROTECTED]


 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 _
 Internet access plans that fit your lifestyle -- join MSN. 
 http://resourcecenter.msn.com/access/plans/default.asp
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]


-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Re: Is Struts full J2EE compliant?

2002-10-16 Thread Craig R. McClanahan



On Wed, 16 Oct 2002 [EMAIL PROTECTED] wrote:

 Date: Wed, 16 Oct 2002 09:57:01 +0200
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Is Struts full J2EE compliant?


 Hi list,

 Is Struts full J2EE compliant?

Struts is not a J2EE application server itself, but it is based on the
standard J2EE specifications and technologies (specifically, Servlet 2.2
and JSP 1.1) that are part of J2EE 1.2.  Struts based apps should run fine
on any J2EE 1.2 or later server.

 Can I find confirmation on this somewhere?
 And by the way, where can I find a short article who summary the J2EE
 specification.

Start at the following URL:

  http://java.sun.com/j2ee/


 Thanks.


 Gilles Vandaele
 0498 52 64 12
 [EMAIL PROTECTED]


Craig


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




Re[2]: Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann



On Wednesday, October 16, 2002, 12:28:15 PM, James wrote:

JH If you search the list archives at www.mail-archive.com, I think
JH you will find your question answered. Pappa Struts (Craig)
JH answered it, as did other folks.

Can you please show me where this is the case?

Before my post I had searched through many pages of Struts
archives and did not find an answer. Thanks for any more light you
can shed on this issue.

-- 

Rick
mailto:[EMAIL PROTECTED]


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




Re: What it will take for a 1.1 release... (was RE: Struts 1.1Release)

2002-10-16 Thread Joe Germuska

   That said, Struts components like Tiles, Validator, and most
   recently, the EL version of the tag libraries were all dreamed up by
  someone who saw a need, and they were adopted into Struts because
  those people committed their own energy to making something happen.

Because of all these having been incorporated, I think Struts is now way
past something that should have been called a 1.1 release. According to the
release plan document, 1.1 beta 2 was supposed to be feature-complete; the
intent was to provide a stable base for bugfixes and documentation updates,
leading to the 1.1 final release. As someone pointed out earlier in this
thread, now that all of this additional (wonderful!) functionality has been
added it's much more like a 2.0 release.

Well, a little perspective is necessary here -- Tiles and Validator 
have been in the 1.1 mix since well before 1.1.b2.  I do believe that 
the EL taglibs were added after 1.1b2, so maybe there's a bit of 
feature creep -- but they seem real handy if you have the liberty of 
using JSP 1.2 (wish I did...)

   The Release Plan page on the Jakarta site lists the bugs which are
   officially targeted for a 1.1 release.  However, it's pretty out of
  date.  Perhaps turning this into a living document would be a good
   volunteer opportunity?

*snip

I definitely agree that this would be useful. I would prefer it to go
slightly further though, into being a milestone plan along the same lines as
the one Mozilla has (i.e. to set out the features and bug fixes that are
targetted for the next N releases, rather than just the next one). I find
that gives a very clear picture of where the project is at. It does need to
be kept up to date, though...

Do you have any time to offer towards creating such a plan? 
Everybody pitches in around here...

I think Mozilla has a much larger community, and does it have more 
people who get paid to work on it?

Not that it's not a good goal -- just that wishing won't make it so!

Joe

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

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




RE: Re[2]: Am I the only one using java.util.Date?

2002-10-16 Thread James Higginbotham

Simple search for date conversion:

http://www.mail-archive.com/cgi-bin/htsearch?method=andformat=shortcon
fig=struts-user_jakarta_apache_orgrestrict=exclude=words=date+convers
ion

The Struts forms best practice thread was the most recent one I
believe.. Lots of results to read through.. Enjoy!

James

 -Original Message-
 From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 16, 2002 11:59 AM
 To: James Higginbotham
 Cc: Struts Users Mailing List
 Subject: Re[2]: Am I the only one using java.util.Date?
 
 
 
 
 On Wednesday, October 16, 2002, 12:28:15 PM, James wrote:
 
 JH If you search the list archives at www.mail-archive.com, 
 I think you 
 JH will find your question answered. Pappa Struts (Craig) 
 answered it, 
 JH as did other folks.
 
 Can you please show me where this is the case?
 
 Before my post I had searched through many pages of Struts
 archives and did not find an answer. Thanks for any more light you
 can shed on this issue.
 
 -- 
 
 Rick
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Struts 1.1 Release

2002-10-16 Thread Chanoch

Poss diff for front page?

$ diff -n index.html nextstrutsversionindex.html
d45 3
a47 8
  a name=Welcome/atable width=100% cellpadding=5
cellspacing=5 border=0trtd bgcolor=#023264font size=+1
face=arial,helvetica,sanserif color=#ffstrongWelcome to Stru
ts/strong/font/td/trtrtdblockquote

  h1THE NEXT VERSION OF STRUTS WILL BE RELEASED WHEN THE
CUURENTLY
OPEN BUGS ARE DEALTH WITH/h1



  pWelcome to Struts! The goal of this project is to
provide an


chanoch


-

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer. Although we routinely screen for viruses,
recipients should check this e-mail and any attachment for viruses. We
make no warranty as to absence of viruses in this e-mail or any
attachments.


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: 16 October 2002 05:47
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Struts 1.1 Release


It wouldn't matter if it was plastered on the main struts page (WITH
BLINKING TEXT), someone would still askLOL.

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 12:46 AM
 To: Struts Users Mailing List
 Subject: RE: Struts 1.1 Release


 Ye gods!
 Here we go again:
 snip
 The 12th of April 2156 at 15:28 in the afternoon.

 Or perhaps even sooner if its ready before then... ;-) /snip

 Hey Craig? Any chance we can get my more specific answer for this 
 question into the FAQ?

 -Original Message-
 From: Bachan Sadanandan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 05:54
 To: Struts Users Mailing List
 Subject: Struts 1.1 Release


 Hi all,
 Any idea when Struts 1.1 would be ready for Production .???

 Thanks !
 Bachan

 --
 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: Am I the only one using java.util.Date?

2002-10-16 Thread Brian Hickey

Rick,

You are on the right track. A suggestion would be to break the month, day
and year out on your forms (makes nice-nice with html:select) and provide
the code to populate them in your form instance. The conversion is actually
quite simple:

public GregorianCalendar getStartDate()
{
  return new GregorianCalendar( this.getStartYear(), this.getStartMonth()-1,
this.getStartDay() );
}

This getter (exists in the same form instance) will hand off the startDate
as a java.util.Date to your (dyn)Action.

HTH

Brian

- Original Message -
From: Rick Reumann [EMAIL PROTECTED]
To: Struts List [EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 12:22 PM
Subject: Am I the only one using java.util.Date?


 My business layer bean has a field as java.util.Date (example:
 birthDate). My form bean uses the String for this date (in this
 example.. String birthDate). The problem is I can't seem to use
 BeanUtils to copy the properties since it appears BeanUtils will only
 convert a java.sql.Date by default (get
 java.lang.IllegalArgumentException: argument type mismatch when using
 java.util.Date) . I tried dealing with registering a custom Coverter I
 wrote and registering it with ConvertUtils and below is a copy of the
 message I posted concerning this problem.

 I'm posting this question, though, because I'm curious how others have
 dealt with this situation? Maybe using the BeanUtils or PropertyUtils
 is not that common of a practice or most use a java.sql.Date as
 opposed to java.util.Date? Having dates in form fields is common so
 I'm curious how others transfer their form field dates to their
 business model (as java.util.Date?).

 Thanks for any info.




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




RE: Am I the only one using java.util.Date?

2002-10-16 Thread Padma Ginnaram

If you are using struts 1.1 and validator framework,
StrutsValidator.validateDate converts the string to a java.util.Date and
returns this Date. This returned value gets saved on the validationResults
in the ValidatorForm.

ValidatorForm.getResultValueMap() returns a HashMap containing these
converted values associated to each form property that is being
validated/translated.

I am not using 1.1 yet, but used the same approach in 1.0 by extending
struts validator framework to do my form property conversion. 

-Padma

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 12:22 PM
To: Struts List
Subject: Am I the only one using java.util.Date?


My business layer bean has a field as java.util.Date (example:
birthDate). My form bean uses the String for this date (in this
example.. String birthDate). The problem is I can't seem to use
BeanUtils to copy the properties since it appears BeanUtils will only
convert a java.sql.Date by default (get
java.lang.IllegalArgumentException: argument type mismatch when using
java.util.Date) . I tried dealing with registering a custom Coverter I
wrote and registering it with ConvertUtils and below is a copy of the
message I posted concerning this problem.

I'm posting this question, though, because I'm curious how others have
dealt with this situation? Maybe using the BeanUtils or PropertyUtils
is not that common of a practice or most use a java.sql.Date as
opposed to java.util.Date? Having dates in form fields is common so
I'm curious how others transfer their form field dates to their
business model (as java.util.Date?).

Thanks for any info.

Below was Converter question I posted last night, in case anyone is
interested:

I'm still having a bit of trouble trying to use BeanUtils to copy
java.util.Date properties. It appears that it will work fine by
default with java.sql.Date but isn't set up by default for
java.util.Date (which I'm using for Dates in my business bean). I
build a class implements Converter interface and used the ConvertUtils
to register java.util.Date with this Converter. It works great
converting the String form properties to Dates as expected. The
question I have is how do I build a converter (or modify the existing
one) that will convert the Date properties to String properties when I
want to go the other way with the copyProperties (populate my DynaForm
from a business bean)? I tried modifying the covert method of the
Converter I created so that if the arg was a String property it would
covert and return a Date but the problem is this Converter never got
used when going the other direction (Date to String). Any ideas what
I'm doing wrong or what I can do to solve this problem?


-- 

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




FormBean Vs ModelBean dilemma

2002-10-16 Thread Dan Tran

Hello,

I am seeking for some advice on the best way to implement my project

I have a bout 20 screens to display and persist into DB.
I follow the tutorial on


http://www.keyboardmonkey.com/pilotlight/next/Tutorial_partTwo.jsp?content=y
esplease

and implemented my prototype and ended up with 2 similar java object
hierachies.  One for the
form bean and one for the model bean.  As recommend by all expert on this
list as well as Chuch's book,
All action form bean's properties are String, the actionform beans are copy
to the model beans to be persisted.

The dilemma here is I have 2 similar groups of objects (and lots of set and
get methods to type) and scare the hell out
my boss ;-)

Any suggestion?

-Dan

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




Re[4]: Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann



On Wednesday, October 16, 2002, 1:19:01 PM, James wrote:

JH Simple search for date conversion:

JH http://www.mail-archive.com/cgi-bin/htsearch?method=andformat=shortcon
JH fig=struts-user_jakarta_apache_orgrestrict=exclude=words=date+convers
JH ion

James, I posted myself many times in that thread. That thread does
not answer the question. It deals with java.sql.Date not
java.util.Date and yes Craig does mention about custom Converters
but I'm wondering if others have done that as their solution for
dealing with java.util.Date and BeanUtils, etc.


-- 

Rick
mailto:[EMAIL PROTECTED]


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




Re[2]: Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann


On Wednesday, October 16, 2002, 12:40:01 PM, kiuma wrote:

k Since I'm connected to jboss I use java.sql.Date.

k Then I pass values in millis and use a GregorianCalendar to manage dates.

   Thank you, but that's not really my question.

   I'm wondering more how others deal with getting their String
   versions of Dates into the correct Data type in their business bean
   and use BeanUtils also. (I know BeanUtils converts
   java.sql.Date but I'm wondering if others are using java.util.Date
   and if so how are they handling usiing
   BeanUtils.copyProperties(.. )... are they creating a custom converter?
   If so are they also using BeanUtils.copyProperties( ..) to copy
   back from their business object to their form bean using a
   Converter?

   I absolutely love the power of BeanUtils.copyProperties, I just
   find it surprising that others haven't run into issues using this
   with java.util.Date. (Hence my new post here because maybe I
   shouldn't be using this data type?). I'll dig in more with the
   issue of writing my own Converter and registering it (as described
   in my other post) but before I tackle that more I was just curious
   how others have dealt it with (why reinvent the wheel thing:)

   Thanks



-- 

Rick
mailto:[EMAIL PROTECTED]


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




html:submit with an onclick

2002-10-16 Thread Wendy Smoak


I need to set two form properties when a button is clicked.  The following
works with just the setAction() call, but if I add the setKeyToDelete(), it
doesn't.  I don't know much about Javascript, though, so I may have this all
wrong.

The docs have [RTExpr] with the onclick attribute, so I was hoping it would
evaluate before calling the function.  But it doesn't even compile as is.
(Then again, I'm looking at the nightly build docs, but using 1.1.  Has the
RTExpr functionality been added recently?)

html:submit property=submit 
  onclick=setAction('Delete Staff');
setKeyToDelete('bean:write name=staffMember/');
   styleClass=deleteButton titleKey=button.delete.staff 
   value= /

The problem I'm trying to solve:

12345 [x]
23432 [x]
23433 [x]

User clicks one of the delete buttons.  The [x] buttons cannot have a
'value' attribute because no text can show up on the button-- it's an image.
I don't know how many buttons there will be in advance, and I have to figure
out which button was pressed.

There *is* a List in the ActionForm.  It has the [12345,23423,23433] values
noted above.  I've read about the List-backed form attributes, but I don't
quite see how to use it to solve this problem.

There is a LookupDispatchAction that looks at the 'action' form element, so
I have to get that set, as well as set something that will allow me to
figure out which of the values the person is trying to delete.

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



When ActionFrom object is cleared from the session

2002-10-16 Thread atta ur-rehman

Dear all,

When does STRUTS framework removes ActionForm object from the session, if at all?

Any help or pointers to help on this topic is appreciated.

Regards,

ATTA



RE: html:submit with an onclick

2002-10-16 Thread Karr, David

Response at end.

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 10:39 AM
 To: 'Struts Users Mailing List'
 Subject: html:submit with an onclick
 
 I need to set two form properties when a button is clicked.  
 The following
 works with just the setAction() call, but if I add the 
 setKeyToDelete(), it
 doesn't.  I don't know much about Javascript, though, so I 
 may have this all
 wrong.
 
 The docs have [RTExpr] with the onclick attribute, so I was 
 hoping it would
 evaluate before calling the function.  But it doesn't even 
 compile as is.
 (Then again, I'm looking at the nightly build docs, but using 
 1.1.  Has the
 RTExpr functionality been added recently?)
 
 html:submit property=submit 
   onclick=setAction('Delete Staff');
 setKeyToDelete('bean:write name=staffMember/');
styleClass=deleteButton titleKey=button.delete.staff 
value= /

You can't nest tags in tag attributes.  You also can't nest quoted strings
with the same quote type.

In my view, you have two alternatives:

Ensure the staffMember is a scripting variable, and make the entire
onclick value be an rtexprvalue, concatenating the values you need (it has
to be the entire attribute value, not just a portion of it).

And the somewhat more radical position: Use the Struts-EL library.  Then,
this would look like this:

html-el:submit property=submit
onclick=setAction('Delete
Staff');setKeyToDelete('${staffMember}');
styleClass=deleteButton titleKey=button.delete.staff
value= /

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




Re: Ending a session

2002-10-16 Thread chanoch

you can do anythign about the back button - its in the specs (of HTTP I
guess) that the browser can cache previous pages in memory - otherwise known
as History - so that the user can navigate backwards - sometimes known as
the back button)

Tricks to get around this are deleting the history or disabling the back
button - both use javascript so are unreliable and are generally considered
as unfriendly to the user. So, dont do it and write your code so that it can
cope with invalid sessions

chanoch

- Original Message -
From: Marc AMIR-TAHMASSEB [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 6:00 PM
Subject: Re: Ending a session


 Thank' Sri,
 but my problem subsists !

 In my page named pageX when i use the quit button , then in the
 perfom i invalidate() the session and then return mapping for the
 login page as describe below.

 if (mapping.getPath().equals(/doQuit)) {
   HttpSession session = request.getSession(false);
   if (session != null) {
 session.invalidate();
}
   return mapping.findForward(login);
 }
 Then my login page is displayed and my session id has changed.
 At this time, i use the BACK button of my browser. The old pageX is
 displayed.
 if i perfom an action in this page, then the action is realised with the
 old session id (whereas it should not be done !)

 do you have an idea ?

 thanks,

 Marc


 Sri Sankaran wrote:

 Session.invalidate() is one way.
 
 Sri
 
 -Original Message-
 From: Marc AMIR-TAHMASSEB [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 3:26 AM
 To: [EMAIL PROTECTED]
 Subject: Ending a session
 
 
 Hi everybody,
 
 Is there a way to end a user session after a action ? Typically, i have
in my page a Close button that disply the login
 form. But actualy if i use the back button of the browser, i come back
 to the page where the close were. Then i can continue like if the
 session wasn't closed...
 
 thank's
 
 
 


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




  1   2   >