loadMessages?

2006-08-09 Thread Konrad Billewicz
Hello,

I would like to get ActionMessages saved in the request. It is something 
opposite to saveMessages. How should I do it?

Best regards,
Konrad Billewicz 




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



Re: Validator1.3 Struts 1.3

2006-08-09 Thread Niall Pemberton

Looks like something has gone wrong loading the validation config. Can
you check your logs to see if there were any errors?

Also take a look thru' the upgrade notes (you'll need to check them
all to go from 1.1 to 1.3) for upgrading from 1.1 to 1.3
 http://wiki.apache.org/struts/StrutsUpgrade

The struts-examples webapp shipped in Struts 1.3.5 uses Validator
1.3.0 so thats another thing to look at to compare with your webapp.

In order to use the feature you want you'll need to change the DTD
references in your validation.xml and remember to deploy the
validator-rules.xml shipped with Struts 1.3.5

Niall


On 8/8/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote:


Hi,

I'm testing my application with struts 1.3 and validator 1.3.
I've got this error:

ValidatorResources not found in application scope under key
org.apache.commons.validator.VALIDATOR_RESOURCE


I don't know why because the same application worked well with validator
1.1 and struts 1.1

Have you got an idea ?

Thanks,

Jean-Marie.


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



Using variable of a tag in a scriplet...how to??

2006-08-09 Thread Gaet
Hi all the list,

I need to use the variable defined in a collection tag in a scriptletand
I can't get it work!
I'm trying some codes and I don't understand why the following doesn't work,
could you help me please?


layout:collection name=employeesVector id=employeeRow
!-- Try to define a local variable --
bean:define id=EmployeeLocaleVar name=employeeRow/

!-- try to use my variable to get a value in a HashMap --
%= myHashMap.get(employeeVar.getId())) %

/layout:collection

The webservser message is :
Cannot find bean cptbleLstadhRow in any scope


If you can help, it would be great!
Thank you, at least, to take time to read me

Gaet


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



RE: Using variable of a tag in a scriplet...how to??

2006-08-09 Thread Vishal Seth
Try getting it thru pageConext.getATtribute(). ..I am still not 100% got
the hang of ur problem..but you can try using this

-Original Message-
From: Gaet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 3:38 PM
To: Struts Users Mailing List
Subject: Using variable of a tag in a scriplet...how to??

Hi all the list,

I need to use the variable defined in a collection tag in a
scriptletand
I can't get it work!
I'm trying some codes and I don't understand why the following doesn't
work,
could you help me please?


layout:collection name=employeesVector id=employeeRow
!-- Try to define a local variable --
bean:define id=EmployeeLocaleVar name=employeeRow/

!-- try to use my variable to get a value in a HashMap --
%= myHashMap.get(employeeVar.getId())) %

/layout:collection

The webservser message is :
Cannot find bean cptbleLstadhRow in any scope


If you can help, it would be great!
Thank you, at least, to take time to read me

Gaet


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





MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, 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. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


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



RE : Validator1.3 Struts 1.3

2006-08-09 Thread Jean-Marie Pitre


Ok thank you.
But It still does not work, and I don't know why ?

The struts example works well, but not my application.
I changed validation-rules.xml, validation.xml with new DTD and retrieve new 
jar (inside lib struts example) ; I have always the same error, I become to be 
crazy :-)

NB: My application is a basic example only one form with one field.

Jean-Marie.


-Message d'origine-
De : Niall Pemberton [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 9 août 2006 11:30
À : Struts Users Mailing List
Objet : Re: Validator1.3 Struts 1.3

Looks like something has gone wrong loading the validation config. Can
you check your logs to see if there were any errors?

Also take a look thru' the upgrade notes (you'll need to check them
all to go from 1.1 to 1.3) for upgrading from 1.1 to 1.3
  http://wiki.apache.org/struts/StrutsUpgrade

The struts-examples webapp shipped in Struts 1.3.5 uses Validator
1.3.0 so thats another thing to look at to compare with your webapp.

In order to use the feature you want you'll need to change the DTD
references in your validation.xml and remember to deploy the
validator-rules.xml shipped with Struts 1.3.5

Niall


On 8/8/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote:

 Hi,

 I'm testing my application with struts 1.3 and validator 1.3.
 I've got this error:

 ValidatorResources not found in application scope under key
 org.apache.commons.validator.VALIDATOR_RESOURCE


 I don't know why because the same application worked well with validator
 1.1 and struts 1.1

 Have you got an idea ?

 Thanks,

 Jean-Marie.

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


