Re: [Struts 2] ?debug=console (devMode) not working

2010-01-20 Thread Lukasz Lenart
2010/1/20 Fernandes Celinio : > Hi, > I am trying to run the debug console that is available in a popup when you > append the URL with ?debug=console > It is described here : > http://struts.apache.org/2.0.14/docs/debugging.html > > Here is the URL i used : > http://localhost:8085/myWebApp/doLogin

RE: [Struts 2] OGNL debug console not working

2010-01-20 Thread Celinio Fernandes
I have done that of course, else i would not see the console in the popup. The problem is elsewhere. Does anyone have an idea ? Thanks. --- On Wed, 1/20/10, Raghuveer wrote: From: Raghuveer Subject: RE: [Struts 2] OGNL debug console not working To: "'Celinio Fernandes'" , "'Struts Users Mailin

Re: Hiding URL in struts1.2

2010-01-20 Thread Zaheer Mohammad
HI, Thanks to all for your valuable sugestions Actually i want to hide all parameters form the Url actual Url's are like this : http://localhost:8280/mspui/custumerAuthrtn.do?dispmethd=custumerAuthorize&accountNumber=12345 but I should get http://localhost:8280/mspui/ by hiding paramete

Re: Session help

2010-01-20 Thread emil thushanga
Dear all, This thread was really helpful to me. i could accomplish it using interceptors as you guys mentioned. Thanks for the solution and the links. Lots of thanks Emil On Wed, Jan 20, 2010 at 9:47 PM, Dale Newfield wrote: > emil thushanga wrote: > >> Thanks for the solutions. i prefer to d

RE: Hiding URL in struts1.2

2010-01-20 Thread Raghuveer
Could you elaborate your requirement? URL will be changed when you use showHome -Original Message- From: Brian Thompson [mailto:elephant...@gmail.com] Sent: Wednesday, January 20, 2010 9:13 PM To: Struts Users Mailing List Subject: Re: Hiding URL in

RE: validation in struts2

2010-01-20 Thread Raghuveer
Your XML file needs to be renamed as,LoginAction-validation.xml -Original Message- From: Gabriel Belingueres [mailto:belingue...@gmail.com] Sent: Wednesday, January 20, 2010 8:43 PM To: Struts Users Mailing List Subject: Re: validation in struts2 the form tag is wrong? try: 2010/1/19

RE: [Struts 2] OGNL debug console not working

2010-01-20 Thread Raghuveer
That would work only when you enable it in configuration Either in struts.properties or struts.xml Example: in struts.properties set devmode to true.. struts.devMode=true -Original Message- From: Celinio Fernandes [mailto:cel...@yahoo.com] Sent: Wednesday, January 20, 2010 7:41 PM To: St

RE: How to convert request parameters into Collection type - Set

2010-01-20 Thread Raghuveer
Try as below. Regards, Raghuveer Vellanki -Original Message- From: Mittal, Nitin (US - Mumbai) [mailto:nimit...@deloitte.com] Sent: Wednesday, January 20, 2010 10:54 PM To: Struts Users Mailing List Subject: RE: How to convert request parameters into Collection type

[Struts 2] ?debug=console (devMode) not working

2010-01-20 Thread Fernandes Celinio
Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it

Interceptor to load properties file

2010-01-20 Thread Bhaarat Sharma
I am using this approach to load properties http://struts.apache.org/2.0.14/docs/how-do-i-set-a-global-resource-bundle.html I want to load the properties on each request (without turning the devmode = true). How should I go about this? Should I turn ActionGlobalMessagesListener into an intercep

Re: getText() from login.properties but not packages.properties

2010-01-20 Thread Bhaarat Sharma
login.properties has to be mentioned in you struts.properties file as struts.custom.i18n.resources=login Above means that login.properties resides in WEB-INF/classes On Wed, Jan 20, 2010 at 1:47 PM, Emi Lu wrote: > Lukasz Lenart wrote: > >> Please read documentation, everything is explained th

Re: getText() from login.properties but not packages.properties

2010-01-20 Thread Emi Lu
Lukasz Lenart wrote: Please read documentation, everything is explained there. http://struts.apache.org/2.1.8.1/docs/localization.html http://struts.apache.org/2.1.8.1/docs/strutsproperties.html This did not answer my question :( Using package.properties works fine for me. The problem is how

RE: How to convert request parameters into Collection type - Set

2010-01-20 Thread Mittal, Nitin (US - Mumbai)
Ok, so I want to understand how that would work if Set contains elements of a complex type,like Address as follows: setAddresses(Set adresses) Inthis case, Jsp should define text fields as follows: addresses.city addresses.state adresses.city addresses.state How would struts arrange the fields

Resrouce bundles intermittently not getting loaded when in clustered environment

2010-01-20 Thread Bhaarat Sharma
I am not sure whether it is directly a Struts problem but I'm hoping someone will be able to suggest a way around. I have the following in my struts.properties file: struts.custom.i18n.resources=MyResource MyResource.properties resides in WEB-INF/classes of my application. In my JSP I simply do

Re: getText() from login.properties but not packages.properties

2010-01-20 Thread Lukasz Lenart
Please read documentation, everything is explained there. http://struts.apache.org/2.1.8.1/docs/localization.html http://struts.apache.org/2.1.8.1/docs/strutsproperties.html Regards -- Lukasz Kapituła Javarsovia 2010 http://javarsovia.pl

Re: How to convert request parameters into Collection type - Set

2010-01-20 Thread Chris Pratt
That might work for Set's where order isn't important, but how would you populate a Liist? I've never had good luck there. (*Chris*) On Wed, Jan 20, 2010 at 5:18 AM, Steven Yang wrote: > simply loose the "[n]" just have all fields with name "middleNames" > > On Wed, Jan 20, 2010 at 8:34 PM, M

