[S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Grish
I'm still in the process of learning S2 and I was curious on what's the best practice in implementing a form with multiple submit buttons I've read that there are multiple way to implement this. One way is here: http://struts.apache.org/2.0.8/docs/multiple-submit-buttons.html Although I was

Re: [ANN] Struts 2.0.9 General Availability Release with Important Security Fix

2007-07-25 Thread אלחנן מעין
is the DTP still a train wreck? what's the status of the ajax validators? are they stable (i understand there are to be replaced compleltly from dojo). From: Ted Husted [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List

Performance Vows , Requests get lost ..

2007-07-25 Thread jasdeep
I am performance tuning my JSP/Struts web-application deployed over jboss.. I have not got success yet. During performance/load testing of my web application with apache jmeter. It is OK up to 1400 request per minute.. But if i increase the load , i get following Issue: from 1800 requests sent

RE: [ANN] Struts 2.0.9 General Availability Release with Important Security Fix

2007-07-25 Thread Deepak Kumar
Hi, Discuss the new features and how to use these new features in your application at http://www.roseindia.net/struts/struts2/struts2download/struts2.0.9.shtml Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ted Husted Sent: Wednesday, July 25,

Validation framework... weird...

2007-07-25 Thread Balazs Michnay
Dear Struts Users, I have a form with 13 form controls on it. I'd like to use the Struts Validation Framework to validate it, but it's acting weird. What I'd like to do is to have AT LEAST ONE of the controls filled, but the test of validWhen only allows simple boolean expressions. I used a

Re: Performance Vows , Requests get lost ..

2007-07-25 Thread Aram Mkhitaryan
Try to find out if you have connection limit in you tomcat (or jetty?) configuration. Maybe the server limits not the struts. Also you can try to switch to 2.0.9, it seems to be faster Best Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile:

Moving from 1.2.9 to 1.3.8

2007-07-25 Thread Alexander Jede
Hallo list, I am quite new to struts and have, perhaps a quite stupid error. Until now a used Struts 1.2.9 (because my IDE had it onboard). Now I want to use some features of the version 1.3.8 and moved to this version that for. But now I have a strange error while starting tomcat (5.5). The error

Struts 2 Tags Tutorials and Examples Released.

2007-07-25 Thread Deepak Kumar
Hi, We are pleased to announce the release of Struts 2 Tags tutorials and examples. We have covered a) Struts Generic Tags --Control Tags --Data Tags b) Struts UI Tags -- Form Tags -- Non-Form UI Tags These tutorials are supported with examples. We have spent huge time

Re: [Update] Moving from 1.2.9 to 1.3.8

2007-07-25 Thread Alexander Jede
Oh dear I have forgotten to post my config :-) Web.xml: servlet servlet-nameAction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param

[SOLVED]Moving from 1.2.9 to 1.3.8

2007-07-25 Thread Alexander Jede
Here I am again, I found my problem. I only had to add common-chain.jar to my libs. Am Mittwoch, den 25.07.2007, 08:50 +0200 schrieb Alexander Jede: Hallo list, I am quite new to struts and have, perhaps a quite stupid error. Until now a used Struts 1.2.9 (because my IDE had it onboard). Now

Re: Problem using xml tiles definition as forward for an Action.

2007-07-25 Thread Antonio Petrelli
2007/7/25, Ken Bowen [EMAIL PROTECTED]: I want to use this as the forward from an Action called NumberPlayAction. And I have the following action in the action-mappings: Correct it to: action path=/NumberPlay name=nullForm type=com.strongbrain.actions.NumberPlayAction

Can Tiles provide highly configurable UI?

2007-07-25 Thread Anton Pussep
My company started to implement a framework that will allow us to build up highly customizable layouts, based on components, description/configuration files and parameters. The objective is it to allow every customer to have an own layout, such that we can make our service appear in the same

Re: Can Tiles provide highly configurable UI?

2007-07-25 Thread Antonio Petrelli
Please ask this question to the Tiles Users mailing list: http://tiles.apache.org/mail.html Antonio 2007/7/25, Anton Pussep [EMAIL PROTECTED]: My company started to implement a framework that will allow us to build up highly customizable layouts, based on components, description/configuration

Re: [ANN] Struts 2.0.9 General Availability Release with Important Security Fix