---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php


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



Re: Using variable of a tag in a scriplet...how to??

2006-08-09 Thread Gaet
Thanks vishal (or seth ;o) )!

That works, but is there no taglib to get a pageContext attribute?
Thanks for your help

Gaet
 
  - Original Message - 
  From: Vishal Seth 
  To: Struts Users Mailing List 
  Sent: Wednesday, August 09, 2006 12:12 PM
  Subject: RE: Using variable of a tag in a scriplet...how to??


  Try getting it thru pageConext.getATtribute(). ..I am still not 100% got
  the hang of ur problem..but you can try using this

  -Original Message-
  From: Gaet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, August 09, 2006 3:38 PM
  To: Struts Users Mailing List
  Subject: Using variable of a tag in a scriplet...how to??

  Hi all the list,

  I need to use the variable defined in a collection tag in a
  scriptletand
  I can't get it work!
  I'm trying some codes and I don't understand why the following doesn't
  work,
  could you help me please?


  layout:collection name=employeesVector id=employeeRow
  !-- Try to define a local variable --
  bean:define id=EmployeeLocaleVar name=employeeRow/

  !-- try to use my variable to get a value in a HashMap --
  %= myHashMap.get(employeeVar.getId())) %

  /layout:collection

  The webservser message is :
  Cannot find bean cptbleLstadhRow in any scope


  If you can help, it would be great!
  Thank you, at least, to take time to read me

  Gaet


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





  MASTEK 
  Making a valuable difference
  Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
  In the US, we're called MAJESCOMASTEK

  
~~
  Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, 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. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
  
~~


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



RE: Using variable of a tag in a scriplet...how to??

2006-08-09 Thread Vishal Seth
You wanted to do that in a scriplet right?
If you want it within a taglib then use can use c taglib. 

Vishal

-Original Message-
From: Gaet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 5:49 PM
To: Struts Users Mailing List
Subject: Re: Using variable of a tag in a scriplet...how to??

Thanks vishal (or seth ;o) )!

That works, but is there no taglib to get a pageContext attribute?
Thanks for your help

Gaet
 
  - Original Message - 
  From: Vishal Seth 
  To: Struts Users Mailing List 
  Sent: Wednesday, August 09, 2006 12:12 PM
  Subject: RE: Using variable of a tag in a scriplet...how to??


  Try getting it thru pageConext.getATtribute(). ..I am still not 100%
got
  the hang of ur problem..but you can try using this

  -Original Message-
  From: Gaet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, August 09, 2006 3:38 PM
  To: Struts Users Mailing List
  Subject: Using variable of a tag in a scriplet...how to??

  Hi all the list,

  I need to use the variable defined in a collection tag in a
  scriptletand
  I can't get it work!
  I'm trying some codes and I don't understand why the following doesn't
  work,
  could you help me please?


  layout:collection name=employeesVector id=employeeRow
  !-- Try to define a local variable --
  bean:define id=EmployeeLocaleVar name=employeeRow/

  !-- try to use my variable to get a value in a HashMap --
  %= myHashMap.get(employeeVar.getId())) %

  /layout:collection

  The webservser message is :
  Cannot find bean cptbleLstadhRow in any scope


  If you can help, it would be great!
  Thank you, at least, to take time to read me

  Gaet


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





  MASTEK 
  Making a valuable difference
  Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
  In the US, we're called MAJESCOMASTEK

 

~~
  Opinions expressed in this e-mail are those of the individual and not
that of Mastek Limited, unless specifically indicated to that effect.
Mastek Limited does not accept any responsibility or liability for it.
This e-mail and attachments (if any) transmitted with it are
confidential and/or privileged and solely for the use of the intended
person or entity to which it is addressed. Any review, re-transmission,
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. This e-mail and its attachments have been
scanned for the presence of computer viruses. It is the responsibility
of the recipient to run the virus check on e-mails and attachments
before opening them. If you have received this e-mail in error, kindly
delete this e-mail from all computers.
 

~~


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




MASTEK 
Making a valuable difference
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, 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. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~


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



Re: Dynamic directory creation and access

