Problem while maintaining session in Struts

2010-09-15 Thread Patil Yogesh
I am not sure whether I am posting it in the proper thread. I am using Struts1 framework on server side. And I am using Flex 3. We are using HTTPService for flex to server communication. In this way, I am not able to get session values stored in Struts. For e.g. 1. I have a jsp page while loggi

Re: AW: [S2] trim textfield

2010-09-15 Thread mailtolouis2020-struts
Thanks! From: Adrian Ost To: Struts Users Mailing List Sent: Tue, September 14, 2010 4:26:55 PM Subject: AW: [S2] trim textfield This one worked for me. public class StringTrimInterceptor extends AbstractInterceptor { /* (non-Javadoc) * @see c

few questions

2010-09-15 Thread Daniel Rindt
Hello, i would like to know how to obtain the name of the current action inside the JSP code. I found code: but this is showing me: "action.regis...@ce41cc" but its useless information for me. next question i had is i invoke a request to any action like this: "?request_locale=tr", the form i use

How to download a file without creating it on a server

2010-09-15 Thread lunch716
I would like to collect the data by accessing database and create the contents for a download file. Without creating the real file for InputStream that the struts2 convention proposes to use for download, how to code? Regards. -- Get the new Internet Explorer

Re: How to download a file without creating it on a server

2010-09-15 Thread Dave Newton
On Wednesday, September 15, 2010, wrote: > I would like to collect the data by accessing database and create the > contents for a download file. > > Without creating the real file for InputStream that the struts2 convention > proposes to use for download, how to code? A stream is a stream-doesn't

Re: How to download a file without creating it on a server

2010-09-15 Thread Allen Lee
Sometimes I'll create a temp file via File.createTempFile and open an InputStream for that but you could just as easily use one of these techniques: http://ostermiller.org/convert_java_outputstream_inputstream.html 2010/9/15 : > I would like to collect the data by accessing database and create t

Re: How to download a file without creating it on a server

2010-09-15 Thread lunch716
Hi Dave and Allen, Thank you for quick reply. Frankly speaking, I'm not familiarity with using stream and could not come up with some ideas. When I coded with java.io.PipedInputStream/PipedOutputStream like follwoing, I could download an empty file with IllegalStateException. If anyone give an

RE: How to download a file without creating it on a server

2010-09-15 Thread Tommy Pham
> -Original Message- > From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp] > Sent: Wednesday, September 15, 2010 9:23 PM > To: Struts Users Mailing List > Subject: Re: How to download a file without creating it on a server > > Hi Dave and Allen, > > Thank you for quick reply. > > F