Re: Struts 3 will be there?
Are you asking about Struts 2.0, which is already here and well, or Struts 3.0, which no-one has seen yet? Frans Thamura-2 wrote: hi there JSFgoes to 2.0 will Struts goes to 2.0? F -- View this message in context: http://www.nabble.com/Struts-3-will-be-there--tp17169502p17170584.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: default interceptor stack
(This is really theorizing with insufficient data but) have you checked what your packages extend from, via the extends property... Gabriel Belingueres-2 wrote: 2008/5/9, David Harland [EMAIL PROTECTED]: Is it possible to set a different default interceptor stack per package using default-interceptor-ref? Yes. I have split my struts configuration into mutiple files each with a different package name. I have set the default in the first file and the default for the second in the second file but the second default seems to be being used in the first package. Show us your packages. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/default-interceptor-stack-tp17152691p17170592.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Redirect-Action type result warns of caught exception when passing param
Hello Brad, Excellent! Precise and clear. Regards, Kety. Brad A Cupit wrote: I'm of the opinion that an exception in my console means something is amiss though... you've stumbled upon a little wart in the code. First things first, the exception is harmless and can be safely ignored. A more detailed explanation can be found in a comment within ObjectFactory.buildResult(..), posted below (slightly reformatted): // ognl exceptions could be thrown and be ok if, for example, the result // uses parameters in ways other than as properties for the result object. // For example, the redirect result from Struts 2 allows any parameters // to be set on the result, which it appends to the redirecting url. // These parameters wouldn't have a corresponding setter on the result // object, so an OGNL exception could be thrown. Still, this is a misuse // of exceptions, so we should look at improving it. Basically, parameters for the result are first set via setters on the Result object itself. If they don't exist, an exception is thrown and ignored. ServletRedirectResult and ServletActionRedirectResult both use params to mean query string/url parameters as opposed to properties on the Result object, so when using params on ServletRedirectResult or ServletActionRedirectResult, the exception is expected and acceptable. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Redirect-Action-type-result-warns-of-caught-exception-when-passing-param-tp16987947p17061225.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts2] Exception starting filter (Connection Timed Out)
The Spring context listener is needed only if you do use Spring. If you do not, then this might be causing the error as Tomcat was unable to find the Spring classes. Try removing this: listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener listener listener-classorg.springframework.web.context.request.RequestContextListener/listener-class /listener Pierre Thibaudeau-4 wrote: Just moving from Struts1 to Struts2.0.11. No problem on Tomcat 6.0.16. However, I get the following exception on startup with Tomcat 6.0.14. Does anyone know a way round this? (I've included excerpts from web.xml further down.) -- View this message in context: http://www.nabble.com/-Struts2--Exception-starting-filter-%28Connection-Timed-Out%29-tp16953438p17071258.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: migration from struts 1 to 2
Yes. In fact, the Actions are POJO's only if they do not extend the ActionSupport class and dont get hooked into the framework statically. An excellent (meaning precise and sweet) introduction to this migration scenario is here by Ian Roughley: http://www.infoq.com/news/2006/12/struts-migration (unfortunately the pages dont link forward, so this is actually part 3). newton.dave wrote: Just some clarifications. 4. Action Classes b) Make your Action class to extend ActionSupport, instead of Action. While this is not mandatory, it is beneficial to do so because then any POJO can be used as an Action Object. Further we then will have access to predefined tokens such as SUCCESS and ERROR. The reason to extend ActionSupport is to get the default implementations of things like validation and I18N support. Actions are POJOs without extending ActionSupport. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/migration-from-struts-1-to-2-tp16819256p16933348.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there such a thing as flash in S2?
Brad A Cupit wrote: Having said that, I question using the session, since redirect-after-post was designed to help alleviate back and refresh button problems. If we store information in the session for the redirect, then the first GET will find that information, but subsequent GETs (perhaps the result of pressing back or refresh) will not find that information, so the GET will have been inconsistent. Precisely. Using the session to store data across a redirect does indeed lead to a misbehaving GET. More importantly, IMHO the need to preserve data this way indicates a design flaw - Redirect was designed to use GET and there are always (perhaps, not-so-easy) alternatives to keep it that way. That said, one occasion when I was forced into using the session this way was when I wrote a custom solution to redirect across HTTP and HTTPS (like when a secure resource is accessed via HTTP) for Struts, working very similar to the SSL plugin. -- View this message in context: http://www.nabble.com/Is-there-such-a-thing-as-flash-in-S2--tp16697840p16935302.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect-action parameters via POST
Here are some tests which seemed to have worked with really long URL's. Such as 2K in IE and upto 100,000 characters in Firefox. http://www.boutell.com/newfaq/misc/urllength.html newton.dave wrote: --- ancatdubher [EMAIL PROTECTED] wrote: (Also, the URL is limited to 256 characters length). I've never noticed that limitation; I haven't seen a mainstream browser that wouldn't accept or send anything much less than about 2K, and some will do twice that. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Redirect-action-parameters-via-POST-tp16884951p16935375.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts1 and Struts2 in the same app
Hi Sandy, How exactly did you do the struts.xml inclusion? (I had a similar problem, where I found the struts.xml for struts 2 wasn't picking the correct xml) And by java source folder - do you mean WEB-INF/classes/ ? Sandy143 wrote: I have to integrate struts 2 actions in my existing struts 1.2 web application. My login page is using struts 1.2 action. Upon login, I come to home page. there is a link on home page. when I click on that link, I need to go to another jsp page. The later action has to be in struts 2. I have added filter, filter mapping for struts 2 in web.xml. I have included struts.xml in the root of the project (under java source folder). This included struts-config.xml (using struts 1.2.8) and struts-config-two.xml (using struts 2). -- struts-config.xml is in web-inf -- struts-config-two.xml is in the root of the project (under java source folder) my struts-config-two.xml is : - ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=xxx namespace=/xxx extends=xxx-default action name=testAction2 class=x.y.z.presentation.test.TestAction2 result name=home /TestLink.jsp /result /action /package /struts -- In my TestLink.jsp, I am specifying : s:url id=viewURL namespace=/xxx action=testAction2 / s:a href=%{viewURL} Test Link Home /s:a Test Link - I am able to login to the app. but When I click on the link I get an error message : ERROR action.RequestProcessor - Invalid path was requested /xxx/TestAction. Can you please help me to resolve this issue. I would have to use struts2 action in the flow of struts1 action. Please let me know the step by step procedure. Can anyone provide a sample app or config info on how it can be done? I have read the migration tutorial. but it didn't help me to resolve this issue. -- View this message in context: http://www.nabble.com/Struts1-and-Struts2-in-the-same-app-tp16851031p16935666.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Main differences between Struts 1 and Struts 2
:-) This article should help: http://www.infoq.com/news/2006/12/struts-migration Antonio Petrelli-3 wrote: 2008/4/28 Fernandes Celinio SGCF [EMAIL PROTECTED]: Can anyone tell me what are the main differences between Struts 1 and Struts 2 ? It's faster to say what they have in common: they both are MVC implementations; they both are under the Apache umbrella. The end :-) Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Main-differences-between-Struts-1-and-Struts-2-tp16937092p16937367.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]