2006-08-09 Thread Thomas Joseph
Would be great is someone has similar experience and could share it so that
I can have a bigger pool of ideas.
I am wanting something like the geocities FileManager. i.e.user should be
able to do all file manipulations - mkdir, rm, del, move, rename etc with
files and folders.

Any pointers or ideas are appreciated

Thanks and Regards,
Thomas Joseph

- Original Message -
From: Thomas Joseph [EMAIL PROTECTED]

Hi all,

I have a requirement where the user needs to create directories on the
server and also add and delete files on directories, so that other users can
view and access these dirs/files.

Before I dig deep into some custom solutions and run into troubles,... does
any one knows some pointers to these? ( I don't want to re-invent wheels)
;-)

Thanks and Regards,
Thomas Joseph

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 |
India
www.kottsoftware.com


This email (including any attachments) is subject to copyright, the
information in it is confidential, and it is legally privileged. Use of this
email or of any information in it other than by the addressee is
unauthorized and unlawful. If you are not the intended recipient of the
mail, kindly intimate the author of the mail and delete the same.


It doesn't matter how you were, but rather how you are that decides your
future. A right attitude will get you to Success.



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



RE: validation of two form properties

2006-08-09 Thread fea jabi

can someone help me wih this please? Thanks.



From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: validation of two form properties
Date: Tue, 08 Aug 2006 15:50:58 -0400

have form properties a and b

have to validate that property b is an integer, greater than 0 and also 
greater than form property a.


field property=b depends=integer,validwhen
   msg name=integer key=errors.notvalid/
   msg name=validwhen key=errors.notvalid/
   var
   var-nametest/var-name
   var-value( (*this* = 0) and (*this* = a) 
)/var-value

   /var
   /field

tried using the above. but not working. getting error message even when the 
form property is greater than zero and greater than a.


what is missing here? Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: RE : Validator1.3 Struts 1.3

2006-08-09 Thread Niall Pemberton

Did you get any log output from when your webapp started up? Maybe
there are errors there.

Niall

On 8/9/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote:



Ok thank you.
But It still does not work, and I don't know why ?

The struts example works well, but not my application.
I changed validation-rules.xml, validation.xml with new DTD and retrieve new 
jar (inside lib struts example) ; I have always the same error, I become to be 
crazy :-)

NB: My application is a basic example only one form with one field.

Jean-Marie.


-Message d'origine-
De: Niall Pemberton [mailto:[EMAIL PROTECTED]
Envoyé: mercredi 9 août 2006 11:30
À: Struts Users Mailing List
Objet: Re: Validator1.3 Struts 1.3

Looks like something has gone wrong loading the validation config. Can
you check your logs to see if there were any errors?

Also take a look thru' the upgrade notes (you'll need to check them
all to go from 1.1 to 1.3) for upgrading from 1.1 to 1.3
  http://wiki.apache.org/struts/StrutsUpgrade

The struts-examples webapp shipped in Struts 1.3.5 uses Validator
1.3.0 so thats another thing to look at to compare with your webapp.

In order to use the feature you want you'll need to change the DTD
references in your validation.xml and remember to deploy the
validator-rules.xml shipped with Struts 1.3.5

Niall


On 8/8/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote:

 Hi,

 I'm testing my application with struts 1.3 and validator 1.3.
 I've got this error:

 ValidatorResources not found in application scope under key
 org.apache.commons.validator.VALIDATOR_RESOURCE


 I don't know why because the same application worked well with validator
 1.1 and struts 1.1

 Have you got an idea ?

 Thanks,

 Jean-Marie.

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


---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php


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




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



RE: Struts Version from struts.jar

2006-08-09 Thread Samere, Adam J
Have a look at the manifest in the jar. META-INF/manifest.mf 

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 9:10 AM
To: user@struts.apache.org
Subject: Struts Version from struts.jar

I have struts.jar in WEB-INF/lib folder.
How to find which version of struts  is being used by my web application
?

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


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


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



RE: Browser History by HTTP-REFERER

2006-08-09 Thread George.Dinwiddie
Monkeyden said:
 Sorry George, I misread one of the previous posts in my 
 response to yours. You're correct.  JSP is not the place for 
 this type of authentication/validation, although I don't know 
 that I would want everything to ActionServlet handles to 
 require a referer.  I dont suspect that spiders typically 
 pass a referer.  If true, a public Struts site would never 
 get indexed had a referer been required for all ActionServlet 
 requests.

