Data loading problem in select tag using ajax in struts2

2009-07-24 Thread sam.raghav
Dear all, I am new to struts. I have some code like this. registration.jsp -- registrationInput.jsp struts.xml -- /registrationInput.jsp /registrationInput.jsp Problem is on validating registrationInput.jsp and coming back to registrationInput.jsp I

Re: DebuggingInterceptor debug=console ?

2009-07-24 Thread Musomesa
I vaguely remember it working on some browsers and not on others ... I think it was IE that did not work. Try another browser. Chris **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1222377105x1201454426/aol?redir=http:/

Re: DebuggingInterceptor debug=console ?

2009-07-24 Thread Musachy Barroso
you could create an action mapping for it, it is less than ideal but it should work. musachy On Fri, Jul 24, 2009 at 4:49 PM, Dale Newfield wrote: > I'd never tried to use this interceptor before today.  I'm having difficulty > getting debug=console mode to work, as it opens a pop-up window point

DebuggingInterceptor debug=console ?

2009-07-24 Thread Dale Newfield
I'd never tried to use this interceptor before today. I'm having difficulty getting debug=console mode to work, as it opens a pop-up window pointed at .../struts/webconsole.html which then results in an exception: "There is no Action mapped for action name struts/webconsole" I see that in th

Re: Is this how convention plugin mapping works?

2009-07-24 Thread Dave Newton
Jim Collings wrote: OK, so what you are saying then, is that if the my-action-success.jsp file exists, it will be the one selected and if it does not, then the myaction.jsp will be the one selected. So that if they both exist, then expect my-action-success.jsp to be the result. Yes--it will def

Re: using 'method' in action mapping

2009-07-24 Thread Dave Newton
Bhaarat Sharma wrote: 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?? If ther

RE: Downloading a Streamed File

2009-07-24 Thread Martin Gainty
good call dale although the regular HTTP 1.1 (coyote) connection easily pushes capacity envelope with streaming at last count was 8192 ..stop...go up to site ..get next chunk there are *newer Asynch connectors* coming down the pike that will expand capacity for large chunked/unchunked blobs x

Re: s2 and default locale/language

2009-07-24 Thread kaphilmore
Is it possible you have the locale configured in your struts.xml like this -- If so, you're properties files will not change based on locale. --- In str...@yahoogroups.com, Marsman wrote: > > > > Hi! > > meanwhile I've found something interresting: My application is running on > Apache Tomcat

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Timothy Orme wrote: I'm not sure if theres really a workaround for this, other than writing to disk and linking directly to the file. Or monkeying with the url (and maybe the extensions that map to struts) so that you can make the url of the action end with .../filename.zip . -Dale

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Timothy Orme wrote: My problem really then, is that my action to make a zip simply takes too long to do its thing, and the browser refuses to wait. I don't know if this'll help you, but you could create and use a modified version of StreamResult that makes many more of the response.addHeader(

Re: Downloading a Streamed File

2009-07-24 Thread Timothy Orme
And some further digging for those who are interested: https://bugzilla.mozilla.org/show_bug.cgi?id=299372#c89 Apparently just a "bug" in firefox, though they have no intentions of fixing it. Another link with more info about it in the wild: http://drupal.org/node/74983 Thanks, Tim Orme Timo

Re: Is this how convention plugin mapping works?

2009-07-24 Thread Jim Collings
Musachy Barroso wrote: > yes, off the top of my head, which is *very* unreliable(specially on > Fridays when I can only think of happy hour) :) Indeed. ;-) Jim C. signature.asc Description: OpenPGP digital signature

Re: Downloading a Streamed File

2009-07-24 Thread Timothy Orme
Right, I figured that it wasn't a struts specific issue, but thought that I might have been using the wrong content disposition or something along those lines. However, upon further prodding, it seems that this is more an issue of response time with the browser. I found that the behavior I wa

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Timothy Orme wrote: I still have the same issue though. Right clicking the link doesn't work and the filename is still listed as the action. As far as struts is concerned, there's no difference between a request that's going to be displayed in a browser window and a request that's going to be

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: Is this how convention plugin mapping works?

