Re:

2008-02-25 Thread Antonio Petrelli
2008/2/25, struts <[EMAIL PROTECTED]>:
>  myProprty0
>  myPorperty1
>  myProperty2
> ...
>  Is there a way to do this?

Mmm.. let me see:

  


HTH
Antonio

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



Configure ActionServlet without struts-config.xml?

2008-02-25 Thread Ullrich Schäfer

Hello,

I wonder if there's a way tho configure the ActionServlet  
programatically. I'm asking this because i want to hide the  
ActionServlet inside my own Servlet which delegates Requests to  
different Servlets, Struts ActionServlet being one of them.


The goal is, to provide a framework which use struts but doesn't show  
any struts to the actual application developer. So i don't want a  
struts-config.xml there too, but rather would like to "inject" the  
config into the ActionServlet.


Thanks for your help
Ullrich

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



Re: VTD-XML 2.3

2008-02-25 Thread Al Sutton
Have you got a solution for people spamming lists with unrelated product 
announcements?


- Original Message - 
From: "jimmy Zhang" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Tuesday, February 26, 2008 2:27 AM
Subject: Re: VTD-XML 2.3


We are trying to reach out to people that have tons of problems related to 
XML processing (memory, speed etc)
- Original Message - 
From: "Dave Newton" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, February 25, 2008 5:10 PM
Subject: Re: VTD-XML 2.3



--- jimmy Zhang <[EMAIL PROTECTED]> wrote:

Not yet, VTD-XML is the newer generation, document-centric
XML processing model...


Oh, so it's not really related to Struts.

Dave


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




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



Re: VTD-XML 2.3

2008-02-25 Thread jimmy Zhang
We are trying to reach out to people that have tons of problems related to 
XML processing (memory, speed etc)
- Original Message - 
From: "Dave Newton" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, February 25, 2008 5:10 PM
Subject: Re: VTD-XML 2.3



--- jimmy Zhang <[EMAIL PROTECTED]> wrote:

Not yet, VTD-XML is the newer generation, document-centric
XML processing model...


Oh, so it's not really related to Struts.

Dave


-
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: VTD-XML 2.3

2008-02-25 Thread Dave Newton
--- jimmy Zhang <[EMAIL PROTECTED]> wrote:
> Not yet, VTD-XML is the newer generation, document-centric 
> XML processing model...

Oh, so it's not really related to Struts.

Dave


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



Re: VTD-XML 2.3

2008-02-25 Thread jimmy Zhang
Not yet, VTD-XML is the newer generation, document-centric XML processing 
model...
- Original Message - 
From: "Dave Newton" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, February 25, 2008 4:58 PM
Subject: Re: VTD-XML 2.3



Is this an S2 plugin, or...?

--- jimmy Zhang <[EMAIL PROTECTED]> wrote:

VTD-XML 2.3 (http://vtd-xml.sf.net) is now released. To download the 
latest

version please visit


http://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172.


Below is a list of new features and enhancements in this version.

* VTDException is now introduced as the root class for all other 
VTD-XML's

exception classes (per suggestion of Max Rahder).
* Transcoding capability is now added for inter-document cut and paste. 
You

can cut a chuck of bytes in a UTF-8 encoded document and paste it into a
UTF-16 encoded document and the output document is still well-formed.
* ISO-8859-10, ISO-8859-11, ISO-8859-12, ISO-8859-13, ISO-8859-14 and
ISO-8859-15 support has now been added
* Zero length Text node is now possible.
* Ability to dump in-memory copy of text is added.
* Various code cleanup, enhancement and bug fixes.


Below are some new articles related to VTD-XML

*Index XML documents with VTD-XML http://xml.sys-con.com/read/453082.htm

*Manipulate XML content the Ximple Way
http://www.devx.com/xml/Article/36379

* VTD-XML: A new vision of XML
http://www.developer.com/xml/article.php/3714051

* VTD-XML: XML Processing for the future
http://www.codeproject.com/KB/cs/vtd-xml_examples.aspx

If you (or someone you know) like the concept of VTD-XML, think that it 
can

help solve enterprises' XML processing related issues (particularly those
related to SOA), and would like to directly influence and contribute to 
the