2007-07-25 Thread nicolas de loof
Could any struts commiter also deploy the -sources.jar for struts² 2.0.9 on maven repo ? Nico. 2007/7/25, Deepak Kumar [EMAIL PROTECTED]: Hi, Discuss the new features and how to use these new features in your application at

Re: Can Tiles provide highly configurable UI?

2007-07-25 Thread Anton Pussep
Sorry for posting to the wrong list, the old Tiles page still links to this mailing list: http://struts.apache.org/1.x/struts-tiles/mail-lists.html Best, Anton Antonio Petrelli wrote: Please ask this question to the Tiles Users mailing list: http://tiles.apache.org/mail.html Antonio

Re: Can Tiles provide highly configurable UI?

2007-07-25 Thread Antonio Petrelli
2007/7/25, Anton Pussep [EMAIL PROTECTED]: Sorry for posting to the wrong list, the old Tiles page still links to this mailing list: http://struts.apache.org/1.x/struts-tiles/mail-lists.html It is right, since Struts-Tiles is not Tiles 2. I know, it's a bit confusing, but when the

Re: [S2] Validation error messages pile up

2007-07-25 Thread Grish
I have the same problem. Error messages on one form are piling up. Were you able to resolve this probelm? It only occurs in Firefox as well. I notice it occurs when you have multiple forms. Rafael Dittberner wrote: The first one. Rafael Dittberner Musachy Barroso escreveu: On

How to call a method passing a parameter inside jsp with struts 2

2007-07-25 Thread TonyD
In a jsp page, I'am trying to call a method of my class passing a parameter and the method will return a string value. s:property value=#myClass.myMethod(myParameter) / or s:action name=myClass!myMethod executeResult=true s:param name=myParam value=%{myParam}/ /s:action but doesn't work.

Re: How to call a method passing a parameter inside jsp with struts 2

2007-07-25 Thread TonyD
s:property value=#myClass_myMethod(myParameter) / A made a syntax error, the underscore character and not the dot character between the class and the method name TonyD wrote: In a jsp page, I'am trying to call a method of my class passing a parameter and the method will return a string

[S2] Preselected option in s:select/ tag

2007-07-25 Thread Vincent Lin
Hi! I am using struts 2.0.6 and I encountered a problem in s:select/ tag today. In my JSP: s:select name=adminGroupMapData.adminGroupRid headerKey= headerValue=-- list=adminGroupList listKey=adminGroupRid

Re: [S2] Preselected option in s:select/ tag

2007-07-25 Thread Vincent Lin
I found some people are discussing this problem. When the data type of the attribute is Integer, the value can't be too large. We can use toString() to make pre-selecting work. So I changed my s:select/ tag to: s:select name=adminGroupMapData.adminRid headerKey=

[S2] Ajax theme and missing dwr package

2007-07-25 Thread Max Pimm
If i use the ajax theme a script import is generated for the following 2 files in template/ajax/form.ftl: script type=text/javascript src=${base}/dwr/interface/validator.js/script script type=text/javascript src=${base}/dwr/engine.js/script However i cannot find these javascripts in the

Re: [S2] Accessing autocompleter value from JavaScript

2007-07-25 Thread chengas123
Ravi Kumar-26 wrote: On 7/25/07, chengas123 [EMAIL PROTECTED] wrote: I had an HTML input I was accessing in script as follows: document.inputForm.city.value I replaced it with a Struts autocompleter and cannot access it in that manner anymore. Hey , I think it is not text filed

Re: Performance Vows , Requests get lost ..

