Re: [s2] Passing parameters to an action

2007-03-09 Thread Petr Blahos
Hi all, I was wondering how I could possibly solve this: I have an action in which I construct quite a complex data structure. From that data structure I display some tables and create some charts. Now, I have got this one big-ass java class - extending ActionSupport, in which I do all

Re: Error Starting on Tomcat

2007-03-09 Thread Skip Hollowell
After several Eclipse restarts with -clean and a hundred other options, I finally gave it the ole reboot and test. I don't think I will ever truly understand what goes on inside that metal box on my desk, but at least everything is functioning again. Thanks for your help. Skip. Alex Wibowo

RE: Error Starting on Tomcat

2007-03-09 Thread Amit_Wadhwa
Hi, I am developing a form action using Struts 1.2.4 and am facing a peculiar problem with struts, not sure if my action tag in the struts-config.xml is the issue.. - I used the struts-examples validator application without problems - which leads me to believe that my tomcat/struts installation

RE: Error Starting on Tomcat

2007-03-09 Thread Amit_Wadhwa
Oops, I am sorry about retaining the subject of the previous person. This is a new issue for a new user. -Original Message- From: Wadhwa, Amit Sent: Friday, March 09, 2007 7:03 PM To: 'Struts Users Mailing List' Subject: RE: Error Starting on Tomcat Importance: High Hi, I am

[FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Ted Husted
Just some rambling ruminations from my blog ... As might be expected, the Struts 2 GA announcement had its share of comments on The Server Side last week. [1] One subtopic was push versus pull. As with many terms, I think we sometimes use push and pull to mean different things. Sometimes we

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Musachy Barroso
This was my favorite post: Are you guys coming from a different planet? Then let me tell you that here on planet earth web developers are going component based. :) musachy On 3/9/07, Ted Husted [EMAIL PROTECTED] wrote: Just some rambling ruminations from my blog ... As might be expected,

Re: [S2] There is no Action mapped for action name HelloWorld. - [unknown location]

2007-03-09 Thread meeboo
There is nothing in the logs which hints a startup or request error, but as soon as I click on HelloWorld under the Actions in default tab in config-browser I get this stacktrace: Expression extension is undefined on line 15, column 89 in config-browser/showConfig.ftl. The problematic

Issue with Struts-action.... Submit... cancel

2007-03-09 Thread Amit_Wadhwa
Now this problem is really getting to me... I changed the address bar to read the system name:8080 instead of localhost, and it worked... But.. With NO changes made by me to any file, stopped working on its own, after accessing and verifying everything for about 10-15 times.. ?

Re: Issue with Struts-action.... Submit... cancel

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: I changed the address bar to read the system name:8080 instead of localhost, and it worked... If localhost isn't resolving to 127.0.0.1 then either your hosts file is messed up or your machine is busted. But.. With NO changes made by me to any file, stopped

Re: s2] Is this a sensible way of doing in-line editing in a table?