development of the future of Internet, please email me
([EMAIL PROTECTED]). We are looking for open source software 
developers

and project management people to take VTD-XML to the next level.



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






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



Re: VTD-XML 2.3

2008-02-25 Thread Dave Newton
Is this an S2 plugin, or...?

--- jimmy Zhang <[EMAIL PROTECTED]> wrote:

> VTD-XML 2.3 (http://vtd-xml.sf.net) is now released. To download the latest
> version please visit
>
http://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172.
> 
> Below is a list of new features and enhancements in this version.
> 
> * VTDException is now introduced as the root class for all other VTD-XML's
> exception classes (per suggestion of Max Rahder).
> * Transcoding capability is now added for inter-document cut and paste. You
> can cut a chuck of bytes in a UTF-8 encoded document and paste it into a
> UTF-16 encoded document and the output document is still well-formed.
> * ISO-8859-10, ISO-8859-11, ISO-8859-12, ISO-8859-13, ISO-8859-14 and
> ISO-8859-15 support has now been added
> * Zero length Text node is now possible.
> * Ability to dump in-memory copy of text is added.
> * Various code cleanup, enhancement and bug fixes.
> 
> 
> Below are some new articles related to VTD-XML
> 
> *Index XML documents with VTD-XML http://xml.sys-con.com/read/453082.htm
> 
> *Manipulate XML content the Ximple Way
> http://www.devx.com/xml/Article/36379
> 
> * VTD-XML: A new vision of XML
> http://www.developer.com/xml/article.php/3714051
> 
> * VTD-XML: XML Processing for the future
> http://www.codeproject.com/KB/cs/vtd-xml_examples.aspx
> 
> If you (or someone you know) like the concept of VTD-XML, think that it can
> help solve enterprises' XML processing related issues (particularly those
> related to SOA), and would like to directly influence and contribute to the
> development of the future of Internet, please email me
> ([EMAIL PROTECTED]). We are looking for open source software developers
> and project management people to take VTD-XML to the next level.
> 
> 
> 
> -
> 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]



VTD-XML 2.3

2008-02-25 Thread jimmy Zhang

VTD-XML 2.3 (http://vtd-xml.sf.net) is now released. To download the latest
version please visit
http://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172.

Below is a list of new features and enhancements in this version.

* VTDException is now introduced as the root class for all other VTD-XML's
exception classes (per suggestion of Max Rahder).
* Transcoding capability is now added for inter-document cut and paste. You
can cut a chuck of bytes in a UTF-8 encoded document and paste it into a
UTF-16 encoded document and the output document is still well-formed.
* ISO-8859-10, ISO-8859-11, ISO-8859-12, ISO-8859-13, ISO-8859-14 and
ISO-8859-15 support has now been added
* Zero length Text node is now possible.
* Ability to dump in-memory copy of text is added.
* Various code cleanup, enhancement and bug fixes.


Below are some new articles related to VTD-XML

*Index XML documents with VTD-XML http://xml.sys-con.com/read/453082.htm

*Manipulate XML content the Ximple Way http://www.devx.com/xml/Article/36379

* VTD-XML: A new vision of XML
http://www.developer.com/xml/article.php/3714051

* VTD-XML: XML Processing for the future
http://www.codeproject.com/KB/cs/vtd-xml_examples.aspx

If you (or someone you know) like the concept of VTD-XML, think that it can
help solve enterprises' XML processing related issues (particularly those
related to SOA), and would like to directly influence and contribute to the
development of the future of Internet, please email me
([EMAIL PROTECTED]). We are looking for open source software developers
and project management people to take VTD-XML to the next level.



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



Re: schemaLocation value ... must have even number of URI's.

2008-02-25 Thread Laurie Harper

Your root element should be

http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";

 version="2.4">

You're missing the public identifier part in the schema location.

L.

Bishop, Gregory (HAR-ORL) wrote:

Here is the web.xml



http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; id="WebApp_ID">

  pss7

  

ViewHome.jsp

  

  

supportOrganizationName

Harcourt Help Desk

  

  

supportPhoneNumber