Re: Session help

2010-01-20 Thread Dale Newfield
emil thushanga wrote: Thanks for the solutions. i prefer to do it in interceptors way. if any resources available for me to grab the thing please let me know. any way thanks a lot. A good place to start: http://struts.apache.org/2.1.8.1/docs/interceptors.html and http://struts.apache.org/2.1.8.

Re: Hiding URL in struts1.2

2010-01-20 Thread Brian Thompson
I would look into using URLRewrite [1]. It would be easy to go from showing this in the browser: http://localhost:8180/webproject/showHome to the application processing this: http://localhost:8180/webproject/loginv.do?dispmethd=showHome [1] - http://tuckey.org/urlrewrite/ On Wed, Jan 20, 2

Re: Session help

2010-01-20 Thread Brian Thompson
I've read the entire thread, and I'm still a bit confused. Are you just trying to copy 'barbados' (or whatever is in the path) from the URL into a session variable? That sounds pretty easy to do. I would probably use a Filter, but there would really only be one extra step if you do it in an inte

Re: validation in struts2

2010-01-20 Thread musomesa
Also, the file should be LoginAction-validation.xml . Use the config-browser to see that you have the validators in place. Chris -Original Message- From: Gabriel Belingueres To: Struts Users Mailing List Sent: Wed, Jan 20, 2010 10:12 am Subject: Re: validation in struts2 t

Re: select box dynamic loads depends on another select box

2010-01-20 Thread Dale Newfield
nani2ratna wrote: I have 2 select boxes. If user changes one select box, then data in second one should be changed and reload from database. I believe http://struts.apache.org/2.1.8.1/docs/doubleselect.html sends it all in the original page rather than using subsequent asynchronous requests..

getText() from login.properties but not packages.properties

2010-01-20 Thread Emi Lu
Good morning, I created login.properties that contains "username.required=Username cannot be empty." If I rename this file to packages.properties, the system always return the text message, but if the name is not that, the message never returned. May I know if I want struts2 read login.prop

Re: validation in struts2

2010-01-20 Thread Gabriel Belingueres
the form tag is wrong? try: 2010/1/19 Shasha : > > Hi All, > > I am not able to get the validation errors from Login-validation.xml when i > am using Modeldriven . > > Login-validation.xml >   1.   2.         "-//OpenSymphony Group//XWork Validator 1.0.2//EN" >   3.         "http://www.opensym

[Struts 2] OGNL debug console not working

2010-01-20 Thread Celinio Fernandes
Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it

How to convert request parameters into Collection type - Set

2010-01-20 Thread Mittal, Nitin (US - Mumbai)
Hi, I need help in mapping JSP text fields to a setter in action class which have parameter as Set I know Struts 2 supports automatically converting sets of request parameters into properties of various Collection type Lists This can be done by having a setter in the action class as - setMiddl

Re: select box dynamic loads depends on another select box

2010-01-20 Thread Johannes Geppert
Maybe this helps you. http://code.google.com/p/struts2-jquery/wiki/SelectTag#A_simple_Doubleselect_with_Topics Best Regards Johannes Geppert nani2ratna wrote: > > Hi Guys, > > I have 2 select boxes. If user changes one select box, then data in second > one should be changed and reload from

Re: How to convert request parameters into Collection type - Set

2010-01-20 Thread Steven Yang
simply loose the "[n]" just have all fields with name "middleNames" On Wed, Jan 20, 2010 at 8:34 PM, Mittal, Nitin (US - Mumbai) < nimit...@deloitte.com> wrote: > Hi, > I need help in mapping JSP text fields to a setter in action class which > have parameter as Set > > I know Struts 2 supports a

RE: Problem with tag

2010-01-20 Thread Srikanth
Hi Friends, Convert it into HTML. How to convert ? Thank you, Srikanth V srikan...@kensium.com Main: 877 KENSIUM (536.7486) India Main: +91 9949495511 India Fax: +91 4023704282 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: -

How to convert request parameters into Collection type - Set

2010-01-20 Thread Mittal, Nitin (US - Mumbai)
Hi, I need help in mapping JSP text fields to a setter in action class which have parameter as Set I know Struts 2 supports automatically converting sets of request parameters into properties of various Collection type Lists This can be done by having a setter in the action class as - setMiddl

Re: select box dynamic loads depends on another select box

2010-01-20 Thread chen thomas
Maybe you could use ajax technology to do that . There're some ajax frameworks , such as jQuery , which could help you !

Re: Hiding URL in struts1.2

2010-01-20 Thread chen thomas
Maybe you could use post method of Form to do this

Hiding URL in struts1.2

2010-01-20 Thread Zaheer Mohammad
Hi All, Hi i am working on Struts1.2 Project. Can Anyone help me in hiding parameters in Url without using Frameset In struts1.2. Example : http://localhost:8180/webproject/loginv.do?dispmethd=showHome I want to get like this http://localhost:8180/webpr

Re: Migration from Struts1 to Struts2.1.6 - Plugin in Application Starup

2010-01-20 Thread Paweł Wielgus
Hi Raghu, i think You can do it with ServletContextListener, register it in web.xml like this: < web-app > ... < listener > < listener-class > com.package.MyListener < /listener-class > < /listener > < /web-app > and overwrite

select box dynamic loads depends on another select box

2010-01-20 Thread nani2ratna
Hi Guys, I have 2 select boxes. If user changes one select box, then data in second one should be changed and reload from database. So when user changes first select box, asynchronous action should be called and should get the data from data base and upload that data to select box. Sorry for my