No, I wouldn't use referer for anything other than returning to a page
after intercepting an request (for login, perhaps).

I'm just suggesting having a filter in front of the pages that require
login and have it check the user's session for the appropriate
credentials for the page.

 - George
   http://www.idiacomputing.com

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



[OT][ANN] JAVAWUG BOF XXI / 5th Sept 2006 @ 18:30 / SkillsMatter

2006-08-09 Thread Peter . Pilgrim
Hi All

I would like announce the twentieth first birds-of-a-feather (BOF 21) of
the Java Web Users Group. The event will take place on Tuesday 5th
September
2006, starting from 18:30 at


Skills Matter Limited
1 Sekforde Street
LONDON EC1R 0BE
Map: mapPhone: 020 7107 2620
Fax: 020 7107 2621
Email: [EMAIL PROTECTED]
Web: http://skillsmatter.com/javawug


The feature speakers:

Max Antoni, 
Java Web Freelancer Software Developer

How to write object oriented AJAX applications. 

Max Antoni is working at UBS as a freelancer. 
He is working on the front-end Java web development 
of an portal enterprise application. 

(Actually Max and I work together for the same project at 
100 Liverpool Street. Max is actually heading back to 
Germany at the end of September, so I am grateful 
that he accepted my invitation to talk to usw)

In the last couple of years Max have collected some
best practices 
and he has lot of experience about how object
orientation 
works in languages derived from ECMA Script, 
like todays Javascript implementations.

