Re: Re : Disappearing Labels

2010-05-21 Thread Bhaarat Sharma
, but my labels disappeared too... if anybody had an idea... fr/ - Message d'origine De : Bhaarat Sharma bhaara...@gmail.com À : Struts Users Mailing List user@struts.apache.org Envoyé le

Disappearing Labels

2010-05-20 Thread Bhaarat Sharma
We have a weird problem with multiple Struts2 wars deployed on same GlassFish server. These wars share the Xworks.jar file and have their own copy of struts2-core jar files in WEB-INF/lib Problem we are experiencing is that once the server is restarted everything is ok but after couple of hours

Re: Disappearing Labels

2010-05-20 Thread Bhaarat Sharma
...@cimballi.net wrote: Did you try putting the xworks jar in each project ? I am not sure but I don't think you can share it. Cimballi On Thu, May 20, 2010 at 9:18 PM, Bhaarat Sharma bhaara...@gmail.com wrote: We have a weird problem with multiple Struts2 wars deployed on same GlassFish

Re: Disappearing Labels

2010-05-20 Thread Bhaarat Sharma
in Struts uses Xworks. Cimballi On Thu, May 20, 2010 at 10:10 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Hi, Have not tried that yet. We can not try that because of this error on glassfish. http://www.mail-archive.com/user@struts.apache.org/msg76893.html having multiple wars in an ear

ConcurrentModificationException error.

2010-04-30 Thread Bhaarat Sharma
Hi We are struggling with this error in our application. We are on Struts 2.0.6 and Xworks version is 2.0.1. This issue is very intermittent but the best way we've been able to reproduce it is when we load the same page from two different browser windows or on two different machines. The stack

Question on WW-2272 fixed by musachy

2010-04-29 Thread Bhaarat Sharma
I am referring to this JIRA ticket: https://issues.apache.org/jira/browse/WW-2272 This code was fixed by musachy and the comment says: Fixed on xwork. rv1780 I am just trying to figure out what rv1780 means and how can I traslate that to which xwork jar would have this issue fixed? Currently

how to get runtime configuration

2010-04-22 Thread Bhaarat Sharma
I was going through the API's and came across this methodhttp://www.jarvana.com/jarvana/view/org/apache/struts/struts2-core/2.1.8/struts2-core-2.1.8-javadoc.jar!/com/opensymphony/xwork2/config/impl/DefaultConfiguration.html#getRuntimeConfiguration() It is getRuntimeConfiguration() in class

Re: how to get runtime configuration

2010-04-22 Thread Bhaarat Sharma
nevermind...got it: Dispatcher.getInstance().getConfigurationManager().getConfiguration().getRuntimeConfiguration(); On Thu, Apr 22, 2010 at 9:41 AM, Bhaarat Sharma bhaara...@gmail.com wrote: I was going through the API's and came across this methodhttp://www.jarvana.com/jarvana/view/org

Re: programatically add configuration