2009-07-24 Thread Musachy Barroso
yes, off the top of my head, which is *very* unreliable(specially on Fridays when I can only think of happy hour) :) musachy On Fri, Jul 24, 2009 at 9:47 AM, Jim Collings wrote: > OK, so what you are saying then, is that if the my-action-success.jsp > file exists, it will be the one selected and

Re: Downloading a Streamed File

2009-07-24 Thread Timothy Orme
Hey, Not sure where I got this from, but I've corrected it so that all the properties are in the struts.xml instead of modifying it in the code. I still have the same issue though. Right clicking the link doesn't work and the filename is still listed as the action. Thanks, Tim Dale Newfield

Re: Is this how convention plugin mapping works?

2009-07-24 Thread Jim Collings
OK, so what you are saying then, is that if the my-action-success.jsp file exists, it will be the one selected and if it does not, then the myaction.jsp will be the one selected. So that if they both exist, then expect my-action-success.jsp to be the result. Jim C. On Fri, Jul 24, 2009 at 12:08

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Musachy Barroso
using any of the 35,000 mocking frameworks available, that would be pretty easy :) musachy On Fri, Jul 24, 2009 at 9:14 AM, Dimitrios Christodoulakis wrote: > I plan to unit test the interceptor on its own. I am more interested > in testing its logic, not necessarily within the framework. > > Fir

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Dimitrios Christodoulakis
Let me correct an error below, I meant: "... I would need to first have an invocation *context* to get the session from..." I still have difficulty grasping the idea of all the different contexts, and their general use, but should be able to go ahead with the unit test. On Fri, Jul 24, 2009 at 11

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Dimitrios Christodoulakis
I plan to unit test the interceptor on its own. I am more interested in testing its logic, not necessarily within the framework. First step would be to mock an ActionInvocation object which is what is passed to the Interceptor's intercept method. The action invocation would need a mock action, and

Re: tag syntax question

2009-07-24 Thread Musachy Barroso
I totally agree with Dale, using %{..} will save you a lot of headaches. musachy On Fri, Jul 24, 2009 at 7:31 AM, Dale Newfield wrote: > Mitch Claborn wrote: >> >> Is either of the following more or less efficient than the other? >> >> >> > > I always argue that the latter should be used, just

Re: Detailed map for convention plugin?

2009-07-24 Thread Musachy Barroso
I think that is pretty well explained in the docs, there is a table that will show the behavior, also see my response to your previous email. musachy On Fri, Jul 24, 2009 at 8:19 AM, Jim Collings wrote: > Is there a graphical map of the decision tree for mapping?  I would > like to see something

Re: Is this how convention plugin mapping works?

2009-07-24 Thread Musachy Barroso
yes that's how it works. for any action "MyAction", the "success" result can be "my-action-success.jsp" or "my-action.jsp". For any other result "x", the result is "my-action-x.jsp". (jsp is just an example, it could be ftl or vm, etc) musachy On Fri, Jul 24, 2009 at 7:48 AM, Jim Collings wrote:

Re: custom tag development?

2009-07-24 Thread Musachy Barroso
you can still use the struts tags and/or jstl in the component. musachy On Fri, Jul 24, 2009 at 7:20 AM, Mitch Claborn wrote: > That's close to what I need, but not quite there. > > custom5[ >  this is stuff in the middle > ] > > > t1.jsp: > <%@ taglib prefix="s" uri="/struts-tags" %> > this is t

Issue with custom ExceptionMappingInterceptor

