Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-19 Thread Paweł Wielgus
Hi Chris, just a side note, when You are using new @Result annotation You might also use Convention style results and then You don't have to use default success @Result at all. Best greetings, Paweł WIelgus. 2009/2/18 musom...@aol.com: I noticed while upgrading that the new @Result annotation

Re: how to configure the json handler in the rest plugin?

2009-02-19 Thread Andrei Ivanov
On Wed, Feb 18, 2009 at 5:37 PM, Jack Qu qujiak...@hotmail.com wrote: You can use struts2-jsonplugin ,that's can return json result type! As I said... i need to use the rest plugin - To unsubscribe, e-mail:

Re: issues when using urlrewritefilter with struts2

2009-02-19 Thread Wim De Smet
Hi, On Wed, Feb 18, 2009 at 4:47 PM, Bill Stilwell bill.stilw...@gmail.com wrote: It took me a while to get the rewrite rule working. I can't remember if the problems were the same as yours, but the solution was to not put the query parameters in the to but rather use set type=parameter. So

Cannot find bean in any scope error

2009-02-19 Thread elyes sallem
Hello, i have a jsp in which i there is a loop with nested:iterate: nested:iterate indexId=indexOr id=ajustCpeGroupByOr property=listAjustCpeByOr % int indexeOr=indexOr;

Re: exception in jsp file

2009-02-19 Thread elyes sallem
Hi Lalchandra , i debuggued all the properties values, and found the one that caused a null pointer exception now i have got an other pb, here is the exception : javax.servlet.jsp.JspException: Cannot find bean dernierCpeEmporte in any scope at

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-19 Thread Felipe Fraga
My guess is you are not populating the list in the prepare() method of the action. After validation error, prepare() of Preparable classes is called so the lists are repopulated. Felipe On Thu, Feb 19, 2009 at 5:07 AM, sheva j shee...@gmail.com wrote: Hi, I am using struts 2.0.11. I am using

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread Dave Newton
SanJ.SANJAY wrote: I have'nt increased the logging level. I also suspect the same that its not even starting. ... Okay, then increase the logging levels and check the log. Dave - To unsubscribe, e-mail:

Problem with using sx:submit tag for file upload

2009-02-19 Thread pascal . gehring
Hello at all, im a web-developer and we're using struts 2 for the web frontend. I've developed an application with does file upload handling and did it as following: s:form action=EBookAction theme=simple enctype=multipart/form-data method=post div class=post div class=post_title

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-19 Thread Greg Lindholm
See this FAQ item: http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html Rag wrote: Hi, I am using struts 2.0.11. I am using s:select tag, struts is populating the list box correctly for all the time, except when the validation error occurs for any

Webapp context

2009-02-19 Thread JPJ
Hi, Is there anyway we can prevent the context root of the web application from prepending to the uri of an action. I know if we use the namespace then the url is formed by adding ServerName+ContextRoot+NameSpace+ActionName+.action. I am not specifying any namespace for my struts pacakge. But

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-19 Thread musomesa
Hi Pawel     agreed -- I was trying to dodge the massive renaming of the jsps to hyphenated names. Oh well... Cheers Chris -Original Message- From: Paweł Wielgus poulw...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, 19 Feb 2009 3:12 am Subject: Re: @Result

Re: Webapp context

2009-02-19 Thread Aidas Šemežys
I guess the simplest way to achieve this is to deploy your application as ROOT one under tomcat installations' webapps dir. -- aidas JPJ wrote: Hi, Is there anyway we can prevent the context root of the web application from prepending to the uri of an action. I know if we use the namespace

Re: Webapp context

2009-02-19 Thread JPJ
Thanks for the quick response. If I uderstood you correctly, the problem with this solution is that I have more than one web application in my jboss server. And I cannot deploy as ROOT for all application on the same server. Should this be viewed as an issue of FORM tag implementation? I do not

Re: Webapp context

2009-02-19 Thread Aidas Šemežys
If I remember correctly, in Struts 1.x you could use Struts custom tag library for HTML components, and the one for the form element was html:form/. It had an attribute action, which required a value to be a name of the single action from action-mappings in your struts-config.xml. That was

Re: Why does s:file break an ajax form?

2009-02-19 Thread Richard Sayre
I have encountered the same problem. While I have not fixed it with Ajax yet, the reason it does not work is because you can not submit a file through Ajax. You need to use an iFrame to submit file uploads. On Tue, Feb 17, 2009 at 7:14 PM, Jon Wilmoth jonwilm...@yahoo.com wrote: I'm curious to

RE: Errors repopulating the list after validation.

2009-02-19 Thread Sidharth Bhatia
Hi, Thanks for the suggestion, but this seems to have not solved the problem. What I have is below: private CollectionCountryCode i_countries = new ArrayListCountryCode(); thanks, Sid Bhatia Try not. Do... or do not. There is no try -- Yoda _ _

Re: Errors repopulating the list after validation.

2009-02-19 Thread Jim Kiley
Is your getter named getCountries()? On Thu, Feb 19, 2009 at 12:23 PM, Sidharth Bhatia sidharth.bhat...@gmail.com wrote: Hi, Thanks for the suggestion, but this seems to have not solved the problem. What I have is below: private CollectionCountryCode i_countries = new

