action call getting skiped

2009-05-03 Thread srinivasa_v .
Hi ALL, I have list of emp details,I need to click on one of emp record,it will call an action class get the details from db display on the form,and edit the details and when i click on submit ,it will call an action calss where in based on DOB i need to redirect to and action say if age is <18 ,

Re: login interceptor and a servlet

2009-05-03 Thread Chris Pratt
Sure, you can either implement ServletResponseAware and write directly to the stream, then return null from execute() to tell struts that there is no additional result required. Or, even better, you can use the Stream result type and let Struts write it to the stream for you. (*Chris*) On Sun,

Re: Struts 1: how to use different parameter names from html field names

2009-05-03 Thread Paul Benedict
I believe HDIV (www.hdiv.org) provided something like this. On Tue, Dec 23, 2008 at 3:18 PM, Givler, Eric wrote: > Can't you do something like this: > >      StringBuffer sb = new StringBuffer(255); > >           Map fields = BeanUtils.describe( xmlbean ); >      Iterator iter = fields.keySet().i

Re: login interceptor and a servlet

2009-05-03 Thread Kate Fox
Hi Chris, Thanks for the quick response. Unfortunately my servlet is a true servlet. I need to write directly to the OutputStream. Is there a way to do that with an image action? Thanks, Kate Chris Pratt wrote: If your image servlet is a true servlet acting outside of struts, it won't b

Re: login interceptor and a servlet

2009-05-03 Thread Chris Pratt
If your image servlet is a true servlet acting outside of struts, it won't be subject to the interceptor stack. If it's actually an image action, just assign it a different interceptor stack that doesn't contain your LoginInterceptor and you'll be good to go. (*Chris*) On Sun, May 3, 2009 at 8:

login interceptor and a servlet

2009-05-03 Thread Kate Fox
I have a login interceptor to check login on all my pages. I also have a servlet that serves up images. The servlet does not go through the login interceptor. Is there a way to force it that way? Here is my login interceptor definition:

Re: determine if iphone user?

2009-05-03 Thread Zoran Avtarovski
If iPhone users are significant enough you¹re better off with an interceptor to check all incoming requests. Z. > > > Cool, so is there a way to add a getter/setter in my action class to > automatically pick up the request header, similar to parameters? > > > >> > Date: Fri, 1 May 2009 15:29:

Re: number formatting (with commas)

2009-05-03 Thread Zoran Avtarovski
Wouldn¹t the appropriate currency symbol be in the locale properties? I expect you would have a separate package.properties file for each locale. Z. > > akoo wrote: >> > I am not sure actually, it was just an example I pulled the roseindia site. >> > This is all quite new to me. > > (Be wary of

RE: How to develop a Wireframe using Struts UI?

2009-05-03 Thread Martin Gainty
more than likely if you have a requirement someone else may use it if you find a Struts2 bug more than likely someone else is plagued by the same bug what functionality do you expect from the WireFrame? What types of interfaces to View Model do you expect Would this be an extension to struts-tag

RE: Download a Java ME application to mobile using StreamResult

2009-05-03 Thread Niklas Johansson
Sorry, getting a bit tired, my English wasn't that clear. I will try to make it a bit more clear here: Well, I did just a form which used an action to retreive the application. It doesn't work though and I am pretty sure the reason is because the .jad file contains information about where to g

RE: Download a Java ME application to mobile using StreamResult

2009-05-03 Thread Niklas Johansson
Hello, Thank's for your reply Dave. I named it to interceptor when I thought i had to do an interceptor class, didn't change it while getting more clever. Well, I did just a form and which used an action to retreive the application. It doesn't work though and I am pretty sure the reason is b

Re: Download a Java ME application to mobile using StreamResult

2009-05-03 Thread Dave Newton
Niklas Johansson wrote: I guess the link you sent is pointing to a similar way of doing it as I did. This is my reference: http://sheetalshundori.blogspot.com/2008/02/struts2-dynamic-file-download.html Oh; the "interceptor" part in the class name made me think you were trying to make an interc

RE: Download a Java ME application to mobile using StreamResult

2009-05-03 Thread Niklas Johansson
Hello Dave, I guess the link you sent is pointing to a similar way of doing it as I did. This is my reference: http://sheetalshundori.blogspot.com/2008/02/struts2-dynamic-file-download.html The reason why I am doing like this is because I don't want it to be possible to download the file wi

Re: Download a Java ME application to mobile using StreamResult

2009-05-03 Thread Dave Newton
Using the "stream" result is the canonical way to download files in S2. It's not clear to me what you're trying to do with the DownloadInterceptor class, which looks like an interceptor, but extends a result. In most circumstances there should be no need to create an interceptor for downloadin

Download a Java ME application to mobile using StreamResult

2009-05-03 Thread Niklas Johansson
Hello, I am trying to create an application for the mobile phone from which you can download a Java ME application. I have gotten so far that I can download the .jad file but the only thing that happens is that the content it is presented on the screen like this: MIDlet-1: WLListenerMIDlet,,W