2007-07-25 Thread Leon Rosenberg
how about measuring the number of request, and in which actions the requests spend how much time, and in which layers behind the actions, and how many parallel and and and ? I mean, you are guessing around instead of make a performance analysis. regards Leon On 7/25/07, jasdeep [EMAIL

[S2] Enhancement Request

2007-07-25 Thread Hoying, Ken
I am trying to get my head around what the best practices are in terms of managing interceptors and interceptor stacks. One would obviously like things to be as efficient as possible. However when it comes to interceptor stacks, it seems that one also has to balance maintainability. There are

Re: Performance Vows , Requests get lost ..

2007-07-25 Thread Aram Mkhitaryan
I'm not guessing, I'm telling my experience. No one will make so good performance analysis for you that you are satisfied. meanwhile, the main bottleneck is in view part of the Struts. Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile:

Re: [S2] Ajax theme and missing dwr package

2007-07-25 Thread Musachy Barroso
Yeah that shouldn't be there as DWR is not distributed with struts. But DWR was used before for ajax validation, so I guess that's the explanation why it is around. musachy On 7/25/07, Max Pimm [EMAIL PROTECTED] wrote: If i use the ajax theme a script import is generated for the following 2

Re: [S2] Accessing autocompleter value from JavaScript

2007-07-25 Thread Musachy Barroso
http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078 On 7/25/07, chengas123 [EMAIL PROTECTED] wrote: Ravi Kumar-26 wrote: On 7/25/07, chengas123 [EMAIL PROTECTED] wrote: I had an HTML input I was

Re: Performance Vows , Requests get lost ..

2007-07-25 Thread Leon Rosenberg
On 7/25/07, Aram Mkhitaryan [EMAIL PROTECTED] wrote: I'm not guessing, I'm telling my experience. No one will make so good performance analysis for you that you are satisfied. :-) meanwhile, the main bottleneck is in view part of the Struts. do you have any resources behind the actions?

Problem with radio button for one default selection

2007-07-25 Thread Vamsi
Hi all, I have some requirement like this I need to display a group of radio buttons where one them is defautly checked. Struts 2 ui componant display all the radio buttons without any difficulty but my problem is I am not able to make the default selection.

Re: [ANN] Struts 2.0.9 General Availability Release with Important Security Fix

2007-07-25 Thread Ted Husted
On 7/25/07, nicolas de loof [EMAIL PROTECTED] wrote: Could any struts commiter also deploy the -sources.jar for struts² 2.0.9 on maven repo ? We could use some help in that regard. For whatever reason, when we run mvn deploy the source jars are not being included. Including the plugins, we are

multiple struts-config files - empty Tiles Page

2007-07-25 Thread Kim Wegerle
Hello, I'm using Struts 2.0.8. I've decided to divide my Struts configuration into multiple parts. The configuration is now divided into two parts: struts-config.xml and struts-config-administration.xml . I'm using the Tiles plug-in and with one single configuration everything worked fine. But

Unable to get started with Struts2

2007-07-25 Thread Aladin
Hello, I'm running Tomcat 5.5 on Linux (Fedora) and java 1.5.0_12-b04. I have the simplest of Struts2 application and I keep getting an error in the logs stating: ERROR TP-Processor5 org.apache.catalina.core.StandardContext - Error filterStart ERROR TP-Processor5

RE: Unable to get started with Struts2

2007-07-25 Thread Wesley Wannemacher
There appears to be a few things that may be causing your problem - First off, is your class not qualified with a package, or maybe you're using the spring-plugin? If not, in your action configuration, it seems like the action is configured incorrectly - action name=Test class=Test Maybe

RE: Unable to get started with Struts2