2009-07-24 Thread shanku
I have implemented a custom ExceptionMappingInterceptor. The custom interceptor basically handles all the business exceptions thrown by the service method. The one that implemented is getting executed fine whenever a exception is throw however on broswer i cant see the same page and error msg, whe

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Musachy Barroso
You don't need to create mock objects for the framework, you onlt need to mock the objects passed to the interceptor and invoke the interceptor directly, unless you really want to test the interceptor running inside struts (there is a long thread about that so i wont get into it) musachy On Fri,

Re: tag syntax question

2009-07-24 Thread mailtolouis2020-struts
Hi, I've another tag syntax question This not work: This work This also work Why we need to use %{} for fieldValue but value doesn't require? Regards Louis From: Dale Newfield To: Struts Users Mailing List Sent: Friday, July 24, 2009 3:31:36 PM Subjec

Detailed map for convention plugin?

2009-07-24 Thread Jim Collings
Is there a graphical map of the decision tree for mapping? I would like to see something like that. For example, it says in the documentation that OneTwoThreeAction maps to one-two-three.jsp but I can't find where it delineates what will happen if there is a one-two-three-success.jsp page. I reme

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Why are you trying to modify the result once it's already running rather than configuring it in your struts.xml? http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StreamResult.html Note, there's a bug in that documentation that'll be fixed in the next release, w

Is this how convention plugin mapping works?

2009-07-24 Thread Jim Collings
User loads up a URL that calls an action named SomethingAction which is an mostly empty action. It just sends em to the something.jsp page by returning "success". What if there is a something-success page? Will the behavior change? On the something.jsp page, the user submits a form that calls ano

Downloading a Streamed File

2009-07-24 Thread Timothy Orme
Hello, I did some digging on this but couldn't find anything. I have an action which is returning a streamed result. I create a zip file in memory and stream it out to the user. This works fine when the user simply clicks the link. I get the correct file, with the right name. However, as of rig

Re: tag syntax question

2009-07-24 Thread Dale Newfield
Mitch Claborn wrote: Is either of the following more or less efficient than the other? I always argue that the latter should be used, just to avoid unnecessary confusion later on. -Dale - To unsubscribe, e-mail: user-uns

Re: custom tag development?

2009-07-24 Thread Mitch Claborn
That's close to what I need, but not quite there. custom5[ this is stuff in the middle ] t1.jsp: <%@ taglib prefix="s" uri="/struts-tags" %> this is t1.jsp. done renders as custom5[ this is stuff in the middle this is t1.jsp. done ] I need to be able to conditionally and repetitively ren

Re: tag syntax question

2009-07-24 Thread Mitch Claborn
Is either of the following more or less efficient than the other? mitch Musachy Barroso wrote: > other attributes are expected to be expressions, so you can do: > > > > instead of the more verbose, but also correct: > > > > > -

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Dimitrios Christodoulakis
I tried to logically trace the flow within the framework and wanted to check if my thoughts are correct here, while at the same time asking a few more questions: As a start I take DefaultActionProxyFactory. DefaultActionProxyFactory instantiates DefaultActionProxy, but also gives us DefaultActionI

Re: tag syntax question

2009-07-24 Thread Mitch Claborn
Thanks to both. The haze on the subject is beginning to clear. mitch Musachy Barroso wrote: > yes that's a good catch Dale, from the API point of view they are > stored in a map in the ValueStack instance, but from a user point of > view you could say they are stored in the "valuestack context"

Re: s2 and default locale/language

2009-07-24 Thread Marsman
Hi! meanwhile I've found something interresting: My application is running on Apache Tomcat. When I set the "-Duser.language=en -Duser.region=US" for Tomcat, Struts doesn't use de as default language anymore. Titus Pascal-53 wrote: > > Hm, ok. Could you post your resource bundle initializ

Re: Prevent Initial Validation Struts 2

2009-07-24 Thread Paweł Wielgus
Hi, You can navigate straight to my-action!input, no validation is performed then. Best greetings, Paweł Wielgus. 2009/7/23 Greg Lindholm : >> I am new to Struts 2 and use annotation driven validations and they are >> working correctly. The only issue I have is that the validations are >> perfor