1-407-345-

  

  

supportEmailAddress

[EMAIL PROTECTED]

  

  

ResponseOverrideFilter

ResponseOverrideFilter


org.displaytag.filter.ResponseOverrideFilter

  

  

ResponseOverrideFilter

*.do

  

  

ResponseOverrideFilter

*.jsp

  

  



ApplicationDataServlet

ApplicationDataServlet




com.harcourt.its.ecat.servlets.ApplicationDataServlet

1

  

  



TestServlet

TestServlet



com.harcourt.its.ecat.servlets.TestServlet

  

  

TilesServet


org.apache.tiles.web.startup.TilesServlet



  definitions-config

  /WEB-INF/tiles-defs.xml



3

  

  



Struts Action Servlet



ActionServlet

ActionServlet



org.apache.struts.action.ActionServlet



  

  

  config

  WEB-INF/struts-config.xml





  

  

  debug

  2





  

  

  detail

  2





  

  

  validate

  true



2

  

  

ApplicationDataServlet

/applicationdataservlet

  

  

TestServlet

/TestServlet

  

  

ApplicationDataServlet

/ApplicationDataServlet

  

  

ActionServlet

*.do

  

  

403

/ViewAuthorizationError.jsp

  

  

 


  *.jsp

  false



  

  



  AuthorizedUsers

  /protected/*

  *.do





  HSG-App-ECATi1-User



  

  

FORM



  /ViewLoginForm.jsp

  /ViewLoginError.jsp



  

  



Allows access to the entire application.

HSG-App-ECATi1-User

  

  

Uncached datasource.

jdbc/ecatds

javax.sql.DataSource

Container

Shareable

  

  

Cached datasource.

jdbc/ecatdsCached

javax.sql.DataSource

Container

Shareable

  



 




Here is tha application.xml.

http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";>

  

  pss7EAR

  

  

  



  pss7.war

  pss



  

  



Allows access to the entire application.

HSG-App-ECATi1-User

  



I noticed the name spaces are the same, is that ok?

Greg Bishop
Senior Technical Analyst
Publishing Technology
Houghton Mifflin Harcourt
6277 Sea Harbor Drive
Orlando, Florida 32887
407.345.3873 (work)
321.276.8588 (cell)
407.345.4308 (fax)

-Original Message-
From: Santiago Fernández [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 25, 2008 4:20 PM

To: [EMAIL PROTECTED]
Subject: Re: schemaLocation value ... must have even number of URI's.

Can u copy the content of your web.xml here?

On 2/25/08, javaskull <[EMAIL PROTECTED]> wrote:

org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
= 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
number of URI's.

Anyone know what this is about?  I deleted my validator-rules.xml file
from web-inf because I didn't need to customize it and I have moved
from Struts 1.

RE: schemaLocation value ... must have even number of URI's.

2008-02-25 Thread Bishop, Gregory (HAR-ORL)
Here is the web.xml



http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; 
id="WebApp_ID">

  pss7

  

ViewHome.jsp

  

  

supportOrganizationName

Harcourt Help Desk

  

  

supportPhoneNumber

1-407-345-

  

  

supportEmailAddress

[EMAIL PROTECTED]

  

  

ResponseOverrideFilter

ResponseOverrideFilter


org.displaytag.filter.ResponseOverrideFilter

  

  

ResponseOverrideFilter

*.do

  

  

ResponseOverrideFilter

*.jsp

  

  



ApplicationDataServlet

ApplicationDataServlet




com.harcourt.its.ecat.servlets.ApplicationDataServlet

1

  

  



TestServlet

TestServlet



com.harcourt.its.ecat.servlets.TestServlet

  

  

TilesServet


org.apache.tiles.web.startup.TilesServlet



  definitions-config

  /WEB-INF/tiles-defs.xml



3

  

  



Struts Action Servlet



ActionServlet

ActionServlet



org.apache.struts.action.ActionServlet



  

  

  config

  WEB-INF/struts-config.xml





  

  

  debug

  2





  

  

  detail

  2





  

  

  validate

  true



2

  

  

ApplicationDataServlet

/applicationdataservlet

  

  

TestServlet

/TestServlet

  

  

ApplicationDataServlet

/ApplicationDataServlet

  

  

ActionServlet

*.do

  

  

403

/ViewAuthorizationError.jsp

  

  

 

  *.jsp

  false



  

  



  AuthorizedUsers

  /protected/*

  *.do





  HSG-App-ECATi1-User



  

  

FORM



  /ViewLoginForm.jsp

  /ViewLoginError.jsp



  

  



Allows access to the entire application.

HSG-App-ECATi1-User

  

  

Uncached datasource.

jdbc/ecatds

javax.sql.DataSource

Container

Shareable

  

  

Cached datasource.

jdbc/ecatdsCached

javax.sql.DataSource

Container

Shareable

  



 



Here is tha application.xml.

http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";>

  

  pss7EAR

  

  

  



  pss7.war

  pss



  

  



Allows access to the entire application.

HSG-App-ECATi1-User

  



I noticed the name spaces are the same, is that ok?

Greg Bishop
Senior Technical Analyst
Publishing Technology
Houghton Mifflin Harcourt
6277 Sea Harbor Drive
Orlando, Florida 32887
407.345.3873 (work)
321.276.8588 (cell)
407.345.4308 (fax)

-Original Message-
From: Santiago Fernández [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 25, 2008 4:20 PM
To: [EMAIL PROTECTED]
Subject: Re: schemaLocation value ... must have even number of URI's.

Can u copy the content of your web.xml here?

On 2/25/08, javaskull <[EMAIL PROTECTED]> wrote:
>
> org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
> = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
> number of URI's.
>
> Anyone know what this is about?  I deleted my validator-rules.xml file
> from web-inf because I didn't need to customize it and I have moved
> from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
> Tiles 1.38.jar because I am using Tiles 2.
>
> I also get
>
> org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to
> namespace "http://www.w3.org/2001/XMLSchema-instance"; was already
> specified for element "web-app".
>
> And it says it can't load web-inf.  Any ideas?
>
>
> 

Re: schemaLocation value ... must have even number of URI's.

2008-02-25 Thread Santiago Fernández
Can u copy the content of your web.xml here?

On 2/25/08, javaskull <[EMAIL PROTECTED]> wrote:
>
> org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
> = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
> number of URI's.
>
> Anyone know what this is about?  I deleted my validator-rules.xml file
> from web-inf because I didn't need to customize it and I have moved
> from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
> Tiles 1.38.jar because I am using Tiles 2.
>
> I also get
>
> org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to
> namespace "http://www.w3.org/2001/XMLSchema-instance"; was already
> specified for element "web-app".
>
> And it says it can't load web-inf.  Any ideas?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Santiago M. Fernández
BAIRES IT S.R.L.
Owner & Co-Founder

(+54) 011 - 15 6744 1133
[EMAIL PROTECTED]
www.bairesit.com


schemaLocation value ... must have even number of URI's.

2008-02-25 Thread javaskull
org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
= 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
number of URI's.

Anyone know what this is about?  I deleted my validator-rules.xml file
from web-inf because I didn't need to customize it and I have moved
from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
Tiles 1.38.jar because I am using Tiles 2.

I also get

org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to
namespace "http://www.w3.org/2001/XMLSchema-instance"; was already
specified for element "web-app".

And it says it can't load web-inf.  Any ideas?


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



Calling business methods in a FieldValidatorSupport extended class

2008-02-25 Thread Alceu Medeiros
Hi,

I'm using Struts 2, JPA and Spring 2 and I want to check if an e-mail
address is already in use in my app, but I want to make it implementing a
custom validator and so it may be solved as a fieldError.

My strategy is that in my UserEmailValidator I have an object of class
UserBusiness as a attribute who says me if the e-mail is already in use or
not, and Spring 2 injects the dependency for me. The problem is that my
business attribute in UserEmailValidator class is coming with null value
because Spring2 didn't make the injection of dependency. This is the code
involving the problem:


spring.xml
- - -

(...)





(...)





(...)

- - -


UserEmailValidator.java
- - -

package v1c2.validator;

import v1c2.business.UserBusiness;
import v1c2.pojo.User;

import com.opensymphony.xwork2.validator.ValidationException;
import com.opensymphony.xwork2.validator.validators.FieldValidatorSupport;

public class UserEmailValidator extends FieldValidatorSupport {

private UserBusiness business;

public void validate(Object object) throws ValidationException {
String email = (String) getFieldValue(getFieldName(), object);

if (business.isEmailInUse(email)) {
addFieldError(getFieldName(), object);
}
}

public void setBusiness(UserBusiness business) {
this.business = business;
}

}

- - -

Is this the right strategy? I'm not too sure because Spring isn't making its
work. How can I call a business' method in a FieldValidatorSupport extended
class?

Can anyone help me, please?
[]'s

-- 
"Realize buscando o melhor, mas planeje esperando o pior."
__
Alceu Medeiros
http://www.inf.ufsc.br/~alceu


user@struts.apache.org

2008-02-25 Thread struts
Hi,

I'm using Struts 1

I have  a set of indexed error properties :

myProprty0
myPorperty1
myProperty2

and so on

I'd like to be able to pass the relevant name in to 







Is there a way to do this?

Thanks in advance,

Charles


RE: Access value of a map inside an iterator

2008-02-25 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Maybe with this :



 

Julien

-Message d'origine-
De : David Loup [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 25 février 2008 13:53
À : Struts Users Mailing List
Objet : RE: Access value of a map inside an iterator

Hello,

After a bit of refactoring, I'm quite happy iterating over the map and 
displaying keys and values.
My problem is, how do I have to name the property so that the map value 
actually gets passed to the Action?

Currently I'm doing something like this:





That's inside a form that I want to use to edit the contents of the map.

But it puts only empty values in the map (as keys and values).




-Original Message-
From: David Loup
Sent: 22 February 2008 17:45
To: Struts Users Mailing List
Subject: RE: Access value of a map inside an iterator

Hi Dave,

Thanks for your reply, but that's not exactly what I'm trying to do.
I don't want to iterate over the map, but over another collection (my 
"allKeys", which is for example a List).

For each value inside that list, I want to get the corresponding value from the 
map.

E.g:
allKeys = {"Foo","Bar","Bob"}
theMap = {<"Foo","FooValue">,<"Bob","BobValue">,<"Bar","BarValue">}

So I want to iterate over allKeys, and for each value, retrieve the "*Value" 
strings.



-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 22 February 2008 17:40
To: Struts Users Mailing List
Subject: Re: Access value of a map inside an iterator

--- David Loup <[EMAIL PROTECTED]> wrote:
> 
>   
> 


   => 
  


or


   => 
  


Dave



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





CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient's responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

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





CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient's responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

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

This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intented solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part is
strictly prohibited.



Ce message electronique et tous les fichiers 

RE: Access value of a map inside an iterator

2008-02-25 Thread David Loup
Hello,

After a bit of refactoring, I'm quite happy iterating over the map and
displaying keys and values.
My problem is, how do I have to name the property so that the map value
actually gets passed to the Action?

Currently I'm doing something like this:





That's inside a form that I want to use to edit the contents of the map.

But it puts only empty values in the map (as keys and values).




-Original Message-
From: David Loup 
Sent: 22 February 2008 17:45
To: Struts Users Mailing List
Subject: RE: Access value of a map inside an iterator

Hi Dave,

Thanks for your reply, but that's not exactly what I'm trying to do.
I don't want to iterate over the map, but over another collection (my
"allKeys", which is for example a List).

For each value inside that list, I want to get the corresponding value
from the map.

E.g:
allKeys = {"Foo","Bar","Bob"}
theMap = {<"Foo","FooValue">,<"Bob","BobValue">,<"Bar","BarValue">}

So I want to iterate over allKeys, and for each value, retrieve the
"*Value" strings.



-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: 22 February 2008 17:40
To: Struts Users Mailing List
Subject: Re: Access value of a map inside an iterator

--- David Loup <[EMAIL PROTECTED]> wrote:
> 
>   
> 


   => 
  


or


   => 
  


Dave



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





CONFIDENTIALITY - This email and any files transmitted with it, are
confidential, may be legally privileged and are intended solely for the
use of the individual or entity to whom they are addressed. If this has
come to you in error, you must not copy, distribute, disclose or use any
of the information it contains. Please notify the sender immediately and
delete them from your system.

SECURITY - Please be aware that communication by email, by its very
nature, is not 100% secure and by communicating with Perform Group by
email you consent to us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence
of computer viruses, the sender accepts no liability for any damage
sustained as a result of a computer virus and it is the recipient's
responsibility to ensure that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely
those of the sender and do not necessarily represent those of Perform
Group.

COPYRIGHT - Copyright of this email and any attachments belongs to
Perform Group, Companies House Registration number 6324278.

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





CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient’s responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

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



RE: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread Dave Newton
--- "India, Rose (http://[REDACTED])" wrote:
> What actually you want to know?
> If you are looking for Jakarta Struts Tutorial then see the 
> 
> Jakarta Struts Tutorial & resources
> http://[REDACTED]

That wasn't even *close*.

At least the other ones were vaguely related to the question being asked.

Dave


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



RE: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread Rose India (http://www.roseindia.net)
Hi

What actually you want to know?
If you are looking for Jakarta Struts Tutorial then see the 

Jakarta Struts Tutorial & resources
http://www.roseindia.net/struts/

Best regards
Meeya Roy


-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2008 1:43 PM
To: Struts Users Mailing List
Subject: Re: Bug 2957 - tiles insert is throwing null pointer exception


2008/2/25, santosh gokak <[EMAIL PROTECTED]>:
>
> Can you suggest me how to?



http://struts.apache.org/helping.html

Antonio


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



RE: xwork-conversion.properties

2008-02-25 Thread Kedar Choudhary
Hi Adam,

 

Setting param-value instrument.market.id=1 will work something like this

 

(1) instrument = valueStack.getInstrument() 

  - as your action class with the topmost object implementing this
method it will result in yourActionClass.getInstrument()

(2) if(instrument == null) {

  yourActionClass.setInstrument(new Instrument());

  instrument = yourActionClass.getInstrument();

}

  - this will be done provided there exists no-argument public
constructor for class Instument.

(3) market = instrument.getMarket();

(4) if(market == null) {

  Instrument.setMarket(new Market());

  market = instrument.getMarket();

}

  - again, this is so if there exists no-argument public constructor for
class Market

(5) market.setId(1)

 

Setting type converter in xwork-conversion.properties like 

org.permacode.patternrepo.domain.Market=org.permacode.atomic.web.DomainObjec
tTypeConverter 

tells S2 that

"if you need to convert value of other type (typically String) to an object
of Market class use the provided type converter to do the conversion".

 

Hope this helps.

 

Regards,

Kedar

 

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 24, 2008 8:42 PM
To: Struts Users Mailing List
Subject: Re: xwork-conversion.properties

 

Hi Kedar,

 

perhaps you could expand upon your statement. What I understand is that the 

conversion involves the creation of the object graph based on the incoming
HTTP 

param-value pair (e.g. instrument.market.id=1) as follows:

 

(1) id = new Long(1)

(2) market = new Market()

(3) market.setId(id)

(4) instrument = new Instrument()

(5) instrument.setMarket(market)

 

 

In steps (2) and (4), my assumption is that OGNL will call my TypeConverter 

which I have registered in xwork-conversion.properties to handle those
classes.

 

Are you implying that OGNL will only delegate to the TypeConverter when
dealing 

with the last name in the parameter string (in my case 'id' which is Long)?

 

Regards

Adam

 

Kedar Choudhary on 24/02/08 06:10, wrote:

> There is not type conversion to be done when setting value of

> instrument.market.id.

> S2 will call your type converter if you were setting value of

> instrument.market.

> 

> Regards

> Kedar

> 

> -Original Message-

> From: Adam Hardy [mailto:[EMAIL PROTECTED] 

> Sent: Sunday, February 24, 2008 1:02 AM

> To: Struts Users Mailing List

> Subject: Re: xwork-conversion.properties

> 

> Adam Hardy on 22/02/08 17:32, wrote:

>> I wrote a TypeConverter and configured S2 with 

>> xwork-conversion.properties to use it so:

>> 

>> 

>
org.permacode.patternrepo.domain.Market=org.permacode.atomic.web.DomainObjec

> tTypeConverter 

>> 

>> as per the wiki.

>> 

>> However, from debugging it looks as though struts is completely ignoring 

>> the TypeConverter and instantiating my Market objects as it needs them 

>> from scratch, for instance with nested objects in my form:

>> 

>> instrument.market.id=13

>> 

>> What am I doing wrong? I use the ParamsInterceptor. Should I be using a 

>> different interceptor?

> 

> This issue is proving very difficult to solve and so far I haven't been
able

> to 

> work out from debugging xwork and ognl what exactly is going wrong.

> 

> It appears to be just this action which ignores my TypeConverter. Other

> actions 

> are working fine with it. They have no extra config - it is only set in
the 

> global xworks-conversion.properties file.

> 

> Has anyone else ever come across such a situation?

 



Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread Antonio Petrelli
2008/2/25, santosh gokak <[EMAIL PROTECTED]>:
>
> Thanks for getting me started.
> I have the 1.2.9 source along with me.
> do you know the reason of this NPE been thrown?
> I too would debug and try to find it.
> I have also registered and voted for the bug :)



Ok sorry for the "too-fast" answer.
The reason for not fixing this bugs outselves is the fact that Tiles 2
exists:
http://tiles.apache.org/
and that the Tiles 1 bug can be circumvented (most probably you have a
 that is not bound to any attribute value).
So you have three options:
1) since you are using JSF and not Struts, migrate to Tiles 2 (best option
IMHO);
2) create a patch (I don't know how to fix it, download the source from the
svn trunk);
3) stick with the bug, that can be fixed on your code.

Sorry for this.
Antonio


Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread santosh gokak
Hi Antonio,

Thanks for getting me started.
I have the 1.2.9 source along with me.
do you know the reason of this NPE been thrown?
I too would debug and try to find it.
I have also registered and voted for the bug :)

~Santosh

On Mon, Feb 25, 2008 at 4:13 PM, Antonio Petrelli
<[EMAIL PROTECTED]> wrote:
> 2008/2/25, santosh gokak <[EMAIL PROTECTED]>:
>  >
>
> > Can you suggest me how to?
>
>
>
>  http://struts.apache.org/helping.html
>
>  Antonio
>



-- 
Santosh G Gokak

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



Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread Antonio Petrelli
2008/2/25, santosh gokak <[EMAIL PROTECTED]>:
>
> Can you suggest me how to?



http://struts.apache.org/helping.html

Antonio


Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread santosh gokak
Can you suggest me how to?

On Mon, Feb 25, 2008 at 4:04 PM, Antonio Petrelli
<[EMAIL PROTECTED]> wrote:
> 2008/2/25, santosh gokak <[EMAIL PROTECTED]>:
>
>
> >
>  > I am hitting the bug https://issues.apache.org/struts/browse/STR-2957 (
>  > tiles insert is throwing null pointer exception when invoking from
>  > nested insert Tag.)
>  > I am using struts 1.2.9 release.
>  > Any body is planned to take up this bug?
>
>
>
>  I don't think so. If you want to correct it, post a patch to the issue
>  itself.
>
>  Antonio
>



-- 
Santosh G Gokak

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



Re: Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread Antonio Petrelli
2008/2/25, santosh gokak <[EMAIL PROTECTED]>:
>
> I am hitting the bug https://issues.apache.org/struts/browse/STR-2957 (
> tiles insert is throwing null pointer exception when invoking from
> nested insert Tag.)
> I am using struts 1.2.9 release.
> Any body is planned to take up this bug?



I don't think so. If you want to correct it, post a patch to the issue
itself.

Antonio


Bug 2957 - tiles insert is throwing null pointer exception

2008-02-25 Thread santosh gokak
I am hitting the bug https://issues.apache.org/struts/browse/STR-2957 (
tiles insert is throwing null pointer exception when invoking from
nested insert Tag.)
I am using struts 1.2.9 release.
Any body is planned to take up this bug?

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