RE: Errors repopulating the list after validation.

2009-02-19 Thread Sidharth Bhatia
Hi Jim, The following is my getter. /** * Gets the countryCodes * @return the countryCodes */ public CollectionCountryCode getCountries() { return i_countries; } This loads perfectly the first time I enter the page. It is only after it is submitted and

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-19 Thread Dave Newton
musom...@aol.com wrote: I was trying to dodge the massive renaming of the jsps to hyphenated names. Depending on your current naming conventions the struts.convention.action.name.separator might be of use. That aside, most massive renaming tasks can be handled with a few-line

Re: Webapp context

2009-02-19 Thread Dave Newton
JPJ wrote: Should this be viewed as an issue of FORM tag implementation? I do not know whether I am making a worthless statements but according my view we should not prepend the web app context root to the action value in JSP while rendering. Instead we should only prepend only the name space

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread SanJ.SANJAY
I am planning to redo the struts 2 integration with S1 as it is so confusiong and frustrating. So this time I do not want to copy blindly all the jars from distribution of S2 to my S1 WEB-INF/lib. Can anyone suggest which all jars are needed to copyy to S1 lib? There is struts2-core and what

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread Dave Newton
SanJ.SANJAY wrote: I am planning to redo the struts 2 integration with S1 as it is so confusiong and frustrating. So this time I do not want to copy blindly all the jars from distribution of S2 to my S1 WEB-INF/lib. Can anyone suggest which all jars are needed to copyy to S1 lib? There is

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread SanJ.SANJAY
Ok, thanks Dave I will try that. newton.dave wrote: SanJ.SANJAY wrote: I am planning to redo the struts 2 integration with S1 as it is so confusiong and frustrating. So this time I do not want to copy blindly all the jars from distribution of S2 to my S1 WEB-INF/lib. Can anyone suggest

Exception with SessionAware???

2009-02-19 Thread Security Management
Struts 2.1, every time the LoggedInInterceptor runs, I get the null pointer exception. Any ideas: Struts.xml: struts include file=struts-default.xml/ constant name=struts.objectFactory value=org.apache.struts2.spring.StrutsSpringObjectFactory / package name=default

Re: Exception with SessionAware???

2009-02-19 Thread Musachy Barroso
An action that is an interceptor? That won't end well. Making the interceptor implement SessionAware won't work. You can get access to the session in the interceptor using: ActionContext.getContext().getSession(); musachy On Thu, Feb 19, 2009 at 3:23 PM, Security Management

Struts 2.1 validation with annotations

2009-02-19 Thread Norris Shelton
I am looking to set-up validation, but I am getting errors. I added the following to my struts.xml: package name=conap extends=struts-default interceptors interceptor name=cookie class=org.apache.struts2.interceptor.CookieInterceptor/ interceptor-stack

Re: Struts 2.1 validation with annotations

2009-02-19 Thread Musachy Barroso
It seems like the default message for that validator is null. Try adding a break point to ValidatorSupport:getMessage and see if the defaultMessage is null. musachy On Thu, Feb 19, 2009 at 3:31 PM, Norris Shelton norrisshel...@yahoo.com wrote: validateObject -- Hey you! Would you help me to

Re: Exception with SessionAware???

2009-02-19 Thread Dave Newton
In addition to Musachy's response, I'd add that normally it's reasonable to include a bit more information that I get the null pointer exception, like *where* the exception is occuring. Dave Security Management wrote: Struts 2.1, every time the LoggedInInterceptor runs, I get the null

Re: Struts 2.1 validation with annotations

2009-02-19 Thread Norris Shelton
It is null. Can you point me in the direction of what I am missing? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton From: Musachy Barroso musa...@gmail.com To:

RE: AJAX with DWR but without DOJO?

2009-02-19 Thread Néstor Boscán
Hmmm ... that's strange I've been using the latest DWR 2 library without problems, really strange. Well I'm glad it worked out for you. What I like about this form of AJAX is that you can invoke the Action just like you would be doing in a form submit. Other things that I've done is encapsulate

RE: AJAX with DWR but without DOJO?

2009-02-19 Thread Néstor Boscán
Another thing that you can do is specify in the dwr.xml exactly which attributes you want to return from the action so you can control what you send though AJAX and what not. Regards, Néstor Boscán -Mensaje original- De: lllewell [mailto:laura.llewel...@gfs.com] Enviado el: Tuesday,

Re: session management

2009-02-19 Thread mthalis
Give me another suggestion pz. mthalis wrote: i have already implemented login, logout parts using struts(jsp). But the case is after logged out, when i press back button it is redirected to the particular page that i was in before logged out. these are my codings, and plz kind enough to

Struts2 rest plugin :struts.convention.action.*, possible values

2009-02-19 Thread mahanare
Hi, I would like to know where can i get all possible values for structs constants? constant name=struts.convention.action.suffix value=Controller/ constant name=struts.convention.action.mapAllMatches value=true/ constant name=struts.convention.default.parent.package value=rest-default/ i