Re: Re : Disappearing Labels

2010-05-21 Thread Bhaarat Sharma
t my labels disappeared too... > > if anybody had an idea... > > fr/ > > > > > > ----- Message d'origine > De : Bhaarat Sharma > À : Struts Users Mailing List >

Re: Disappearing Labels

2010-05-20 Thread Bhaarat Sharma
uses Xworks. > > Cimballi > > > On Thu, May 20, 2010 at 10:10 PM, Bhaarat Sharma > 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.h

Re: Disappearing Labels

2010-05-20 Thread Bhaarat Sharma
ting 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 > wrote: > > We have a weird problem with multiple Struts2 wars deployed on same > > GlassFish server. These

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 o

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 I

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 wrote: > I was going through the API's and came across this > method<http://www.jarvana.com/jarvana/view/org

how to get runtime configuration

2010-04-22 Thread Bhaarat Sharma
I was going through the API's and came across this method It is getRuntimeConfiguration() in class Defau

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 retu

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: 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 wrote: > ConfigurationManager ( > http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/config/ConfigurationManage

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 this

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 r

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 wrote: > 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 GlassFish

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 ther

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 a

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

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

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: pdf.test.title=PDF

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 wrote: > got it. > > it should be list="#...@java.util.hashmap@{'1':'January', > &#

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
ble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html>mailing list archives FTW On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma wrote: > how can I keep it from interpreting it as EL expression its OGNL.. > > I am using Sun App Server 9.1 > &

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 wrote: > :( > > still it gives this error: > > javax.el.ELException: Error Parsing:

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
> /> > > This is what I used last night. So #{} worked for me. > > -Original Message- > From: Dale Newfield [mailto:d...@newfield.org] > Sent: 29 October 2009 15:54 > To: Struts Users Mailing List > Subject: Re: javax.el.ELException Select Tag > >

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 Mail

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
so it should be: ? On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield wrote: > If you indicated that the attribute was OGNL by wrapping it in %{}, the > container wouldn't try to parse it as JSTL-EL. > > -Dale > > - > To uns

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 wrote: > I have the following code: > > name="programType" > list="

javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
I have the following code: which is giving error: org.apache.jasper.JasperException: /reports/threshold/reportselection_struts2.jsp(102,12) PWC6038: "#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" contains invalid expression(s): javax.el.ELException: Error Parsing

Re: /struts-tags not found

2009-10-27 Thread Bhaarat Sharma
he Web > 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 > wrote: > > hello, > > > > on our app we are getting error: PWC611

/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

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 clas

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 wrote: > 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 : > > > java.lang.

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 wrote: > 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 wrote: > Martin Gainty wrote: > >> mg>at least your attack took more than 5

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
ound with incorrectQs to see why .contains > isn't working... I'm guessing that if you iterate both lists, although > not efficient, you might get better results - > > > > >Print Something > > > > > > > On Wed, Aug 5, 2009 at 12:22 PM,

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
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 > wrote: > > > oh and attribute 'var' seems to be invalid according to the TLD > > > > On Wed, Aug 5, 2009 at 1

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
looks like it is not working only in contains.I tried the following: Print Something Line 6 prints fine and prints questionId...:( On Wed, Aug 5, 2009 at 12:09 PM, Bhaarat Sharma wrote: > thanks for the explanation chris.

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
attribute. So something more > like > this: > > > >Print Something > > > > 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 > wrote: > >

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 wrote: > ok thanks Wes. yeah that is def. more readable. > could you please tell me what the difference is in doing > > VS. > > > beside the

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
hink this would be more readable - > > > > Print Something > > > > -Wes > > On Wed, Aug 5, 2009 at 11:35 AM, Bhaarat Sharma > wrote: > > I have the following code in a jsp > > Line1: > > Line2: > > Line3:Print >

struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
I have the following code in a jsp Line1: Line2: Line3:Print Something Line4: Line5: On Line1 questions is a list. This list contains object of class Exam. Class Exam has a getter/setter questionId On Line2 incorrectQs is a list. This list contains strings. I am checking to see

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. On Tue, Aug 4, 2009 at 2:22 PM, Bhaarat Sharma wrote: > wow ..just explaining the problem i figu

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
e, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma wrote: > > Thanks. > > I have another question, which might be a little off topic. > > > > if I have a method like this in my Action class > > > >public void setPrinter(String print) > >{ > >th

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
ontaining > 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] > >

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: 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 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, wrote: > >> I t

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, wrote: > I think you can catch it, then do log.error(e.getMessage(),e); and then > throw e; > > > > ________ > From: Bhaarat Sharm

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
class?? I dont think it will be available as originally the error was thrown in reports.ReportSelection class. I'd appreciate any help to guide me in right direction. Thanks On Thu, Jul 30, 2009 at 11:40 PM, Bhaarat Sharma wrote: > will the global exception not recognize the exception

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

Re: common error page in struts2 application

2009-07-30 Thread Bhaarat Sharma
On Thu, Jul 30, 2009 at 3:26 PM, Bhaarat Sharma wrote: > thanks > > > On Thu, Jul 30, 2009 at 3:21 PM, Dave Newton wrote: > >> Bhaarat Sharma wrote: >> >>> how do we map exceptions to a global result? >>> >> >> You may not know about th

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 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: > > ht

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 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? &g

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

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. html code made out of that is: Reason1* Reason2 Reason3* when user selects stuff from this select box and submits what is sent back is listKey. Is there any way to get the listValue (content) back to the acti

using 'method' in action mapping

2009-07-24 Thread Bhaarat Sharma
If I have a mapping like the following /reports/moneyowed/selectionpage.jsp the passBy method is doing nothing but returning SUCCESS When the above action mapping is ran and the jsp page consists something like will the value show?? will providing attribute method

Re: s2 currency and internationalization

2009-07-23 Thread Bhaarat Sharma
Thanks!! this helps! On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore wrote: > 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 crazy for a day!! > >

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 wrote: > Bhaarat Sharma wrote: > >> I have a very simple radio tag like following >> > list=" #{'1':'1','2':

preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
I have a very simple radio tag like following questionVo.correctAnswer returns 2. So I want the second radio button to be preselected but it is not happening. I even tried: but that does not work either. what am I doing wrong?

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 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 we'd like to av

Re: how to add parameters to result type

2009-07-06 Thread Bhaarat Sharma
geSize} ${goToTab} ${code} ${type} ${month} but the parameters are still not getting passed to the page... On Fri, Jul 3, 2009 at 10:53 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> I have a simple result type

how to add parameters to result type

2009-07-03 Thread Bhaarat Sharma
I have a simple result type like the following /thirdpartyincome/pendingVerification.jsp how can i add parameters to this resulttype? and have values of parameters come from my action class? for example when result type is 'redirect-action' then we can do something like this

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
ction, analyze to find > bottlenecks. Finding the sum of a bunch of values is not going to be your > bottleneck. > > jk > > On Wed, Jul 1, 2009 at 5:03 PM, Bhaarat Sharma > wrote: > > > but if I do it in my action class then I am adding extra 'time'. > &g

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
g an error because it isn't initialized. Before your > starts, do . > This could be handled inside your action class with like two lines of code, > of course, and as a side benefit you could write meaningful unit tests to > be > sure you'd gotten it right. > > jk > >

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
oh nevermind. was experimenting and works! bless OGNL On Wed, Jul 1, 2009 at 4:55 PM, Bhaarat Sharma wrote: > no :( > I tried the following > > "totalCount"/> > value="%{calcTotalDebtAmt+totalCount}"/> > > > and tried to

Re: adding values to a variable inside iterator tag

2009-07-01 Thread Bhaarat Sharma
no :( I tried the following and tried to print it but it shows nothing :( On Wed, Jul 1, 2009 at 4:41 PM, Jim Kiley wrote: > Does it work if you replace the "+=" with a "+"? > jk > > On Wed, Jul 1, 2009 at 4:39 PM, Bhaarat Sharma > w

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 tag? On Mon, Jun 29, 2009 at 1:16 PM, Bhaarat Sharma wrote: > for our purpose i'd prefer doing it in the iterator tag. > I tried something like this > > > > but this does not seem to work. > >

Re: adding values to a variable inside iterator tag

2009-06-29 Thread Bhaarat Sharma
use s:set to get what you want. > > jk > > On Mon, Jun 29, 2009 at 12:03 PM, Bhaarat Sharma >wrote: > > > Hi, > > I have a simple iterator tag like the following > > > > > > > > > > > > > > > > is there a way to ge

adding values to a variable inside iterator tag

2009-06-29 Thread Bhaarat Sharma
Hi, I have a simple iterator tag like the following 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 total of value1. Is that possible to do with an iterator tag?

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=value1¶m2=value2" turns into the following url MyAction.action?PageSize=50&pageIndex=3.action problem is that it adds '.action' to the end... On Mon, Jun 22, 2009 at 10:04 AM,

redirect action in s:submit

2009-06-21 Thread Bhaarat Sharma
I have a button value like this 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?

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 wrote: > Bhaarat Sharma wrote: > >> >> Reason1* >> Reason2* >> Reason3* >> Reason4 >>

s:select with multiple

2009-06-21 Thread Bhaarat Sharma
I have the following code for s:select tag Reason1* Reason2* Reason3* Reason4 When I submit this form I am getting the values like 1 2 3 4 back to my action class just fine. What if I want to get the content of the options also? meaning what If I want to get back Reason1

confusion about s:select with multiple true

2009-06-20 Thread Bhaarat Sharma
I have been playing around with this sample code: This works as I want it to. My question is, if I want values for 'list' and 'value' coming from the action class then should the method for list be returning a hashMap? and value be returning a list? is that the only way?

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: On Sat, Jun 20, 2009 at 7:25 PM, Bhaarat Sharma wrote: > according to documentation...if I try to use escapeAmp property in my s:url > tag then I get the following error... > > Attribute escapeA

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 wrote: > Hello, > > I am using param tag inside s:url tag

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 "> hshid is int sSN is string However, in the final URL the two parameters are separated by & This should not be there. Does anyone know how to avoid &?

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 tag to see if it is there. if its there then just display it. /commonPage.jsp /commonPage.jsp import com.opensymphony.xwork2.ActionContext; public class MyClass extends

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 wrote: > > Hi, > > I'm trying to test some basic validations on an action: > > > pu

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 wrote: > On Thu, Jun 11, 2009 at 11:53 AM, Bhaarat Sharma > wrote: > > This might be too simple ...but how will i get the outputstream? > > lets say I have something li

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

2009-06-11 Thread Bhaarat Sharma
eturn null, or Action.NONE from your method. > > musachy > > On Thu, Jun 11, 2009 at 12:25 AM, Bhaarat Sharma > wrote: > > thanks for your been there done that insight. > > > > Struts 2 definitely is much more sane and enterprise level compared to > > grail

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

2009-06-10 Thread Bhaarat Sharma
es? too many to go into > > If you just want to be able to quickly throw together a very basic > web-based application that does a very specific kind of data > entry/edit/view, then Grails/Rails are great tools. (I prefer Grails, > personally.) Anything more? Struts or Spring-M

[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 Groovy.

Re: how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
rni. > > > > > > From: w...@wantii.com > > To: user@struts.apache.org > > 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: > >

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?

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: This works ok, however, when I click 'next page' th

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 Fri

Re: struts2 locale question

2009-06-03 Thread Bhaarat Sharma
I am doing this but not working imi.welcome = Hello {0} On Wed, Jun 3, 2009 at 7:16 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> is there a way in struts2 to create a locale in the properties file and >> then >> substitue values to it? >> For

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 '?' This would print: Hello World Hello John Thanks -bhaarat

Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
i see that musachy added support for this http://svn.apache.org/viewvc?view=rev&revision=741179 Mushacy, is this ready to be used? On Tue, Jun 2, 2009 at 2:10 AM, Bhaarat Sharma 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
currently, I am not using jstl tags at all inmy application. Isnt there anyway to achive this using strictly struts2 tags? On Tue, Jun 2, 2009 at 1:50 AM, Chris Pratt wrote: > You can use the tag for that type of iteration. > (*Chris*) > > On Mon, Jun 1, 2009 at 10:36 PM, Bh

Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
0, 1, 2 and in second iteration get 3, 4, 5 and so on begin, end, step seems like would work but I get compilation errors when using those since the TLD does not support them On Tue, Jun 2, 2009 at 1:21 AM, Bhaarat Sharma wrote: > thanks dale. > Your solutions seems to be very good. >

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? On Sun, May 31, 2009 at 10:58 AM, Dale Newfield wrote: > Bhaarat Sharma wrote: > >> So I'll have something like this to create my iteratorList &

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-31 Thread Bhaarat Sharma
sit back in time and use scriptlets. On Sun, May 31, 2009 at 9:49 AM, Dave Newton 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

Re: why doesnt iterator tag provide 'next'

2009-05-31 Thread Bhaarat Sharma
it using "if", same thing for "next", just more often. > > musachy > > On Sat, May 30, 2009 at 8:10 PM, Bhaarat Sharma > wrote: > > Musachy, > > > > I think you have the wrong impression. > > > > This is not a 'break' tag...

Re: why doesnt iterator tag provide 'next'

2009-05-30 Thread Bhaarat Sharma
I have not started on it yet. Dave, how would you do it with OGNL? can we write our own? I have something like this in mind ...how would you do it? On Sat, May 30, 2009 at 8:34 PM, Dave Newton wrote: > Bhaarat Sharma wrote: > >> This is not a 'break&

Re: why doesnt iterator tag provide 'next'

2009-05-30 Thread Bhaarat Sharma
ient lediglich dem Austausch von Informationen und entfaltet keine > >>> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit > von > >>> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > >>> > Ce message est conf

Re: why doesnt iterator tag provide 'next'

2009-05-30 Thread Bhaarat Sharma
toire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > Date: Sat, 30 May 2009 00:25:16 -0400 > > From: newton.d...@yahoo.com > > To: user@struts.a

  1   2   >