return content (like PDF) but also forward/redirect....

2007-12-11 Thread Jeff Amiel
I'm beating myself against a wall here . Struts 1.X project (but shouldn't matter if was 2.X either). I have a JSP page with form containing checkboxes where a user selects which items he wants to 'print'. Submission of form to action which generates the PDF...and places it in the response (settin

Re: return content (like PDF) but also forward/redirect....

2007-12-11 Thread Jeff Amiel
On Dec 11, 2007 10:22 AM, Paul Benedict <[EMAIL PROTECTED]> wrote: > But your first action should first go to a landing page. The landing page > then either contains a link for the user to click to download the document, > or uses a JSP redirect there to get the PDF. I thought of that...but I don'

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Jeff Amiel
On Dec 12, 2007 11:28 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > I agree with Dave. S2 has been exceptionally robust. I find the core > framework is more productive and even more pleasurable (!) to work with > compared to S1. This is a key for me. My team and I have been using an ancient vers

Re: Printing a PDF file from JSP

2007-12-19 Thread Jeff Amiel
On Dec 19, 2007 4:03 PM, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > I don't know if you can print the file without displaying it first. > I'm just trying to think how you could set it up to print only. Maybe Flash > where you have greater control. Not really..I went through this last month

How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Jeff Amiel
Recent issue is driving me batty. Suddenly started receiving exceptions in app server logs (tomcat a la jboss)... Servlet.service() for servlet AxisServlet threw exception java.lang.IllegalStateException org.apache.catalina.connector.ResponseFacade.setBufferSize(ResponseFacade.java:220) org.apac

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Jeff Amiel
On 6/5/07, Dave Newton <[EMAIL PROTECTED]> wrote: *Nothing* else changed in the app and/or configuration? nope...no code changes. The problem has always existed...once or twice a day. However recently, as often as 200 per day because certain actions are being hit much more often because of ce

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Jeff Amiel
On 6/5/07, Niall Pemberton <[EMAIL PROTECTED]> wrote: Might be a Tomcat issue - can you be more precise about the version of Tomcat 5.5? from org/apache/catalina/util/ServerInfo.properties server.info=Apache Tomcat/5.5 server.number=5.5.0.0 server.built=Sep 25 2005 10:08:45

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
On 6/6/07, Niall Pemberton <[EMAIL PROTECTED]> wrote: The latest Tomcat 5.5 release is 5.5.23 in March 2007. If you really are running a very old version of Tomcat - then upgrading would be a good idea anyway - whether it fixes this bug or not. First step though is to work out what version you're

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
On 6/5/07, Jeff Amiel <[EMAIL PROTECTED]> wrote: Recent issue is driving me batty. Suddenly started receiving exceptions in app server logs (tomcat a la jboss)... What is horrible is that I can actually reproduce this in my development environment by having a client application rapidl

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
On 6/6/07, Martin Gainty <[EMAIL PROTECTED]> wrote: No, actually you can't. Thanks. for the info, Now that I can reproduce this issue in my development environment, I'm going to simply upgrade to the latest Jboss that has tomcat 5.5.20 (or even 6?) and see what happens. -

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
On 6/6/07, Dave Newton <[EMAIL PROTECTED]> wrote: Is it only specific actions that cause the behavior? I can't tell anymore. My current logs are showing me these exceptions unrelated to the actions I THOUGHT were culpable. They only sure thing is that I cannot get the issue to occur by just

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
On 6/6/07, Al Sutton <[EMAIL PROTECTED]> wrote: Are the soap methods and the actions your calling accessing the same data and/or service classes? sure...under the hoodthey all utilize the same service 'layer' (factory method pattern to acquire newly created serviceimpl classes) and use the

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
Solution? In my days of effort to troubleshoot, I ran across this ditty: http://www.mail-archive.com/[EMAIL PROTECTED]/msg06836.html Was it possible that my response objects (even committed ones) were being re-used by other requestsand hence be the underlying cause of this? (the setBufferS

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-06 Thread Jeff Amiel
On 6/6/07, Craig McClanahan <[EMAIL PROTECTED]> wrote: Speaking as the original author of this part of Tomcat in 4.1 and 5.0 (and it hasn't changed that much in 5.5 and 6.0 AFAICT), request and response instances can indneed be pooled and reused for *different* requests. That being said, Tomca

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-07 Thread Jeff Amiel
On 6/6/07, Craig McClanahan <[EMAIL PROTECTED]> wrote: * The symptoms you describe are the classic scenario where a previously existing application level thread safety issue has already existed, but didn't surface until the usage pattern of the app itself changed. Thanks muchwill con

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-11 Thread Jeff Amiel
On 6/7/07, Jeff Amiel <[EMAIL PROTECTED]> wrote: Thanks muchwill continue to investigate. I really appreciate the information and will post back if I get any concrete results Shortly thereafter, while pouring through the tomcat issues repository, I stumbled across this:

Re: Struts 2

2007-06-14 Thread Jeff Amiel
On 6/14/07, l1nk <[EMAIL PROTECTED]> wrote: Hi. I have done a simple application to learn struts2. The user only insert is name and hit "OK" button. The result is the error.jsp or success.jsp with a message that was set on the class. This class have the execute() method and all gets and sets n

Re: updating a DIV with ajax submit

2007-06-15 Thread Jeff Amiel
I assume the value of %{ajaxSubmit} is a struts action...? And you are sure it is actually putting NEW content in the div after the image is clicked on? On 6/15/07, Mansour <[EMAIL PROTECTED]> wrote: I can see expected out put coming back. And when I view the page source it's even there in t

Re: Struts1 and 2

2007-06-18 Thread Jeff Amiel
On 6/18/07, Sivapatham, Hari <[EMAIL PROTECTED]> wrote: Thanks Martin. I did look at the comparison. However as I don't know struts1, I am not able to judge whether a struts1 user would find struts2 concepts to be pretty much the same or radically different and hard to follow. I am looking for us

Re: [S2] Exporting to CSV and Excel

2007-06-18 Thread Jeff Amiel
On 6/18/07, Skip Hollowell <[EMAIL PROTECTED]> wrote: I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If so, great. If not, can you offer up what you feel i

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Jeff Amiel
On 6/19/07, Guillaume Carré <[EMAIL PROTECTED]> wrote: IMHO (with the broken datepicker tag that is being reworked for 2.1) this is THE big "issue" with Struts 2.0.x. At least this is mine. Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. I mean...it'

Re: problem with showing ActionMessages

2007-06-19 Thread Jeff Amiel
On 6/19/07, Aleksandar Matijaca <[EMAIL PROTECTED]> wrote: All resources keys are available etc... The code looks rightare you sure that the key "invalid.login" is available? I'm pretty sure that the results would be as you see if it was not. Trysomewhere in your jsp. ---

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. Are you saying that 'sometimes' when the search actually brings back results (and you output it via that for lo

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Yes. That's it. It happens at random times.. not always. When it happens, all I get instead of the table in the browser is: Nothing found to display. makes no sensesure you don't have a local variable inside the execute method called s

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: humm... If it's truly 'random' like that there are only 4 things that could be happening. 1. Display tag is broken (not likely) 2. You occasionally have another element in some other scope with the same name that is being picked up 'firs

Re: How to avoid users changing values of hidden fields using the URL?

2007-06-28 Thread Jeff Amiel
On 6/28/07, Anton Pussep <[EMAIL PROTECTED]> wrote: I cannot see a good solution for that. A permission system just to check if the user is allowed to see this ID seems to be quite an overhead to me. Whereas storing the ID in the session is not very handy and I have to take care that they are re