Re: Using HashMap in selectbox

2012-03-28 Thread Steven Yang
i think you can turn the map to a Set> then use it as listKey
as "getKey()" or "key" and listValue as "getValue()" or "value"

On Wed, Mar 28, 2012 at 6:16 PM, Rakeshkumar Parmar <
rakeshkumar_par...@persistent.co.in> wrote:

> I think it requires list. So you can get values from hashmap using
> values() method.then apply person.name.
>
>
> Regards,
> Rakesh
>
> -Original Message-
> From: Shrinivas Parashar [mailto:shrinivas_paras...@symantec.com]
> Sent: Wednesday, March 28, 2012 3:44 PM
> To: Struts Users Mailing List
> Subject: Using HashMap in selectbox
>
> Hi,
> How can use a hashMap in select box with Map key as listkey and Map values
> one of the property as listValue.
> For example I have a Map of type  . In the listValue I want
> to provide person.name. Is this possible?
>
> Regards,
> Shrinivas
>
> DISCLAIMER
> ==
> This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Ltd. It is intended only for the use of
> the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus infected
> mails.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

2012-03-28 Thread Łukasz Lenart
2012/3/28 Rout, Biswajit :
>  "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>

You're using the wrong DOCTYPE, check this out
https://cwiki.apache.org/confluence/display/WW/Validation


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

2012-03-28 Thread Eric Lentz
Did you turn on logging? What is the caught exception?


On Wed, Mar 28, 2012 at 11:01 AM, Rout, Biswajit wrote:

> Hi,
> I am running Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4
> server. However the validation framework is not working.
> Please find the log and the xml file.
>
>
>
> Log Information
>
> Mar 28, 2012 3:34:42 PM
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
> SEVERE: Caught exception while loading file
> com/gm/gm3pd/registration/action/RegistrationAction-validation.xml
> Tried all: '1' addresses, but could not connect over HTTP to server: '
> www.opensymphony.com', port: '80' - Class: weblogic.net.http.HttpClient
> File: HttpClient.java
> Method: openServer
> Line: 321 - weblogic/net/http/HttpClient.java:321:-1
>
>
> RegistrationAction-validation.xml
>
>  "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
>
> 
> 
> 
>  
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 5
> 15
> true
> Please enter Min %{minLength} character or Max %{maxLength}
> Character 
> 
> 
> 
>
> Any hints on the above issue.
> Thanks in advance.
>
>
>
> Best regards,
> Biswajit
> Planned Vacation : From 2-July-2012 to 6-July-2012
>
>


Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

2012-03-28 Thread Rout, Biswajit
Hi,
I am running Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server. 
However the validation framework is not working.
Please find the log and the xml file.



Log Information

Mar 28, 2012 3:34:42 PM 
com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
SEVERE: Caught exception while loading file 
com/gm/gm3pd/registration/action/RegistrationAction-validation.xml
Tried all: '1' addresses, but could not connect over HTTP to server: 
'www.opensymphony.com', port: '80' - Class: weblogic.net.http.HttpClient
File: HttpClient.java
Method: openServer
Line: 321 - weblogic/net/http/HttpClient.java:321:-1


RegistrationAction-validation.xml

http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>




 




 




5
15
true
Please enter Min %{minLength} character or Max %{maxLength} Character 





Any hints on the above issue.
Thanks in advance.



Best regards,
Biswajit
Planned Vacation : From 2-July-2012 to 6-July-2012



RE: Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-28 Thread Shinobi
I want the action name to be the same for both and use bang notation to
select the method to call. If I add the Action annotation with
interceptorRefs as you say and omit the action name it complains that the
action name is the same. Am I doing something wrong or is this just not
possible? 

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Convention-plugin-How-do-I-have-two-methods-on-the-same-action-using-2-different-Interceptor-stacks-tp5589550p5600108.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Using HashMap in selectbox

2012-03-28 Thread Rakeshkumar Parmar
I think it requires list. So you can get values from hashmap using values() 
method.then apply person.name.


Regards,
Rakesh

-Original Message-
From: Shrinivas Parashar [mailto:shrinivas_paras...@symantec.com]
Sent: Wednesday, March 28, 2012 3:44 PM
To: Struts Users Mailing List
Subject: Using HashMap in selectbox

Hi,
How can use a hashMap in select box with Map key as listkey and Map values one 
of the property as listValue.
For example I have a Map of type  . In the listValue I want to 
provide person.name. Is this possible?

Regards,
Shrinivas

DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Using HashMap in selectbox

2012-03-28 Thread Shrinivas Parashar
Hi,
How can use a hashMap in select box with Map key as listkey and Map values one 
of the property as listValue.
For example I have a Map of type  . In the listValue I want to 
provide person.name. Is this possible?

Regards,
Shrinivas