2007-03-09 Thread Mark Menard
Hi Tim, On 2/26/07 5:26 PM, Tim Azzopardi [EMAIL PROTECTED] wrote: (I'm using a heaviliy modified xhtml theme that required me to use explicit tr tags in case anybody is wondering) First take a look at http://www.vitarara.org/cms/node/85 and see if that might eliminate the need for you to do

struts 2 s:select and converter

2007-03-09 Thread benoit
Hello, i wrote a type converter in order to use an s:select with a plain objet instead of manage id... and it works when i add my object but when i want to edit, the converter is not called and my list is not rightly selected. i foud a workaround by using the value attribute :

Thread.sleep(...) in Struts Action

2007-03-09 Thread Adam Gordon
I'm trying to determine the ramifications of putting a Thread.sleep(...) call in a Struts action - i.e. since only one instance of the action is created by the server, even though Tomcat is multi-threaded, would/could an invalid login by one user hinder a valid login by another user?

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Joe Germuska
On 3/9/07, Adam Gordon [EMAIL PROTECTED] wrote: Our login page performs a POST to authenticate and I'd like to put in a delay when a login failure occurs so that it hinders/frustrates any malicious users and any scripts they might be running. I realize this isn't a foolproof solution but

Re: Struts-Faces: Tomahawk tree

2007-03-09 Thread Rodrigo Pereira
Hi, I tried to update to a newer version of MyFaces ( according http://issues.apache.org/jira/browse/MYFACES-1421 ) but I cannot configure the Extension Filter, I keep getting the same message ( ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see:

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Paul Benedict
Adam, Your idea is good but the implementation is bad. The solution presumes a malicious user is attempting to break passwords through a serialized attempt: try, wait, try, wait, try wait, etc. But anyone who can guess at your methodology will then just spawn N asynchronous requests, which will

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Adam Gordon
How so? Please elaborate. Our web application sits entirely Tomcat land and it's accessible only via Apache, but Apache is only acting basically as the redirector - it knows nothing of what's going on, it just rewrites/relays requests and serves up responses. -adam Joe Germuska wrote: On

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Dave Newton
In addition to any other issues mentioned you need to consider that some browsers may time out if the Action goes to sleep, which is ugly. I think you'd be better off following an earlier suggestion to simply lock out a given user ID after N failed login attempts, put a timestamp in the DB, and

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Adam Gordon
Paul- Thanks for the response. I agree the implementation isn't great, but it's all we could come up with so far. Disabling the username isn't really feasible because we then affect the legitimate owner of that login - we work in a pretty competitive market and our clients rely on our

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Dave Newton
--- Adam Gordon [EMAIL PROTECTED] wrote: Disabling the username isn't really feasible because we then affect the legitimate owner of that login - The original suggestion was to disable to the name for certain period of time, which you were doing anyway, just not reliably. d.

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Matt Filion
I would stay away from Thread.sleep anywhere within a J2EE container, this takes that control of a thread away from the container and can produce unpredictable results. I haven't read all of the replies sorry if I'm regurgitating what someone else said. I have 2 suggestions; Frirst, what

Re: Struts-Faces: Tomahawk tree

2007-03-09 Thread Ray Clough
I have the precise same problem. Personally, my guess is that the Struts-Faces project is not ready for prime time, but then I may well be wrong. Perhaps it has been tested against the main MyFaces components but not against the Tomahawk components. However, if I (and you) are wrong, then

Re: logic:iterate tag!

2007-03-09 Thread Swaminathan Subramanian
Hi Laurie! Thanks for the prompt response. I am pasting code snippets at every level (ActionForm, Action class and view). This did not work. Please let me know if I am missing something here. Thanks again! //*ActionForm class //core java classes import

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Joe Germuska
On 3/9/07, Adam Gordon [EMAIL PROTECTED] wrote: How so? Please elaborate. Our web application sits entirely Tomcat land and it's accessible only via Apache, but Apache is only acting basically as the redirector - it knows nothing of what's going on, it just rewrites/relays requests and serves

Re: Response

2007-03-09 Thread Laurie Harper
Abhimanyu Koul wrote: Hi! I want to set a customized response for every action. ( Actually, I want to set the header to include cache control for every response) I want it to be unanimous for all pages. So, can I set it in RequestProcessor or ActionServlet and how. Please reply asap. Just add

Re: unable to deploy the WAR file provided in struts-2.0.6-all.zip

2007-03-09 Thread Laurie Harper
Are you deploying the WAR from the distribution unmodified? What version of the JDK are you using? And what version of Tomcat are you deploying to? L. thethoks wrote: Hi.. I am getting the following error while deploying the struts2-blank-2.0.6.war provided in struts-2.0.6-all.zip as

Re: logic:iterate tag!

2007-03-09 Thread Dave Newton
--- Swaminathan Subramanian wrote: ArrayList alAFFFile = new ArrayList(); alFile.add(objAFFFiles[i]); session.setAttribute(AFFFiles, alAFFFile); Is the alFile.add a typo? d. Finding fabulous fares is

RE: Struts Tiles

2007-03-09 Thread Joe Yuen
Here's the relevant entry in my tiles-def.xml file: definition name=Tiles.Template page=/tiles/template.jsp put name=title type=string value=Tiles Template / put name=logo value=/tiles/logo.jsp / put name=header value=Patient.Header / put name=body

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Vinny
I'm just happy your post didn't conclude with ... and that is why I'm switching to Flex... It's Friday, Vinny On 3/9/07, Ted Husted [EMAIL PROTECTED] wrote: Just some rambling ruminations from my blog ... As might be expected, the Struts 2 GA announcement had its share of comments on The

Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread stanlick
Greetings -- Is there a document that explains the interaction and design expectations when using AJAX/Dojo/S2? I have finally figured out how to make regions of a page load asyncronously, and If I look at the DOM, all the elements are there. However the elements do not show up in the browser

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Michael Jouravlev
Another blog, another comment: http://www.oreillynet.com/onjava/blog/2007/02/apache_struts_2_ga_release.html#comment-506880 struts2 missed the boat. It has a nice vintage feeling to it, and it may be able to ride the marketing clout that goes with the name, but the technology feels like a blast

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
Does http://struts.apache.org/2.x/docs/ajax-tags.html help? --- [EMAIL PROTECTED] wrote: Greetings -- Is there a document that explains the interaction and design expectations when using AJAX/Dojo/S2? I have finally figured out how to make regions of a page load asyncronously, and If I

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Musachy Barroso
There isn't any documentation about that, because no additional configuration is required. The ajax tags expect html (except the autcompleter who expects JSON). Actions used with the ajax tag are regular actions, unless they are going to be used with the autocompleter. regards musachy On

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Dave Newton
--- Michael Jouravlev [EMAIL PROTECTED] wrote: struts2 missed the boat. It has a nice vintage feeling to it, and it may be able to ride the marketing clout that goes with the name, but the technology feels like a blast from the past. If you are on jdk5 and want an action-oriented framework,

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Musachy Barroso
For those of us that live in another planet and use Struts 2, our planet : http://planetstruts.org/ has a weird home page :) musachy On 3/9/07, Michael Jouravlev [EMAIL PROTECTED] wrote: Another blog, another comment:

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Dave Newton
--- Musachy Barroso [EMAIL PROTECTED] wrote: http://planetstruts.org/ has a weird home page :) I like it; minimalist, straight to the point. Kinda Web 0.2-ish; only 1.8 off. d. Be a PS3 game guru. Get

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread stanlick
I really hoped that S2 was going to be the RoR competitor Java developers need. However, after working with S2 for the past several months yeah, I was experimenting before it was GA it is either a mess, or simply too big with no instructions on how the pieces fit together. Sure, there are a few

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread stanlick
Hey Dave -- Actually it doesn't. I have it printed off and have read it several times. For one thing, the snippets of code are parts without knowledge of the whole. There is no supporting struts.xml to reveal how this bit of code might actually work in practice. Also, I have yet to see what

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread stanlick
If it were only that easy! Why do you suppose moving my DIV tag outside the form renders it in the browser, while including it in the form does not? It looks like the S2 tags are writing HTML table entries out without any knowledge of where the tag might actually appear in the file. I am

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: It looks like the S2 tags are writing HTML table entries out without any knowledge of where the tag might actually appear in the file. You need to read more of the documentation; this is covered in the themes section. Dave

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Also, I have yet to see what an Action class might actually look like to handle the asynchronous call. It looks like any other Action. (BTW, Tiles is supported in S2 via the Tiles plugin, but Tiles 2 is still a bit fluxful.) d.

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Ted Husted
If you want to work on it, Musachy, I'll get you a login. :) -Ted. On 3/9/07, Musachy Barroso [EMAIL PROTECTED] wrote: For those of us that live in another planet and use Struts 2, our planet : http://planetstruts.org/ has a weird home page :) musachy

Re: Struts-Faces: Tomahawk tree

2007-03-09 Thread Rodrigo Pereira
Are you using Tiles? I guess the issue relies here. If I try to use Tomahawk w/o Tiles, no problem, but when I use tiles, booom, I get an error. Thanks, Rodrigo Pereira On 3/9/07, Ray Clough [EMAIL PROTECTED] wrote: I have the precise same problem. Personally, my guess is that the

Re: [FRIDAY] WebDev Pushmi-Pullyu

2007-03-09 Thread Ted Husted
On 3/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: There is also much confusion across the board regarding WW and S2. Are they the same? Is support dead for S1? Unless you have had your nose pressed up to the incubator for the past year, It really is confusing. Is there something that we

[S2] Acegi Security Login Implementation?

2007-03-09 Thread Paul Saumets | Merge
Has anyone implement Acegi Security with Struts 2 yet? I'm working on it and just wondering if the way I'm doing it is bad or not. Basically I've read through abit of docs and looked at many examples and they are force the filter to direct to a login.jsp form which submits to

Re: logic:iterate tag!

2007-03-09 Thread Swaminathan Subramanian
I am sorry! It is a typo. - Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, March 9, 2007 2:34:26 PM Subject: Re: logic:iterate tag! --- Swaminathan Subramanian wrote: ArrayList alAFFFile = new ArrayList();

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread abpicol
I have to agree with stanlick with this. I have abandoned in my project the more complex themes of struts and kept it in the simple theme (with customized tag templates here and there) because of these Table tags coming out of nowhere. If you imply a deduction that a s:form tag implies in the

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: [...] i'm imposing an obsolete html table structure to a page. Note that tables are not obsolete: they're still quite useful for rendering columnar information, which is what they are designed for, even in the age of CSS. What if I wanted to use div and span ?

Re: Struts-Faces: Tomahawk tree

2007-03-09 Thread Ray Clough
I am indeed using Tiles. I never understood why anyone would use Struts and not use Tiles. It is my favorite struts feature, and one which I wouldn't willingly give up. Suggestions? Fixes? Work-arounds? Is the problem with Struts or MyFaces? Is this in the bug list? Is there a

Re: Thread.sleep(...) in Struts Action

2007-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: A customer will generally freak out if you tell them their account was locked due to illegal access attempts. Shoot, I know I would - especially if the account is sensitive, like a bank or something. Their next question

[s1] handle exception in processPopulate?

2007-03-09 Thread Strachan, Paul
Hi, struts 1.2.9 beanutils 1.7.0 I receive a 500 'org.apache.commons.beanutils.ConversionException' originating from the RequestProcessor.processPopulate() displayed on the web page. I can usually make this type of error occur by hacking the http parameters, e.g. specifiying a request