He started working with browser based applications in
2004 
and soon came across the idea of writing his own 
Java based application server, suiting the needs of 
applications. This idea brought EvaServer to life
(See http://www.maxantoni.de website is in German) 
and now he is working towards to release a version 1.0 
by the end of this year.

During the two 1/2 years of developing Max gained 
valuable insight about browser internals and how best to

represent client states on the server side 
[similar but counterpoint to DWR],  which will also be 
part of the discussion/presentation.


Afterwards members can retire to the nearby the ``Crown''
pub/restaurant for more in depth discussion dinner, food and drink ...

If you would like to attend, please REGISTER so that you can be added to
the
SECURITY DETAIL ( http://skillsmatter.com/javawug ).

Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups
and ``Send an Email to the list you are attending''

http://jroller.com/page/javawug

The venue has graciously been organised by Wendy Devolder of
Skillsmatter. 
We all appreciate this generous gift.

Thank you for your time.

--
Peter Pilgrim
Your Organiser / Founder   ( JAVAWUG
http://developers.sun.com/jugs/display/europe/gbr/london )

   ( ( (  (   (  
   (   )\(   (   )\)\))(   '   (  )\ )  
   )_)(  )\  )_)( ((_)()\ ))\(()/(  
  ((_)\ _ )\((_)((_)\ _ )\_(())\_)()_ ((_)/(_))_
 _ | (_)_\(_) \ / /(_)_\(_) \((_)/ / | | (_)) __|
| || |/ _ \  \ V /  / _ \  \ \/\/ /| |_| | | (_ |
 \__//_/ \_\  \_/  /_/ \_\  \_/\_/  \___/   \___|
= 

Visit our website at http://www.ubs.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Retrieving the url-pattern from web.xml

2006-08-09 Thread Aladin Alaily
Hello,

I have a filter in which I check that the users are properly authenticated.

When the user needs to be redirected, I am able to retrieve the following:

1) context path (using the request)
2) action path (using the ActionConfig)

... but I cannot retrieve the url-pattern from web.xml!  I have looked at
the Util classes but can't seem to find anything.

Anyone have a clue?

Thanks.

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



[s2] Struts2 confluence unaccessable

2006-08-09 Thread tm jee
Hi guys, 

Anyone notice http://confluence.twdata.org/homepage.action is not accessible?

rgds



How to retrieve parameters off URL in JSP via Struts

2006-08-09 Thread Adam Gordon
Quick question:  Is there a way to retrieve a parameter off a URL via 
struts in a JSP?  I.e. if I have http://server.name/path/foo?mood=happy, 
is there a struts tag that I can use to get the value of mood?


Thanks,

-Adam

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



Re: How to retrieve parameters off URL in JSP via Struts

2006-08-09 Thread Adam Gordon

A, if only the taglib docs were documented in a more thorough manner

Since I wanted to render some Struts tags based on the presence of a 
parameter, I discovered the logic:present element and used the 
parameter attribute.  Hooray for me!


-adam

Adam Gordon wrote:
Quick question:  Is there a way to retrieve a parameter off a URL via 
struts in a JSP?  I.e. if I have 
http://server.name/path/foo?mood=happy, is there a struts tag that I 
can use to get the value of mood?


Thanks,

-Adam

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


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



RE: Retrieving the url-pattern from web.xml

2006-08-09 Thread Adam Gordon
If I understand what you are doing correctly you can use the
security-constraint element in web.xml to define what URL patters require
authorization and which ones do not.

If you use JAAS, then you don't need to handle the redirecting as it will
forward it to the login page you specify (using the login-config element) if
the user requires authorization to access a specific URL.

Note also that you can have multiple security-constraint elements.  We use
two, the first locks everything down, i.e. every URI requires
authentication, and the second opens specific ones up that do not require
authentication.

-Adam

-Original Message-
From: Aladin Alaily [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 09 August 2006 08:26
To: user@struts.apache.org
Subject: Retrieving the url-pattern from web.xml

Hello,

I have a filter in which I check that the users are properly authenticated.

When the user needs to be redirected, I am able to retrieve the following:

1) context path (using the request)
2) action path (using the ActionConfig)

... but I cannot retrieve the url-pattern from web.xml!  I have looked at
the Util classes but can't seem to find anything.

Anyone have a clue?

Thanks.

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


Map-based nested bean

2006-08-09 Thread Scott Van Wart

(Struts 1.2.9, Tomcat 5.5.17)

I have something similar to the following in my ActionForm:

   public class MyForm extends ActionForm {

   public static class NestedBean {
   private String name;
   private String value;
   // String getName(), String getValue(), void setName( String 
), void setValue( String )

   }

   private MapString, NestedBean children = new TreeMapString, 
NestedBean();


   // Map getChildren(), void setChildren( Map )

   public NestedBean getChild( String key ) {
   return this.children.get( key );
   }

   public void setChild( String key, NestedBean child ) {
   this.children.put( key, child );
   }

   }

I use it like so in the JSP:

   html:form action=/myAction
   html:text property=myForm.child(whatever).name /
   html:text property=myForm.child(whatever).value /
   /html:form

Everything works fine until form submission.  Then I get errors like No 
bean specified in the populate methods of BeanUtils.  Looking at the 
property descriptors I see that it's not picking up the getChild and 
setChild accessors.  Is this the right way to implement this?  Am I 
still missing something?


Thanks,
 Scott

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



Multiple Image Submit Buttons in Form?

2006-08-09 Thread Mississippi John Hurt

Hi,
What's the best way to handle a page that has 3 clickable image buttons:

A list of Items indexed, each row has an image button, if clicked, routes to
a EditItem action.
An Add Item image button, that routes to a AddItem action.
An input text box, with a Search image button, that routes to a SearchItems
action when clicked.

Assuming I use a single form, how will my action know which button was
clicked (Edit vs Add vs Search). And how to pass the index of the Item#
button that was clicked?  Anyone have samples (jsp,actionClass) of this
particular situation? Thanks.


Re: Multiple Image Submit Buttons in Form?

2006-08-09 Thread Paul Benedict
Use EventAction or EventActionDispatcher from Struts 1.2.9. If you are using a 
previous version of Struts, just pluck out these classes into your source 
folders.

Mississippi John Hurt [EMAIL PROTECTED] wrote: Hi,
What's the best way to handle a page that has 3 clickable image buttons:

A list of Items indexed, each row has an image button, if clicked, routes to
a EditItem action.
An Add Item image button, that routes to a AddItem action.
An input text box, with a Search image button, that routes to a SearchItems
action when clicked.

Assuming I use a single form, how will my action know which button was
clicked (Edit vs Add vs Search). And how to pass the index of the Item#
button that was clicked?  Anyone have samples (jsp,actionClass) of this
particular situation? Thanks.



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-09 Thread Mississippi John Hurt

I'm using EventActionDispatcher and it works fine dispatching to events from
jsp.
But I have an ActionClass that I want to forward to another ActionClass so
how can I do a Struts forward so that I can specify which event on the 2nd
ActionClass to invoke?  I can only do a /2ndActionClass.do which will call
the 2nd ActionClass but how will it know which event method I want to
invoke? Thanks!