2007-07-25 Thread Aladin
The class is actually packaged as test.Test, I just removed it from the post for simplicity (I won't do that next time). Also, I've tried the two url-patterns. Both /* and /execute/* don't work. They give the same error. Aladin There appears to be a few things that may be causing your

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread David Durham, Jr.
On 7/25/07, Grish [EMAIL PROTECTED] wrote: My problem though is I have a form with multiple submit buttons. I tried specifying the action on each submit button but the action in my form overrides the action specified in the buttons. I have success with this technique in Firefox, but I think

RE: Unable to get started with Struts2

2007-07-25 Thread Aladin
Looks as thought the root of the problem occurs in Dispatcher when it calls: private Container init_PreloadConfiguration() { Configuration config = configurationManager.getConfiguration(); ... } So, the problem hierarchy: Filter:init():dispatcher.init() =

Re: multiple struts-config files - empty Tiles Page

2007-07-25 Thread Antonio Petrelli
2007/7/25, Kim Wegerle [EMAIL PROTECTED]: Hello, I'm using Struts 2.0.8. I've decided to divide my Struts configuration into multiple parts. The configuration is now divided into two parts: struts-config.xml and struts-config-administration.xml . I'm using the Tiles plug-in and with one single

Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'

2007-07-25 Thread Vitaliy Selivanov
Hi , We are using Validator in Struts 1.2.7 in our application. When we run it on Tomcat6 everything is fine. When we move it to WebLogic 9.1 Express we can't start our deployment and we are getting this error message in the log file:

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Grish
no, what happens is the action specified in the form is what's executed. I'm using firefox as well. here's my button: s:submit action=someAction theme=ajax targets=myTarget / I tried having the form specify one action and one button have to submit the form, and another button (like the one

RE: Unable to get started with Struts2

2007-07-25 Thread Dave Newton
Without more setup details I'm not sure how we can help; what JARs do you have in WEB-INF/lib? d. --- Aladin [EMAIL PROTECTED] wrote: Looks as thought the root of the problem occurs in Dispatcher when it calls: private Container init_PreloadConfiguration() { Configuration config =

Re: multiple struts-config files - empty Tiles Page

2007-07-25 Thread Kim Wegerle
This is a good advice. I will change the log level to debug. Perhaps I'll see something that helps to solve this problem. With the current log level and my own debug output I'm only able to see that there are no errors in the log and the console and that the action returned success. I just wanted

RE: Unable to get started with Struts2

2007-07-25 Thread Aladin
Well... as it turns out, it looks like the problem is arising from the ConfigurationManager, when it tries to getConfigurationProviders(). I've added stacktraces to the source code of com.opensymphony.xwork2.config.ConfigurationManager and it revealed the following error: 25 Jul 2007 11:12:04,210

[S2] java.net.SocketException while navigating off a loading page

2007-07-25 Thread Charbel Abdul-Massih
Hi, I am getting the following exception when accessing a struts page, and before it's fully loaded, I click on a different link or hit the browser stop button: ERROR UIBean:486 - error when rendering java.net.SocketException: Software caused connection abort: socket write error at

Re: [S2] Accessing autocompleter value from JavaScript

2007-07-25 Thread chengas123
Awesome! That worked like a charm :o) Thanks so much! -Ben Musachy Barroso wrote: http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078 On 7/25/07, chengas123 [EMAIL PROTECTED] wrote: Ravi

Re: autocompleter works at firefox but broken at IE 6

2007-07-25 Thread NHSoft.YHW
but I found follow URL works with IE 6: http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ today I found that the URL(http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/)executed failure IE 6 when click Autocompleter 2 of Link two autocompleter elements., the IE

Re: multiple struts-config files - empty Tiles Page

2007-07-25 Thread Dave Newton
Do you have the tiles result defined in both struts config files? d. --- Kim Wegerle [EMAIL PROTECTED] wrote: This is a good advice. I will change the log level to debug. Perhaps I'll see something that helps to solve this problem. With the current log level and my own debug output I'm

RE: Unable to get started with Struts2

2007-07-25 Thread Dave Newton
Search the archives or nabble / etc. IIRC this was discussed not all that long ago! d. --- Aladin [EMAIL PROTECTED] wrote: Well... as it turns out, it looks like the problem is arising from the ConfigurationManager, when it tries to getConfigurationProviders(). I've added stacktraces to

Struts2 actions as Runnable thread

2007-07-25 Thread nmall
Hi, Is it OK for the Struts2 action to implement Runnable. I would like to use DWR Reverse AJAX to push certain information to the JSP. Can the action become the thread that continuously pushes information to the JSP, since we are using Struts2 as our front end framework. Please let me know

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread David Durham, Jr.
On 7/25/07, Grish [EMAIL PROTECTED] wrote: no, what happens is the action specified in the form is what's executed. I'm using firefox as well. here's my button: s:submit action=someAction theme=ajax targets=myTarget / I tried having the form specify one action and one button have to submit

Re: Struts2 actions as Runnable thread

2007-07-25 Thread nmall
The more I think about this - it does not make sense to make the action class a thread. Since the action is part of the request processing thread. How do you implement a polling thread with Struts actions. Thanks for any suggestions!! nmall wrote: Hi, Is it OK for the Struts2

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Joe Germuska
On 7/25/07, David Durham, Jr. [EMAIL PROTECTED] wrote: I tried having the form specify one action and one button have to submit the form, and another button (like the one above) to have the form submit to another action. But it seems the action in the form overrides my button. Things like:

Encoding of Message-Properties

2007-07-25 Thread Sebastian Kolbe
Hello Having a problem with property file encoding. I'm using properties files for i18n-messages and the setting 'struts.i18n.encoding' in struts.xml is set to 'UTF-8'. Using the s:text .../ tag the text appeared in the html output exact the way (and encoding) it was in the property file. With

Date Problem

2007-07-25 Thread rrecoba
Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- -- View this message in context:

Re: Problem with radio button for one default selection

2007-07-25 Thread yitzle
On 7/25/07, Vamsi [EMAIL PROTECTED] wrote: Hi all, I have some requirement like this I need to display a group of radio buttons where one them is defautly checked. Struts 2 ui componant display all the radio buttons without any difficulty but my problem is I am

Radio Buttons: name value the same

2007-07-25 Thread yitzle
My action has a boolean isAllowUpgrade() and a setAllowUpgrade(boolean b). If the name is set to blah, the correct radio button gets selected at render time. If the name is allowUpgrade, neither radio button gets selected. When I debugged, the getAllowUpgrade() does get called and does return a

Re: Date Problem

2007-07-25 Thread Ian Roughley
I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does

RE: Struts http path question

2007-07-25 Thread Phillip Grenier
Try setting the namespace on the package of the action or in the call to the action. I think im new to this - Phillip -Original Message- From: Scott Trafton [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 3:41 PM To: Struts Users Mailing List Subject: Struts http path question

Struts 2 Spring plug-in

2007-07-25 Thread Jiang, Jane (NIH/NCI) [C]
Hi, Has anyone got Struts Spring plug-in to work? I am getting this error starting the application. I removed all the beans except the dataSource and sessionFactory. Please see attached. I'd really appreciate any help you can offer. Thanks, Jane ERROR http-8080-Processor24

Radio Buttons in Struts

2007-07-25 Thread merryba
Hi, Please I am newbie to Sruts2. I want the radio button to display Male as the default one. s:radio name=registration.gender list=#{'M':'Male','F':'Female'} / How can I do it? Please help me. Thanks, -- View this message in context:

Is Struts still a better choice over JSF as on today ?

2007-07-25 Thread souravm
Hi All, Just thought of taking your opinions. Will you consider Struts to be a better choice today compared to JSF ? Especially, given the fact that JSF has better controller flexibility, event handling capability and ease of development using a RAD tool ? Regards, Sourav

Re: Is Struts still a better choice over JSF as on today ?

2007-07-25 Thread Frank W. Zammetti
souravm wrote: Will you consider Struts to be a better choice today compared to JSF ? In *most* cases, for me, yes I would, but that's just my opinion, and I'm about to invalidate it at the end of this :) Especially, given the fact that JSF has better controller flexibility, event

More than one masking patterns for the same Form property

2007-07-25 Thread sriharsha . chevuru
How do I display different validation messages each time a validation rule is violated. Here is the example condition i am looking at: If user enters an SSN starting 000 then i will display Shouldn't start with 000 If user enters an SSN starting 8 or 9 then i will display Shouldn't start

Re: [S2] java.net.SocketException while navigating off a loading page

2007-07-25 Thread Laurie Harper
I don't think there's much you can do about this, except set your logging up to filter it. Basically, when you hit stop or otherwise cause a request in progress to be aborted, the browser terminates the HTTP connection. This stack trace is the way the server reports the premature termination

Manipulating Collection in Struts Tag libs (options)

2007-07-25 Thread Oleg Konovalov
Hi, I am relatively new to Struts [using 1.3]. I need to create a form using Struts tag libs with 2 HTML select's [lists], connected to 2 DB tables, say allUsers and Admins, which would allow to select Administrators from the list of AllUsers. So I will have 3 buttons: Add, Remove and Update.

Re: Validation framework... weird...

2007-07-25 Thread Laurie Harper
Balazs Michnay wrote: Dear Struts Users, I have a form with 13 form controls on it. I'd like to use the Struts Validation Framework to validate it, but it's acting weird. What I'd like to do is to have AT LEAST ONE of the controls filled, but the test of validWhen only allows simple boolean

Re: Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'

2007-07-25 Thread Laurie Harper
Vitaliy Selivanov wrote: Truncated. see log file for complete stacktrace Did you look at the log file? Look for the root cause of the ServletUnavailable exception. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Encoding of Message-Properties

2007-07-25 Thread Laurie Harper
Sebastian Kolbe wrote: Hello Having a problem with property file encoding. I'm using properties files for i18n-messages and the setting 'struts.i18n.encoding' in struts.xml is set to 'UTF-8'. Using the s:text .../ tag the text appeared in the html output exact the way (and encoding) it was in

Re: Date Problem

2007-07-25 Thread Ian Roughley
try setting it to a locale that uses a date format of dd/MM/. rrecoba wrote: I don´t have the struts.locale, neither th struts.properties. This is the problem. Ian Roughley wrote: what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties

Re: Date Problem

2007-07-25 Thread rrecoba
I don´t have the struts.locale, neither th struts.properties. This is the problem. Ian Roughley wrote: what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties /Ian rrecoba wrote: Hi, thanks for your answer. I understand that the date tag

Re: 答复: Radio Buttons in Struts

2007-07-25 Thread merryba
It doesn't work .Still I am not getting as one of the radio buttons to be selected by default. Real wrote: As following: s:radio name=registration.gender list=#{'M':'Male','F':'Female'} value=%{'F'}/ Crazyreal -邮件原件- 发件人: merryba [mailto:[EMAIL PROTECTED] 发送时间:

Re: Radio Buttons: name value the same

2007-07-25 Thread yitzle
On 7/25/07, yitzle [EMAIL PROTECTED] wrote: My action has a boolean isAllowUpgrade() and a setAllowUpgrade(boolean b). If the name is set to blah, the correct radio button gets selected at render time. If the name is allowUpgrade, neither radio button gets selected. When I debugged, the

Is there a way to remove browser cache once the user clicks the log out button?

2007-07-25 Thread semaj.najraham
Hi guys, Hope someone can reply me. I removed the browser cache in my application using a servlet filter so that if the user clicks the log out button (which invalidates the session), he/she cannot see the pages he visited using a browser back button. Of course, if I don't remove the cache,

答复: Radio Buttons in Struts

2007-07-25 Thread chenshibing
As following: s:radio name=registration.gender list=#{'M':'Male','F':'Female'} value=%{'F'}/ Crazyreal -邮件原件- 发件人: merryba [mailto:[EMAIL PROTECTED] 发送时间: 2007年7月26日 7:13 收件人: user@struts.apache.org 主题: Radio Buttons in Struts Hi, Please I am newbie to Sruts2. I want the radio

Re: [S2] Preselected option in s:select/ tag

2007-07-25 Thread Laurie Harper
My bet is that it's a bug. If the limit is at 1000, I'm guessing the problem is that the value is being rendered as 1,000 (i.e. with a comma separator), and that's what causes the problem. You can verify this by viewing the HTML source of the rendered page. If that is indeed the case, a JIRA

答复: 答复: Radio Buttons in Struts

2007-07-25 Thread chenshibing
A bit strange, it does work in my test app. Crazyreal -邮件原件- 发件人: merryba [mailto:[EMAIL PROTECTED] 发送时间: 2007年7月26日 9:27 收件人: user@struts.apache.org 主题: Re: 答复: Radio Buttons in Struts It doesn't work .Still I am not getting as one of the radio buttons to be selected by default. Real

Re: [S2] Preselected option in s:select/ tag

2007-07-25 Thread Vincent Lin
The generated html content of s:select/ is: select name=adminGroupMapData.adminRid id=AdminGroupMap_create_adminGroupMapData_adminRid option value= --/option option value=741501741501/option option value=741406741406/option option value=741405741405/option option

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Grish
Yeah this should work, If i can't find an alternative I most likely will take this approach. But I was hoping to find a solution that didn't require me to code a lot of logic using js in the client side. It seems a lot easier if I can just specifiy the actions with a few controls and the rest is

Re: Can I integrate Struts 2 + JSF and Facelets?

2007-07-25 Thread Laurie Harper
mraible wrote: I'm trying to integrate JSF into a Struts 2 prototype. AFAICT, I need to add the struts-jsf-plugin to my pom.xml and add FacesServlet to my web.xml. Are there any other steps needed? I'm using Sun's RI since it run's on Tomcat 5.x with JSP 2.0. How do I tell JSF to use Facelets

Re: Struts 2 Spring plug-in

2007-07-25 Thread Aram Mkhitaryan
I'm using spring plugin for s2 and it works great! You may have problems in your configuration file. If you post your /WEB-INF/applicationContext.xml we could say more ... Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile: +374 91

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread Richard Sayre
I'm not sure if this is what your are looking for, it is doing the control logic on the client side. Instead of using s:submit to submit the form you could make 3 input buttons: input type=button onClick=doAction1()/ input type=button onClick=doAction2()/ input type=button

Re: Is there a way to remove browser cache once the user clicks the log out button?

2007-07-25 Thread Paul Benedict
Do not cache pages when the user is logged in. That's the answer :-) semaj.najraham wrote: Hi guys, Hope someone can reply me. I removed the browser cache in my application using a servlet filter so that if the user clicks the log out button (which invalidates the session), he/she cannot see

Re: Performance Vows , Requests get lost ..

2007-07-25 Thread Aram Mkhitaryan
For my tests it doesn't matter, since I compared S1 with S2. Only configurations, Action class structure and the view (jsp pages) are different. I got 2 times better performance when I switched S2 view to the simple theme. Unfortunately it's still 3 times slower than S1. Best, Aram

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-25 Thread tom tom
I already made a change request. Thanks, --- Nils-Helge Garli [EMAIL PROTECTED] wrote: Yes, it uses pluto for it's JSR168 support, but there's still a lot of integration- and extension points that can behave differently, so that is unfortunately not conclusive. There's absolutely no

Re: [S2] Preselected option in s:select/ tag

2007-07-25 Thread Vincent Lin
But I already specified name=adminGroupMapData.adminRid in the tag. Shouldn't the preselected option be the value of adminGroupMapData.adminRid ? If the preselected option won't be the value of the attribute 'name', why does it work when the value is less than 1000? On 7/26/07, yitzle [EMAIL

Re: Manipulating Collection in Struts Tag libs (options)

2007-07-25 Thread Paul Benedict
You should use EventAction to easily execute a different method in an Action. On your onclick handler, set a hidden form field -- it sounds like that could be considered a different method. Paul Oleg Konovalov wrote: Hi, I am relatively new to Struts [using 1.3]. I need to create a form

Re: More than one masking patterns for the same Form property

2007-07-25 Thread Paul Benedict
You could try attaching two mask validators to a field. The first will do the first pattern, etc. [EMAIL PROTECTED] wrote: How do I display different validation messages each time a validation rule is violated. Here is the example condition i am looking at: If user enters an SSN starting

Struts http path question

2007-07-25 Thread Scott Trafton
Hello, I am in the process of converting old code over to struts2 with tiles. The problem I am having is trying to get the url path correct to work with some of our other code. The server is set up to resolve to /account so when I submit to an action to go to another page is it resolving the

Re: There is no Action mapped for action name HelloWorld. - [unknown location]

2007-07-25 Thread temp_checker
I had the same problem. In case you haven't already figured it out, simply moving my struts.xml from WEB-INF to WEB-INF/classes/ solved the problem. I hope it works for you. boriskerzner wrote: Hi. I setup Struts 2 on my computer and tried to run the HelloWorld example, but am running into

Re: Radio Buttons: name value the same

2007-07-25 Thread yitzle
On 7/25/07, yitzle [EMAIL PROTECTED] wrote: When I debugged, the getAllowUpgrade() does get called and does return a boolean. That should read 'isAllowUpgrade()' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Date Problem

2007-07-25 Thread rrecoba
Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its

Re: [S2] Preselected option in s:select/ tag

2007-07-25 Thread yitzle
On 7/25/07, Vincent Lin [EMAIL PROTECTED] wrote: I found some people are discussing this problem. When the data type of the attribute is Integer, the value can't be too large. We can use toString() to make pre-selecting work. So I changed my s:select/ tag to: s:select

Re: Show message using struts

2007-07-25 Thread yitzle
On 7/25/07, tfr [EMAIL PROTECTED] wrote: Hi all, I want to show some message to user. These messages will not be error messages. These will be something like 'Data has been saved successfully' type. Have any idea how to do it easily? == Action Class == private String message; public String

Re: Struts 2 Spring plug-in

2007-07-25 Thread Adam Ruggles
There is nothing wrong with the plugin, I'm using it on multiple apps. It looks like you have an error in your dataSource definition. I would post this on the springframework forum. Jiang, Jane (NIH/NCI) [C] wrote: Hi, Has anyone got Struts Spring plug-in to work? I am getting this error

Re: Date Problem

2007-07-25 Thread Ian Roughley
what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties /Ian rrecoba wrote: Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input