2010-04-20 Thread Bhaarat Sharma
Is this not possible to do ? can we not programmaitcally add/load struts.xml into the instance? On Mon, Apr 19, 2010 at 2:48 PM, Bhaarat Sharma bhaara...@gmail.com wrote: ConfigurationManager ( http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/config

no action mapped for namespace

2010-04-20 Thread Bhaarat Sharma
in struts2 is there a way to detect when No action mapped for namespace ... error will come up?? What I mean is that can we write an if condition that checks whether or not the the action name exists in struts.xml? we can get the action name by: ActionContext.getInstance().getName() So if the

Re: no action mapped for namespace

2010-04-20 Thread Bhaarat Sharma
@Luis: I don't think I understand what you are trying to do from that example...how will that help? I am trying to find out that if ActionContext.getInstance().getName() returns an action name say test and that is infact the action we want to land on...can it be So if the above line of code

programatically add configuration

2010-04-19 Thread Bhaarat Sharma
ConfigurationManager ( http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/config/ConfigurationManager.html) API provides a reload method that will reload the configuration settings. There is also a setConfiguration(Configuration configuration) method in there. Can

struts.xml vs struts.properties which takes a precedence?

2010-03-25 Thread Bhaarat Sharma
Hi, If the same property is set in struts.xml and struts.properties which one takes precedence? also, is there any documentation where this is explained /verified?

Way to forcefully reload struts.xml [struts2]

2010-02-25 Thread Bhaarat Sharma
We are seeing a situation where certain namespaces/actions are getting error There is no action mapped for namespace ... and action ... on the server. However, on our local we do not get this error. Which leads us to believe that struts.xml might be getting lost. Is there a way to forcefully

Re: I18nInterceptor / request_locale not working as expected

2010-01-29 Thread Bhaarat Sharma
Hi stephan, I see you solved your issue regarding resource bundle. I am having a problem where intermittently the resource bundles get lost and instead of seeing values on the browser...we start seeing actual properties like: my.label.name. using the execute method for your code below...is

Re: Any way to load resources in java.util.ResourceBundle

2010-01-29 Thread Bhaarat Sharma
no help on this one? On Wed, Jan 27, 2010 at 12:43 PM, Bhaarat Sharma bhaara...@gmail.comwrote: We have seen situations where sometimes the global resource bundles are lost intermittently for some sessions. We are in a clustered/shared environment where multiple apps are deployed onto

Any way to load resources in java.util.ResourceBundle

2010-01-27 Thread Bhaarat Sharma
We have seen situations where sometimes the global resource bundles are lost intermittently for some sessions. We are in a clustered/shared environment where multiple apps are deployed onto a GlassFishV2 server. Multiple apps share the struts2 core jars. We have some pages where we have written

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 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 em...@encs.concordia.ca wrote: Lukasz Lenart wrote: Please read documentation,

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

custom properties file not loading in Glassfish V2

2009-12-16 Thread Bhaarat Sharma
Hello, I have a Struts2 app in which my struts.properties resides in WEB-INF/classes. It contains the following line struts.custom.i18n.resources=mypropertyfile mypropertyfile also resides in WEB-INF/classes. and inside the properties file, for example I have the following:

javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
I have the following code: s:select label=programType id=programType name=programType list=#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'} value=selectedProgram required=true/ which is giving error: org.apache.jasper.JasperException:

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
furthermore, I have struts-tags.tld in my WEB-INF folder. Are there any other tld's that the select tag depends on On Thu, Oct 29, 2009 at 11:30 AM, Bhaarat Sharma bhaara...@gmail.comwrote: I have the following code: s:select label=programType id=programType name=programType

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
so it should be: s:select label=programType id=programType name=programType list=%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'} value=selectedProgram required=true/ ? On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield d...@newfield.org wrote: If you

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
'} value=selectedProgram required=true/ I made the same oversight last night Cookie -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: 29 October 2009 15:36 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select Tag so it should

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
October 2009 15:54 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select Tag Bhaarat Sharma wrote: so it should be: s:select label=programType id=programType name=programType list=%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
how can I keep it from interpreting it as EL expression its OGNL.. I am using Sun App Server 9.1 could there be a setting on the server? On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma bhaara...@gmail.comwrote: :( still it gives this error: javax.el.ELException: Error Parsing

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
-td13734373.htmlmailing list archives FTW On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma bhaara...@gmail.comwrote: how can I keep it from interpreting it as EL expression its OGNL.. I am using Sun App Server 9.1 could there be a setting on the server? On Thu, Oct 29, 2009 at 12:10 PM

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
however, this does not gurantee the order (because of the HashMap)... something else can be used to preserve the order On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma bhaara...@gmail.comwrote: got it. it should be list=#...@java.util.hashmap@{'1':'January', '2':'February','3':'March

/struts-tags not found

2009-10-27 Thread Bhaarat Sharma
hello, on our app we are getting error: PWC6117: File /struts-tags not found App is running on Sun App Server 9.1 struts2-core-2.0.6.jar is in class path of the application server. Code in the JSP: %@ taglib prefix=s uri=/struts-tags % What can we do to fix this error? I assume since the

Re: /struts-tags not found

2009-10-27 Thread Bhaarat Sharma
Application Deploy- ment descriptor in WEB-INF/web.xml. See Section JSP.3.2, “Taglib Map” for more details. musachy On Tue, Oct 27, 2009 at 1:07 PM, Bhaarat Sharma bhaara...@gmail.com wrote: hello, on our app we are getting error: PWC6117: File /struts-tags not found App is running

Re: urgent guys

2009-10-14 Thread Bhaarat Sharma
how about you give us code from VoyagerDispatchAction.java around like 178. On Wed, Oct 14, 2009 at 7:31 AM, swathi reddy swathi23.re...@gmail.comwrote: Hi all guys can u tell me whare exactly this error is being raised in my project I am using struts 1.3.8 errror log is like this below

Re: Unit Testing in Struts 2.1.6

2009-10-14 Thread Bhaarat Sharma
I have not read your post in detail but have a quick question about unit testing with struts2. lets say I have lot of DAO classes each with multiple methods each running a stored procedure. using your article information and Junit plugin if I write a unit case for each of them (methods in DAO

Re: [OT] Re: AJAX issues in struts 2.1.6

2009-09-04 Thread Bhaarat Sharma
lol so mean On Fri, Sep 4, 2009 at 10:20 AM, Greg Lindholm greg.lindh...@gmail.comwrote: Martin Gainty wrote: is struct2 a stealth apache project? Yes; it's a bot-detection/mailing-list removal system. Dave LOL . and he's outta here

Re: [OT] Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Bhaarat Sharma
this has been a long time coming. Martin: I also appreciate your efforts as you try to answer questions but as dave said..most of the time they make the poster more confused. On Wed, Aug 26, 2009 at 10:35 AM, Dave Newton newton.d...@yahoo.com wrote: Martin Gainty wrote: mgat least your attack

struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
I have the following code in a jsp Line1: s:iterator value=questions status=status Line2:s:if test='incorrectQs.contains(${questionId})' Line3:div style=color: red; padding-bottom: 5px;Print Something/div Line4:/s:if Line5:/s:iterator On Line1 questions is a list. This list

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
ok thanks Wes. yeah that is def. more readable. could you please tell me what the difference is in doing s:if test='incorrectQs.contains(${questionId})' VS. s:if test='incorrectQs.contains(#question.questionId)' beside the question.questionId part. I am more concerned about difference in

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
oh and attribute 'var' seems to be invalid according to the TLD On Wed, Aug 5, 2009 at 11:42 AM, Bhaarat Sharma bhaara...@gmail.com wrote: ok thanks Wes. yeah that is def. more readable. could you please tell me what the difference is in doing s:if test='incorrectQs.contains(${questionId

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
use OGNL by enclosing them in %{} (*Chris*) On Wed, Aug 5, 2009 at 8:43 AM, Bhaarat Sharma bhaara...@gmail.com wrote: oh and attribute 'var' seems to be invalid according to the TLD On Wed, Aug 5, 2009 at 11:42 AM, Bhaarat Sharma bhaara...@gmail.com wrote: ok thanks Wes. yeah

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
s:property value=#question.questionId/ !--Line 6-- /s:else /s:iterator Line 6 prints fine and prints questionId...:( On Wed, Aug 5, 2009 at 12:09 PM, Bhaarat Sharma bhaara...@gmail.com wrote: thanks for the explanation chris. but using what you suggested is not making Print

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
='%{incorrectQs.contains(#question.questionId)}' div style=color: red; padding-bottom: 5px;Print Something/div /s:if /s:iterator I like to make it obvious which attributes use OGNL by enclosing them in %{} (*Chris*) On Wed, Aug 5, 2009 at 8:43 AM, Bhaarat Sharma bhaara...@gmail.com wrote: oh

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
, Bhaarat Sharma bhaara...@gmail.com wrote: thanks for the explanation chris. but using what you suggested is not making Print Something appear even once. so the test statement is never evaluated to true. ...leading me to suspect that ognl expression is not working. I am not sure

equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
In servlets we can do request.getParameter(someParm); to gain access to parameters passed to the jsp. what is the equivalent of this in struts2? is there an html tag for this?

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
request parameters as name-value pairs. In terms of an html tag, use OGNL to get to the request parameters. Especially the #request object. EG %{#request.someParam} -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: Tuesday, August 04, 2009 1:56 PM To: Struts

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
I know its not the best case scenario. If i can do this then I will not have to change major piece of the code. I'll try to explain the scenario: basically one jsp page is used to show results. this jsp page has pagination so each time 50 results are shown. But the page has a printer friendly

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
wow ..just explaining the problem i figured out I can just avoid doing what i was thinking and just check for request.getParamter() inside the action class. anyways...still curious if there is a way to set a setter w/out doing form submission.. On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
thanks wes. so when that url will be clicked the setter will be set. ...maybe pushing the envelope but is it possible to not click any url but still set a setter. just like we call a getter. s:property value = %{stuff}/ On Tue, Aug 4, 2009 at 2:22 PM, Bhaarat Sharma bhaara...@gmail.com wrote

Re: common error page in struts2 application

2009-07-31 Thread Bhaarat Sharma
but if i am catching it, it is not showing my the common error page i made.. On Fri, Jul 31, 2009 at 4:29 AM, mailtolouis2020-str...@yahoo.com wrote: I think you can catch it, then do log.error(e.getMessage(),e); and then throw e; From: Bhaarat Sharma

Re: common error page in struts2 application

2009-07-31 Thread Bhaarat Sharma
ahhh i was not 'thrwoing' e after catching it _ thansk On Fri, Jul 31, 2009 at 6:55 AM, Bhaarat Sharma bhaara...@gmail.com wrote: but if i am catching it, it is not showing my the common error page i made.. On Fri, Jul 31, 2009 at 4:29 AM, mailtolouis2020-str...@yahoo.com wrote: I

common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
Hi, What is the way to provide a common error page in a struts2 application? and automatically redirect to the error page when errors occur? Thanks

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
how do we map exceptions to a global result? On Thu, Jul 30, 2009 at 2:41 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: What is the way to provide a common error page in a struts2 application? and automatically redirect to the error page when errors occur? Map

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
thanks On Thu, Jul 30, 2009 at 3:21 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: how do we map exceptions to a global result? You may not know about the Struts 2 documentation wiki that has a page covering exception configuration: http://struts.apache.org/2.1.6

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
struts.xml. I have over 20 right now. Is there a way to just add it somewhere so that all 20 package mappings see it? most of the packing are using struts-default On Thu, Jul 30, 2009 at 3:26 PM, Bhaarat Sharma bhaara...@gmail.com wrote: thanks On Thu, Jul 30, 2009 at 3:21 PM, Dave Newton

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
mappings only work for 'non caught' exceptions? On Thu, Jul 30, 2009 at 4:07 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: Is there a way to just add [exception mapping] somewhere so that all 20 package mappings see it? most of the packing are using struts-default You

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
direction. Thanks On Thu, Jul 30, 2009 at 11:40 PM, Bhaarat Sharma bhaara...@gmail.comwrote: will the global exception not recognize the exception if I am catching it?? I need to catch it because I want to put it in the logs. However, in my example, if i am catching the exception then I am seeing

getting listValue back to actionclass from s:select tag

2009-07-27 Thread Bhaarat Sharma
I have a s:select tag which is working fine. s:select label=fmr.terminationReason name=fmr.terminationReason list=rejectionReasons listKey=rejectedReasonCode

using 'method' in action mapping

2009-07-24 Thread Bhaarat Sharma
If I have a mapping like the following action name=selectionPage class=ReportSelection method=passBy result/reports/moneyowed/selectionpage.jsp/result /action the passBy method is doing nothing but returning SUCCESS When the above action mapping is ran and the jsp

Re: s2 currency and internationalization

2009-07-23 Thread Bhaarat Sharma
Thanks!! this helps! On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore kennethl...@sbcglobal.netwrote: FIXED. If you're trying to sell a product in US dollars and you're selling internationally, use something similar to this in your resource file. I hope this helps someone, because it drove me

preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
I have a very simple radio tag like following s:radio label=correctOption name=correctAnswer id=correctOption list= #{'1':'1','2':'2','3':'3','4':'4'} value=questionVo.correctAnswer/ questionVo.correctAnswer returns 2. So I want the second radio button to be preselected but it is not happening. I

Re: preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
ah HAA thats was my problem. the datatypes were different. Thanks On Fri, Jul 10, 2009 at 12:37 PM, Dale Newfield d...@newfield.org wrote: Bhaarat Sharma wrote: I have a very simple radio tag like following s:radio label=correctOption name=correctAnswer id=correctOption list= #{'1':'1','2

Re: Commercial framework based on struts2.

2009-07-07 Thread Bhaarat Sharma
Struts 2 IS a framework On Tue, Jul 7, 2009 at 12:20 PM, sharath karnati karna...@yahoo.com wrote: Dear All, I'm looking for chimerical framework which is built on top of struts2, with having AJAX support tags. I know struts2 comes with DOJO but we need to write lot of coding which

Re: how to add parameters to result type

2009-07-06 Thread Bhaarat Sharma
/result but the parameters are still not getting passed to the page... On Fri, Jul 3, 2009 at 10:53 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: I have a simple result type like the following action name=Verification class=gaction.reports.Verification

how to add parameters to result type

2009-07-03 Thread Bhaarat Sharma
I have a simple result type like the following action name=Verification class=gaction.reports.Verification result/thirdpartyincome/pendingVerification.jsp/result /action how can i add parameters to this resulttype? and have values of parameters come from my action class? for example

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
Does anyone know how to calculate the total value by making use of the s:set tag? On Mon, Jun 29, 2009 at 1:16 PM, Bhaarat Sharma bhaara...@gmail.com wrote: for our purpose i'd prefer doing it in the iterator tag. I tried something like this s:set name=calcTotalDebtAmt value

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
nothing :( On Wed, Jul 1, 2009 at 4:41 PM, Jim Kiley jhki...@summa-tech.com wrote: Does it work if you replace the += with a +? jk On Wed, Jul 1, 2009 at 4:39 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Does anyone know how to calculate the total value by making use of the s:set tag

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
oh nevermind. was experimenting and s:set name=calcTotalDebtAmt value=%{#calcTotalDebtAmt+totalCount}/ works! bless OGNL On Wed, Jul 1, 2009 at 4:55 PM, Bhaarat Sharma bhaara...@gmail.com wrote: no :( I tried the following s:iterator value=resultList status=status s:text name

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
at 4:55 PM, Bhaarat Sharma bhaara...@gmail.com wrote: no :( I tried the following s:iterator value=resultList status=status s:text name=number.formats:param value = totalCount//s:text s:set name=calcTotalDebtAmt value=%{calcTotalDebtAmt+totalCount}/ /s:iterator

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
of a bunch of values is not going to be your bottleneck. jk On Wed, Jul 1, 2009 at 5:03 PM, Bhaarat Sharma bhaara...@gmail.com wrote: but if I do it in my action class then I am adding extra 'time'. to begin with I anyways have to iterate over the list in my JSP. Just to calculate total if I

adding values to a variable inside iterator tag

2009-06-29 Thread Bhaarat Sharma
Hi, I have a simple iterator tag like the following s:iterator value=results s:property value=value1/ /s:iterator is there a way to get the total of value1 at the end of this iterator tag? basically in java we would do totalValue += value1; and then at the end of the loop we would have

Re: adding values to a variable inside iterator tag

2009-06-29 Thread Bhaarat Sharma
better off doing it inside the Action class. That said, you can probably use s:set to get what you want. jk On Mon, Jun 29, 2009 at 12:03 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Hi, I have a simple iterator tag like the following s:iterator value=results s:property value

Re: redirect action in s:submit

2009-06-22 Thread Bhaarat Sharma
my Struts version is 2.0.6 @Greg...I tried what you suggested..it works but not quite. redirect:MyAction.action?param1=value1param2=value2 turns into the following url MyAction.action?PageSize=50pageIndex=3.action problem is that it adds '.action' to the end... On Mon, Jun 22, 2009 at 10:04

s:select with multiple

2009-06-21 Thread Bhaarat Sharma
I have the following code for s:select tag s:select label=fmrTenant.terminationReason name=fmrTenant.terminationReason list=rejectionReasons listKey=rejectedReasonCode

Re: s:select with multiple

2009-06-21 Thread Bhaarat Sharma
My mistake. Yeah, I knew it was against the convention so I have modified the code to take care of this. Thanks On Sun, Jun 21, 2009 at 8:01 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: select name=fmrTenant.terminationReason size=9 id

redirect action in s:submit

2009-06-21 Thread Bhaarat Sharma
I have a button value like this s:submit value=Cancel name=redirect-action:PHAInformation/ but I want to add some parameters along with this...is that possible to do in the code above or do I have to make additions to struts.xml for this?

using multiple param in s:url tag

2009-06-20 Thread Bhaarat Sharma
Hello, I am using param tag inside s:url tag like the following td class=nav s:url action=ActionEditSave method=input id=url s:param name=fmrTenant.sSN value=sSN/ s:param name=fmrTenant.hshid value=hshid/ /s:url a href=s:property

Re: using multiple param in s:url tag

2009-06-20 Thread Bhaarat Sharma
according to documentation...if I try to use escapeAmp property in my s:url tag then I get the following error... Attribute escapeAmp invalid for tag url according to TLD On Sat, Jun 20, 2009 at 7:16 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Hello, I am using param tag inside s:url tag

Re: using multiple param in s:url tag

2009-06-20 Thread Bhaarat Sharma
nevermind..solved it. had to used 'escape' in s:property tag. like this: s:property value=#url escape=amp;/ On Sat, Jun 20, 2009 at 7:25 PM, Bhaarat Sharma bhaara...@gmail.com wrote: according to documentation...if I try to use escapeAmp property in my s:url tag then I get the following

confusion about s:select with multiple true

2009-06-20 Thread Bhaarat Sharma
I have been playing around with this sample code: s:select label=Months name=months headerKey=-1 headerValue=Select Month list=#{'01':'Jan', '02':'Feb'} value=#{'01','02'} multiple=true required=true/ This works as I want it to. My question is, if I want values for

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-11 Thread Bhaarat Sharma
a very specific kind of data entry/edit/view, then Grails/Rails are great tools. (I prefer Grails, personally.) Anything more? Struts or Spring-MVC would be my choices. Dave Bhaarat Sharma wrote: Guys, I've been doing struts2 for about 2 years, although I dont know

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-11 Thread Bhaarat Sharma
I just implemented servletResponseAware as well. Thanks! On Thu, Jun 11, 2009 at 11:59 AM, Wes Wannemacher w...@wantii.com wrote: On Thu, Jun 11, 2009 at 11:53 AM, Bhaarat Sharmabhaara...@gmail.com wrote: This might be too simple ...but how will i get the outputstream? lets say I have

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Bhaarat Sharma
you just have to write the validate method public void validate () { if (getModel().something()==null) addFieldError(question, Something went wrong); } On Thu, Jun 11, 2009 at 7:15 PM, Steven Hansen run...@berkeley.edu wrote: Hi, I'm trying to test some basic validations on an

Re: checking which action on the jsp

2009-06-11 Thread Bhaarat Sharma
this should ideally be handled in your ActionClass. set that 'something extra' in your Action class and use the s:if tag to see if it is there. if its there then just display it. action name=fromNormalRequest class=org.MyClass result/commonPage.jsp/result /action action name=specialAction

how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
Hello, Is there some built in functionality in struts2 that would let me return xml data from my action class? If not, I will have to create the xml data myself (which I dont mind). But what will the result-type be for this action in my struts.xml?

Re: how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
Subject: Re: how to return xml from struts2 action class Date: Wed, 10 Jun 2009 20:40:07 -0400 On Wednesday 10 June 2009 08:34:41 pm Bhaarat Sharma wrote: Hello, Is there some built in functionality in struts2 that would let me return xml data from my action class? If not, I

[OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Bhaarat Sharma
Guys, I've been doing struts2 for about 2 years, although I dont know everything about it but I have been able to get the stuff done. Most of the stuff I learned was from Struts2 in action book and this mailing list! Lately I've been intrigued by the XXX on Rails framework, be it Ruby or

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Bhaarat Sharma
. Dave Bhaarat Sharma wrote: Guys, I've been doing struts2 for about 2 years, although I dont know everything about it but I have been able to get the stuff done. Most of the stuff I learned was from Struts2 in action book and this mailing list! Lately I've been intrigued by the XXX

Problem with displayTag

2009-06-08 Thread Bhaarat Sharma
Hi guys, I'm starting displaytag for the first time. I have a simple Struts2 action that is returning a list. The list contains elements of Class Apple. Following is the code I have: s:set name=list value=testList scope=session / display:table name=sessionScope.list

Re: [friday] training for Struts 2

2009-06-05 Thread Bhaarat Sharma
I also second the online training course. Adding to what scott said, I think you can start with screen casts as well. You can provide basic free screen casts for free and then charge money for advanced topics. You should look at Rail Casts by Ryan Bates: http://railscasts.com/ -bhaarat On

struts2 locale question

2009-06-03 Thread Bhaarat Sharma
is there a way in struts2 to create a locale in the properties file and then substitue values to it? For example: in properties file: myApp.Welcome = Hello ? then when we call this locale we can pass in some value for '?' s:text name=myApp.Welcomes:parm value=World//stext br s:text

Re: struts2 locale question

2009-06-03 Thread Bhaarat Sharma
I am doing this but not working imi.welcome = Hello {0} s:text name=imi. welcome s:param value=%{World}//s:text On Wed, Jun 3, 2009 at 7:16 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: is there a way in struts2 to create a locale in the properties file

Re: why doesnt iterator tag provide 'next'

2009-06-02 Thread Bhaarat Sharma
at 10:36 PM, Bhaarat Sharma bhaara...@gmail.com wrote: s:iterator begin=%{1} end=%{dataList.size()} step=%{2} /s:iterator the above properties dont seem to be there for iterator tag. I am doing something like this: s:iterator status=stat value=(secondResultSet.size()/3

Re: why doesnt iterator tag provide 'next'

2009-06-02 Thread Bhaarat Sharma
i see that musachy added support for this http://svn.apache.org/viewvc?view=revrevision=741179 Mushacy, is this ready to be used? On Tue, Jun 2, 2009 at 2:10 AM, Bhaarat Sharma bhaara...@gmail.com wrote: currently, I am not using jstl tags at all inmy application. Isnt there anyway to achive

Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
thanks dale. Your solutions seems to be very good. Could you or someone else please explain what exactly this line means? s:iterator value=%{(dataList.size()).{?(#this%2)==(#this/2)}} /s:iterator On Sun, May 31, 2009 at 10:58 AM, Dale Newfield d...@newfield.org wrote: Bhaarat Sharma wrote

Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
at 1:21 AM, Bhaarat Sharma bhaara...@gmail.com wrote: thanks dale. Your solutions seems to be very good. Could you or someone else please explain what exactly this line means? s:iterator value=%{(dataList.size()).{?(#this%2)==(#this/2)}} /s:iterator On Sun, May 31, 2009 at 10:58 AM, Dale

Re: why doesnt iterator tag provide 'next'

2009-05-31 Thread Bhaarat Sharma
if, same thing for next, just more often. musachy On Sat, May 30, 2009 at 8:10 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Musachy, I think you have the wrong impression. This is not a 'break' tag...this would work same as in iterator tag BUT would also have a functionality where

Re: why doesnt iterator tag provide 'next'

2009-05-31 Thread Bhaarat Sharma
to sit back in time and use scriptlets. On Sun, May 31, 2009 at 9:49 AM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: how would 'if' help with 'next'. can you please give an example? Pseudocode Java; this is something people should be able to figure out for themselves. In JSP

Re: why doesnt iterator tag provide 'next'

2009-05-31 Thread Bhaarat Sharma
cool, Jim, thats a better solution!! So I'll have something like this to create my iteratorList int sizeList = dataList.size(); List iterList = new ArrayList(); for (i = 0; i = sizeList; i=i+2) { iterList.add(i); } So now I have a iterList. I can iterate over it in my struts2 code

Re: why doesnt iterator tag provide 'next'

2009-05-30 Thread Bhaarat Sharma
aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext

Re: why doesnt iterator tag provide 'next'

2009-05-30 Thread Bhaarat Sharma
:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2

Re: why doesnt iterator tag provide 'next'

2009-05-30 Thread Bhaarat Sharma
nextNum=2/ /s:iteratorNext ...how would you do it? On Sat, May 30, 2009 at 8:34 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: This is not a 'break' tag...this would work same as in iterator tag BUT would also have a functionality where the user can go to the next element

  1   2   >